Update WP and plugins
This commit is contained in:
parent
10a4713229
commit
1fb77fc4ff
864 changed files with 101724 additions and 78262 deletions
|
|
@ -15,13 +15,68 @@
|
|||
* @see WP_Customize_Control
|
||||
*/
|
||||
class WP_Widget_Form_Customize_Control extends WP_Customize_Control {
|
||||
/**
|
||||
* Customize control type.
|
||||
*
|
||||
* @since 3.9.0
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'widget_form';
|
||||
|
||||
/**
|
||||
* Widget ID.
|
||||
*
|
||||
* @since 3.9.0
|
||||
* @var string
|
||||
*/
|
||||
public $widget_id;
|
||||
|
||||
/**
|
||||
* Widget ID base.
|
||||
*
|
||||
* @since 3.9.0
|
||||
* @var string
|
||||
*/
|
||||
public $widget_id_base;
|
||||
|
||||
/**
|
||||
* Sidebar ID.
|
||||
*
|
||||
* @since 3.9.0
|
||||
* @var string
|
||||
*/
|
||||
public $sidebar_id;
|
||||
|
||||
/**
|
||||
* Widget status.
|
||||
*
|
||||
* @since 3.9.0
|
||||
* @var bool True if new, false otherwise. Default false.
|
||||
*/
|
||||
public $is_new = false;
|
||||
|
||||
/**
|
||||
* Widget width.
|
||||
*
|
||||
* @since 3.9.0
|
||||
* @var int
|
||||
*/
|
||||
public $width;
|
||||
|
||||
/**
|
||||
* Widget height.
|
||||
*
|
||||
* @since 3.9.0
|
||||
* @var int
|
||||
*/
|
||||
public $height;
|
||||
|
||||
/**
|
||||
* Widget mode.
|
||||
*
|
||||
* @since 3.9.0
|
||||
* @var bool True if wide, false otherwise. Default false.
|
||||
*/
|
||||
public $is_wide = false;
|
||||
|
||||
/**
|
||||
|
|
@ -49,11 +104,16 @@ class WP_Widget_Form_Customize_Control extends WP_Customize_Control {
|
|||
}
|
||||
|
||||
$args = array(
|
||||
'widget_id' => $widget['id'],
|
||||
'widget_id' => $widget['id'],
|
||||
'widget_name' => $widget['name'],
|
||||
);
|
||||
|
||||
$args = wp_list_widget_controls_dynamic_sidebar( array( 0 => $args, 1 => $widget['params'][0] ) );
|
||||
$args = wp_list_widget_controls_dynamic_sidebar(
|
||||
array(
|
||||
0 => $args,
|
||||
1 => $widget['params'][0],
|
||||
)
|
||||
);
|
||||
$widget_control_parts = $this->manager->widgets->get_widget_control_parts( $args );
|
||||
|
||||
$this->json['widget_control'] = $widget_control_parts['control'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue