WordPress.org

Make WordPress Core

Ticket #23641: 23641.8.diff

File 23641.8.diff, 577 bytes (added by DrewAPicture, 14 months ago)

'Add New' w/ context

  • wp-admin/nav-menus.php

     
    453453?> 
    454454<div class="wrap"> 
    455455        <?php screen_icon(); ?> 
    456         <h2><?php _e( 'Menus' ); ?></h2> 
     456        <h2><?php _e( 'Menus' ); ?> <a href="<?php echo esc_url( add_query_arg( array( 'action' => 'edit', 'menu' => 0, ), admin_url( 'nav-menus.php' ) ) ); ?>" class="add-new-h2"><?php _ex( 'Add New', 'menu' ); ?></a></h2> 
    457457        <?php 
    458458        foreach( $messages as $message ) : 
    459459                echo $message . "\n";