Changeset 7170
- Timestamp:
- 03/06/08 10:23:00 (6 months ago)
- Files:
-
- trunk/wp-admin/edit-comments.php (modified) (2 diffs)
- trunk/wp-admin/edit-form-advanced.php (modified) (1 diff)
- trunk/wp-admin/edit-pages.php (modified) (2 diffs)
- trunk/wp-admin/edit.php (modified) (2 diffs)
- trunk/wp-admin/includes/media.php (modified) (2 diffs)
- trunk/wp-admin/upload.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/edit-comments.php
r7166 r7170 99 99 $num_comments = wp_count_comments(); 100 100 $stati = array('moderated' => sprintf(__('Awaiting Moderation (%s)'), "<span class='comment-count'>$num_comments->moderated</span>"), 'approved' => __('Approved')); 101 $class = ( '' === $comment_status ) ? ' class="current"' : ''; 102 $status_links[] = "<li><a href=\"edit-comments.php\"$class>".__('All Comments')."</a>"; 101 103 foreach ( $stati as $status => $label ) { 102 104 $class = ''; … … 107 109 $status_links[] = "<li><a href=\"edit-comments.php?comment_status=$status\"$class>" . $label . '</a>'; 108 110 } 109 $class = ( '' === $comment_status ) ? ' class="current"' : '';110 $status_links[] = "<li><a href=\"edit-comments.php\"$class>".__('All Comments')."</a>";111 111 echo implode(' | </li>', $status_links) . '</li>'; 112 112 unset($status_links); trunk/wp-admin/edit-form-advanced.php
r7146 r7170 260 260 261 261 <div id="postexcerpt" class="postbox <?php echo postbox_classes('postexcerpt', 'post'); ?>"> 262 <h3><?php _e(' OptionalExcerpt') ?></h3>262 <h3><?php _e('Excerpt') ?></h3> 263 263 <div class="inside"><textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt"><?php echo $post->post_excerpt ?></textarea></div> 264 264 </div> trunk/wp-admin/edit-pages.php
r7130 r7170 76 76 $status_links = array(); 77 77 $num_posts = wp_count_posts('page', 'readable'); 78 $class = empty($_GET['post_status']) ? ' class="current"' : ''; 79 $status_links[] = "<li><a href=\"edit-pages.php\"$class>".__('All Pages')."</a>"; 78 80 foreach ( $post_stati as $status => $label ) { 79 81 $class = ''; … … 88 90 sprintf($label[2], $num_posts->$status) . '</a>'; 89 91 } 90 $class = empty($_GET['post_status']) ? ' class="current"' : '';91 $status_links[] = "<li><a href=\"edit-pages.php\"$class>".__('All Pages')."</a>";92 92 echo implode(' |</li>', $status_links) . '</li>'; 93 93 unset($status_links); trunk/wp-admin/edit.php
r7130 r7170 83 83 $status_links = array(); 84 84 $num_posts = wp_count_posts('post', 'readable'); 85 $class = empty($_GET['post_status']) ? ' class="current"' : ''; 86 $status_links[] = "<li><a href=\"edit.php\"$class>".__('All Posts')."</a>"; 85 87 foreach ( $post_stati as $status => $label ) { 86 88 $class = ''; … … 97 99 sprintf($label[2], $num_posts->$status) . '</a>'; 98 100 } 99 $class = empty($_GET['post_status']) ? ' class="current"' : '';100 $status_links[] = "<li><a href=\"edit.php\"$class>".__('All Posts')."</a>";101 101 echo implode(' |</li>', $status_links) . '</li>'; 102 102 unset($status_links); trunk/wp-admin/includes/media.php
r7160 r7170 930 930 foreach ( $reals as $real ) 931 931 $num_posts[$type] += $_num_posts[$real]; 932 $class = empty($_GET['post_mime_type']) ? ' class="current"' : ''; 933 $type_links[] = "<li><a href='" . remove_query_arg(array('post_mime_type', 'paged', 'm')) . "'$class>".__('All Types')."</a>"; 932 934 foreach ( $post_mime_types as $mime_type => $label ) { 933 935 $class = ''; … … 941 943 $type_links[] = "<li><a href='" . add_query_arg(array('post_mime_type'=>$mime_type, 'paged'=>false)) . "'$class>" . sprintf($label[2], "<span id='$mime_type-counter'>{$num_posts[$mime_type]}</span>") . '</a>'; 942 944 } 943 $class = empty($_GET['post_mime_type']) ? ' class="current"' : '';944 $type_links[] = "<li><a href='" . remove_query_arg(array('post_mime_type', 'paged', 'm')) . "'$class>".__('All Types')."</a>";945 945 echo implode(' | </li>', $type_links) . '</li>'; 946 946 unset($type_links); trunk/wp-admin/upload.php
r7136 r7170 89 89 foreach ( $reals as $real ) 90 90 $num_posts[$type] += $_num_posts[$real]; 91 $class = empty($_GET['post_mime_type']) ? ' class="current"' : ''; 92 $type_links[] = "<li><a href=\"upload.php\"$class>".__('All Types')."</a>"; 91 93 foreach ( $post_mime_types as $mime_type => $label ) { 92 94 $class = ''; … … 101 103 sprintf($label[2], $num_posts[$mime_type]) . '</a>'; 102 104 } 103 $class = empty($_GET['post_mime_type']) ? ' class="current"' : '';104 $type_links[] = "<li><a href=\"upload.php\"$class>".__('All Types')."</a>";105 105 echo implode(' | </li>', $type_links) . '</li>'; 106 106 unset($type_links);
