Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r12162 r12308  
    142142<div class="wrap">
    143143<?php screen_icon(); ?>
    144 <h2><?php echo esc_html( $title ); ?> <a href="page-new.php" class="button add-new-h2"><?php esc_html_e('Add New'); ?></a> <?php
     144<h2><?php echo esc_html( $title ); ?> <a href="page-new.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'page'); ?></a> <?php
    145145if ( isset($_GET['s']) && $_GET['s'] )
    146146    printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( get_search_query() ) ); ?>
     
    168168    printf( _n( 'Page moved to the trash.', '%s pages moved to the trash.', $_GET['trashed'] ), number_format_i18n( $_GET['trashed'] ) );
    169169    $ids = isset($_GET['ids']) ? $_GET['ids'] : 0;
    170     echo ' <a href="' . esc_url( wp_nonce_url( "edit-pages.php?doaction=undo&action=untrash&ids=$ids", "bulk-pages" ) ) . '">' . __('Undo?') . '</a><br />';
     170    echo ' <a href="' . esc_url( wp_nonce_url( "edit-pages.php?doaction=undo&action=untrash&ids=$ids", "bulk-pages" ) ) . '">' . __('Undo') . '</a><br />';
    171171    unset($_GET['trashed']);
    172172}
     
    199199    $class = '';
    200200
    201     if ( !in_array($status, $avail_post_stati) )
     201    if ( !in_array($status, $avail_post_stati) || $num_posts->$status <= 0 )
    202202        continue;
    203203
Note: See TracChangeset for help on using the changeset viewer.