Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1/wp-admin/includes/template.php

    r18314 r18018  
    426426    <thead>
    427427    <tr>
    428         <th class="left">' . _x( 'Name', 'meta name' ) . '</th>
     428        <th class="left">' . __( 'Name' ) . '</th>
    429429        <th>' . __( 'Value' ) . '</th>
    430430    </tr>
     
    441441    <thead>
    442442    <tr>
    443         <th class="left"><?php _ex( 'Name', 'meta name' ) ?></th>
     443        <th class="left"><?php _e( 'Name' ) ?></th>
    444444        <th><?php _e( 'Value' ) ?></th>
    445445    </tr>
     
    536536<thead>
    537537<tr>
    538 <th class="left"><label for="metakeyselect"><?php _ex( 'Name', 'meta name' ) ?></label></th>
     538<th class="left"><label for="metakeyselect"><?php _e( 'Name' ) ?></label></th>
    539539<th><label for="metavalue"><?php _e( 'Value' ) ?></label></th>
    540540</tr>
     
    943943        // Grab the ones the user has manually sorted. Pull them out of their previous context/priority and into the one the user chose
    944944        if ( !$already_sorted && $sorted = get_user_option( "meta-box-order_$page" ) ) {
    945             foreach ( $sorted as $box_context => $ids ) {
    946                 foreach ( explode(',', $ids ) as $id ) {
     945            foreach ( $sorted as $box_context => $ids )
     946                foreach ( explode(',', $ids) as $id )
    947947                    if ( $id )
    948948                        add_meta_box( $id, null, null, $page, $box_context, 'sorted' );
    949                 }
    950             }
    951949        }
    952950        $already_sorted = true;
     
    964962                    $hidden_class = in_array($box['id'], $hidden) ? ' hide-if-js' : '';
    965963                    echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes($box['id'], $page) . $hidden_class . '" ' . '>' . "\n";
    966                     if ( 'dashboard_browser_nag' != $box['id'] )
    967                         echo '<div class="handlediv" title="' . esc_attr__('Click to toggle') . '"><br /></div>';
     964                    echo '<div class="handlediv" title="' . esc_attr__('Click to toggle') . '"><br /></div>';
    968965                    echo "<h3 class='hndle'><span>{$box['title']}</span></h3>\n";
    969966                    echo '<div class="inside">' . "\n";
     
    16311628
    16321629    if ( !empty($post->post_password) )
    1633         $post_states['protected'] = __('Password protected');
     1630        $post_states[] = __('Password protected');
    16341631    if ( 'private' == $post->post_status && 'private' != $post_status )
    1635         $post_states['private'] = __('Private');
     1632        $post_states[] = __('Private');
    16361633    if ( 'draft' == $post->post_status && 'draft' != $post_status )
    1637         $post_states['draft'] = __('Draft');
     1634        $post_states[] = __('Draft');
    16381635    if ( 'pending' == $post->post_status && 'pending' != $post_status )
    16391636        /* translators: post state */
    1640         $post_states['pending'] = _x('Pending', 'post state');
     1637        $post_states[] = _x('Pending', 'post state');
    16411638    if ( is_sticky($post->ID) )
    1642         $post_states['sticky'] = __('Sticky');
     1639        $post_states[] = __('Sticky');
    16431640
    16441641    $post_states = apply_filters( 'display_post_states', $post_states );
     
    16591656}
    16601657
    1661 function _media_states( $post ) {
    1662     $media_states = array();
    1663     $stylesheet = get_option('stylesheet');
    1664 
    1665     if ( current_theme_supports( 'custom-header') ) {
    1666         $meta_header = get_post_meta($post->ID, '_wp_attachment_is_custom_header', true );
    1667         if ( ! empty( $meta_header ) && $meta_header == $stylesheet )
    1668             $media_states[] = __( 'Header Image' );
    1669     }
    1670 
    1671     if ( current_theme_supports( 'custom-background') ) {
    1672         $meta_background = get_post_meta($post->ID, '_wp_attachment_is_custom_background', true );
    1673         if ( ! empty( $meta_background ) && $meta_background == $stylesheet )
    1674             $media_states[] = __( 'Background Image' );
    1675     }
    1676 
    1677     $media_states = apply_filters( 'display_media_states', $media_states );
    1678 
    1679     if ( ! empty( $media_states ) ) {
    1680         $state_count = count( $media_states );
    1681         $i = 0;
    1682         echo ' - ';
    1683         foreach ( $media_states as $state ) {
    1684             ++$i;
    1685             ( $i == $state_count ) ? $sep = '' : $sep = ', ';
    1686             echo "<span class='post-state'>$state$sep</span>";
    1687         }
    1688     }
    1689 }
    1690 
    16911658/**
    16921659 * Convert a screen string to a screen object
     
    17501717    if ( !empty($wp_current_screen_options) )
    17511718        $show_screen = true;
    1752 
    1753     $show_screen = apply_filters('screen_options_show_screen', $show_screen, $screen);
    17541719
    17551720?>
     
    19581923}
    19591924
    1960 function screen_icon( $screen = '' ) {
    1961     echo get_screen_icon( $screen );
    1962 }
    1963 
    1964 function get_screen_icon( $screen = '' ) {
     1925function screen_icon($screen = '') {
    19651926    global $current_screen, $typenow;
    19661927
     
    19901951    }
    19911952
    1992     return '<div id="icon-' . esc_attr( $name ) . '" class="' . $class . '"><br /></div>';
     1953?>
     1954    <div id="icon-<?php echo $name; ?>" class="<?php echo $class; ?>"><br /></div>
     1955<?php
    19931956}
    19941957
     
    22272190    return $button;
    22282191}
     2192
Note: See TracChangeset for help on using the changeset viewer.