Make WordPress Core

Changeset 61995


Ignore:
Timestamp:
03/12/2026 08:18:18 PM (2 weeks ago)
Author:
johnjamesjacoby
Message:

Docs: Correct lone @param null usages around some $deprecated vars.

Update incorrect uses of null as a single parameter type to be mixed instead, largely targeting $deprecated variable names.

Pipe | a few nulls with other valid types where appropriate.

Add a missing empty new-line between the _deprecated_file() and _deprecated_argument() functions.

See #64224.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/category-template.php

    r61649 r61995  
    12591259 * @since 4.9.2 The `$taxonomy` parameter was deprecated.
    12601260 *
    1261  * @param int  $term       Optional. Term ID. Defaults to the current term ID.
    1262  * @param null $deprecated Deprecated. Not used.
     1261 * @param int   $term       Optional. Term ID. Defaults to the current term ID.
     1262 * @param mixed $deprecated Not used.
    12631263 * @return string Term description, if available.
    12641264 */
  • trunk/src/wp-includes/class-wp-block-parser.php

    r61504 r61995  
    319319     * @internal
    320320     * @since 5.0.0
    321      * @param null $length how many bytes of document text to output.
     321     * @param null|int $length How many bytes of document text to output.
    322322     */
    323323    public function add_freeform( $length = null ) {
  • trunk/src/wp-includes/class-wp-widget.php

    r61432 r61995  
    547547             * @since 2.8.0
    548548             *
    549              * @param WP_Widget $widget   The widget instance (passed by reference).
    550              * @param null      $return  Return null if new fields are added.
    551              * @param array     $instance An array of the widget's settings.
     549             * @param WP_Widget   $widget   The widget instance (passed by reference).
     550             * @param null|string $return   Default 'noform'. Return null if new fields are added.
     551             * @param array       $instance An array of the widget's settings.
    552552             */
    553553            do_action_ref_array( 'in_widget_form', array( &$this, &$return, $instance ) );
  • trunk/src/wp-includes/functions.php

    r61857 r61995  
    28872887 *
    28882888 * @param string      $name       Filename.
    2889  * @param null|string $deprecated Never used. Set to null.
     2889 * @param null|string $deprecated Not used. Set to null.
    28902890 * @param string      $bits       File content
    28912891 * @param string|null $time       Optional. Time formatted in 'yyyy/mm'. Default null.
     
    58545854    }
    58555855}
     5856
    58565857/**
    58575858 * Marks a function argument as deprecated and inform when it has been used.
  • trunk/src/wp-includes/ms-blogs.php

    r61772 r61995  
    756756 * @param string $pref       Field name.
    757757 * @param string $value      Field value.
    758  * @param null   $deprecated Not used.
     758 * @param mixed  $deprecated Not used.
    759759 * @return string|false $value
    760760 */
  • trunk/src/wp-includes/ms-deprecated.php

    r61411 r61995  
    695695 *
    696696 * @since 3.0.0
     697 * @since 3.0.2 Deprecated fourth argument.
    697698 * @deprecated 5.3.0 Use wp_update_user()
    698699 * @see wp_update_user()
     
    704705 *                           in (presumably user_status, spam, or deleted).
    705706 * @param int    $value      The new status for the user.
    706  * @param null   $deprecated Deprecated as of 3.0.2 and should not be used.
     707 * @param mixed  $deprecated Not used.
    707708 * @return int   The initially passed $value.
    708709 */
  • trunk/src/wp-includes/pluggable.php

    r61633 r61995  
    22642264     *
    22652265     * @param int    $user_id    User ID.
    2266      * @param null   $deprecated Not used (argument deprecated).
     2266     * @param mixed  $deprecated Not used.
    22672267     * @param string $notify     Optional. Type of notification that should happen. Accepts 'admin' or an empty
    22682268     *                           string (admin only), 'user', or 'both' (admin and user). Default empty.
Note: See TracChangeset for help on using the changeset viewer.