Make WordPress Core

Changeset 38958


Ignore:
Timestamp:
10/26/2016 02:44:57 PM (10 years ago)
Author:
johnbillion
Message:

Administration: Standardise the docblocks for the handle_bulk_actions-* filters.

Props ericlewis, Veraxus
Fixes #16031

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

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-comments.php

    r38718 r38958  
    9292                 * @since 4.7.0
    9393                 *
    94                  * @param string $redirect_to The redirect URL.
    95                  * @param string $doaction    The action being taken.
    96                  * @param array  $comment_ids The comments to take the action on.
     94                 * @param string $redirect_url The redirect URL.
     95                 * @param string $doaction     The action being taken.
     96                 * @param array  $items        The items to take the action on.
    9797                 */
    9898                $redirect_to = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $comment_ids );
  • trunk/src/wp-admin/edit-tags.php

    r38752 r38958  
    175175        check_admin_referer( 'bulk-tags' );
    176176        $tags = (array) $_REQUEST['delete_tags'];
    177         /**
    178          * Fires when a custom bulk action should be handled.
    179          *
    180          * The sendback link should be modified with success or failure feedback
    181          * from the action to be used to display feedback to the user.
    182          *
    183          * @since 4.7.0
    184          *
    185          * @param string $location The redirect URL.
    186          * @param string $action   The action being taken.
    187          * @param array  $tags     The tag IDs to take the action on.
    188          */
     177        /** This action is documented in wp-admin/edit-comments.php */
    189178        $location = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $location, $wp_list_table->current_action(), $tags );
    190179        break;
  • trunk/src/wp-admin/edit.php

    r38725 r38958  
    164164                        break;
    165165                default:
    166                         /**
    167                          * Fires when a custom bulk action should be handled.
    168                          *
    169                          * The sendback link should be modified with success or failure feedback
    170                          * from the action to be used to display feedback to the user.
    171                          *
    172                          * @since 4.7.0
    173                          *
    174                          * @param string $sendback The redirect URL.
    175                          * @param string $doaction The action being taken.
    176                          * @param array  $post_ids The post IDs to take the action on.
    177                          */
     166                        /** This action is documented in wp-admin/edit-comments.php */
    178167                        $sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $doaction, $post_ids );
    179168                        break;
  • trunk/src/wp-admin/link-manager.php

    r38725 r38958  
    3232                $redirect_to = add_query_arg( 'deleted', count( $bulklinks ), $redirect_to );
    3333        } else {
    34                 /**
    35                  * Fires when a custom bulk action should be handled.
    36                  *
    37                  * The redirect link should be modified with success or failure feedback
    38                  * from the action to be used to display feedback to the user.
    39                  *
    40                  * @since 4.7.0
    41                  *
    42                  * @param string $redirect_to The redirect URL.
    43                  * @param string $doaction    The action being taken.
    44                  * @param array  $bulklinks   The links to take the action on.
    45                  */
     34                /** This action is documented in wp-admin/edit-comments.php */
    4635                $redirect_to = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $bulklinks );
    4736        }
  • trunk/src/wp-admin/plugins.php

    r38722 r38958  
    364364                                $sendback = wp_get_referer();
    365365
    366                                 /**
    367                                  * Fires when a custom bulk action should be handled.
    368                                  *
    369                                  * The sendback link should be modified with success or failure feedback
    370                                  * from the action to be used to display feedback to the user.
    371                                  *
    372                                  * @since 4.7.0
    373                                  *
    374                                  * @param string $sendback The redirect URL.
    375                                  * @param string $action   The action being taken.
    376                                  * @param array  $plugins  The plugins to take the action on.
    377                                  */
     366                                /** This action is documented in wp-admin/edit-comments.php */
    378367                                $sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $action, $plugins );
    379 
    380368                                wp_safe_redirect( $sendback );
    381369                                exit;
  • trunk/src/wp-admin/upload.php

    r38722 r38958  
    165165                        break;
    166166                default:
    167                         /**
    168                          * Fires when a custom bulk action should be handled.
    169                          *
    170                          * The redirect link should be modified with success or failure feedback
    171                          * from the action to be used to display feedback to the user.
    172                          *
    173                          * @since 4.7.0
    174                          *
    175                          * @param string $location The redirect URL.
    176                          * @param string $doaction The action being taken.
    177                          * @param array  $post_ids The posts to take the action on.
    178                          */
     167                        /** This action is documented in wp-admin/edit-comments.php */
    179168                        $location = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $location, $doaction, $post_ids );
    180169        }
  • trunk/src/wp-admin/users.php

    r38723 r38958  
    415415                $sendback = wp_get_referer();
    416416
    417                 /**
    418                  * Fires when a custom bulk action should be handled.
    419                  *
    420                  * The sendback link should be modified with success or failure feedback
    421                  * from the action to be used to display feedback to the user.
    422                  *
    423                  * @since 4.7.0
    424                  *
    425                  * @param string $sendback The redirect URL.
    426                  * @param string $action   The action being taken.
    427                  * @param array  $userids  The users to take the action on.
    428                  */
     417                /** This action is documented in wp-admin/edit-comments.php */
    429418                $sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $wp_list_table->current_action(), $userids );
    430419
Note: See TracChangeset for help on using the changeset viewer.