issues
search
Automattic
/
ad-code-manager
Easily manage the ad codes that need to appear in your templates
https://wordpress.org/plugins/ad-code-manager/
GNU General Public License v2.0
117
stars
51
forks
source link
Reorganise code
#137
Closed
GaryJones
closed
2 years ago
GaryJones
commented
2 years ago
Move main plugin class to its own file.
Move other non-view PHP files into
/src
directory.
Rename classes to be prefixed with
class-
per WPCS (though this may change to use PSR-4 naming in the future once namespacing and autoloading is considered).
Simplify CSS and JS file locations.
Simplify defined constants in the root file.
Update plugin headers to be more detailed.
Add namespace to root file.
Change how the main class is initialised.
/src
directory.class-
per WPCS (though this may change to use PSR-4 naming in the future once namespacing and autoloading is considered).