Skip to content

Commit 6a8e627

Browse files
Docs: Correct the order of @since and @global tags in some files.
Follow-up to [9053], [13177], [16660], [32642], [37226], [54953], [59865], [60658]. Props viralsampat, shailu25, sandipsinh007. Fixes #63879. See #63166. git-svn-id: https://develop.svn.wordpress.org/trunk@60682 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 62f89e9 commit 6a8e627

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

src/wp-admin/includes/template.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,9 +1751,10 @@ function add_settings_field( $id, $title, $callback, $page, $section = 'default'
17511751
* to output all the sections and fields that were added to that $page with
17521752
* add_settings_section() and add_settings_field()
17531753
*
1754+
* @since 2.7.0
1755+
*
17541756
* @global array $wp_settings_sections Storage array of all settings sections added to admin pages.
17551757
* @global array $wp_settings_fields Storage array of settings fields and info about their pages/sections.
1756-
* @since 2.7.0
17571758
*
17581759
* @param string $page The slug name of the page whose settings sections you want to output.
17591760
*/
@@ -1800,10 +1801,10 @@ function do_settings_sections( $page ) {
18001801
* a specific section. Should normally be called by do_settings_sections()
18011802
* rather than directly.
18021803
*
1803-
* @global array $wp_settings_fields Storage array of settings fields and their pages/sections.
1804-
*
18051804
* @since 2.7.0
18061805
*
1806+
* @global array $wp_settings_fields Storage array of settings fields and their pages/sections.
1807+
*
18071808
* @param string $page Slug title of the admin page whose settings fields you want to show.
18081809
* @param string $section Slug title of the settings section whose fields you want to show.
18091810
*/

src/wp-admin/nav-menus.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,10 +672,10 @@
672672
}
673673

674674
/**
675-
* @global int $_wp_nav_menu_max_depth
676-
*
677675
* @since 3.0.0
678676
*
677+
* @global int $_wp_nav_menu_max_depth
678+
*
679679
* @param string $classes
680680
* @return string
681681
*/

src/wp-includes/ms-settings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
* These may be populated through a custom `sunrise.php`. If not, then this
2222
* file will attempt to populate them based on the current request.
2323
*
24+
* @since 3.0.0
25+
*
2426
* @global WP_Network $current_site The current network.
2527
* @global object $current_blog The current site.
2628
* @global string $domain Deprecated. The domain of the site found on load.
@@ -31,8 +33,6 @@
3133
* Use `get_current_network_id()` instead.
3234
* @global bool $public Deprecated. Whether the site found on load is public.
3335
* Use `get_site()->public` instead.
34-
*
35-
* @since 3.0.0
3636
*/
3737
global $current_site, $current_blog, $domain, $path, $site_id, $public;
3838

src/wp-includes/option.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1629,10 +1629,10 @@ function set_transient( $transient, $value, $expiration = 0 ) {
16291629
* The multi-table delete syntax is used to delete the transient record
16301630
* from table a, and the corresponding transient_timeout record from table b.
16311631
*
1632-
* @global wpdb $wpdb WordPress database abstraction object.
1633-
*
16341632
* @since 4.9.0
16351633
*
1634+
* @global wpdb $wpdb WordPress database abstraction object.
1635+
*
16361636
* @param bool $force_db Optional. Force cleanup to run against the database even when an external object cache is used.
16371637
*/
16381638
function delete_expired_transients( $force_db = false ) {

0 commit comments

Comments
 (0)