Make WordPress Core

Ticket #58076: 58076.7.patch

File 58076.7.patch, 3.0 KB (added by upadalavipul, 21 months ago)

Few more files in improve various globals documentation.

  • wp-includes/class-wp-user.php

     
    116116         * Retrieves the userdata and passes it to WP_User::init().
    117117         *
    118118         * @since 2.0.0
     119         *
     120         * @global wpdb $wpdb WordPress database abstraction object.
    119121         *
    120122         * @param int|string|stdClass|WP_User $id      User's ID, a WP_User object, or a user object from the DB.
    121123         * @param string                      $name    Optional. User's username
  • wp-includes/deprecated.php

     
    27512751 * Get parent post relational link.
    27522752 *
    27532753 * @since 2.8.0
     2754 *
     2755 * @global WP_Post $post Global post object.
     2756 *
    27542757 * @deprecated 3.3.0
    27552758 *
    27562759 * @param string $title Optional. Link title format. Default '%title'.
  • wp-includes/feed-atom-comments.php

     
    6363         * Fires at the end of the Atom comment feed header.
    6464         *
    6565         * @since 2.8.0
     66         *
     67         * @global WP_Post $post Global post object.
    6668         */
    6769        do_action( 'comments_atom_head' );
    6870?>
  • wp-includes/feed-rss2-comments.php

     
    6767         * Fires at the end of the RSS2 comment feed header.
    6868         *
    6969         * @since 2.3.0
     70         *
     71         * @global WP_Post $post Global post object.
    7072         */
    7173        do_action( 'commentsrss2_head' );
    7274
  • wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

     
    17421742         * Prepares a single post output for response.
    17431743         *
    17441744         * @since 4.7.0
     1745         *
     1746         * @global WP_Post $post Global post object.
     1747         *
    17451748         * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support.
    17461749         *
    17471750         * @param WP_Post         $item    Post object.
  • wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php

     
    540540         * Prepares the revision for the REST response.
    541541         *
    542542         * @since 4.7.0
     543         *
     544         * @global WP_Post $post Global post object.
     545         *
    543546         * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support.
    544547         *
    545548         * @param WP_Post         $item    Post revision object.