Changeset 47122 for trunk/src/wp-includes/widgets/class-wp-widget-media.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-media.php
r47055 r47122 107 107 $this->registered = true; 108 108 109 // Note that the widgets component in the customizer will also do the 'admin_print_scripts-widgets.php' action in WP_Customize_Widgets::print_scripts(). 109 // Note that the widgets component in the customizer will also do 110 // the 'admin_print_scripts-widgets.php' action in WP_Customize_Widgets::print_scripts(). 110 111 add_action( 'admin_print_scripts-widgets.php', array( $this, 'enqueue_admin_scripts' ) ); 111 112 … … 114 115 } 115 116 116 // Note that the widgets component in the customizer will also do the 'admin_footer-widgets.php' action in WP_Customize_Widgets::print_footer_scripts(). 117 // Note that the widgets component in the customizer will also do 118 // the 'admin_footer-widgets.php' action in WP_Customize_Widgets::print_footer_scripts(). 117 119 add_action( 'admin_footer-widgets.php', array( $this, 'render_control_template_scripts' ) ); 118 120 … … 275 277 $value = $new_instance[ $field ]; 276 278 277 // Workaround for rest_validate_value_from_schema() due to the fact that rest_is_boolean( '' ) === false, while rest_is_boolean( '1' ) is true. 279 /* 280 * Workaround for rest_validate_value_from_schema() due to the fact that 281 * rest_is_boolean( '' ) === false, while rest_is_boolean( '1' ) is true. 282 */ 278 283 if ( 'boolean' === $field_schema['type'] && '' === $value ) { 279 284 $value = false;
Note: See TracChangeset
for help on using the changeset viewer.