WordPress.org

Make WordPress Core

Changeset 46821


Ignore:
Timestamp:
12/06/2019 10:21:07 PM (22 months ago)
Author:
johnbillion
Message:

Docs: Correct various docblocks documentation.

See #48303

Location:
trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r46746 r46821  
    581581         * @since 3.7.0
    582582         *
    583          * @param object $months    The months drop-down query results.
    584          * @param string $post_type The post type.
     583         * @param object[] $months    Array of the months drop-down query results.
     584         * @param string   $post_type The post type.
    585585         */
    586586        $months = apply_filters( 'months_dropdown_results', $months, $post_type );
  • trunk/src/wp-admin/includes/nav-menu.php

    r46662 r46821  
    220220         * @since 3.0.0
    221221         *
    222          * @param object $meta_box_object The current object to add a menu items
    223          *                                meta box for.
     222         * @param WP_Post_Type|false $post_type The current object to add a menu items
     223         *                                      meta box for.
    224224         */
    225225        $post_type = apply_filters( 'nav_menu_meta_box_object', $post_type );
  • trunk/src/wp-admin/my-sites.php

    r45140 r46821  
    105105     *
    106106     * @param string $settings_html The settings HTML markup. Default empty.
    107      * @param object $context       Context of the setting (global or site-specific). Default 'global'.
     107     * @param string $context       Context of the setting (global or site-specific). Default 'global'.
    108108     */
    109109    $settings_html = apply_filters( 'myblogs_options', '', 'global' );
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r46754 r46821  
    45704570     * @since 4.7.0
    45714571     *
    4572      * @returns array Allowed URLs.
     4572     * @return array Allowed URLs.
    45734573     */
    45744574    public function get_allowed_urls() {
     
    57015701     * @since 4.7.0
    57025702     *
    5703      * @returns bool Whether there are published (or to be published) pages.
     5703     * @return bool Whether there are published (or to be published) pages.
    57045704     */
    57055705    public function has_published_pages() {
  • trunk/src/wp-includes/class-wp-customize-nav-menus.php

    r46696 r46821  
    12831283     *
    12841284     * @param array $value Post IDs.
    1285      * @returns array Post IDs.
     1285     * @return array Post IDs.
    12861286     */
    12871287    public function sanitize_nav_menus_created_posts( $value ) {
  • trunk/src/wp-includes/comment-template.php

    r46660 r46821  
    17181718     * @since 2.7.0
    17191719     *
    1720      * @param string  $link    The HTML markup for the comment reply link.
    1721      * @param array   $args    An array of arguments overriding the defaults.
    1722      * @param object $comment The object of the comment being replied.
    1723      * @param WP_Post $post    The WP_Post object.
     1720     * @param string     $link    The HTML markup for the comment reply link.
     1721     * @param array      $args    An array of arguments overriding the defaults.
     1722     * @param WP_Comment $comment The object of the comment being replied.
     1723     * @param WP_Post    $post    The WP_Post object.
    17241724     */
    17251725    return apply_filters( 'comment_reply_link', $args['before'] . $link . $args['after'], $args, $comment, $post );
     
    17331733 * @see get_comment_reply_link()
    17341734 *
    1735  * @param array       $args    Optional. Override default options.
    1736  * @param int        $comment Comment being replied to. Default current comment.
    1737  * @param int|WP_Post $post    Post ID or WP_Post object the comment is going to be displayed on.
    1738  *                             Default current post.
     1735 * @param array          $args    Optional. Override default options.
     1736 * @param int|WP_Comment $comment Comment being replied to. Default current comment.
     1737 * @param int|WP_Post    $post    Post ID or WP_Post object the comment is going to be displayed on.
     1738 *                                Default current post.
    17391739 */
    17401740function comment_reply_link( $args = array(), $comment = null, $post = null ) {
  • trunk/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php

    r45932 r46821  
    300300     *
    301301     * @param object $item Nav menu item.
    302      * @returns string The type label.
     302     * @return string The type label.
    303303     */
    304304    protected function get_type_label( $item ) {
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php

    r46586 r46821  
    180180     * @since 4.7.0
    181181     *
    182      * @param stdClass        $taxonomy Taxonomy data.
     182     * @param WP_Taxonomy     $taxonomy Taxonomy data.
    183183     * @param WP_REST_Request $request  Full details about the request.
    184184     * @return WP_REST_Response Response object.
     
    263263         *
    264264         * @param WP_REST_Response $response The response object.
    265          * @param object           $item     The original taxonomy object.
     265         * @param WP_Taxonomy      $item     The original taxonomy object.
    266266         * @param WP_REST_Request  $request  Request used to generate the response.
    267267         */
  • trunk/src/wp-includes/revision.php

    r45601 r46821  
    444444         * @since 2.6.0
    445445         *
    446          * @param int          $revision_id Post revision ID.
    447          * @param object|array $revision    Post revision object or array.
     446         * @param int     $revision_id Post revision ID.
     447         * @param WP_Post $revision    Post revision object.
    448448         */
    449449        do_action( 'wp_delete_post_revision', $revision->ID, $revision );
  • trunk/src/wp-includes/theme.php

    r46696 r46821  
    31453145 * @param array $post_data          An array of slashed post data.
    31463146 * @param array $supplied_post_data An array of sanitized, but otherwise unmodified post data.
    3147  * @returns array Filtered data.
     3147 * @return array Filtered data.
    31483148 */
    31493149function _wp_customize_changeset_filter_insert_post_data( $post_data, $supplied_post_data ) {
  • trunk/src/wp-includes/widgets/class-wp-widget-custom-html.php

    r46586 r46821  
    240240     * @see WP_Widget_Custom_HTML::render_control_template_scripts()
    241241     * @param array $instance Current instance.
    242      * @returns void
    243242     */
    244243    public function form( $instance ) {
  • trunk/tests/phpunit/tests/customize/manager.php

    r46754 r46821  
    12531253     * @param array $data    Data.
    12541254     * @param array $context Context.
    1255      * @returns array Data.
     1255     * @return array Data.
    12561256     */
    12571257    function filter_customize_changeset_save_data( $data, $context ) {
Note: See TracChangeset for help on using the changeset viewer.