WordPress.org

Make WordPress Core

Ticket #41756: 41756.diff

File 41756.diff, 3.7 KB (added by johnbillion, 2 years ago)
  • src/wp-admin/edit-form-advanced.php

    diff --git src/wp-admin/edit-form-advanced.php src/wp-admin/edit-form-advanced.php
    index 50796814a6..75cdeccd68 100644
    $messages['attachment'] = array_fill( 1, 10, __( 'Media file updated.' ) ); // H 
    167167 *
    168168 * @since 3.0.0
    169169 *
    170  * @param array $messages Post updated messages. For defaults @see $messages declarations above.
     170 * @param string[] $messages Post updated messages. For defaults @see $messages declarations above.
    171171 */
    172172$messages = apply_filters( 'post_updated_messages', $messages );
    173173
  • src/wp-admin/edit.php

    diff --git src/wp-admin/edit.php src/wp-admin/edit.php
    index d97932b11f..e09f13b8e4 100644
    $bulk_messages['page'] = array( 
    293293 *
    294294 * @since 3.7.0
    295295 *
    296  * @param array $bulk_messages Arrays of messages, each keyed by the corresponding post type. Messages are
    297  *                             keyed with 'updated', 'locked', 'deleted', 'trashed', and 'untrashed'.
    298  * @param array $bulk_counts   Array of item counts for each message, used to build internationalized strings.
     296 * @param string[] $bulk_messages Arrays of messages, each keyed by the corresponding post type. Messages are
     297 *                                keyed with 'updated', 'locked', 'deleted', 'trashed', and 'untrashed'.
     298 * @param int[]    $bulk_counts   Array of item counts for each message, used to build internationalized strings.
    299299 */
    300300$bulk_messages = apply_filters( 'bulk_post_updated_messages', $bulk_messages, $bulk_counts );
    301301$bulk_counts = array_filter( $bulk_counts );
  • src/wp-admin/includes/ajax-actions.php

    diff --git src/wp-admin/includes/ajax-actions.php src/wp-admin/includes/ajax-actions.php
    index 3f3c0fc7e8..1a09e38530 100644
    function wp_ajax_nopriv_heartbeat() { 
    3737                 * @since 3.6.0
    3838                 *
    3939                 * @param array|object $response  The no-priv Heartbeat response object or array.
    40                  * @param array        $data      An array of data passed via $_POST.
     40                 * @param string[]     $data      An array of data passed via $_POST.
    4141                 * @param string       $screen_id The screen id.
    4242                 */
    4343                $response = apply_filters( 'heartbeat_nopriv_received', $response, $data, $screen_id );
  • src/wp-admin/includes/bookmark.php

    diff --git src/wp-admin/includes/bookmark.php src/wp-admin/includes/bookmark.php
    index cd952a7f11..4cc3624bf2 100644
    function wp_insert_link( $linkdata, $wp_error = false ) { 
    245245 * @since 2.1.0
    246246 *
    247247 * @param int   $link_id         ID of the link to update.
    248  * @param array $link_categories Array of link categories to add the link to.
     248 * @param int[] $link_categories Array of link category IDs to add the link to.
    249249 */
    250250function wp_set_link_cats( $link_id = 0, $link_categories = array() ) {
    251251        // If $link_categories isn't already an array, make it one:
  • src/wp-admin/includes/class-wp-comments-list-table.php

    diff --git src/wp-admin/includes/class-wp-comments-list-table.php src/wp-admin/includes/class-wp-comments-list-table.php
    index 37e65cfc19..770bdc6a20 100644
    class WP_Comments_List_Table extends WP_List_Table { 
    272272                 *
    273273                 * @since 2.5.0
    274274                 *
    275                  * @param array $status_links An array of fully-formed status links. Default 'All'.
    276                  *                            Accepts 'All', 'Pending', 'Approved', 'Spam', and 'Trash'.
     275                 * @param string[] $status_links An array of fully-formed status links. Default 'All'.
     276                 *                               Accepts 'All', 'Pending', 'Approved', 'Spam', and 'Trash'.
    277277                 */
    278278                return apply_filters( 'comment_status_links', $status_links );
    279279        }