WordPress.org

Make WordPress Core

Changeset 27968


Ignore:
Timestamp:
04/06/2014 06:53:31 PM (7 years ago)
Author:
ocean90
Message:

Widget Customizer: Minor code cleanup.

  • Remove type hinting from WP_Customize_Widgets
  • Rename inject_preview_css to print_preview_css
  • Remove stray @todo

fixes #27534.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-widgets.php

    r27910 r27968  
    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
     
    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    }
     
    925925     * @action wp_print_styles
    926926     */
    927     public function inject_preview_css() {
     927    public function print_preview_css() {
    928928        ?>
    929929        <style>
     
    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() {
Note: See TracChangeset for help on using the changeset viewer.