Changeset 9620
- Timestamp:
- 11/11/2008 10:40:16 PM (16 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-header.php
r9596 r9620 106 106 do_action('admin_notices'); 107 107 108 screen_meta($pagenow); 109 108 110 if ( $parent_file == 'options-general.php' ) { 109 111 require(ABSPATH . 'wp-admin/options-head.php'); -
trunk/wp-admin/categories.php
r9589 r9620 131 131 $messages[5] = __('Category not updated.'); 132 132 ?> 133 134 <?php screen_meta('edit-categories') ?>135 133 136 134 <div class="wrap nosubsub"> -
trunk/wp-admin/edit-comments.php
r9589 r9620 82 82 $search = attribute_escape( $search_dirty ); ?> 83 83 84 <?php screen_meta('edit-comments') ?>85 86 84 <div class="wrap"> 87 85 <h2><?php echo wp_specialchars( $title ); ?></h2> -
trunk/wp-admin/edit-form-advanced.php
r9613 r9620 466 466 endif; 467 467 468 ?> 469 <?php screen_meta('post'); ?> 468 do_action('do_meta_boxes', 'post', 'normal', $post); 469 do_action('do_meta_boxes', 'post', 'advanced', $post); 470 do_action('do_meta_boxes', 'post', 'side', $post); 471 472 require_once('admin-header.php'); 473 474 ?> 470 475 471 476 <?php if ( (isset($mode) && 'bookmarklet' == $mode) || isset($_GET['popupurl']) ): ?> -
trunk/wp-admin/edit-link-categories.php
r9589 r9620 60 60 $messages[5] = __('Category not updated.'); 61 61 $messages[6] = __('Categories deleted.'); ?> 62 63 <?php screen_meta('edit-link-categories') ?>64 62 65 63 <div class="wrap nosubsub"> -
trunk/wp-admin/edit-link-category-form.php
r9032 r9620 17 17 * @var string 18 18 */ 19 $heading = ' ';19 $heading = '<h2>' . __('Edit Category') . '</h2>'; 20 20 $submit_text = __('Edit Category'); 21 21 $form = '<form name="editcat" id="editcat" method="post" action="link-category.php" class="validate">'; -
trunk/wp-admin/edit-link-form.php
r9557 r9620 308 308 <?php 309 309 } 310 add_meta_box('linkadvanceddiv', __('Advanced'), 'link_advanced_meta_box', 'link', 'normal', 'core'); ?> 311 312 <?php screen_meta('link') ?> 310 add_meta_box('linkadvanceddiv', __('Advanced'), 'link_advanced_meta_box', 'link', 'normal', 'core'); 311 312 do_action('do_meta_boxes', 'link', 'normal', $link); 313 do_action('do_meta_boxes', 'link', 'advanced', $link); 314 do_action('do_meta_boxes', 'link', 'side', $link); 315 316 require_once ('admin-header.php'); 317 318 ?> 319 313 320 314 321 <div class="wrap"> 315 322 <h2><?php echo wp_specialchars( $title ); ?></h2> 323 324 <?php 325 $link_added = ( isset($_GET['added']) && '' != $_POST['link_name'] ) ? 326 '<div id="message" class="updated fade"><p>' . __('Link added.') . '</p></div>' : ''; 327 ?> 328 329 <?php if ( isset( $_GET['added'] ) && '' != $_POST['link_name']) : ?> 330 <div id="message" class="updated fade"><p><?php _e('Link added.'); ?></p></div> 331 <?php endif; ?> 316 332 317 333 <?php -
trunk/wp-admin/edit-page-form.php
r9614 r9620 370 370 add_meta_box('revisionsdiv', __('Page Revisions'), 'page_revisions_meta_box', 'page', 'normal', 'core'); 371 371 endif; 372 ?> 373 374 <?php screen_meta('page'); ?> 372 373 do_action('do_meta_boxes', 'page', 'normal', $post); 374 do_action('do_meta_boxes', 'page', 'advanced', $post); 375 do_action('do_meta_boxes', 'page', 'side', $post); 376 377 require_once('admin-header.php'); 378 ?> 375 379 376 380 <div class="wrap"> -
trunk/wp-admin/edit-pages.php
r9607 r9620 102 102 require_once('admin-header.php'); ?> 103 103 104 <?php screen_meta('edit-pages') ?>105 106 104 <div class="wrap"> 107 105 <h2><?php echo wp_specialchars( $title ); ?></h2> -
trunk/wp-admin/edit-tags.php
r9596 r9620 129 129 $messages[5] = __('Tag not updated.'); 130 130 $messages[6] = __('Tags deleted.'); ?> 131 132 <?php screen_meta('edit-tags') ?>133 131 134 132 <div class="wrap nosubsub"> -
trunk/wp-admin/edit.php
r9607 r9620 91 91 $mode = attribute_escape($_GET['mode']); ?> 92 92 93 <?php screen_meta('edit-posts') ?>94 95 93 <div class="wrap"> 96 94 <h2><?php echo wp_specialchars( $title ); ?></h2> -
trunk/wp-admin/includes/template.php
r9607 r9620 2651 2651 static $already_sorted = false; 2652 2652 2653 do_action('do_meta_boxes', $page, $context, $object);2653 //do_action('do_meta_boxes', $page, $context, $object); 2654 2654 2655 2655 $hidden = (array) get_user_option( "meta-box-hidden_$page" ); … … 3178 3178 global $wp_meta_boxes; 3179 3179 3180 $column_screens = array('edit-posts' => 'post', 'edit-pages' => 'page', 'edit-tags' => 'tag', 'edit-categories' => 'category', 3181 'edit-link-categories' => 'link-category', 'edit-links' => 'link', 'edit-users' => 'user', 'edit-media' => 'media', 3180 $screen = str_replace('.php', '', $screen); 3181 3182 $column_screens = array('edit' => 'post', 'edit-pages' => 'page', 'edit-tags' => 'tag', 'categories' => 'category', 3183 'edit-link-categories' => 'link-category', 'link-manager' => 'link', 'users' => 'user', 'upload' => 'media', 3182 3184 'edit-comments' => 'comment'); 3183 3185 3186 $screen = str_replace('-new', '', $screen); 3187 $screen = str_replace('-add', '', $screen); 3188 $meta_screens = array('index' => 'dashboard'); 3189 3190 if ( isset($meta_screens[$screen]) ) 3191 $screen = $meta_screens[$screen]; 3192 error_log("screen: $screen"); 3184 3193 $show_screen = false; 3185 3194 if ( !empty($wp_meta_boxes[$screen]) || !empty($column_screens[$screen]) ) -
trunk/wp-admin/index.php
r9557 r9620 29 29 ?> 30 30 31 <?php screen_meta('dashboard'); ?>32 33 31 <div class="wrap"> 34 32 <h2><?php echo wp_specialchars( $title ); ?></h2> -
trunk/wp-admin/link-add.php
r9232 r9620 21 21 wp_enqueue_script('xfn'); 22 22 23 $link_added = ( isset($_GET['added']) && '' != $_POST['link_name'] ) ?24 '<div id="message" class="updated fade"><p>' . __('Link added.') . '</p></div>' : '';25 26 require('admin-header.php');27 ?>28 29 <?php if ( isset( $_GET['added'] ) && '' != $_POST['link_name']) : ?>30 <div id="message" class="updated fade"><p><?php _e('Link added.'); ?></p></div>31 <?php endif; ?>32 33 <?php34 23 $link = get_default_link_to_edit(); 35 24 include('edit-link-form.php'); -
trunk/wp-admin/link-manager.php
r9563 r9620 74 74 break; 75 75 } ?> 76 77 <?php screen_meta('edit-links') ?>78 76 79 77 <div class="wrap nosubsub"> -
trunk/wp-admin/link.php
r9506 r9620 107 107 wp_die(__('Link not found.')); 108 108 109 include_once ('admin-header.php');110 109 include ('edit-link-form.php'); 111 110 include ('admin-footer.php'); -
trunk/wp-admin/page-new.php
r9232 r9620 20 20 wp_enqueue_script('word-count'); 21 21 22 require_once('admin-header.php');23 ?>24 25 <?php if ( (isset($_GET['posted']) && $_GET['posted']) || isset($_GET['saved']) ) : ?>26 <div id="message" class="updated fade"><p><strong><?php _e('Page saved.') ?></strong> <a href="edit-pages.php"><?php _e('Manage pages'); ?></a> | <a href="<?php echo get_page_link( isset($_GET['posted']) ? $_GET['posted'] : $_GET['saved'] ); ?>"><?php _e('View page') ; ?></a></p></div>27 <?php endif; ?>28 29 <?php30 22 if ( current_user_can('edit_pages') ) { 31 23 $action = 'post'; … … 34 26 include('edit-page-form.php'); 35 27 } 28 29 include('admin-footer.php'); 30 36 31 ?> 37 38 <?php include('admin-footer.php'); ?> -
trunk/wp-admin/page.php
r9596 r9620 116 116 } 117 117 118 require_once('admin-header.php');119 120 118 if ( !current_user_can('edit_page', $page_ID) ) 121 119 die ( __('You are not allowed to edit this page.') ); -
trunk/wp-admin/post-new.php
r9221 r9620 20 20 wp_enqueue_script('word-count'); 21 21 22 require_once ('./admin-header.php'); 23 24 if ( ! current_user_can('edit_posts') ) { ?> 22 if ( ! current_user_can('edit_posts') ) { 23 require_once ('./admin-header.php'); ?> 25 24 <div class="wrap"> 26 25 <p><?php printf(__('Since you’re a newcomer, you’ll have to wait for an admin to add the <code>edit_posts</code> capability to your user, in order to be authorized to post.<br /> … … 34 33 } 35 34 36 if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?>37 <div id="message" class="updated fade"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View post'); ?></a> | <a href="<?php echo get_edit_post_link( $_GET['posted'] ); ?>"><?php _e('Edit post'); ?></a></p></div>38 <?php39 endif;40 ?>41 42 43 <?php44 45 35 // Show post form. 46 36 $post = get_default_post_to_edit(); -
trunk/wp-admin/post.php
r9596 r9620 159 159 $title = __('Edit Post'); 160 160 161 require_once('admin-header.php');162 163 161 if ( !current_user_can('edit_post', $post_ID) ) 164 162 die ( __('You are not allowed to edit this post.') ); -
trunk/wp-admin/upload.php
r9595 r9620 145 145 146 146 require_once('admin-header.php'); ?> 147 148 <?php screen_meta('edit-media') ?>149 147 150 148 <?php -
trunk/wp-admin/user-new.php
r9614 r9620 41 41 42 42 require_once ('admin-header.php'); 43 44 screen_meta('user');45 43 46 44 ?> -
trunk/wp-admin/users.php
r9614 r9620 221 221 endif; ?> 222 222 223 <?php screen_meta('edit-users') ?>224 225 223 <?php if ( isset($errors) && is_wp_error( $errors ) ) : ?> 226 224 <div class="error">
Note: See TracChangeset
for help on using the changeset viewer.