Skip to content

Commit 8f62bd7

Browse files
committed
h2 removal per wireframes. Props Viper007Bond. see WordPress#7552
git-svn-id: https://develop.svn.wordpress.org/trunk@9032 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 2084dc7 commit 8f62bd7

35 files changed

Lines changed: 14 additions & 134 deletions

wp-admin/categories.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@
7878
break;
7979
case 'edit':
8080

81+
$title = __('Edit Category');
82+
8183
require_once ('admin-header.php');
8284
$cat_ID = (int) $_GET['cat_ID'];
8385
$category = get_category_to_edit($cat_ID);
@@ -140,8 +142,6 @@
140142

141143
<div class="wrap">
142144

143-
<h2><?php printf( current_user_can('manage_categories') ? __('Categories (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addcat' ); ?></h2>
144-
145145
<form id="posts-filter" action="" method="get">
146146
<div class="tablenav">
147147

wp-admin/edit-category-form.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
/**
1717
* @var string
1818
*/
19-
$heading = __('Edit Category');
19+
$heading = '';
2020
$submit_text = __('Edit Category');
2121
$form = '<form name="editcat" id="editcat" method="post" action="categories.php" class="validate">';
2222
$action = 'editedcat';
2323
$nonce_action = 'update-category_' . $cat_ID;
2424
do_action('edit_category_form_pre', $category);
2525
} else {
26-
$heading = __('Add Category');
26+
$heading = '<h2>' . __('Add Category') . '</h2>';
2727
$submit_text = __('Add Category');
2828
$form = '<form name="addcat" id="addcat" method="post" action="categories.php" class="add:the-list: validate">';
2929
$action = 'addcat';
@@ -56,7 +56,7 @@ function _fill_empty_category(&$category) {
5656
?>
5757

5858
<div class="wrap">
59-
<h2><?php echo $heading ?></h2>
59+
<?php echo $heading ?>
6060
<div id="ajax-response"></div>
6161
<?php echo $form ?>
6262
<input type="hidden" name="action" value="<?php echo $action ?>" />

wp-admin/edit-comments.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,6 @@
123123

124124
<div class="wrap">
125125

126-
<h2><?php _e('Manage Comments'); ?></h2>
127-
128126
<ul class="subsubsub">
129127
<?php
130128
$status_links = array();

wp-admin/edit-form-advanced.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -426,13 +426,6 @@ function post_revisions_meta_box($post) {
426426

427427
<div class="wrap">
428428

429-
<h2><?php
430-
if ( !isset($post_ID) || 0 == $post_ID)
431-
printf( __( '<a href="%s">Posts</a> / Write New Post' ), 'edit.php' );
432-
else
433-
printf( __( '<a href="%s">Posts</a> / Edit Post' ), 'edit.php' );
434-
?></h2>
435-
436429
<form name="post" action="post.php" method="post" id="post">
437430
<?php
438431

wp-admin/edit-form-comment.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
<form name="post" action="comment.php" method="post" id="post">
1919
<?php wp_nonce_field('update-comment_' . $comment->comment_ID) ?>
2020
<div class="wrap">
21-
<h2><?php echo $toprow_title; ?></h2>
2221

2322
<div id="poststuff">
2423
<input type="hidden" name="user_ID" value="<?php echo (int) $user_ID ?>" />

wp-admin/edit-link-categories.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@
7878

7979
<div class="wrap">
8080

81-
<h2><?php printf( current_user_can('manage_categories') ? __('Link Categories (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addcat' ); ?></h2>
82-
8381
<form id="posts-filter" action="" method="get">
8482
<div class="tablenav">
8583

wp-admin/edit-link-category-form.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
/**
1717
* @var string
1818
*/
19-
$heading = __('Edit Category');
19+
$heading = '';
2020
$submit_text = __('Edit Category');
2121
$form = '<form name="editcat" id="editcat" method="post" action="link-category.php" class="validate">';
2222
$action = 'editedcat';
2323
$nonce_action = 'update-link-category_' . $cat_ID;
2424
do_action('edit_link_category_form_pre', $category);
2525
} else {
26-
$heading = __('Add Category');
26+
$heading = '<h2>' . __('Add Category') . '</h2>';
2727
$submit_text = __('Add Category');
2828
$form = '<form name="addcat" id="addcat" class="add:the-list: validate" method="post" action="link-category.php">';
2929
$action = 'addcat';
@@ -53,7 +53,7 @@ function _fill_empty_link_category(&$category) {
5353
?>
5454

5555
<div class="wrap">
56-
<h2><?php echo $heading ?></h2>
56+
<?php echo $heading ?>
5757
<div id="ajax-response"></div>
5858
<?php echo $form ?>
5959
<input type="hidden" name="action" value="<?php echo $action ?>" />

wp-admin/edit-link-form.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,6 @@ function link_advanced_meta_box($link) {
278278

279279
<div class="wrap">
280280

281-
<h2><?php echo $heading; ?></h2>
282-
283281
<!--
284282
<p id="big-add-button">
285283
<span id="previewview">

wp-admin/edit-page-form.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -292,13 +292,6 @@ function page_revisions_meta_box($post) {
292292

293293
<div class="wrap">
294294

295-
<h2><?php
296-
if ( !isset($post_ID) || 0 == $post_ID )
297-
printf( __( '<a href="%s">Pages</a> / Write New Page' ), 'edit-pages.php' );
298-
else
299-
printf( __( '<a href="%s">Pages</a> / Edit Page' ), 'edit-pages.php' );
300-
?></h2>
301-
302295
<form name="post" action="page.php" method="post" id="post">
303296
<?php if ( $notice ) : ?>
304297
<div id="notice" class="error"><p><?php echo $notice ?></p></div>

wp-admin/edit-pages.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -130,17 +130,6 @@
130130
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);
131131
endif; ?>
132132

133-
<h2><?php
134-
// Use $_GET instead of is_ since they can override each other
135-
$h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching &#8220;%s&#8221;'), wp_specialchars( stripslashes( $_GET['s'] ) ) ) : '';
136-
$h2_author = '';
137-
if ( isset($_GET['author']) && $_GET['author'] ) {
138-
$author_user = get_userdata( (int) $_GET['author'] );
139-
$h2_author = ' ' . sprintf(__('by %s'), wp_specialchars( $author_user->display_name ));
140-
}
141-
printf( _c( '%1$s%2$s%3$s (<a href="%4$s">Add New</a>)|You can reorder these: 1: Pages, 2: by {s}, 3: matching {s}' ), $post_status_label, $h2_author, $h2_search, 'page-new.php' );
142-
?></h2>
143-
144133
<ul class="subsubsub">
145134
<?php
146135

0 commit comments

Comments
 (0)