Fix syntax and add missing `@access` tags to a variety of methods added to `WP_Customize_Section`, `WP_Customize_Nav_Menu_Section`, and `WP_Customize_New_Menu_Section` in 4.3.

See [32658] and [32806]. See #32891.

Built from https://develop.svn.wordpress.org/trunk@33220


git-svn-id: http://core.svn.wordpress.org/trunk@33192 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2015-07-13 20:49:24 +00:00
parent 2475426aa8
commit d1a84b6f2e
2 changed files with 17 additions and 10 deletions

View File

@ -316,9 +316,12 @@ class WP_Customize_Section {
* Render the section's JS template. * Render the section's JS template.
* *
* This function is only run for section types that have been registered with * This function is only run for section types that have been registered with
* {@see WP_Customize_Manager::register_section_type()}. * WP_Customize_Manager::register_section_type().
* *
* @since 4.3.0 * @since 4.3.0
* @access public
*
* @see WP_Customize_Manager::render_template()
*/ */
public function print_template() { public function print_template() {
?> ?>
@ -332,11 +335,12 @@ class WP_Customize_Section {
* An Underscore (JS) template for rendering this section. * An Underscore (JS) template for rendering this section.
* *
* Class variables for this section class are available in the `data` JS object; * Class variables for this section class are available in the `data` JS object;
* export custom variables by overriding {@see WP_Customize_Section::json()}. * export custom variables by overriding WP_Customize_Section::json().
*
* @see WP_Customize_Section::print_template()
* *
* @since 4.3.0 * @since 4.3.0
* @access protected
*
* @see WP_Customize_Section::print_template()
*/ */
protected function render_template() { protected function render_template() {
?> ?>
@ -503,6 +507,8 @@ class WP_Customize_Sidebar_Section extends WP_Customize_Section {
* Custom section only needed in JS. * Custom section only needed in JS.
* *
* @since 4.3.0 * @since 4.3.0
*
* @see WP_Customize_Section
*/ */
class WP_Customize_Nav_Menu_Section extends WP_Customize_Section { class WP_Customize_Nav_Menu_Section extends WP_Customize_Section {
@ -510,18 +516,17 @@ class WP_Customize_Nav_Menu_Section extends WP_Customize_Section {
* Control type. * Control type.
* *
* @since 4.3.0 * @since 4.3.0
*
* @access public * @access public
* @var string * @var string
*/ */
public $type = 'nav_menu'; public $type = 'nav_menu';
/** /**
* Get section params for JS. * Get section parameters for JS.
* *
* @since 4.3.0 * @since 4.3.0
* * @access public
* @return array * @return array Exported parameters.
*/ */
public function json() { public function json() {
$exported = parent::json(); $exported = parent::json();
@ -537,6 +542,8 @@ class WP_Customize_Nav_Menu_Section extends WP_Customize_Section {
* Implements the new-menu-ui toggle button instead of a regular section. * Implements the new-menu-ui toggle button instead of a regular section.
* *
* @since 4.3.0 * @since 4.3.0
*
* @see WP_Customize_Section
*/ */
class WP_Customize_New_Menu_Section extends WP_Customize_Section { class WP_Customize_New_Menu_Section extends WP_Customize_Section {
@ -544,7 +551,6 @@ class WP_Customize_New_Menu_Section extends WP_Customize_Section {
* Control type. * Control type.
* *
* @since 4.3.0 * @since 4.3.0
*
* @access public * @access public
* @var string * @var string
*/ */
@ -554,6 +560,7 @@ class WP_Customize_New_Menu_Section extends WP_Customize_Section {
* Render the section, and the controls that have been added to it. * Render the section, and the controls that have been added to it.
* *
* @since 4.3.0 * @since 4.3.0
* @access protected
*/ */
protected function render() { protected function render() {
?> ?>

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.3-beta2-33219'; $wp_version = '4.3-beta2-33220';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.