WordPress.org

Make WordPress Core

Changeset 46603


Ignore:
Timestamp:
10/27/2019 07:09:10 PM (19 months ago)
Author:
johnbillion
Message:

Docs: Correct invalid hook docblocks.

See #48303

Location:
trunk/src
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/revision.php

    r45932 r46603  
    7575         * @since 3.6.0
    7676         *
    77          * @param string  $compare_from->$field The current revision field to compare to or from.
    78          * @param string  $field                The current revision field.
    79          * @param WP_Post $compare_from         The revision post object to compare to or from.
    80          * @param string  null                  The context of whether the current revision is the old
    81          *                                      or the new one. Values are 'to' or 'from'.
     77         * @param string  $revision_field The current revision field to compare to or from.
     78         * @param string  $field          The current revision field.
     79         * @param WP_Post $compare_from   The revision post object to compare to or from.
     80         * @param string  $context        The context of whether the current revision is the old
     81         *                                or the new one. Values are 'to' or 'from'.
    8282         */
    8383        $content_from = $compare_from ? apply_filters( "_wp_post_revision_field_{$field}", $compare_from->$field, $field, $compare_from, 'from' ) : '';
  • trunk/src/wp-admin/post.php

    r45932 r46603  
    169169         * @since 4.9.0
    170170         *
    171          * @param boolean      Whether to replace the editor. Default false.
    172          * @param object $post Post object.
     171         * @param bool    $replace Whether to replace the editor. Default false.
     172         * @param WP_Post $post    Post object.
    173173         */
    174174        if ( apply_filters( 'replace_editor', false, $post ) === true ) {
  • trunk/src/wp-includes/comment.php

    r46427 r46603  
    35733573         * @since 4.9.6
    35743574         *
    3575          * @param bool|string                    Whether to apply the comment anonymization (bool).
    3576          *                                       Custom prevention message (string). Default true.
    3577          * @param WP_Comment $comment            WP_Comment object.
    3578          * @param array      $anonymized_comment Anonymized comment data.
     3575         * @param bool|string $anon_message       Whether to apply the comment anonymization (bool) or a custom
     3576         *                                        message (string). Default true.
     3577         * @param WP_Comment  $comment            WP_Comment object.
     3578         * @param array       $anonymized_comment Anonymized comment data.
    35793579         */
    35803580        $anon_message = apply_filters( 'wp_anonymize_comment', true, $comment, $anonymized_comment );
  • trunk/src/wp-includes/formatting.php

    r46596 r46603  
    55855585         * @since 4.2.0
    55865586         *
    5587          * @param string The emoji base URL for png images.
     5587         * @param string $url The emoji base URL for png images.
    55885588         */
    55895589        'baseUrl' => apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/12.0.0-1/72x72/' ),
     
    55945594         * @since 4.2.0
    55955595         *
    5596          * @param string The emoji extension for png files. Default .png.
     5596         * @param string $extension The emoji extension for png files. Default .png.
    55975597         */
    55985598        'ext'     => apply_filters( 'emoji_ext', '.png' ),
     
    56035603         * @since 4.6.0
    56045604         *
    5605          * @param string The emoji base URL for svg images.
     5605         * @param string $url The emoji base URL for svg images.
    56065606         */
    56075607        'svgUrl'  => apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/12.0.0-1/svg/' ),
     
    56125612         * @since 4.6.0
    56135613         *
    5614          * @param string The emoji extension for svg files. Default .svg.
     5614         * @param string $extension The emoji extension for svg files. Default .svg.
    56155615         */
    56165616        'svgExt'  => apply_filters( 'emoji_svg_ext', '.svg' ),
  • trunk/src/wp-includes/l10n.php

    r46593 r46603  
    127127     * @since 5.0.0
    128128     *
    129      * @param string|null The locale to return and short-circuit, or null as default.
     129     * @param string|null $locale The locale to return and short-circuit. Default null.
    130130     */
    131131    $determined_locale = apply_filters( 'pre_determine_locale', null );
  • trunk/src/wp-includes/media.php

    r46596 r46603  
    636636         * @since 5.3.0
    637637         *
    638          * @param bool The filtered value.
    639          * @param int  Original image width.
    640          * @param int  Original image height.
     638         * @param bool $proceed The filtered value.
     639         * @param int  $orig_w  Original image width.
     640         * @param int  $orig_h  Original image height.
    641641         */
    642642        $proceed = (bool) apply_filters( 'wp_image_resize_identical_dimensions', false, $orig_w, $orig_h );
     
    36973697     * @link https://core.trac.wordpress.org/ticket/31071
    36983698     *
    3699      * @param bool|null Whether to show the button, or `null` to decide based
    3700      *                  on whether any audio files exist in the media library.
     3699     * @param bool|null $show Whether to show the button, or `null` to decide based
     3700     *                        on whether any audio files exist in the media library.
    37013701     */
    37023702    $show_audio_playlist = apply_filters( 'media_library_show_audio_playlist', true );
     
    37273727     * @link https://core.trac.wordpress.org/ticket/31071
    37283728     *
    3729      * @param bool|null Whether to show the button, or `null` to decide based
    3730      *                  on whether any video files exist in the media library.
     3729     * @param bool|null $show Whether to show the button, or `null` to decide based
     3730     *                        on whether any video files exist in the media library.
    37313731     */
    37323732    $show_video_playlist = apply_filters( 'media_library_show_video_playlist', true );
     
    37553755     * @link https://core.trac.wordpress.org/ticket/31071
    37563756     *
    3757      * @param array|null An array of objects with `month` and `year`
    3758      *                   properties, or `null` (or any other non-array value)
    3759      *                   for default behavior.
     3757     * @param array|null $months An array of objects with `month` and `year`
     3758     *                           properties, or `null` (or any other non-array value)
     3759     *                           for default behavior.
    37603760     */
    37613761    $months = apply_filters( 'media_library_months_with_files', null );
  • trunk/src/wp-includes/ms-load.php

    r46596 r46603  
    7979     * @since 3.0.0
    8080     *
    81      * @param bool null Whether to skip the blog status check. Default null.
     81     * @param bool|null $check Whether to skip the blog status check. Default null.
    8282     */
    8383    $check = apply_filters( 'ms_site_check', null );
  • trunk/src/wp-includes/theme.php

    r46457 r46603  
    28712871     * @since 3.4.0
    28722872     *
    2873      * @param bool   true    Whether the current theme supports the given feature. Default true.
    2874      * @param array  $args    Array of arguments for the feature.
    2875      * @param string $feature The theme feature.
     2873     * @param bool   $supports Whether the current theme supports the given feature. Default true.
     2874     * @param array  $args     Array of arguments for the feature.
     2875     * @param string $feature  The theme feature.
    28762876     */
    28772877    return apply_filters( "current_theme_supports-{$feature}", true, $args, $_wp_theme_features[ $feature ] ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
  • trunk/src/wp-login.php

    r46361 r46603  
    595595             * @since 5.3.0
    596596             *
    597              * @param int Interval time (in seconds).
     597             * @param int $interval Interval time (in seconds).
    598598             */
    599599            $admin_email_check_interval = (int) apply_filters( 'admin_email_check_interval', 6 * MONTH_IN_SECONDS );
Note: See TracChangeset for help on using the changeset viewer.