Docs: Reorder @throws
tags in WP_Customize_Nav_Menu_Setting
and WP_Customize_Nav_Menu_Item_Setting
for consistency with WP_Customize_Custom_CSS_Setting
.
See #49572. git-svn-id: https://develop.svn.wordpress.org/trunk@47428 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b52783bc4f
commit
047f6e4bef
@ -155,12 +155,12 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||
*
|
||||
* @since 4.3.0
|
||||
*
|
||||
* @throws Exception If $id is not valid for this setting type.
|
||||
*
|
||||
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
|
||||
* @param string $id A specific ID of the setting.
|
||||
* Can be a theme mod or option name.
|
||||
* @param array $args Optional. Setting arguments.
|
||||
*
|
||||
* @throws Exception If $id is not valid for this setting type.
|
||||
*/
|
||||
public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) {
|
||||
if ( empty( $manager->nav_menus ) ) {
|
||||
|
@ -125,12 +125,12 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
|
||||
*
|
||||
* @since 4.3.0
|
||||
*
|
||||
* @throws Exception If $id is not valid for this setting type.
|
||||
*
|
||||
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
|
||||
* @param string $id A specific ID of the setting.
|
||||
* Can be a theme mod or option name.
|
||||
* @param array $args Optional. Setting arguments.
|
||||
*
|
||||
* @throws Exception If $id is not valid for this setting type.
|
||||
*/
|
||||
public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) {
|
||||
if ( empty( $manager->nav_menus ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user