Make WordPress Core

Changeset 28767


Ignore:
Timestamp:
06/17/2014 11:34:31 PM (12 years ago)
Author:
SergeyBiryukov
Message:

Pass WP_Customize_Setting instance to 'customize_preview_*' and 'customize_update_*' actions.

props dustyn, DrewAPicture.
fixes #27979.

File:
1 edited

Legend:

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

    r28509 r28767  
    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        }
     
    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        }
Note: See TracChangeset for help on using the changeset viewer.