Changeset 32054 for trunk/src/wp-includes/class-wp-customize-widgets.php
- Timestamp:
- 04/06/2015 03:09:21 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-widgets.php
r32036 r32054 96 96 add_action( 'customize_controls_print_footer_scripts', array( $this, 'output_widget_control_templates' ) ); 97 97 add_action( 'customize_preview_init', array( $this, 'customize_preview_init' ) ); 98 add_filter( 'customize_refresh_nonces', array( $this, 'refresh_nonces' ) ); 98 99 99 100 add_action( 'dynamic_sidebar', array( $this, 'tally_rendered_widgets' ) ); … … 890 891 891 892 /** 893 * Refresh nonce for widget updates. 894 * 895 * @since 4.2.0 896 * @access public 897 * 898 * @param array $nonces Array of nonces. 899 * @return array $nonces Array of nonces. 900 */ 901 public function refresh_nonces( $nonces ) { 902 $nonces['update-widget'] = wp_create_nonce( 'update-widget' ); 903 return $nonces; 904 } 905 906 /** 892 907 * When previewing, make sure the proper previewing widgets are used. 893 908 *
Note: See TracChangeset
for help on using the changeset viewer.