WordPress.org

Make WordPress Core

Ticket #12732: bulk_actions.diff

File bulk_actions.diff, 6.6 KB (added by ptahdunbar, 8 years ago)
  • wp-admin/users.php

     
    320320<select name="action">
    321321<option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
    322322<option value="delete"><?php _e('Delete'); ?></option>
     323<?php do_action( 'bulk_actions-users' ); ?>
    323324</select>
    324325<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
    325326<label class="screen-reader-text" for="new_role"><?php _e('Change role to&hellip;') ?></label><select name="new_role" id="new_role"><option value=''><?php _e('Change role to&hellip;') ?></option><?php wp_dropdown_roles(); ?></select>
     
    386387<select name="action2">
    387388<option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
    388389<option value="delete"><?php _e('Delete'); ?></option>
     390<?php do_action( 'bulk_actions-users' ); ?>
    389391</select>
    390392<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
    391393</div>
  • wp-admin/edit-link-categories.php

     
    112112<select name="action">
    113113<option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
    114114<option value="delete"><?php _e('Delete'); ?></option>
     115<?php do_action( 'bulk_actions-link_category' ); ?>
    115116</select>
    116117<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
    117118<?php wp_nonce_field('bulk-link-categories'); ?>
     
    166167<select name="action2">
    167168<option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
    168169<option value="delete"><?php _e('Delete'); ?></option>
     170<?php do_action( 'bulk_actions-link_category' ); ?>
    169171</select>
    170172<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
    171173</div>
  • wp-admin/edit-comments.php

     
    328328<?php else: ?>
    329329<option value="trash"><?php _e('Move to Trash'); ?></option>
    330330<?php endif; ?>
     331<?php do_action( 'bulk_actions-comments' ); ?>
    331332</select>
    332333<input type="submit" name="doaction" id="doaction" value="<?php esc_attr_e('Apply'); ?>" class="button-secondary apply" />
    333334<?php wp_nonce_field('bulk-comments'); ?>
     
    425426<?php else: ?>
    426427<option value="trash"><?php _e('Move to Trash'); ?></option>
    427428<?php endif; ?>
     429<?php do_action( 'bulk_actions-comments' ); ?>
    428430</select>
    429431<input type="submit" name="doaction2" id="doaction2" value="<?php esc_attr_e('Apply'); ?>" class="button-secondary apply" />
    430432
  • wp-admin/edit-tags.php

     
    250250<select name="action">
    251251<option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
    252252<option value="delete"><?php _e('Delete'); ?></option>
     253<?php do_action( "bulk_actions-$taxonomy" ); ?>
    253254</select>
    254255<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
    255256<?php wp_nonce_field('bulk-tags'); ?>
     
    288289<select name="action2">
    289290<option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
    290291<option value="delete"><?php _e('Delete'); ?></option>
     292<?php do_action( "bulk_actions-$taxonomy" ); ?>
    291293</select>
    292294<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
    293295</div>
  • wp-admin/ms-sites.php

     
    464464                                <option value="delete"><?php _e('Delete'); ?></option>
    465465                                <option value="spam"><?php _e('Mark as Spam'); ?></option>
    466466                                <option value="notspam"><?php _e('Not Spam'); ?></option>
     467                                <?php do_action( 'bulk_actions-ms_sites' ); ?>
    467468                        </select>
    468469                        <input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
    469470                        <?php wp_nonce_field('bulk-sites'); ?>
     
    715716                                <option value="delete"><?php _e('Delete'); ?></option>
    716717                                <option value="spam"><?php _e('Mark as Spam'); ?></option>
    717718                                <option value="notspam"><?php _e('Not Spam'); ?></option>
     719                                <?php do_action( 'bulk_actions-ms_sites' ); ?>
    718720                        </select>
    719721                        <input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
    720722                        </div>
  • wp-admin/edit.php

     
    300300<?php } else { ?>
    301301<option value="trash"><?php _e('Move to Trash'); ?></option>
    302302<?php } ?>
     303<?php do_action( "bulk_actions-$post_type" ); ?>
    303304</select>
    304305<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
    305306<?php wp_nonce_field('bulk-posts'); ?>
     
    396397<?php } else { ?>
    397398<option value="trash"><?php _e('Move to Trash'); ?></option>
    398399<?php } ?>
     400<?php do_action( "bulk_actions-$post_type" ); ?>
    399401</select>
    400402<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
    401403<?php if ( $is_trash && current_user_can($post_type_object->edit_others_cap) ) { ?>
  • wp-admin/link-manager.php

     
    113113<select name="action">
    114114<option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
    115115<option value="delete"><?php _e('Delete'); ?></option>
     116<?php do_action( 'bulk_actions-links' ); ?>
    116117</select>
    117118<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
    118119
     
    260261<select name="action2">
    261262<option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
    262263<option value="delete"><?php _e('Delete'); ?></option>
     264<?php do_action( 'bulk_actions-links' ); ?>
    263265</select>
    264266<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
    265267</div>