Ticket #7552: removeh2.patch
File removeh2.patch, 22.9 KB (added by , 16 years ago) |
---|
-
wp-admin/categories.php
78 78 break; 79 79 case 'edit': 80 80 81 $title = __('Edit Category'); 82 81 83 require_once ('admin-header.php'); 82 84 $cat_ID = (int) $_GET['cat_ID']; 83 85 $category = get_category_to_edit($cat_ID); … … 140 142 141 143 <div class="wrap"> 142 144 143 <h2><?php printf( current_user_can('manage_categories') ? __('Categories (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addcat' ); ?></h2>144 145 145 <form id="posts-filter" action="" method="get"> 146 146 <div class="tablenav"> 147 147 -
wp-admin/edit-category-form.php
16 16 /** 17 17 * @var string 18 18 */ 19 $heading = __('Edit Category');19 $heading = ''; 20 20 $submit_text = __('Edit Category'); 21 21 $form = '<form name="editcat" id="editcat" method="post" action="categories.php" class="validate">'; 22 22 $action = 'editedcat'; 23 23 $nonce_action = 'update-category_' . $cat_ID; 24 24 do_action('edit_category_form_pre', $category); 25 25 } else { 26 $heading = __('Add Category');26 $heading = '<h2>' . __('Add Category') . '</h2>'; 27 27 $submit_text = __('Add Category'); 28 28 $form = '<form name="addcat" id="addcat" method="post" action="categories.php" class="add:the-list: validate">'; 29 29 $action = 'addcat'; … … 56 56 ?> 57 57 58 58 <div class="wrap"> 59 < h2><?php echo $heading ?></h2>59 <?php echo $heading ?> 60 60 <div id="ajax-response"></div> 61 61 <?php echo $form ?> 62 62 <input type="hidden" name="action" value="<?php echo $action ?>" /> -
wp-admin/edit-comments.php
123 123 124 124 <div class="wrap"> 125 125 126 <h2><?php _e('Manage Comments'); ?></h2>127 128 126 <ul class="subsubsub"> 129 127 <?php 130 128 $status_links = array(); -
wp-admin/edit-form-advanced.php
426 426 427 427 <div class="wrap"> 428 428 429 <h2><?php430 if ( !isset($post_ID) || 0 == $post_ID)431 printf( __( '<a href="%s">Posts</a> / Write New Post' ), 'edit.php' );432 else433 printf( __( '<a href="%s">Posts</a> / Edit Post' ), 'edit.php' );434 ?></h2>435 436 429 <form name="post" action="post.php" method="post" id="post"> 437 430 <?php 438 431 -
wp-admin/edit-form-comment.php
18 18 <form name="post" action="comment.php" method="post" id="post"> 19 19 <?php wp_nonce_field('update-comment_' . $comment->comment_ID) ?> 20 20 <div class="wrap"> 21 <h2><?php echo $toprow_title; ?></h2>22 21 23 22 <div id="poststuff"> 24 23 <input type="hidden" name="user_ID" value="<?php echo (int) $user_ID ?>" /> -
wp-admin/edit-link-categories.php
78 78 79 79 <div class="wrap"> 80 80 81 <h2><?php printf( current_user_can('manage_categories') ? __('Link Categories (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addcat' ); ?></h2>82 83 81 <form id="posts-filter" action="" method="get"> 84 82 <div class="tablenav"> 85 83 -
wp-admin/edit-link-category-form.php
16 16 /** 17 17 * @var string 18 18 */ 19 $heading = __('Edit Category');19 $heading = ''; 20 20 $submit_text = __('Edit Category'); 21 21 $form = '<form name="editcat" id="editcat" method="post" action="link-category.php" class="validate">'; 22 22 $action = 'editedcat'; 23 23 $nonce_action = 'update-link-category_' . $cat_ID; 24 24 do_action('edit_link_category_form_pre', $category); 25 25 } else { 26 $heading = __('Add Category');26 $heading = '<h2>' . __('Add Category') . '</h2>'; 27 27 $submit_text = __('Add Category'); 28 28 $form = '<form name="addcat" id="addcat" class="add:the-list: validate" method="post" action="link-category.php">'; 29 29 $action = 'addcat'; … … 53 53 ?> 54 54 55 55 <div class="wrap"> 56 < h2><?php echo $heading ?></h2>56 <?php echo $heading ?> 57 57 <div id="ajax-response"></div> 58 58 <?php echo $form ?> 59 59 <input type="hidden" name="action" value="<?php echo $action ?>" /> -
wp-admin/edit-link-form.php
278 278 279 279 <div class="wrap"> 280 280 281 <h2><?php echo $heading; ?></h2>282 283 281 <!-- 284 282 <p id="big-add-button"> 285 283 <span id="previewview"> -
wp-admin/edit-page-form.php
292 292 293 293 <div class="wrap"> 294 294 295 <h2><?php296 if ( !isset($post_ID) || 0 == $post_ID )297 printf( __( '<a href="%s">Pages</a> / Write New Page' ), 'edit-pages.php' );298 else299 printf( __( '<a href="%s">Pages</a> / Edit Page' ), 'edit-pages.php' );300 ?></h2>301 302 295 <form name="post" action="page.php" method="post" id="post"> 303 296 <?php if ( $notice ) : ?> 304 297 <div id="notice" class="error"><p><?php echo $notice ?></p></div> -
wp-admin/edit-pages.php
130 130 <?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']); 131 131 endif; ?> 132 132 133 <h2><?php134 // Use $_GET instead of is_ since they can override each other135 $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching “%s”'), 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 144 133 <ul class="subsubsub"> 145 134 <?php 146 135 -
wp-admin/edit-tag-form.php
10 10 /** 11 11 * @var string 12 12 */ 13 $heading = __('Edit Tag');13 $heading = ''; 14 14 $submit_text = __('Edit Tag'); 15 15 $form = '<form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate">'; 16 16 $action = 'editedtag'; 17 17 $nonce_action = 'update-tag_' . $tag_ID; 18 18 do_action('edit_tag_form_pre', $tag); 19 19 } else { 20 $heading = __('Add Tag');20 $heading = '<h2>' . __('Add Tag') . '</h2>'; 21 21 $submit_text = __('Add Tag'); 22 22 $form = '<form name="addtag" id="addtag" method="post" action="edit-tags.php" class="add:the-list: validate">'; 23 23 $action = 'addtag'; … … 27 27 ?> 28 28 29 29 <div class="wrap"> 30 < h2><?php echo $heading ?></h2>30 <?php echo $heading ?> 31 31 <div id="ajax-response"></div> 32 32 <?php echo $form ?> 33 33 <input type="hidden" name="action" value="<?php echo $action ?>" /> -
wp-admin/edit-tags.php
72 72 break; 73 73 74 74 case 'edit': 75 $title = __('Edit Tag'); 75 76 76 77 require_once ('admin-header.php'); 77 78 $tag_ID = (int) $_GET['tag_ID']; … … 144 145 145 146 <div class="wrap"> 146 147 147 <h2><?php printf( current_user_can('manage_categories') ? __('Tags (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addtag' ); ?></h2>148 149 148 <form id="posts-filter" action="" method="get"> 150 149 <div class="tablenav"> 151 150 -
wp-admin/edit.php
120 120 121 121 <div class="wrap"> 122 122 123 <h2><?php124 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.php131 //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 //else134 $h2_noun = $post_status_label;135 // Use $_GET instead of is_ since they can override each other136 $h2_author = '';137 $_GET['author'] = isset($_GET['author']) ? (int) $_GET['author'] : 0;138 if ( $_GET['author'] != 0 ) {139 if ( $_GET['author'] == '-' . $user_ID ) { // author exclusion140 $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 “%s”'), wp_specialchars( get_search_query() ) ) : '';147 $h2_cat = isset($_GET['cat']) && $_GET['cat'] ? ' ' . sprintf( __('in “%s”'), single_cat_title('', false) ) : '';148 $h2_tag = isset($_GET['tag']) && $_GET['tag'] ? ' ' . sprintf( __('tagged with “%s”'), 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 154 123 <ul class="subsubsub"> 155 124 <?php 156 125 if ( empty($locked_post_status) ) : -
wp-admin/export.php
22 22 ?> 23 23 24 24 <div class="wrap"> 25 <h2><?php _e('Export'); ?></h2>26 25 <p><?php _e('When you click the button below WordPress will create an XML file for you to save to your computer.'); ?></p> 27 26 <p><?php _e('This format, which we call WordPress eXtended RSS or WXR, will contain your posts, pages, comments, custom fields, categories, and tags.'); ?></p> 28 27 <p><?php _e('Once you’ve saved the download file, you can use the Import function on another WordPress blog to import this blog.'); ?></p> -
wp-admin/import.php
13 13 ?> 14 14 15 15 <div class="wrap"> 16 <h2><?php _e('Import'); ?></h2>17 16 <p><?php _e('If you have posts or comments in another system, WordPress can import those into this blog. To get started, choose a system to import from below:'); ?></p> 18 17 19 18 <?php -
wp-admin/inbox.php
21 21 ?> 22 22 <div class="wrap"> 23 23 <form id="inbox-filter" action="" method="get"> 24 <h2><?php _e('Inbox'); ?></h2>25 24 <ul class="subsubsub"> 26 25 <li><a href="#" class="current"><?php _e('Messages') ?></a> | </li><li><a href="#"><?php echo sprintf(__('Archived') . ' (%s)', '42'); ?></a></li> 27 26 </ul> -
wp-admin/link-category.php
61 61 break; 62 62 63 63 case 'edit': 64 $title = __(' Categories');64 $title = __('Edit Category'); 65 65 $parent_file = 'edit.php'; 66 66 $submenu_file = 'edit-link-categories.php'; 67 67 require_once ('admin-header.php'); -
wp-admin/link-manager.php
99 99 100 100 <div class="wrap"> 101 101 102 <h2><?php printf( __('Links (<a href="%s">Add New</a>)' ), 'link-add.php' ); ?></h2>103 104 102 <form id="list-filter" action="" method="get"> 105 103 <?php 106 104 $categories = get_terms('link_category', "hide_empty=1"); -
wp-admin/media-upload.php
56 56 $parent_file = 'edit.php'; 57 57 require_once('admin-header.php'); ?> 58 58 <div class="wrap"> 59 <h2><?php _e('Upload Media') ?></h2>60 59 61 60 <form enctype="multipart/form-data" method="post" action="media-upload.php?inline=&upload-page-form=" class="media-upload-form type-form validate" id="file-form"> 62 61 -
wp-admin/options-discussion.php
16 16 ?> 17 17 18 18 <div class="wrap"> 19 <h2><?php _e('Discussion Settings') ?></h2>20 19 <form method="post" action="options.php"> 21 20 <input type='hidden' name='option_page' value='discussion' /> 22 21 <?php wp_nonce_field('discussion-options') ?> -
wp-admin/options-general.php
16 16 ?> 17 17 18 18 <div class="wrap"> 19 <h2><?php _e('General Settings') ?></h2>20 19 <form method="post" action="options.php"> 21 20 <?php wp_nonce_field('general-options') ?> 22 21 <input type='hidden' name='option_page' value='general' /> -
wp-admin/options-media.php
18 18 19 19 <div class="wrap"> 20 20 21 <h2><?php _e('Media Settings') ?></h2>22 21 <form action="options.php" method="post"> 23 22 <p><?php _e('The setting below determines where images, documents, and other media files will be linked to when inserted into the body of a post.'); ?></p> 24 23 -
wp-admin/options-misc.php
17 17 ?> 18 18 19 19 <div class="wrap"> 20 <h2><?php _e('Miscellaneous Settings') ?></h2>21 20 <form method="post" action="options.php"> 22 21 <input type='hidden' name='option_page' value='misc' /> 23 22 <?php wp_nonce_field('misc-options') ?> -
wp-admin/options-permalink.php
123 123 <?php endif; ?> 124 124 125 125 <div class="wrap"> 126 <h2><?php _e('Customize Permalink Structure') ?></h2>127 126 <form name="form" action="options-permalink.php" method="post"> 128 127 <?php wp_nonce_field('update-permalink') ?> 129 128 <p><?php _e('By default WordPress uses web <abbr title="Universal Resource Locator">URL</abbr>s which have question marks and lots of numbers in them, however WordPress offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links. A <a href="http://codex.wordpress.org/Using_Permalinks">number of tags are available</a>, and here are some examples to get you started.'); ?></p> -
wp-admin/options-privacy.php
16 16 ?> 17 17 18 18 <div class="wrap"> 19 <h2><?php _e('Privacy Settings') ?></h2>20 19 <form method="post" action="options.php"> 21 20 <?php wp_nonce_field('privacy-options') ?> 22 21 <input type='hidden' name='option_page' value='privacy' /> -
wp-admin/options-reading.php
16 16 ?> 17 17 18 18 <div class="wrap"> 19 <h2><?php _e('Reading Settings') ?></h2>20 19 <form name="form1" method="post" action="options.php"> 21 20 <?php wp_nonce_field('reading-options') ?> 22 21 <input type='hidden' name='option_page' value='reading' /> -
wp-admin/options-writing.php
16 16 ?> 17 17 18 18 <div class="wrap"> 19 <h2><?php _e('Writing Settings') ?></h2>20 19 <form method="post" action="options.php"> 21 20 <?php wp_nonce_field('writing-options') ?> 22 21 <input type='hidden' name='option_page' value='writing' /> -
wp-admin/page.php
82 82 break; 83 83 84 84 case 'edit': 85 $title = __('Edit ');85 $title = __('Edit Page'); 86 86 $editing = true; 87 87 $page_ID = $post_ID = $p = (int) $_GET['post']; 88 88 $post = get_post_to_edit($page_ID); -
wp-admin/plugin-editor.php
96 96 </div> 97 97 <?php endif; ?> 98 98 <div class="wrap"> 99 <div class="bordertitle">100 <h2><?php _e('Plugin Editor'); ?></h2>101 </div>102 99 <div class="tablenav"> 103 100 <div class="alignleft"> 104 101 <big><?php -
wp-admin/plugin-install.php
48 48 include('admin-header.php'); 49 49 ?> 50 50 <div class="wrap"> 51 <h2><?php _e('Install Plugins') ?></h2>52 51 <ul class="subsubsub"> 53 52 <?php 54 53 $display_tabs = array(); -
wp-admin/plugins.php
203 203 <?php endif; ?> 204 204 205 205 <div class="wrap"> 206 <h2><?php _e('Plugin Management'); ?></h2>207 206 <p><?php _e('Plugins extend and expand the functionality of WordPress. Once a plugin is installed, you may activate it or deactivate it here.'); ?></p> 208 207 <?php 209 208 -
wp-admin/upload.php
187 187 188 188 <div class="wrap"> 189 189 190 <h2><?php191 if ( isset($_GET['detached']) ) {192 _e('Unattached Media');193 } elseif ( is_singular() ) {194 printf( __('Comments on %s'), apply_filters("the_title", $post->post_title) );195 } else {196 $post_mime_type_label = _c('Media|manage media header');197 if ( isset($_GET['post_mime_type']) && in_array( $_GET['post_mime_type'], array_keys($post_mime_types) ) )198 $post_mime_type_label = $post_mime_types[$_GET['post_mime_type']][1];199 //TODO: Unreachable code: $post_listing_pageable is undefined, Similar code in edit.php200 //if ( $post_listing_pageable && !is_archive() && !is_search() )201 // $h2_noun = is_paged() ? sprintf(__( 'Previous %s' ), $post_mime_type_label) : sprintf(__('Latest %s'), $post_mime_type_label);202 //else203 $h2_noun = $post_mime_type_label;204 // Use $_GET instead of is_ since they can override each other205 $h2_author = '';206 $_GET['author'] = isset( $_GET['author'] ) ? (int) $_GET['author'] : 0;207 if ( $_GET['author'] != 0 ) {208 if ( $_GET['author'] == '-' . $user_ID ) { // author exclusion209 $h2_author = ' ' . __('by other authors');210 } else {211 $author_user = get_userdata( get_query_var( 'author' ) );212 $h2_author = ' ' . sprintf(__('by %s'), wp_specialchars( $author_user->display_name ));213 }214 }215 $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching “%s”'), wp_specialchars( get_search_query() ) ) : '';216 $h2_cat = isset($_GET['cat']) && $_GET['cat'] ? ' ' . sprintf( __('in “%s”'), single_cat_title('', false) ) : '';217 $h2_tag = isset($_GET['tag']) && $_GET['tag'] ? ' ' . sprintf( __('tagged with “%s”'), single_tag_title('', false) ) : '';218 $h2_month = isset($_GET['m']) && $_GET['m'] ? ' ' . sprintf( __('during %s'), single_month_title(' ', false) ) : '';219 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, 'media-upload.php?inline' );220 }221 ?></h2>222 223 190 <ul class="subsubsub"> 224 191 <?php 225 192 $type_links = array(); -
wp-admin/user-edit.php
169 169 <?php endif; ?> 170 170 171 171 <div class="wrap" id="profile-page"> 172 <h2><?php $is_profile_page? _e('Your Profile and Personal Options') : _e('Edit User'); ?></h2>173 172 174 173 <form id="your-profile" action="" method="post"> 175 174 <?php wp_nonce_field('update-user_' . $user_id) ?> -
wp-admin/users.php
271 271 <form id="posts-filter" action="" method="get"> 272 272 <?php if ( $wp_user_search->is_search() ) : ?> 273 273 <h2><?php printf( current_user_can('create_users') ? __('Users Matching "%2$s" (<a href="%1$s">Add New</a>)') : __('Add New'), '#add-new-user', wp_specialchars($wp_user_search->search_term) ); ?></h2> 274 <?php else : ?>275 <h2><?php printf( current_user_can('create_users') ? __('Users (<a href="%s">Add New</a>)') : __('Add New'), '#add-new-user' ); ?></h2>276 274 <?php endif; ?> 277 275 278 276 <ul class="subsubsub"> -
wp-admin/wp-admin.css
2507 2507 #favorite-first { 2508 2508 padding-right: 22px; 2509 2509 background: url(images/menu-open.png) 108px 5px no-repeat; 2510 } 2510 } 2511 No newline at end of file -
wp-content/themes/default/functions.php
364 364 ?> 365 365 <div class='wrap'> 366 366 <div id="kubrick-header"> 367 <h2><?php _e('Header Image and Color'); ?></h2>368 367 <div id="headwrap"> 369 368 <div id="header"> 370 369 <div id="headerimg">