Skip to content

Commit dc655bb

Browse files
Docs: Correct the order of @see and @global tags in some files.
Follow-up to [28656], [29090]. Props shailu25, mukesh27. See #63166. git-svn-id: https://develop.svn.wordpress.org/trunk@60724 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 33f476e commit dc655bb

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

src/wp-includes/load.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,9 +495,10 @@ function timer_float() {
495495
* @since 0.71
496496
* @access private
497497
*
498-
* @global float $timestart Unix timestamp set at the beginning of the page load.
499498
* @see timer_stop()
500499
*
500+
* @global float $timestart Unix timestamp set at the beginning of the page load.
501+
*
501502
* @return bool Always returns true.
502503
*/
503504
function timer_start() {

src/wp-includes/post.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,10 +1483,10 @@ function register_post_status( $post_status, $args = array() ) {
14831483
*
14841484
* @since 3.0.0
14851485
*
1486-
* @global stdClass[] $wp_post_statuses List of post statuses.
1487-
*
14881486
* @see register_post_status()
14891487
*
1488+
* @global stdClass[] $wp_post_statuses List of post statuses.
1489+
*
14901490
* @param string $post_status The name of a registered post status.
14911491
* @return stdClass|null A post status object.
14921492
*/
@@ -1505,10 +1505,10 @@ function get_post_status_object( $post_status ) {
15051505
*
15061506
* @since 3.0.0
15071507
*
1508-
* @global stdClass[] $wp_post_statuses List of post statuses.
1509-
*
15101508
* @see register_post_status()
15111509
*
1510+
* @global stdClass[] $wp_post_statuses List of post statuses.
1511+
*
15121512
* @param array|string $args Optional. Array or string of post status arguments to compare against
15131513
* properties of the global `$wp_post_statuses objects`. Default empty array.
15141514
* @param string $output Optional. The type of output to return, either 'names' or 'objects'. Default 'names'.
@@ -1587,10 +1587,10 @@ function get_post_type( $post = null ) {
15871587
* @since 3.0.0
15881588
* @since 4.6.0 Object returned is now an instance of `WP_Post_Type`.
15891589
*
1590-
* @global array $wp_post_types List of post types.
1591-
*
15921590
* @see register_post_type()
15931591
*
1592+
* @global array $wp_post_types List of post types.
1593+
*
15941594
* @param string $post_type The name of a registered post type.
15951595
* @return WP_Post_Type|null WP_Post_Type object if it exists, null otherwise.
15961596
*/
@@ -1609,10 +1609,10 @@ function get_post_type_object( $post_type ) {
16091609
*
16101610
* @since 2.9.0
16111611
*
1612-
* @global array $wp_post_types List of post types.
1613-
*
16141612
* @see register_post_type() for accepted arguments.
16151613
*
1614+
* @global array $wp_post_types List of post types.
1615+
*
16161616
* @param array|string $args Optional. An array of key => value arguments to match against
16171617
* the post type objects. Default empty array.
16181618
* @param string $output Optional. The type of output to return. Either 'names'

0 commit comments

Comments
 (0)