Changeset 43571 for trunk/src/wp-includes/class-wp-customize-widgets.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-widgets.php
r43561 r43571 402 402 $setting_id = 'old_sidebars_widgets_data'; 403 403 $setting_args = $this->get_setting_args( 404 $setting_id, array( 404 $setting_id, 405 array( 405 406 'type' => 'global_variable', 406 407 'dirty' => true, … … 411 412 412 413 $this->manager->add_panel( 413 'widgets', array( 414 'widgets', 415 array( 414 416 'type' => 'widgets', 415 417 'title' => __( 'Widgets' ), … … 469 471 470 472 $control = new WP_Widget_Area_Customize_Control( 471 $this->manager, $setting_id, array( 473 $this->manager, 474 $setting_id, 475 array( 472 476 'section' => $section_id, 473 477 'sidebar_id' => $sidebar_id, … … 494 498 495 499 $control = new WP_Widget_Form_Customize_Control( 496 $this->manager, $setting_id, array( 500 $this->manager, 501 $setting_id, 502 array( 497 503 'label' => $registered_widget['name'], 498 504 'section' => $section_id, … … 734 740 ), 735 741 number_format_i18n( $non_rendered_count ) 736 ), ENT_QUOTES, get_bloginfo( 'charset' ) 742 ), 743 ENT_QUOTES, 744 get_bloginfo( 'charset' ) 737 745 ); 738 746 } … … 742 750 sprintf( 743 751 __( 'Your theme has 1 widget area, but this particular page doesn’t display it.' ) 744 ), ENT_QUOTES, get_bloginfo( 'charset' ) 752 ), 753 ENT_QUOTES, 754 get_bloginfo( 'charset' ) 745 755 ); 746 756 } else { … … 754 764 ), 755 765 number_format_i18n( $registered_sidebar_count ) 756 ), ENT_QUOTES, get_bloginfo( 'charset' ) 766 ), 767 ENT_QUOTES, 768 get_bloginfo( 'charset' ) 757 769 ); 758 770 } … … 991 1003 // The properties here are mapped to the Backbone Widget model. 992 1004 $available_widget = array_merge( 993 $available_widget, array( 1005 $available_widget, 1006 array( 994 1007 'temp_id' => isset( $args['_temp_id'] ) ? $args['_temp_id'] : null, 995 1008 'is_multi' => $is_multi_widget, … … 1704 1717 'data-customize-partial-widget-id', 1705 1718 'data-customize-partial-options', 1706 ), true 1719 ), 1720 true 1707 1721 ) 1708 1722 );
Note: See TracChangeset
for help on using the changeset viewer.