WordPress.org

Make WordPress Core

Ticket #5036: toggle-edit-view-mode.diff

File toggle-edit-view-mode.diff, 692 bytes (added by ozh, 11 years ago)

toggle between Mass Edit Mode & View Mode

  • edit-comments.php

     
    4848  <?php _e('(Searches within comment text, e-mail, URL, and IP address.)') ?>
    4949  </fieldset>
    5050</form>
    51 <p><a href="?mode=view"><?php _e('View Mode') ?></a> | <a href="?mode=edit"><?php _e('Mass Edit Mode') ?></a></p>
     51<p>Toggle to
     52<?php if ($mode == view) { ?>
     53<a href="?mode=edit"><?php _e('Mass Edit Mode') ?></a>
     54<?php } else { ?>
     55<a href="?mode=view"><?php _e('View Mode') ?></a>
     56<?php } ?>
     57</p>
    5258<?php
    5359if ( !empty( $_POST['delete_comments'] ) ) :
    5460        check_admin_referer('bulk-comments');