WordPress.org

Make WordPress Core

Changeset 45190


Ignore:
Timestamp:
04/13/2019 04:45:05 AM (11 days ago)
Author:
SergeyBiryukov
Message:

Bootstrap/Load: Remove duplicate leading slashes on inclusion of various files under ABSPATH.

Props dmsnell, birgire, szepe.viktor.
Fixes #46327.

Location:
trunk/src
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/index.php

    r44664 r45190  
    1313
    1414if ( file_exists( ABSPATH . 'wp-includes/js/dist/edit-post.js' ) ) {
    15     require_once ABSPATH . '/_index.php';
     15    require_once ABSPATH . '_index.php';
    1616    return;
    1717}
  • trunk/src/wp-admin/includes/ajax-actions.php

    r45176 r45190  
    36213621    switch ( $context ) {
    36223622        case 'site-icon':
    3623             require_once ABSPATH . '/wp-admin/includes/class-wp-site-icon.php';
     3623            require_once ABSPATH . 'wp-admin/includes/class-wp-site-icon.php';
    36243624            $wp_site_icon = new WP_Site_Icon();
    36253625
  • trunk/src/wp-admin/includes/class-wp-debug-data.php

    r45176 r45190  
    667667
    668668        // Check if a .htaccess file exists.
    669         if ( is_file( ABSPATH . '/.htaccess' ) ) {
     669        if ( is_file( ABSPATH . '.htaccess' ) ) {
    670670            // If the file exists, grab the content of it.
    671             $htaccess_content = file_get_contents( ABSPATH . '/.htaccess' );
     671            $htaccess_content = file_get_contents( ABSPATH . '.htaccess' );
    672672
    673673            // Filter away the core WordPress rules.
  • trunk/src/wp-admin/includes/class-wp-site-health-auto-updates.php

    r45118 r45190  
    351351                continue;
    352352            }
    353             if ( ! file_exists( ABSPATH . '/' . $file ) ) {
     353            if ( ! file_exists( ABSPATH . $file ) ) {
    354354                continue;
    355355            }
    356             if ( ! is_writable( ABSPATH . '/' . $file ) ) {
     356            if ( ! is_writable( ABSPATH . $file ) ) {
    357357                $unwritable_files[] = $file;
    358358            }
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r44975 r45190  
    403403        // Add theme update notices.
    404404        if ( current_user_can( 'install_themes' ) || current_user_can( 'update_themes' ) ) {
    405             require_once ABSPATH . '/wp-admin/includes/update.php';
     405            require_once ABSPATH . 'wp-admin/includes/update.php';
    406406            add_action( 'customize_controls_print_footer_scripts', 'wp_print_admin_notice_templates' );
    407407        }
  • trunk/src/wp-includes/class-wp-customize-widgets.php

    r44825 r45190  
    950950
    951951        global $wp_registered_widgets, $wp_registered_widget_controls;
    952         require_once ABSPATH . '/wp-admin/includes/widgets.php'; // for next_widget_id_number()
     952        require_once ABSPATH . 'wp-admin/includes/widgets.php'; // for next_widget_id_number()
    953953
    954954        $sort = $wp_registered_widgets;
  • trunk/src/wp-includes/customize/class-wp-widget-form-customize-control.php

    r44498 r45190  
    9797
    9898        // Get the widget_control and widget_content.
    99         require_once ABSPATH . '/wp-admin/includes/widgets.php';
     99        require_once ABSPATH . 'wp-admin/includes/widgets.php';
    100100
    101101        $widget = $wp_registered_widgets[ $this->widget_id ];
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

    r44225 r45190  
    16151615
    16161616            if ( ! function_exists( 'get_sample_permalink' ) ) {
    1617                 require_once ABSPATH . '/wp-admin/includes/post.php';
     1617                require_once ABSPATH . 'wp-admin/includes/post.php';
    16181618            }
    16191619
  • trunk/src/wp-includes/update.php

    r44609 r45190  
    596596 */
    597597function wp_maybe_auto_update() {
    598     include_once( ABSPATH . '/wp-admin/includes/admin.php' );
    599     include_once( ABSPATH . '/wp-admin/includes/class-wp-upgrader.php' );
     598    include_once( ABSPATH . 'wp-admin/includes/admin.php' );
     599    include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    600600
    601601    $upgrader = new WP_Automatic_Updater;
Note: See TracChangeset for help on using the changeset viewer.