Make WordPress Core

Changeset 46604


Ignore:
Timestamp:
10/27/2019 07:33:12 PM (5 years ago)
Author:
johnbillion
Message:

Docs: Correct invalid hook docblock placement.

See #48303

Location:
trunk/src/wp-includes
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/latest-comments.php

    r46586 r46604  
    4242 */
    4343function render_block_core_latest_comments( $attributes = array() ) {
    44     // This filter is documented in wp-includes/widgets/class-wp-widget-recent-comments.php.
    4544    $comments = get_comments(
     45        // This filter is documented in wp-includes/widgets/class-wp-widget-recent-comments.php.
    4646        apply_filters(
    4747            'widget_comments_args',
  • trunk/src/wp-includes/widgets/class-wp-widget-archives.php

    r46164 r46604  
    125125        <ul>
    126126            <?php
    127             /**
    128              * Filters the arguments for the Archives widget.
    129              *
    130              * @since 2.8.0
    131              * @since 4.9.0 Added the `$instance` parameter.
    132              *
    133              * @see wp_get_archives()
    134              *
    135              * @param array $args     An array of Archives option arguments.
    136              * @param array $instance Array of settings for the current widget.
    137              */
    138127            wp_get_archives(
     128                /**
     129                 * Filters the arguments for the Archives widget.
     130                 *
     131                 * @since 2.8.0
     132                 * @since 4.9.0 Added the `$instance` parameter.
     133                 *
     134                 * @see wp_get_archives()
     135                 *
     136                 * @param array $args     An array of Archives option arguments.
     137                 * @param array $instance Array of settings for the current widget.
     138                 */
    139139                apply_filters(
    140140                    'widget_archives_args',
  • trunk/src/wp-includes/widgets/class-wp-widget-pages.php

    r46415 r46604  
    6161        }
    6262
    63         /**
    64          * Filters the arguments for the Pages widget.
    65          *
    66          * @since 2.8.0
    67          * @since 4.9.0 Added the `$instance` parameter.
    68          *
    69          * @see wp_list_pages()
    70          *
    71          * @param array $args     An array of arguments to retrieve the pages list.
    72          * @param array $instance Array of settings for the current widget.
    73          */
    7463        $out = wp_list_pages(
     64            /**
     65             * Filters the arguments for the Pages widget.
     66             *
     67             * @since 2.8.0
     68             * @since 4.9.0 Added the `$instance` parameter.
     69             *
     70             * @see wp_list_pages()
     71             *
     72             * @param array $args     An array of arguments to retrieve the pages list.
     73             * @param array $instance Array of settings for the current widget.
     74             */
    7575            apply_filters(
    7676                'widget_pages_args',
  • trunk/src/wp-includes/widgets/class-wp-widget-recent-comments.php

    r46164 r46604  
    8989        }
    9090
    91         /**
    92          * Filters the arguments for the Recent Comments widget.
    93          *
    94          * @since 3.4.0
    95          * @since 4.9.0 Added the `$instance` parameter.
    96          *
    97          * @see WP_Comment_Query::query() for information on accepted arguments.
    98          *
    99          * @param array $comment_args An array of arguments used to retrieve the recent comments.
    100          * @param array $instance     Array of settings for the current widget.
    101          */
    10291        $comments = get_comments(
     92            /**
     93             * Filters the arguments for the Recent Comments widget.
     94             *
     95             * @since 3.4.0
     96             * @since 4.9.0 Added the `$instance` parameter.
     97             *
     98             * @see WP_Comment_Query::query() for information on accepted arguments.
     99             *
     100             * @param array $comment_args An array of arguments used to retrieve the recent comments.
     101             * @param array $instance     Array of settings for the current widget.
     102             */
    103103            apply_filters(
    104104                'widget_comments_args',
  • trunk/src/wp-includes/widgets/class-wp-widget-recent-posts.php

    r46163 r46604  
    5757        $show_date = isset( $instance['show_date'] ) ? $instance['show_date'] : false;
    5858
    59         /**
    60          * Filters the arguments for the Recent Posts widget.
    61          *
    62          * @since 3.4.0
    63          * @since 4.9.0 Added the `$instance` parameter.
    64          *
    65          * @see WP_Query::get_posts()
    66          *
    67          * @param array $args     An array of arguments used to retrieve the recent posts.
    68          * @param array $instance Array of settings for the current widget.
    69          */
    7059        $r = new WP_Query(
     60            /**
     61             * Filters the arguments for the Recent Posts widget.
     62             *
     63             * @since 3.4.0
     64             * @since 4.9.0 Added the `$instance` parameter.
     65             *
     66             * @see WP_Query::get_posts()
     67             *
     68             * @param array $args     An array of arguments used to retrieve the recent posts.
     69             * @param array $instance Array of settings for the current widget.
     70             */
    7171            apply_filters(
    7272                'widget_posts_args',
  • trunk/src/wp-includes/widgets/class-wp-widget-tag-cloud.php

    r43571 r46604  
    5555        $show_count = ! empty( $instance['count'] );
    5656
    57         /**
    58          * Filters the taxonomy used in the Tag Cloud widget.
    59          *
    60          * @since 2.8.0
    61          * @since 3.0.0 Added taxonomy drop-down.
    62          * @since 4.9.0 Added the `$instance` parameter.
    63          *
    64          * @see wp_tag_cloud()
    65          *
    66          * @param array $args     Args used for the tag cloud widget.
    67          * @param array $instance Array of settings for the current widget.
    68          */
    6957        $tag_cloud = wp_tag_cloud(
     58            /**
     59             * Filters the taxonomy used in the Tag Cloud widget.
     60             *
     61             * @since 2.8.0
     62             * @since 3.0.0 Added taxonomy drop-down.
     63             * @since 4.9.0 Added the `$instance` parameter.
     64             *
     65             * @see wp_tag_cloud()
     66             *
     67             * @param array $args     Args used for the tag cloud widget.
     68             * @param array $instance Array of settings for the current widget.
     69             */
    7070            apply_filters(
    7171                'widget_tag_cloud_args',
Note: See TracChangeset for help on using the changeset viewer.