Fix syntax and add missing `@access` tags to a variety of methods added to `WP_Customize_Nav_Menus_Panel` in 4.3.
See [32855]. See #32891. Built from https://develop.svn.wordpress.org/trunk@33219 git-svn-id: http://core.svn.wordpress.org/trunk@33191 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
65a4946d9a
commit
2475426aa8
|
@ -27,6 +27,7 @@ class WP_Customize_Panel {
|
|||
*
|
||||
* @static
|
||||
* @access protected
|
||||
* @static
|
||||
* @var int
|
||||
*/
|
||||
protected static $instance_count = 0;
|
||||
|
@ -311,9 +312,11 @@ class WP_Customize_Panel {
|
|||
* Render the panel's JS templates.
|
||||
*
|
||||
* This function is only run for panel types that have been registered with
|
||||
* {@see WP_Customize_Manager::register_panel_type()}.
|
||||
* WP_Customize_Manager::register_panel_type().
|
||||
*
|
||||
* @since 4.3.0
|
||||
*
|
||||
* @see WP_Customize_Manager::register_panel_type()
|
||||
*/
|
||||
public function print_template() {
|
||||
?>
|
||||
|
@ -330,11 +333,12 @@ class WP_Customize_Panel {
|
|||
* An Underscore (JS) template for rendering this panel's container.
|
||||
*
|
||||
* Class variables for this panel class are available in the `data` JS object;
|
||||
* export custom variables by overriding {@see WP_Customize_Panel::json()}.
|
||||
* export custom variables by overriding WP_Customize_Panel::json().
|
||||
*
|
||||
* @see WP_Customize_Panel::print_template()
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access protected
|
||||
*/
|
||||
protected function render_template() {
|
||||
?>
|
||||
|
@ -352,11 +356,12 @@ class WP_Customize_Panel {
|
|||
* An Underscore (JS) template for this panel's content (but not its container).
|
||||
*
|
||||
* Class variables for this panel class are available in the `data` JS object;
|
||||
* export custom variables by overriding {@see WP_Customize_Panel::json()}.
|
||||
* export custom variables by overriding WP_Customize_Panel::json().
|
||||
*
|
||||
* @see WP_Customize_Panel::print_template()
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access protected
|
||||
*/
|
||||
protected function content_template() {
|
||||
?>
|
||||
|
@ -385,6 +390,8 @@ class WP_Customize_Panel {
|
|||
* Needed to add screen options.
|
||||
*
|
||||
* @since 4.3.0
|
||||
*
|
||||
* @see WP_Customize_Panel
|
||||
*/
|
||||
class WP_Customize_Nav_Menus_Panel extends WP_Customize_Panel {
|
||||
|
||||
|
@ -392,7 +399,6 @@ class WP_Customize_Nav_Menus_Panel extends WP_Customize_Panel {
|
|||
* Control type.
|
||||
*
|
||||
* @since 4.3.0
|
||||
*
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
|
@ -402,6 +408,7 @@ 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() {
|
||||
// Essentially adds the screen options.
|
||||
|
@ -418,6 +425,7 @@ class WP_Customize_Nav_Menus_Panel extends WP_Customize_Panel {
|
|||
* Link title attribute added as it's a relatively advanced concept for new users.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access public
|
||||
*
|
||||
* @return array The advanced menu properties.
|
||||
*/
|
||||
|
@ -437,13 +445,12 @@ class WP_Customize_Nav_Menus_Panel extends WP_Customize_Panel {
|
|||
* An Underscore (JS) template for this panel's content (but not its container).
|
||||
*
|
||||
* Class variables for this panel class are available in the `data` JS object;
|
||||
* export custom variables by overriding {@see WP_Customize_Panel::json()}.
|
||||
* export custom variables by overriding WP_Customize_Panel::json().
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @access protected
|
||||
*
|
||||
* @see WP_Customize_Panel::print_template()
|
||||
*
|
||||
* @since 4.3.0
|
||||
*/
|
||||
protected function content_template() {
|
||||
?>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.3-beta2-33218';
|
||||
$wp_version = '4.3-beta2-33219';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue