Make WordPress Core

Ticket #37861: 37861.patch

File 37861.patch, 3.8 KB (added by schlessera, 7 years ago)

Rename offending files and adapt all mentions

  • src/wp-includes/

    diff --git src/wp-includes/class.wp-dependencies.php src/wp-includes/class-wp-dependencies.php
    similarity index 100%
    rename from src/wp-includes/class.wp-dependencies.php
    rename to src/wp-includes/class-wp-dependencies.php
    diff --git src/wp-includes/class.wp-scripts.php src/wp-includes/class-wp-scripts.php
    similarity index 99%
    rename from src/wp-includes/class.wp-scripts.php
    rename to src/wp-includes/class-wp-scripts.php
    index 81634ece41..66cdb6d562 100644
    old new class WP_Scripts extends WP_Dependencies { 
    336336                if ( ! empty( $ver ) )
    337337                        $src = add_query_arg( 'ver', $ver, $src );
    338338
    339                 /** This filter is documented in wp-includes/class.wp-scripts.php */
     339                /** This filter is documented in wp-includes/class-wp-scripts.php */
    340340                $src = esc_url( apply_filters( 'script_loader_src', $src, $handle ) );
    341341
    342342                if ( ! $src )
  • src/wp-includes/

    diff --git src/wp-includes/class.wp-styles.php src/wp-includes/class-wp-styles.php
    similarity index 99%
    rename from src/wp-includes/class.wp-styles.php
    rename to src/wp-includes/class-wp-styles.php
    index 0b6c011d10..7d9d4003d2 100644
    old new class WP_Styles extends WP_Dependencies { 
    209209                                $rtl_href = $this->_css_href( $obj->extra['rtl'], $ver, "$handle-rtl" );
    210210                        }
    211211
    212                         /** This filter is documented in wp-includes/class.wp-styles.php */
     212                        /** This filter is documented in wp-includes/class-wp-styles.php */
    213213                        $rtl_tag = apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-rtl-css' $title href='$rtl_href' type='text/css' media='$media' />\n", $handle, $rtl_href, $media );
    214214
    215215                        if ( $obj->extra['rtl'] === 'replace' ) {
  • src/wp-includes/formatting.php

    diff --git src/wp-includes/formatting.php src/wp-includes/formatting.php
    index 4c54615474..0f61393d68 100644
    function _print_emoji_detection_script() { 
    50465046
    50475047        if ( SCRIPT_DEBUG ) {
    50485048                $settings['source'] = array(
    5049                         /** This filter is documented in wp-includes/class.wp-scripts.php */
     5049                        /** This filter is documented in wp-includes/class-wp-scripts.php */
    50505050                        'wpemoji' => apply_filters( 'script_loader_src', includes_url( "js/wp-emoji.js?$version" ), 'wpemoji' ),
    5051                         /** This filter is documented in wp-includes/class.wp-scripts.php */
     5051                        /** This filter is documented in wp-includes/class-wp-scripts.php */
    50525052                        'twemoji' => apply_filters( 'script_loader_src', includes_url( "js/twemoji.js?$version" ), 'twemoji' ),
    50535053                );
    50545054
    function _print_emoji_detection_script() { 
    50605060                <?php
    50615061        } else {
    50625062                $settings['source'] = array(
    5063                         /** This filter is documented in wp-includes/class.wp-scripts.php */
     5063                        /** This filter is documented in wp-includes/class-wp-scripts.php */
    50645064                        'concatemoji' => apply_filters( 'script_loader_src', includes_url( "js/wp-emoji-release.min.js?$version" ), 'concatemoji' ),
    50655065                );
    50665066
  • src/wp-includes/script-loader.php

    diff --git src/wp-includes/script-loader.php src/wp-includes/script-loader.php
    index ba52778d2f..8b9b7f63ae 100644
     
    2020require( ABSPATH . WPINC . '/class-wp-dependency.php' );
    2121
    2222/** WordPress Dependencies Class */
    23 require( ABSPATH . WPINC . '/class.wp-dependencies.php' );
     23require( ABSPATH . WPINC . '/class-wp-dependencies.php' );
    2424
    2525/** WordPress Scripts Class */
    26 require( ABSPATH . WPINC . '/class.wp-scripts.php' );
     26require( ABSPATH . WPINC . '/class-wp-scripts.php' );
    2727
    2828/** WordPress Scripts Functions */
    2929require( ABSPATH . WPINC . '/functions.wp-scripts.php' );
    3030
    3131/** WordPress Styles Class */
    32 require( ABSPATH . WPINC . '/class.wp-styles.php' );
     32require( ABSPATH . WPINC . '/class-wp-styles.php' );
    3333
    3434/** WordPress Styles Functions */
    3535require( ABSPATH . WPINC . '/functions.wp-styles.php' );