mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 14:47:02 +00:00
Docs: Remove @access notations from method DocBlocks in wp-includes/* classes.
Prior to about 2013, many class methods lacked even access modifiers which made the `@access` notations that much more useful. Now that we've gotten to a point where the codebase is more mature from a maintenance perspective and we can finally remove these notations. Notable exceptions to this change include standalone functions notated as private as well as some classes still considered to represent "private" APIs. See #41452. git-svn-id: https://develop.svn.wordpress.org/trunk@41162 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -20,7 +20,6 @@ class WP_Customize_Background_Position_Control extends WP_Customize_Control {
|
||||
* Type.
|
||||
*
|
||||
* @since 4.7.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'background_position';
|
||||
@@ -29,7 +28,6 @@ class WP_Customize_Background_Position_Control extends WP_Customize_Control {
|
||||
* Don't render the control content from PHP, as it's rendered via JS on load.
|
||||
*
|
||||
* @since 4.7.0
|
||||
* @access public
|
||||
*/
|
||||
public function render_content() {}
|
||||
|
||||
@@ -37,7 +35,6 @@ class WP_Customize_Background_Position_Control extends WP_Customize_Control {
|
||||
* Render a JS template for the content of the position control.
|
||||
*
|
||||
* @since 4.7.0
|
||||
* @access public
|
||||
*/
|
||||
public function content_template() {
|
||||
$options = array(
|
||||
|
||||
@@ -18,7 +18,6 @@ class WP_Customize_Color_Control extends WP_Customize_Control {
|
||||
/**
|
||||
* Type.
|
||||
*
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'color';
|
||||
@@ -26,7 +25,6 @@ class WP_Customize_Color_Control extends WP_Customize_Control {
|
||||
/**
|
||||
* Statuses.
|
||||
*
|
||||
* @access public
|
||||
* @var array
|
||||
*/
|
||||
public $statuses;
|
||||
@@ -35,7 +33,6 @@ class WP_Customize_Color_Control extends WP_Customize_Control {
|
||||
* Mode.
|
||||
*
|
||||
* @since 4.7.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $mode = 'full';
|
||||
|
||||
@@ -20,7 +20,6 @@ class WP_Customize_Cropped_Image_Control extends WP_Customize_Image_Control {
|
||||
* Control type.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'cropped_image';
|
||||
@@ -29,7 +28,6 @@ class WP_Customize_Cropped_Image_Control extends WP_Customize_Image_Control {
|
||||
* Suggested width for cropped image.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var int
|
||||
*/
|
||||
public $width = 150;
|
||||
@@ -38,7 +36,6 @@ class WP_Customize_Cropped_Image_Control extends WP_Customize_Image_Control {
|
||||
* Suggested height for cropped image.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var int
|
||||
*/
|
||||
public $height = 150;
|
||||
@@ -47,7 +44,6 @@ class WP_Customize_Cropped_Image_Control extends WP_Customize_Image_Control {
|
||||
* Whether the width is flexible.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var bool
|
||||
*/
|
||||
public $flex_width = false;
|
||||
@@ -56,7 +52,6 @@ class WP_Customize_Cropped_Image_Control extends WP_Customize_Image_Control {
|
||||
* Whether the height is flexible.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var bool
|
||||
*/
|
||||
public $flex_height = false;
|
||||
@@ -65,7 +60,6 @@ class WP_Customize_Cropped_Image_Control extends WP_Customize_Image_Control {
|
||||
* Enqueue control related scripts/styles.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*/
|
||||
public function enqueue() {
|
||||
wp_enqueue_script( 'customize-views' );
|
||||
@@ -77,7 +71,6 @@ class WP_Customize_Cropped_Image_Control extends WP_Customize_Image_Control {
|
||||
* Refresh the parameters passed to the JavaScript via JSON.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*
|
||||
* @see WP_Customize_Control::to_json()
|
||||
*/
|
||||
|
||||
@@ -22,7 +22,6 @@ final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting {
|
||||
* The setting type.
|
||||
*
|
||||
* @since 4.7.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'custom_css';
|
||||
@@ -31,7 +30,6 @@ final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting {
|
||||
* Setting Transport
|
||||
*
|
||||
* @since 4.7.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $transport = 'postMessage';
|
||||
@@ -40,7 +38,6 @@ final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting {
|
||||
* Capability required to edit this setting.
|
||||
*
|
||||
* @since 4.7.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $capability = 'edit_css';
|
||||
@@ -49,7 +46,6 @@ final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting {
|
||||
* Stylesheet
|
||||
*
|
||||
* @since 4.7.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $stylesheet = '';
|
||||
@@ -58,7 +54,6 @@ final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting {
|
||||
* WP_Customize_Custom_CSS_Setting constructor.
|
||||
*
|
||||
* @since 4.7.0
|
||||
* @access public
|
||||
*
|
||||
* @throws Exception If the setting ID does not match the pattern `custom_css[$stylesheet]`.
|
||||
*
|
||||
@@ -82,7 +77,6 @@ final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting {
|
||||
* Add filter to preview post value.
|
||||
*
|
||||
* @since 4.7.9
|
||||
* @access public
|
||||
*
|
||||
* @return bool False when preview short-circuits due no change needing to be previewed.
|
||||
*/
|
||||
@@ -101,7 +95,6 @@ final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting {
|
||||
* This is used in the preview when `wp_get_custom_css()` is called for rendering the styles.
|
||||
*
|
||||
* @since 4.7.0
|
||||
* @access private
|
||||
* @see wp_get_custom_css()
|
||||
*
|
||||
* @param string $css Original CSS.
|
||||
@@ -122,7 +115,6 @@ final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting {
|
||||
* Fetch the value of the setting. Will return the previewed value when `preview()` is called.
|
||||
*
|
||||
* @since 4.7.0
|
||||
* @access public
|
||||
* @see WP_Customize_Setting::value()
|
||||
*
|
||||
* @return string
|
||||
@@ -159,7 +151,6 @@ final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting {
|
||||
* @todo There are cases where valid CSS can be incorrectly marked as invalid when strings or comments include balancing characters. To fix, CSS tokenization needs to be used.
|
||||
*
|
||||
* @since 4.7.0
|
||||
* @access public
|
||||
*
|
||||
* @param string $css The input string.
|
||||
* @return true|WP_Error True if the input was validated, otherwise WP_Error.
|
||||
@@ -269,7 +260,6 @@ final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting {
|
||||
* Store the CSS setting value in the custom_css custom post type for the stylesheet.
|
||||
*
|
||||
* @since 4.7.0
|
||||
* @access public
|
||||
*
|
||||
* @param string $css The input value.
|
||||
* @return int|false The post ID or false if the value could not be saved.
|
||||
@@ -306,7 +296,6 @@ final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting {
|
||||
* in the CSS.
|
||||
*
|
||||
* @since 4.7.0
|
||||
* @access private
|
||||
*
|
||||
* @param string $opening_char The opening character.
|
||||
* @param string $closing_char The closing character.
|
||||
@@ -328,7 +317,6 @@ final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting {
|
||||
* in the CSS.
|
||||
*
|
||||
* @since 4.7.0
|
||||
* @access private
|
||||
*
|
||||
* @param string $char A character.
|
||||
* @param string $css The CSS input string.
|
||||
@@ -347,7 +335,6 @@ final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting {
|
||||
* @see self::validate()
|
||||
*
|
||||
* @since 4.7.0
|
||||
* @access private
|
||||
*
|
||||
* @param string $css The CSS input string.
|
||||
* @return int Count.
|
||||
@@ -392,7 +379,6 @@ final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting {
|
||||
* using a strict "false === strpos()" comparison.
|
||||
*
|
||||
* @since 4.7.0
|
||||
* @access private
|
||||
*
|
||||
* @param string $css The CSS input string.
|
||||
* @return bool
|
||||
|
||||
@@ -22,7 +22,6 @@ class WP_Customize_Filter_Setting extends WP_Customize_Setting {
|
||||
* Saves the value of the setting, using the related API.
|
||||
*
|
||||
* @since 3.4.0
|
||||
* @access public
|
||||
*
|
||||
* @param mixed $value The value to update.
|
||||
*/
|
||||
|
||||
@@ -41,7 +41,6 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function enqueue() {
|
||||
wp_enqueue_media();
|
||||
@@ -85,7 +84,6 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function print_header_image_template() {
|
||||
?>
|
||||
@@ -157,7 +155,6 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function render_content() {
|
||||
$this->print_header_image_template();
|
||||
|
||||
@@ -19,7 +19,6 @@ class WP_Customize_Media_Control extends WP_Customize_Control {
|
||||
* Control type.
|
||||
*
|
||||
* @since 4.2.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'media';
|
||||
@@ -28,7 +27,6 @@ class WP_Customize_Media_Control extends WP_Customize_Control {
|
||||
* Media control mime type.
|
||||
*
|
||||
* @since 4.2.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $mime_type = '';
|
||||
@@ -37,7 +35,6 @@ class WP_Customize_Media_Control extends WP_Customize_Control {
|
||||
* Button labels.
|
||||
*
|
||||
* @since 4.2.0
|
||||
* @access public
|
||||
* @var array
|
||||
*/
|
||||
public $button_labels = array();
|
||||
|
||||
@@ -20,7 +20,6 @@ class WP_Customize_Nav_Menu_Auto_Add_Control extends WP_Customize_Control {
|
||||
* Type of control, used by JS.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'nav_menu_auto_add';
|
||||
@@ -29,7 +28,6 @@ class WP_Customize_Nav_Menu_Auto_Add_Control extends WP_Customize_Control {
|
||||
* No-op since we're using JS template.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access protected
|
||||
*/
|
||||
protected function render_content() {}
|
||||
|
||||
@@ -37,7 +35,6 @@ class WP_Customize_Nav_Menu_Auto_Add_Control extends WP_Customize_Control {
|
||||
* Render the Underscore template for this control.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access protected
|
||||
*/
|
||||
protected function content_template() {
|
||||
?>
|
||||
|
||||
@@ -18,7 +18,6 @@ class WP_Customize_Nav_Menu_Control extends WP_Customize_Control {
|
||||
* Control type.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'nav_menu';
|
||||
@@ -27,7 +26,6 @@ class WP_Customize_Nav_Menu_Control extends WP_Customize_Control {
|
||||
* The nav menu setting.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var WP_Customize_Nav_Menu_Setting
|
||||
*/
|
||||
public $setting;
|
||||
@@ -36,7 +34,6 @@ class WP_Customize_Nav_Menu_Control extends WP_Customize_Control {
|
||||
* Don't render the control's content - it uses a JS template instead.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*/
|
||||
public function render_content() {}
|
||||
|
||||
@@ -44,7 +41,6 @@ class WP_Customize_Nav_Menu_Control extends WP_Customize_Control {
|
||||
* JS/Underscore template for the control UI.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*/
|
||||
public function content_template() {
|
||||
?>
|
||||
@@ -89,7 +85,6 @@ class WP_Customize_Nav_Menu_Control extends WP_Customize_Control {
|
||||
* Return parameters for this control.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*
|
||||
* @return array Exported parameters.
|
||||
*/
|
||||
|
||||
@@ -18,7 +18,6 @@ class WP_Customize_Nav_Menu_Item_Control extends WP_Customize_Control {
|
||||
* Control type.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'nav_menu_item';
|
||||
@@ -27,7 +26,6 @@ class WP_Customize_Nav_Menu_Item_Control extends WP_Customize_Control {
|
||||
* The nav menu item setting.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var WP_Customize_Nav_Menu_Item_Setting
|
||||
*/
|
||||
public $setting;
|
||||
@@ -36,7 +34,6 @@ class WP_Customize_Nav_Menu_Item_Control extends WP_Customize_Control {
|
||||
* Constructor.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*
|
||||
* @see WP_Customize_Control::__construct()
|
||||
*
|
||||
@@ -52,7 +49,6 @@ class WP_Customize_Nav_Menu_Item_Control extends WP_Customize_Control {
|
||||
* Don't render the control's content - it's rendered with a JS template.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*/
|
||||
public function render_content() {}
|
||||
|
||||
@@ -60,7 +56,6 @@ class WP_Customize_Nav_Menu_Item_Control extends WP_Customize_Control {
|
||||
* JS/Underscore template for the control UI.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*/
|
||||
public function content_template() {
|
||||
?>
|
||||
@@ -155,7 +150,6 @@ class WP_Customize_Nav_Menu_Item_Control extends WP_Customize_Control {
|
||||
* Return parameters for this control.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*
|
||||
* @return array Exported parameters.
|
||||
*/
|
||||
|
||||
@@ -29,7 +29,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
* Setting type.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = self::TYPE;
|
||||
@@ -38,7 +37,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
* Default setting value.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var array
|
||||
*
|
||||
* @see wp_setup_nav_menu_item()
|
||||
@@ -68,7 +66,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @since 4.5.0 Default changed to 'refresh'
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $transport = 'refresh';
|
||||
@@ -79,7 +76,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
* A negative value represents a placeholder ID for a new menu not yet saved.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var int
|
||||
*/
|
||||
public $post_id;
|
||||
@@ -88,7 +84,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
* Storage of pre-setup menu item to prevent wasted calls to wp_setup_nav_menu_item().
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access protected
|
||||
* @var array
|
||||
*/
|
||||
protected $value;
|
||||
@@ -102,7 +97,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
* a real post.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var int
|
||||
*
|
||||
* @see WP_Customize_Nav_Menu_Item_Setting::update()
|
||||
@@ -115,7 +109,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
* which ensures that we can apply the proper filters.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var int
|
||||
*/
|
||||
public $original_nav_menu_term_id;
|
||||
@@ -124,7 +117,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
* Whether or not update() was called.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access protected
|
||||
* @var bool
|
||||
*/
|
||||
protected $is_updated = false;
|
||||
@@ -138,7 +130,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
* When status is error, the error is stored in $update_error.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var string updated|inserted|deleted|error
|
||||
*
|
||||
* @see WP_Customize_Nav_Menu_Item_Setting::update()
|
||||
@@ -150,7 +141,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
* Any error object returned by wp_update_nav_menu_item() when setting is updated.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var WP_Error
|
||||
*
|
||||
* @see WP_Customize_Nav_Menu_Item_Setting::update()
|
||||
@@ -164,7 +154,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
* Any supplied $args override class property defaults.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*
|
||||
* @param WP_Customize_Manager $manager Bootstrap Customizer instance.
|
||||
* @param string $id An specific ID of the setting. Can be a
|
||||
@@ -201,7 +190,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
* Clear the cached value when this nav menu item is updated.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*
|
||||
* @param int $menu_id The term ID for the menu.
|
||||
* @param int $menu_item_id The post ID for the menu item.
|
||||
@@ -217,7 +205,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
* Get the instance data for a given nav_menu_item setting.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*
|
||||
* @see wp_setup_nav_menu_item()
|
||||
*
|
||||
@@ -274,7 +261,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
* Get original title.
|
||||
*
|
||||
* @since 4.7.0
|
||||
* @access protected
|
||||
*
|
||||
* @param object $item Nav menu item.
|
||||
* @return string The original title.
|
||||
@@ -311,7 +297,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
* Get type label.
|
||||
*
|
||||
* @since 4.7.0
|
||||
* @access protected
|
||||
*
|
||||
* @param object $item Nav menu item.
|
||||
* @returns string The type label.
|
||||
@@ -345,7 +330,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
* Translates some properties added by wp_setup_nav_menu_item() and removes others.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access protected
|
||||
*
|
||||
* @see WP_Customize_Nav_Menu_Item_Setting::value()
|
||||
*/
|
||||
@@ -441,7 +425,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @since 4.4.0 Added boolean return value.
|
||||
* @access public
|
||||
*
|
||||
* @see WP_Customize_Manager::post_value()
|
||||
*
|
||||
@@ -480,7 +463,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
* Filters the wp_get_nav_menu_items() result to supply the previewed menu items.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*
|
||||
* @see wp_get_nav_menu_items()
|
||||
*
|
||||
@@ -554,7 +536,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
* Re-apply the tail logic also applied on $items by wp_get_nav_menu_items().
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @static
|
||||
*
|
||||
* @see wp_get_nav_menu_items()
|
||||
@@ -591,7 +572,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
* Get the value emulated into a WP_Post and set up as a nav_menu_item.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*
|
||||
* @return WP_Post With wp_setup_nav_menu_item() applied.
|
||||
*/
|
||||
@@ -659,7 +639,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
* we remove that in this override.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*
|
||||
* @param array $menu_item_value The value to sanitize.
|
||||
* @return array|false|null Null if an input isn't valid. False if it is marked for deletion.
|
||||
@@ -743,7 +722,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
* To delete a menu, the client can send false as the value.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access protected
|
||||
*
|
||||
* @see wp_update_nav_menu_item()
|
||||
*
|
||||
@@ -878,7 +856,6 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
* Export data for the JS client.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*
|
||||
* @see WP_Customize_Nav_Menu_Item_Setting::update()
|
||||
*
|
||||
|
||||
@@ -22,7 +22,6 @@ class WP_Customize_Nav_Menu_Location_Control extends WP_Customize_Control {
|
||||
* Control type.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'nav_menu_location';
|
||||
@@ -31,7 +30,6 @@ class WP_Customize_Nav_Menu_Location_Control extends WP_Customize_Control {
|
||||
* Location ID.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $location_id = '';
|
||||
@@ -40,7 +38,6 @@ class WP_Customize_Nav_Menu_Location_Control extends WP_Customize_Control {
|
||||
* Refresh the parameters passed to JavaScript via JSON.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*
|
||||
* @see WP_Customize_Control::to_json()
|
||||
*/
|
||||
@@ -53,7 +50,6 @@ class WP_Customize_Nav_Menu_Location_Control extends WP_Customize_Control {
|
||||
* Render content just like a normal select control.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*/
|
||||
public function render_content() {
|
||||
if ( empty( $this->choices ) ) {
|
||||
|
||||
@@ -20,7 +20,6 @@ class WP_Customize_Nav_Menu_Name_Control extends WP_Customize_Control {
|
||||
* Type of control, used by JS.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'nav_menu_name';
|
||||
@@ -29,7 +28,6 @@ class WP_Customize_Nav_Menu_Name_Control extends WP_Customize_Control {
|
||||
* No-op since we're using JS template.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access protected
|
||||
*/
|
||||
protected function render_content() {}
|
||||
|
||||
@@ -37,7 +35,6 @@ class WP_Customize_Nav_Menu_Name_Control extends WP_Customize_Control {
|
||||
* Render the Underscore template for this control.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access protected
|
||||
*/
|
||||
protected function content_template() {
|
||||
?>
|
||||
|
||||
@@ -22,7 +22,6 @@ class WP_Customize_Nav_Menu_Section extends WP_Customize_Section {
|
||||
* Control type.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'nav_menu';
|
||||
@@ -31,7 +30,6 @@ class WP_Customize_Nav_Menu_Section extends WP_Customize_Section {
|
||||
* Get section parameters for JS.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @return array Exported parameters.
|
||||
*/
|
||||
public function json() {
|
||||
|
||||
@@ -30,7 +30,6 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
|
||||
* Setting type.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = self::TYPE;
|
||||
@@ -39,7 +38,6 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
|
||||
* Default setting value.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var array
|
||||
*
|
||||
* @see wp_get_nav_menu_object()
|
||||
@@ -55,7 +53,6 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
|
||||
* Default transport.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $transport = 'postMessage';
|
||||
@@ -66,7 +63,6 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
|
||||
* A negative value represents a placeholder ID for a new menu not yet saved.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var int
|
||||
*/
|
||||
public $term_id;
|
||||
@@ -80,7 +76,6 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
|
||||
* a real term.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var int
|
||||
*
|
||||
* @see WP_Customize_Nav_Menu_Setting::update()
|
||||
@@ -92,7 +87,6 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
|
||||
* Whether or not update() was called.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access protected
|
||||
* @var bool
|
||||
*/
|
||||
protected $is_updated = false;
|
||||
@@ -106,7 +100,6 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
|
||||
* When status is error, the error is stored in `$update_error`.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var string updated|inserted|deleted|error
|
||||
*
|
||||
* @see WP_Customize_Nav_Menu_Setting::update()
|
||||
@@ -118,7 +111,6 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
|
||||
* Any error object returned by wp_update_nav_menu_object() when setting is updated.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var WP_Error
|
||||
*
|
||||
* @see WP_Customize_Nav_Menu_Setting::update()
|
||||
@@ -132,7 +124,6 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
|
||||
* Any supplied $args override class property defaults.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*
|
||||
* @param WP_Customize_Manager $manager Bootstrap Customizer instance.
|
||||
* @param string $id An specific ID of the setting. Can be a
|
||||
@@ -159,7 +150,6 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
|
||||
* Get the instance data for a given widget setting.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*
|
||||
* @see wp_get_nav_menu_object()
|
||||
*
|
||||
@@ -206,7 +196,6 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @since 4.4.0 Added boolean return value
|
||||
* @access public
|
||||
*
|
||||
* @see WP_Customize_Manager::post_value()
|
||||
*
|
||||
@@ -240,7 +229,6 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
|
||||
* Filters the wp_get_nav_menus() result to ensure the inserted menu object is included, and the deleted one is removed.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*
|
||||
* @see wp_get_nav_menus()
|
||||
*
|
||||
@@ -300,7 +288,6 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
|
||||
* Temporary non-closure passing of orderby value to function.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access protected
|
||||
* @var string
|
||||
*
|
||||
* @see WP_Customize_Nav_Menu_Setting::filter_wp_get_nav_menus()
|
||||
@@ -315,7 +302,6 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @deprecated 4.7.0 Use wp_list_sort()
|
||||
* @access protected
|
||||
*
|
||||
* @param object $menu1
|
||||
* @param object $menu2
|
||||
@@ -336,7 +322,6 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
|
||||
* Requesting a nav_menu object by anything but ID is not supported.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*
|
||||
* @see wp_get_nav_menu_object()
|
||||
*
|
||||
@@ -385,7 +370,6 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
|
||||
* Filters the nav_menu_options option to include this menu's auto_add preference.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*
|
||||
* @param array $nav_menu_options Nav menu options including auto_add.
|
||||
* @return array (Kaybe) modified nav menu options.
|
||||
@@ -412,7 +396,6 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
|
||||
* we remove that in this override.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*
|
||||
* @param array $value The value to sanitize.
|
||||
* @return array|false|null Null if an input isn't valid. False if it is marked for deletion.
|
||||
@@ -456,7 +439,6 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
|
||||
*
|
||||
* See {@see 'customize_save_response'}.
|
||||
*
|
||||
* @access protected
|
||||
* @since 4.3.0
|
||||
* @var array
|
||||
*
|
||||
@@ -474,7 +456,6 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
|
||||
* To delete a menu, the client can send false as the value.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access protected
|
||||
*
|
||||
* @see wp_update_nav_menu_object()
|
||||
*
|
||||
@@ -597,7 +578,6 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
|
||||
* Updates a nav_menu_options array.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access protected
|
||||
*
|
||||
* @see WP_Customize_Nav_Menu_Setting::filter_nav_menu_options()
|
||||
* @see WP_Customize_Nav_Menu_Setting::update()
|
||||
@@ -627,7 +607,6 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
|
||||
* Export data for the JS client.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*
|
||||
* @see WP_Customize_Nav_Menu_Setting::update()
|
||||
*
|
||||
|
||||
@@ -22,7 +22,6 @@ class WP_Customize_Nav_Menus_Panel extends WP_Customize_Panel {
|
||||
* Control type.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'nav_menus';
|
||||
@@ -31,7 +30,6 @@ class WP_Customize_Nav_Menus_Panel extends WP_Customize_Panel {
|
||||
* Render screen options for Menus.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*/
|
||||
public function render_screen_options() {
|
||||
// Adds the screen options.
|
||||
@@ -64,7 +62,6 @@ class WP_Customize_Nav_Menus_Panel extends WP_Customize_Panel {
|
||||
* export custom variables by overriding WP_Customize_Panel::json().
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access protected
|
||||
*
|
||||
* @see WP_Customize_Panel::print_template()
|
||||
*/
|
||||
|
||||
@@ -20,7 +20,6 @@ class WP_Customize_New_Menu_Control extends WP_Customize_Control {
|
||||
* Control type.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'new_menu';
|
||||
@@ -29,7 +28,6 @@ class WP_Customize_New_Menu_Control extends WP_Customize_Control {
|
||||
* Render the control's content.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*/
|
||||
public function render_content() {
|
||||
?>
|
||||
|
||||
@@ -22,7 +22,6 @@ class WP_Customize_New_Menu_Section extends WP_Customize_Section {
|
||||
* Control type.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'new_menu';
|
||||
@@ -31,7 +30,6 @@ class WP_Customize_New_Menu_Section extends WP_Customize_Section {
|
||||
* Render the section, and the controls that have been added to it.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access protected
|
||||
*/
|
||||
protected function render() {
|
||||
?>
|
||||
|
||||
@@ -22,7 +22,6 @@ class WP_Customize_Partial {
|
||||
* Component.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @var WP_Customize_Selective_Refresh
|
||||
*/
|
||||
public $component;
|
||||
@@ -34,7 +33,6 @@ class WP_Customize_Partial {
|
||||
* be the same as the associated setting's ID.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $id;
|
||||
@@ -43,7 +41,6 @@ class WP_Customize_Partial {
|
||||
* Parsed ID.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access protected
|
||||
* @var array {
|
||||
* @type string $base ID base.
|
||||
* @type array $keys Keys for multidimensional.
|
||||
@@ -55,7 +52,6 @@ class WP_Customize_Partial {
|
||||
* Type of this partial.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'default';
|
||||
@@ -64,7 +60,6 @@ class WP_Customize_Partial {
|
||||
* The jQuery selector to find the container element for the partial.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $selector;
|
||||
@@ -72,7 +67,6 @@ class WP_Customize_Partial {
|
||||
/**
|
||||
* IDs for settings tied to the partial.
|
||||
*
|
||||
* @access public
|
||||
* @since 4.5.0
|
||||
* @var array
|
||||
*/
|
||||
@@ -84,7 +78,6 @@ class WP_Customize_Partial {
|
||||
* If not supplied, it will default to the ID of the first setting.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $primary_setting;
|
||||
@@ -96,7 +89,6 @@ class WP_Customize_Partial {
|
||||
* of the associated `$settings`.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $capability;
|
||||
@@ -105,7 +97,6 @@ class WP_Customize_Partial {
|
||||
* Render callback.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @see WP_Customize_Partial::render()
|
||||
* @var callable Callback is called with one argument, the instance of
|
||||
* WP_Customize_Partial. The callback can either echo the
|
||||
@@ -117,7 +108,6 @@ class WP_Customize_Partial {
|
||||
* Whether the container element is included in the partial, or if only the contents are rendered.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @var bool
|
||||
*/
|
||||
public $container_inclusive = false;
|
||||
@@ -128,7 +118,6 @@ class WP_Customize_Partial {
|
||||
* A partial render is considered a failure if the render_callback returns false.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @var bool
|
||||
*/
|
||||
public $fallback_refresh = true;
|
||||
@@ -141,7 +130,6 @@ class WP_Customize_Partial {
|
||||
* If `$args['settings']` is not defined, use the $id as the setting ID.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
*
|
||||
* @param WP_Customize_Selective_Refresh $component Customize Partial Refresh plugin instance.
|
||||
* @param string $id Control ID.
|
||||
@@ -184,7 +172,6 @@ class WP_Customize_Partial {
|
||||
* Retrieves parsed ID data for multidimensional setting.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
*
|
||||
* @return array {
|
||||
* ID data for multidimensional partial.
|
||||
@@ -201,7 +188,6 @@ class WP_Customize_Partial {
|
||||
* Renders the template partial involving the associated settings.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
*
|
||||
* @param array $container_context Optional. Array of context data associated with the target container (placement).
|
||||
* Default empty array.
|
||||
@@ -270,7 +256,6 @@ class WP_Customize_Partial {
|
||||
* applying to client-side templating.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
*
|
||||
* @param WP_Customize_Partial $partial Partial.
|
||||
* @param array $context Context.
|
||||
@@ -285,7 +270,6 @@ class WP_Customize_Partial {
|
||||
* Retrieves the data to export to the client via JSON.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
*
|
||||
* @return array Array of parameters passed to the JavaScript.
|
||||
*/
|
||||
@@ -308,7 +292,6 @@ class WP_Customize_Partial {
|
||||
* or if one of the associated settings does not exist.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
*
|
||||
* @return bool False if user can't edit one one of the related settings,
|
||||
* or if one of the associated settings does not exist.
|
||||
|
||||
@@ -25,7 +25,6 @@ final class WP_Customize_Selective_Refresh {
|
||||
* Customize manager.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @var WP_Customize_Manager
|
||||
*/
|
||||
public $manager;
|
||||
@@ -34,7 +33,6 @@ final class WP_Customize_Selective_Refresh {
|
||||
* Registered instances of WP_Customize_Partial.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access protected
|
||||
* @var WP_Customize_Partial[]
|
||||
*/
|
||||
protected $partials = array();
|
||||
@@ -43,7 +41,6 @@ final class WP_Customize_Selective_Refresh {
|
||||
* Log of errors triggered when partials are rendered.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access protected
|
||||
* @var array
|
||||
*/
|
||||
protected $triggered_errors = array();
|
||||
@@ -52,7 +49,6 @@ final class WP_Customize_Selective_Refresh {
|
||||
* Keep track of the current partial being rendered.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access protected
|
||||
* @var string
|
||||
*/
|
||||
protected $current_partial_id;
|
||||
@@ -61,7 +57,6 @@ final class WP_Customize_Selective_Refresh {
|
||||
* Plugin bootstrap for Partial Refresh functionality.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
*
|
||||
* @param WP_Customize_Manager $manager Manager instance.
|
||||
*/
|
||||
@@ -76,7 +71,6 @@ final class WP_Customize_Selective_Refresh {
|
||||
* Retrieves the registered partials.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
*
|
||||
* @return array Partials.
|
||||
*/
|
||||
@@ -136,7 +130,6 @@ final class WP_Customize_Selective_Refresh {
|
||||
* Retrieves a partial.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
*
|
||||
* @param string $id Customize Partial ID.
|
||||
* @return WP_Customize_Partial|null The partial, if set. Otherwise null.
|
||||
@@ -153,7 +146,6 @@ final class WP_Customize_Selective_Refresh {
|
||||
* Removes a partial.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
*
|
||||
* @param string $id Customize Partial ID.
|
||||
*/
|
||||
@@ -165,7 +157,6 @@ final class WP_Customize_Selective_Refresh {
|
||||
* Initializes the Customizer preview.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
*/
|
||||
public function init_preview() {
|
||||
add_action( 'template_redirect', array( $this, 'handle_render_partials_request' ) );
|
||||
@@ -176,7 +167,6 @@ final class WP_Customize_Selective_Refresh {
|
||||
* Enqueues preview scripts.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
*/
|
||||
public function enqueue_preview_scripts() {
|
||||
wp_enqueue_script( 'customize-selective-refresh' );
|
||||
@@ -187,7 +177,6 @@ final class WP_Customize_Selective_Refresh {
|
||||
* Exports data in preview after it has finished rendering so that partials can be added at runtime.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
*/
|
||||
public function export_preview_data() {
|
||||
$partials = array();
|
||||
@@ -226,7 +215,6 @@ final class WP_Customize_Selective_Refresh {
|
||||
* Registers dynamically-created partials.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
*
|
||||
* @see WP_Customize_Manager::add_dynamic_settings()
|
||||
*
|
||||
@@ -292,7 +280,6 @@ final class WP_Customize_Selective_Refresh {
|
||||
* just that essentially the route is a match.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
*
|
||||
* @return bool Whether the request is for rendering partials.
|
||||
*/
|
||||
@@ -306,7 +293,6 @@ final class WP_Customize_Selective_Refresh {
|
||||
* These errors will be relayed back to the client in the Ajax response.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
*
|
||||
* @param int $errno Error number.
|
||||
* @param string $errstr Error string.
|
||||
@@ -329,7 +315,6 @@ final class WP_Customize_Selective_Refresh {
|
||||
* Handles the Ajax request to return the rendered partials for the requested placements.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
*/
|
||||
public function handle_render_partials_request() {
|
||||
if ( ! $this->is_render_partials_request() ) {
|
||||
|
||||
@@ -20,7 +20,6 @@ class WP_Customize_Sidebar_Section extends WP_Customize_Section {
|
||||
* Type of this section.
|
||||
*
|
||||
* @since 4.1.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'sidebar';
|
||||
@@ -29,7 +28,6 @@ class WP_Customize_Sidebar_Section extends WP_Customize_Section {
|
||||
* Unique identifier.
|
||||
*
|
||||
* @since 4.1.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $sidebar_id;
|
||||
@@ -51,7 +49,6 @@ class WP_Customize_Sidebar_Section extends WP_Customize_Section {
|
||||
* Whether the current sidebar is rendered on the page.
|
||||
*
|
||||
* @since 4.1.0
|
||||
* @access public
|
||||
*
|
||||
* @return bool Whether sidebar is rendered.
|
||||
*/
|
||||
|
||||
@@ -22,7 +22,6 @@ class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control
|
||||
* Control type.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'site_icon';
|
||||
@@ -31,7 +30,6 @@ class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control
|
||||
* Constructor.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*
|
||||
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
|
||||
* @param string $id Control ID.
|
||||
@@ -46,7 +44,6 @@ class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control
|
||||
* Renders a JS template for the content of the site icon control.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
*/
|
||||
public function content_template() {
|
||||
?>
|
||||
|
||||
@@ -20,7 +20,6 @@ class WP_Customize_Theme_Control extends WP_Customize_Control {
|
||||
* Customize control type.
|
||||
*
|
||||
* @since 4.2.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'theme';
|
||||
@@ -29,7 +28,6 @@ class WP_Customize_Theme_Control extends WP_Customize_Control {
|
||||
* Theme object.
|
||||
*
|
||||
* @since 4.2.0
|
||||
* @access public
|
||||
* @var WP_Theme
|
||||
*/
|
||||
public $theme;
|
||||
@@ -38,7 +36,6 @@ class WP_Customize_Theme_Control extends WP_Customize_Control {
|
||||
* Refresh the parameters passed to the JavaScript via JSON.
|
||||
*
|
||||
* @since 4.2.0
|
||||
* @access public
|
||||
*
|
||||
* @see WP_Customize_Control::to_json()
|
||||
*/
|
||||
@@ -51,7 +48,6 @@ class WP_Customize_Theme_Control extends WP_Customize_Control {
|
||||
* Don't render the control content from PHP, as it's rendered via JS on load.
|
||||
*
|
||||
* @since 4.2.0
|
||||
* @access public
|
||||
*/
|
||||
public function render_content() {}
|
||||
|
||||
@@ -59,7 +55,6 @@ class WP_Customize_Theme_Control extends WP_Customize_Control {
|
||||
* Render a JS template for theme display.
|
||||
*
|
||||
* @since 4.2.0
|
||||
* @access public
|
||||
*/
|
||||
public function content_template() {
|
||||
$current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
|
||||
|
||||
@@ -22,7 +22,6 @@ class WP_Customize_Themes_Section extends WP_Customize_Section {
|
||||
* Customize section type.
|
||||
*
|
||||
* @since 4.2.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'themes';
|
||||
@@ -31,7 +30,6 @@ class WP_Customize_Themes_Section extends WP_Customize_Section {
|
||||
* Render the themes section, which behaves like a panel.
|
||||
*
|
||||
* @since 4.2.0
|
||||
* @access protected
|
||||
*/
|
||||
protected function render() {
|
||||
$classes = 'accordion-section control-section control-section-' . $this->type;
|
||||
|
||||
@@ -20,7 +20,6 @@ class WP_Widget_Area_Customize_Control extends WP_Customize_Control {
|
||||
* Customize control type.
|
||||
*
|
||||
* @since 3.9.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'sidebar_widgets';
|
||||
@@ -29,7 +28,6 @@ class WP_Widget_Area_Customize_Control extends WP_Customize_Control {
|
||||
* Sidebar ID.
|
||||
*
|
||||
* @since 3.9.0
|
||||
* @access public
|
||||
* @var int|string
|
||||
*/
|
||||
public $sidebar_id;
|
||||
@@ -38,7 +36,6 @@ class WP_Widget_Area_Customize_Control extends WP_Customize_Control {
|
||||
* Refreshes the parameters passed to the JavaScript via JSON.
|
||||
*
|
||||
* @since 3.9.0
|
||||
* @access public
|
||||
*/
|
||||
public function to_json() {
|
||||
parent::to_json();
|
||||
@@ -52,7 +49,6 @@ class WP_Widget_Area_Customize_Control extends WP_Customize_Control {
|
||||
* Renders the control's content.
|
||||
*
|
||||
* @since 3.9.0
|
||||
* @access public
|
||||
*/
|
||||
public function render_content() {
|
||||
$id = 'reorder-widgets-desc-' . str_replace( array( '[', ']' ), array( '-', '' ), $this->id );
|
||||
|
||||
@@ -28,7 +28,6 @@ class WP_Widget_Form_Customize_Control extends WP_Customize_Control {
|
||||
* Gather control params for exporting to JavaScript.
|
||||
*
|
||||
* @since 3.9.0
|
||||
* @access public
|
||||
*
|
||||
* @global array $wp_registered_widgets
|
||||
*/
|
||||
@@ -65,7 +64,6 @@ class WP_Widget_Form_Customize_Control extends WP_Customize_Control {
|
||||
* Override render_content to be no-op since content is exported via to_json for deferred embedding.
|
||||
*
|
||||
* @since 3.9.0
|
||||
* @access public
|
||||
*/
|
||||
public function render_content() {}
|
||||
|
||||
@@ -73,7 +71,6 @@ class WP_Widget_Form_Customize_Control extends WP_Customize_Control {
|
||||
* Whether the current widget is rendered on the page.
|
||||
*
|
||||
* @since 4.0.0
|
||||
* @access public
|
||||
*
|
||||
* @return bool Whether the widget is rendered.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user