Skip to content

Commit eec6c37

Browse files
committed
Docs: Use third-person singular verbs for function descriptions in WP_Customize_Nav_Menus class, per the documentation standards.
Follow-up to [53054]. See #54729. git-svn-id: https://develop.svn.wordpress.org/trunk@53055 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 852ea9e commit eec6c37

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

src/wp-includes/class-wp-customize-nav-menus.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ public function search_available_items_query( $args = array() ) {
476476
}
477477

478478
/**
479-
* Enqueue scripts and styles for Customizer pane.
479+
* Enqueues scripts and styles for Customizer pane.
480480
*
481481
* @since 4.3.0
482482
*/
@@ -598,7 +598,7 @@ public function filter_dynamic_setting_args( $setting_args, $setting_id ) {
598598
}
599599

600600
/**
601-
* Allow non-statically created settings to be constructed with custom WP_Customize_Setting subclass.
601+
* Allows non-statically created settings to be constructed with custom WP_Customize_Setting subclass.
602602
*
603603
* @since 4.3.0
604604
*
@@ -619,7 +619,7 @@ public function filter_dynamic_setting_class( $setting_class, $setting_id, $sett
619619
}
620620

621621
/**
622-
* Add the customizer settings and controls.
622+
* Adds the customizer settings and controls.
623623
*
624624
* @since 4.3.0
625625
*/
@@ -863,7 +863,7 @@ public function customize_register() {
863863
}
864864

865865
/**
866-
* Get the base10 intval.
866+
* Gets the base10 intval.
867867
*
868868
* This is used as a setting's sanitize_callback; we can't use just plain
869869
* intval because the second argument is not what intval() expects.
@@ -878,7 +878,7 @@ public function intval_base10( $value ) {
878878
}
879879

880880
/**
881-
* Return an array of all the available item types.
881+
* Returns an array of all the available item types.
882882
*
883883
* @since 4.3.0
884884
* @since 4.7.0 Each array item now includes a `$type_label` in addition to `$title`, `$type`, and `$object`.
@@ -929,7 +929,7 @@ public function available_item_types() {
929929
}
930930

931931
/**
932-
* Add a new `auto-draft` post.
932+
* Adds a new `auto-draft` post.
933933
*
934934
* @since 4.7.0
935935
*
@@ -1056,7 +1056,7 @@ public function ajax_insert_auto_draft_post() {
10561056
}
10571057

10581058
/**
1059-
* Print the JavaScript templates used to render Menu Customizer components.
1059+
* Prints the JavaScript templates used to render Menu Customizer components.
10601060
*
10611061
* Templates are imported into the JS use wp.template.
10621062
*
@@ -1134,7 +1134,7 @@ public function print_templates() {
11341134
}
11351135

11361136
/**
1137-
* Print the HTML template used to render the add-menu-item frame.
1137+
* Prints the HTML template used to render the add-menu-item frame.
11381138
*
11391139
* @since 4.3.0
11401140
*/
@@ -1192,7 +1192,7 @@ public function available_items_template() {
11921192
}
11931193

11941194
/**
1195-
* Print the markup for new menu items.
1195+
* Prints the markup for new menu items.
11961196
*
11971197
* To be used in the template #available-menu-items.
11981198
*
@@ -1237,7 +1237,7 @@ protected function print_post_type_container( $available_item_type ) {
12371237
}
12381238

12391239
/**
1240-
* Print the markup for available menu item custom links.
1240+
* Prints the markup for available menu item custom links.
12411241
*
12421242
* @since 4.7.0
12431243
*
@@ -1317,7 +1317,7 @@ public function customize_dynamic_partial_args( $partial_args, $partial_id ) {
13171317
}
13181318

13191319
/**
1320-
* Add hooks for the Customizer preview.
1320+
* Adds hooks for the Customizer preview.
13211321
*
13221322
* @since 4.3.0
13231323
*/
@@ -1330,7 +1330,7 @@ public function customize_preview_init() {
13301330
}
13311331

13321332
/**
1333-
* Make the auto-draft status protected so that it can be queried.
1333+
* Makes the auto-draft status protected so that it can be queried.
13341334
*
13351335
* @since 4.7.0
13361336
*
@@ -1342,7 +1342,7 @@ public function make_auto_draft_status_previewable() {
13421342
}
13431343

13441344
/**
1345-
* Sanitize post IDs for posts created for nav menu items to be published.
1345+
* Sanitizes post IDs for posts created for nav menu items to be published.
13461346
*
13471347
* @since 4.7.0
13481348
*
@@ -1372,7 +1372,7 @@ public function sanitize_nav_menus_created_posts( $value ) {
13721372
}
13731373

13741374
/**
1375-
* Publish the auto-draft posts that were created for nav menu items.
1375+
* Publishes the auto-draft posts that were created for nav menu items.
13761376
*
13771377
* The post IDs will have been sanitized by already by
13781378
* `WP_Customize_Nav_Menu_Items::sanitize_nav_menus_created_posts()` to
@@ -1413,7 +1413,7 @@ public function save_nav_menus_created_posts( $setting ) {
14131413
}
14141414

14151415
/**
1416-
* Keep track of the arguments that are being passed to wp_nav_menu().
1416+
* Keeps track of the arguments that are being passed to wp_nav_menu().
14171417
*
14181418
* @since 4.3.0
14191419
*
@@ -1517,7 +1517,7 @@ public function hash_nav_menu_args( $args ) {
15171517
}
15181518

15191519
/**
1520-
* Enqueue scripts for the Customizer preview.
1520+
* Enqueues scripts for the Customizer preview.
15211521
*
15221522
* @since 4.3.0
15231523
*/
@@ -1540,7 +1540,7 @@ public function export_preview_data() {
15401540
}
15411541

15421542
/**
1543-
* Export any wp_nav_menu() calls during the rendering of any partials.
1543+
* Exports any wp_nav_menu() calls during the rendering of any partials.
15441544
*
15451545
* @since 4.5.0
15461546
*
@@ -1553,7 +1553,7 @@ public function export_partial_rendered_nav_menu_instances( $response ) {
15531553
}
15541554

15551555
/**
1556-
* Render a specific menu via wp_nav_menu() using the supplied arguments.
1556+
* Renders a specific menu via wp_nav_menu() using the supplied arguments.
15571557
*
15581558
* @since 4.3.0
15591559
*

0 commit comments

Comments
 (0)