Make WordPress Core


Ignore:
Timestamp:
09/29/2008 10:06:23 PM (16 years ago)
Author:
ryan
Message:

h2 removal per wireframes. Props Viper007Bond. see #7552

File:
1 edited

Legend:

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

    r9028 r9032  
    121121<div class="wrap">
    122122
    123 <h2><?php
    124 if ( is_single() ) {
    125     printf(__('Comments on %s'), apply_filters( "the_title", $post->post_title));
    126 } else {
    127     $post_status_label = _c('Posts|manage posts header');
    128     if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) )
    129         $post_status_label = $post_stati[$_GET['post_status']][1];
    130     //TODO: Unreachable code: $post_listing_pageable is undefined, Similar code in upload.php
    131     //if ( $post_listing_pageable && !is_archive() && !is_search() )
    132     //  $h2_noun = is_paged() ? sprintf(__( 'Previous %s' ), $post_status_label) : sprintf(__('Latest %s'), $post_status_label);
    133     //else
    134         $h2_noun = $post_status_label;
    135     // Use $_GET instead of is_ since they can override each other
    136     $h2_author = '';
    137     $_GET['author'] = isset($_GET['author']) ? (int) $_GET['author'] : 0;
    138     if ( $_GET['author'] != 0 ) {
    139         if ( $_GET['author'] == '-' . $user_ID ) { // author exclusion
    140             $h2_author = ' ' . __('by other authors');
    141         } else {
    142             $author_user = get_userdata( get_query_var( 'author' ) );
    143             $h2_author = ' ' . sprintf(__('by %s'), wp_specialchars( $author_user->display_name ));
    144         }
    145     }
    146     $h2_search = isset($_GET['s'])   && $_GET['s']   ? ' ' . sprintf(__('matching &#8220;%s&#8221;'), wp_specialchars( get_search_query() ) ) : '';
    147     $h2_cat    = isset($_GET['cat']) && $_GET['cat'] ? ' ' . sprintf( __('in &#8220;%s&#8221;'), single_cat_title('', false) ) : '';
    148     $h2_tag    = isset($_GET['tag']) && $_GET['tag'] ? ' ' . sprintf( __('tagged with &#8220;%s&#8221;'), single_tag_title('', false) ) : '';
    149     $h2_month  = isset($_GET['m'])   && $_GET['m']   ? ' ' . sprintf( __('during %s'), single_month_title(' ', false) ) : '';
    150     printf( _c( '%1$s%2$s%3$s%4$s%5$s%6$s (<a href="%7$s">Add New</a>)|You can reorder these: 1: Posts, 2: by {s}, 3: matching {s}, 4: in {s}, 5: tagged with {s}, 6: during {s}' ), $h2_noun, $h2_author, $h2_search, $h2_cat, $h2_tag, $h2_month, 'post-new.php' );
    151 }
    152 ?></h2>
    153 
    154123<ul class="subsubsub">
    155124<?php
Note: See TracChangeset for help on using the changeset viewer.