mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-06 21:54:28 +00:00
Coding Standards: Rename WordPress Dependencies API class files.
The current coding standards note that the name of the class files should be based on the class name with `class-` prepended, and the underscores replaced by hyphens (see the [https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#naming-conventions Naming Conventions] section in the handbook), except for the three legacy files: `class.wp-dependencies.php`, `class.wp-scripts.php`, `class.wp-styles.php`. To bring more consistency to the codebase and make it easier to implement autoloading in the future, this commit renames those three legacy files to conform to the coding standards: * `wp-includes/class.wp-dependencies.php` → `wp-includes/class-wp-dependencies.php` * `wp-includes/class.wp-scripts.php` → `wp-includes/class-wp-scripts.php` * `wp-includes/class.wp-styles.php` → `wp-includes/class-wp-styles.php` Includes: * Loading the new files from the old ones, for anyone that may have been including the files directly. * Replacing references to the old filenames with the new filenames. Follow-up to [7970], [45654], [45662], [45663], [45678], [47197], [52026], [53749]. Props afragen, schlessera, swissspidy, dingo_d, hellofromTonya, SergeyBiryukov. Fixes #37861. See #55647. git-svn-id: https://develop.svn.wordpress.org/trunk@54254 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -20,16 +20,16 @@
|
||||
require ABSPATH . WPINC . '/class-wp-dependency.php';
|
||||
|
||||
/** WordPress Dependencies Class */
|
||||
require ABSPATH . WPINC . '/class.wp-dependencies.php';
|
||||
require ABSPATH . WPINC . '/class-wp-dependencies.php';
|
||||
|
||||
/** WordPress Scripts Class */
|
||||
require ABSPATH . WPINC . '/class.wp-scripts.php';
|
||||
require ABSPATH . WPINC . '/class-wp-scripts.php';
|
||||
|
||||
/** WordPress Scripts Functions */
|
||||
require ABSPATH . WPINC . '/functions.wp-scripts.php';
|
||||
|
||||
/** WordPress Styles Class */
|
||||
require ABSPATH . WPINC . '/class.wp-styles.php';
|
||||
require ABSPATH . WPINC . '/class-wp-styles.php';
|
||||
|
||||
/** WordPress Styles Functions */
|
||||
require ABSPATH . WPINC . '/functions.wp-styles.php';
|
||||
@@ -190,7 +190,7 @@ function wp_get_script_polyfill( $scripts, $tests ) {
|
||||
$src = add_query_arg( 'ver', $ver, $src );
|
||||
}
|
||||
|
||||
/** This filter is documented in wp-includes/class.wp-scripts.php */
|
||||
/** This filter is documented in wp-includes/class-wp-scripts.php */
|
||||
$src = esc_url( apply_filters( 'script_loader_src', $src, $handle ) );
|
||||
|
||||
if ( ! $src ) {
|
||||
|
||||
Reference in New Issue
Block a user