Make WordPress Core

Ticket #27979: 27979.2.patch

File 27979.2.patch, 983 bytes (added by dustyn, 11 years ago)
  • src/wp-includes/class-wp-customize-setting.php

    diff --git a/src/wp-includes/class-wp-customize-setting.php b/src/wp-includes/class-wp-customize-setting.php
    index 4bca442..f90bf72 100644
    a b class WP_Customize_Setting { 
    130130                                 * The dynamic portion of the hook name, $this->id, refers to the setting ID.
    131131                                 *
    132132                                 * @since 3.4.0
     133                                 *
     134                                 * @param WP_Customize_Setting $this WP_Customize_Setting instance.
    133135                                 */
    134                                 do_action( 'customize_preview_' . $this->id );
     136                                do_action( 'customize_preview_' . $this->id, $this );
    135137                }
    136138        }
    137139
    class WP_Customize_Setting { 
    247249                                 * @since 3.4.0
    248250                                 *
    249251                                 * @param mixed $value Value of the setting.
     252                                 * @param WP_Customize_Setting $this WP_Customize_Setting instance.
    250253                                 */
    251                                 return do_action( 'customize_update_' . $this->type, $value );
     254                                return do_action( 'customize_update_' . $this->type, $value, $this );
    252255                }
    253256        }
    254257