Changes from trunk/wp-admin/includes/template.php at r18314 to branches/3.1/wp-admin/includes/template.php at r18018
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1/wp-admin/includes/template.php
r18314 r18018 426 426 <thead> 427 427 <tr> 428 <th class="left">' . _ x( 'Name', 'meta name' ) . '</th>428 <th class="left">' . __( 'Name' ) . '</th> 429 429 <th>' . __( 'Value' ) . '</th> 430 430 </tr> … … 441 441 <thead> 442 442 <tr> 443 <th class="left"><?php _e x( 'Name', 'meta name' ) ?></th>443 <th class="left"><?php _e( 'Name' ) ?></th> 444 444 <th><?php _e( 'Value' ) ?></th> 445 445 </tr> … … 536 536 <thead> 537 537 <tr> 538 <th class="left"><label for="metakeyselect"><?php _e x( 'Name', 'meta name' ) ?></label></th>538 <th class="left"><label for="metakeyselect"><?php _e( 'Name' ) ?></label></th> 539 539 <th><label for="metavalue"><?php _e( 'Value' ) ?></label></th> 540 540 </tr> … … 943 943 // Grab the ones the user has manually sorted. Pull them out of their previous context/priority and into the one the user chose 944 944 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 ) 947 947 if ( $id ) 948 948 add_meta_box( $id, null, null, $page, $box_context, 'sorted' ); 949 }950 }951 949 } 952 950 $already_sorted = true; … … 964 962 $hidden_class = in_array($box['id'], $hidden) ? ' hide-if-js' : ''; 965 963 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>'; 968 965 echo "<h3 class='hndle'><span>{$box['title']}</span></h3>\n"; 969 966 echo '<div class="inside">' . "\n"; … … 1631 1628 1632 1629 if ( !empty($post->post_password) ) 1633 $post_states[ 'protected'] = __('Password protected');1630 $post_states[] = __('Password protected'); 1634 1631 if ( 'private' == $post->post_status && 'private' != $post_status ) 1635 $post_states[ 'private'] = __('Private');1632 $post_states[] = __('Private'); 1636 1633 if ( 'draft' == $post->post_status && 'draft' != $post_status ) 1637 $post_states[ 'draft'] = __('Draft');1634 $post_states[] = __('Draft'); 1638 1635 if ( 'pending' == $post->post_status && 'pending' != $post_status ) 1639 1636 /* translators: post state */ 1640 $post_states[ 'pending'] = _x('Pending', 'post state');1637 $post_states[] = _x('Pending', 'post state'); 1641 1638 if ( is_sticky($post->ID) ) 1642 $post_states[ 'sticky'] = __('Sticky');1639 $post_states[] = __('Sticky'); 1643 1640 1644 1641 $post_states = apply_filters( 'display_post_states', $post_states ); … … 1659 1656 } 1660 1657 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 1691 1658 /** 1692 1659 * Convert a screen string to a screen object … … 1750 1717 if ( !empty($wp_current_screen_options) ) 1751 1718 $show_screen = true; 1752 1753 $show_screen = apply_filters('screen_options_show_screen', $show_screen, $screen);1754 1719 1755 1720 ?> … … 1958 1923 } 1959 1924 1960 function screen_icon( $screen = '' ) { 1961 echo get_screen_icon( $screen ); 1962 } 1963 1964 function get_screen_icon( $screen = '' ) { 1925 function screen_icon($screen = '') { 1965 1926 global $current_screen, $typenow; 1966 1927 … … 1990 1951 } 1991 1952 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 1993 1956 } 1994 1957 … … 2227 2190 return $button; 2228 2191 } 2192
Note: See TracChangeset
for help on using the changeset viewer.