Make WordPress Core

Ticket #27979: 27979.3.patch

File 27979.3.patch, 1011 bytes (added by DrewAPicture, 11 years ago)
  • src/wp-includes/class-wp-customize-setting.php

     
    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
     
    246248                                 *
    247249                                 * @since 3.4.0
    248250                                 *
    249                                  * @param mixed $value Value of the setting.
     251                                 * @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