WordPress.org

Make WordPress Core

Ticket #47052: #47052.patch

File #47052.patch, 5.0 KB (added by arena, 3 months ago)

patch

  • wp-admin/custom-background.php

     
    6767                        return;
    6868                }
    6969
    70                 add_action( "load-$page", array( $this, 'admin_load' ) );
    71                 add_action( "load-$page", array( $this, 'take_action' ), 49 );
    72                 add_action( "load-$page", array( $this, 'handle_upload' ), 49 );
     70                add_action( "load-{$page}", array( $this, 'admin_load' ) );
     71                add_action( "load-{$page}", array( $this, 'take_action' ), 49 );
     72                add_action( "load-{$page}", array( $this, 'handle_upload' ), 49 );
    7373
    7474                if ( $this->admin_header_callback ) {
    75                         add_action( "admin_head-$page", $this->admin_header_callback, 51 );
     75                        add_action( "admin_head-{$page}", $this->admin_header_callback, 51 );
    7676                }
    7777        }
    7878
  • wp-admin/custom-header.php

     
    7575                        return;
    7676                }
    7777
    78                 add_action( "admin_print_scripts-$page", array( $this, 'js_includes' ) );
    79                 add_action( "admin_print_styles-$page", array( $this, 'css_includes' ) );
    80                 add_action( "admin_head-$page", array( $this, 'help' ) );
    81                 add_action( "admin_head-$page", array( $this, 'take_action' ), 50 );
    82                 add_action( "admin_head-$page", array( $this, 'js' ), 50 );
     78                add_action( "admin_print_scripts-{$page}", array( $this, 'js_includes' ) );
     79                add_action( "admin_print_styles-{$page}", array( $this, 'css_includes' ) );
     80                add_action( "admin_head-{$page}", array( $this, 'help' ) );
     81                add_action( "admin_head-{$page}", array( $this, 'take_action' ), 50 );
     82                add_action( "admin_head-{$page}", array( $this, 'js' ), 50 );
    8383                if ( $this->admin_header_callback ) {
    84                         add_action( "admin_head-$page", $this->admin_header_callback, 51 );
     84                        add_action( "admin_head-{$page}", $this->admin_header_callback, 51 );
    8585                }
    8686        }
    8787
  • wp-admin/includes/class-wp-themes-list-table.php

     
    204204                        $actions = apply_filters( 'theme_action_links', $actions, $theme, 'all' );
    205205
    206206                        /** This filter is documented in wp-admin/includes/class-wp-ms-themes-list-table.php */
    207                         $actions       = apply_filters( "theme_action_links_$stylesheet", $actions, $theme, 'all' );
     207                        $actions       = apply_filters( "theme_action_links_{$stylesheet}", $actions, $theme, 'all' );
    208208                        $delete_action = isset( $actions['delete'] ) ? '<div class="delete-theme">' . $actions['delete'] . '</div>' : '';
    209209                        unset( $actions['delete'] );
    210210
  • wp-admin/includes/template.php

     
    19231923        do_action( 'admin_enqueue_scripts', $hook_suffix );
    19241924
    19251925        /** This action is documented in wp-admin/admin-header.php */
    1926         do_action( "admin_print_styles-$hook_suffix" );
     1926        do_action( "admin_print_styles-{$hook_suffix}" );
    19271927
    19281928        /** This action is documented in wp-admin/admin-header.php */
    19291929        do_action( 'admin_print_styles' );
    19301930
    19311931        /** This action is documented in wp-admin/admin-header.php */
    1932         do_action( "admin_print_scripts-$hook_suffix" );
     1932        do_action( "admin_print_scripts-{$hook_suffix}" );
    19331933
    19341934        /** This action is documented in wp-admin/admin-header.php */
    19351935        do_action( 'admin_print_scripts' );
    19361936
    19371937        /** This action is documented in wp-admin/admin-header.php */
    1938         do_action( "admin_head-$hook_suffix" );
     1938        do_action( "admin_head-{$hook_suffix}" );
    19391939
    19401940        /** This action is documented in wp-admin/admin-header.php */
    19411941        do_action( 'admin_head' );
     
    19961996        do_action( 'admin_footer', $hook_suffix );
    19971997
    19981998        /** This action is documented in wp-admin/admin-footer.php */
    1999         do_action( "admin_print_footer_scripts-$hook_suffix" );
     1999        do_action( "admin_print_footer_scripts-{$hook_suffix}" );
    20002000
    20012001        /** This action is documented in wp-admin/admin-footer.php */
    20022002        do_action( 'admin_print_footer_scripts' );
  • wp-admin/includes/update.php

     
    355355        if ( isset( $plugins->response ) && is_array( $plugins->response ) ) {
    356356                $plugins = array_keys( $plugins->response );
    357357                foreach ( $plugins as $plugin_file ) {
    358                         add_action( "after_plugin_row_$plugin_file", 'wp_plugin_update_row', 10, 2 );
     358                        add_action( "after_plugin_row_{$plugin_file}", 'wp_plugin_update_row', 10, 2 );
    359359                }
    360360        }
    361361}
     
    543543                $themes = array_keys( $themes->response );
    544544
    545545                foreach ( $themes as $theme ) {
    546                         add_action( "after_theme_row_$theme", 'wp_theme_update_row', 10, 2 );
     546                        add_action( "after_theme_row_{$theme}", 'wp_theme_update_row', 10, 2 );
    547547                }
    548548        }
    549549}