Make WordPress Core

Ticket #27534: 27534.3.diff

File 27534.3.diff, 1.5 KB (added by ocean90, 8 years ago)

Minior things, should be included in a next commit.

  • src/wp-includes/class-wp-customize-widgets.php

     
    6868         *
    6969         * @param WP_Customize_Manager $manager Customize manager bootstrap instance.
    7070         */
    71         public function __construct( WP_Customize_Manager $manager ) {
     71        public function __construct( $manager ) {
    7272                $this->manager = $manager;
    7373
    7474                add_action( 'after_setup_theme',                       array( $this, 'setup_widget_addition_previews' ) );
     
    880880        public function customize_preview_init() {
    881881                add_filter( 'sidebars_widgets',   array( $this, 'preview_sidebars_widgets' ), 1 );
    882882                add_action( 'wp_enqueue_scripts', array( $this, 'customize_preview_enqueue' ) );
    883                 add_action( 'wp_print_styles',    array( $this, 'inject_preview_css' ), 1 );
     883                add_action( 'wp_print_styles',    array( $this, 'print_preview_css' ), 1 );
    884884                add_action( 'wp_footer',          array( $this, 'export_preview_data' ), 20 );
    885885        }
    886886
     
    924924         *
    925925         * @action wp_print_styles
    926926         */
    927         public function inject_preview_css() {
     927        public function print_preview_css() {
    928928                ?>
    929929                <style>
    930930                .widget-customizer-highlighted-widget {
     
    12501250         *
    12511251         * @see wp_ajax_save_widget()
    12521252         *
    1253          * @todo Reuse wp_ajax_save_widget now that we have option transactions?
    12541253         */
    12551254        public function wp_ajax_update_widget() {
    12561255