diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index 4ef9edb9c..e2de04dfe 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -105,6 +105,8 @@ if ( function_exists('mb_strlen') ) { - -

diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 554b62951..3be966dd3 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -81,8 +81,6 @@ $post_id = isset($_GET['p']) ? (int) $_GET['p'] : 0; $search_dirty = ( isset($_GET['s']) ) ? $_GET['s'] : ''; $search = attribute_escape( $search_dirty ); ?> - -

diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 85423919c..b2bd6fc85 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -465,8 +465,13 @@ function post_revisions_meta_box($post) { add_meta_box('revisionsdiv', __('Post Revisions'), 'post_revisions_meta_box', 'post', 'normal', 'core'); endif; +do_action('do_meta_boxes', 'post', 'normal', $post); +do_action('do_meta_boxes', 'post', 'advanced', $post); +do_action('do_meta_boxes', 'post', 'side', $post); + +require_once('admin-header.php'); + ?> - diff --git a/wp-admin/edit-link-categories.php b/wp-admin/edit-link-categories.php index c56ab2b81..7ad595b20 100644 --- a/wp-admin/edit-link-categories.php +++ b/wp-admin/edit-link-categories.php @@ -60,8 +60,6 @@ $messages[4] = __('Category not added.'); $messages[5] = __('Category not updated.'); $messages[6] = __('Categories deleted.'); ?> - -

diff --git a/wp-admin/edit-link-category-form.php b/wp-admin/edit-link-category-form.php index 80e6e0c68..a4cdb2c9d 100644 --- a/wp-admin/edit-link-category-form.php +++ b/wp-admin/edit-link-category-form.php @@ -16,7 +16,7 @@ if ( ! empty($cat_ID) ) { /** * @var string */ - $heading = ''; + $heading = '

' . __('Edit Category') . '

'; $submit_text = __('Edit Category'); $form = '
'; $action = 'editedcat'; diff --git a/wp-admin/edit-link-form.php b/wp-admin/edit-link-form.php index cd35761cb..c282424d8 100644 --- a/wp-admin/edit-link-form.php +++ b/wp-admin/edit-link-form.php @@ -307,13 +307,29 @@ function link_advanced_meta_box($link) { +add_meta_box('linkadvanceddiv', __('Advanced'), 'link_advanced_meta_box', 'link', 'normal', 'core'); + +do_action('do_meta_boxes', 'link', 'normal', $link); +do_action('do_meta_boxes', 'link', 'advanced', $link); +do_action('do_meta_boxes', 'link', 'side', $link); + +require_once ('admin-header.php'); + +?> -

+

' . __('Link added.') . '

' : ''; +?> + + +

+ + - +do_action('do_meta_boxes', 'page', 'normal', $post); +do_action('do_meta_boxes', 'page', 'advanced', $post); +do_action('do_meta_boxes', 'page', 'side', $post); + +require_once('admin-header.php'); +?>

diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php index b60740d7c..12754fb59 100644 --- a/wp-admin/edit-pages.php +++ b/wp-admin/edit-pages.php @@ -101,8 +101,6 @@ if ( is_singular() ) { require_once('admin-header.php'); ?> - -

diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index f9adb6118..5cd8cbe2f 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -129,8 +129,6 @@ $messages[4] = __('Tag not added.'); $messages[5] = __('Tag not updated.'); $messages[6] = __('Tags deleted.'); ?> - -

diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 5ebe980af..bf2f9304f 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -90,8 +90,6 @@ if ( empty($_GET['mode']) ) else $mode = attribute_escape($_GET['mode']); ?> - -

diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index f6aaa0a35..f804fdb32 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -2650,7 +2650,7 @@ function do_meta_boxes($page, $context, $object) { global $wp_meta_boxes; static $already_sorted = false; - do_action('do_meta_boxes', $page, $context, $object); + //do_action('do_meta_boxes', $page, $context, $object); $hidden = (array) get_user_option( "meta-box-hidden_$page" ); @@ -3177,10 +3177,19 @@ function _post_states($post) { function screen_meta($screen) { global $wp_meta_boxes; - $column_screens = array('edit-posts' => 'post', 'edit-pages' => 'page', 'edit-tags' => 'tag', 'edit-categories' => 'category', - 'edit-link-categories' => 'link-category', 'edit-links' => 'link', 'edit-users' => 'user', 'edit-media' => 'media', + $screen = str_replace('.php', '', $screen); + + $column_screens = array('edit' => 'post', 'edit-pages' => 'page', 'edit-tags' => 'tag', 'categories' => 'category', + 'edit-link-categories' => 'link-category', 'link-manager' => 'link', 'users' => 'user', 'upload' => 'media', 'edit-comments' => 'comment'); + $screen = str_replace('-new', '', $screen); + $screen = str_replace('-add', '', $screen); + $meta_screens = array('index' => 'dashboard'); + + if ( isset($meta_screens[$screen]) ) + $screen = $meta_screens[$screen]; +error_log("screen: $screen"); $show_screen = false; if ( !empty($wp_meta_boxes[$screen]) || !empty($column_screens[$screen]) ) $show_screen = true; diff --git a/wp-admin/index.php b/wp-admin/index.php index 386878a0f..b4921ce53 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -28,8 +28,6 @@ require_once('admin-header.php'); $today = current_time('mysql', 1); ?> - -

diff --git a/wp-admin/link-add.php b/wp-admin/link-add.php index de0f268bf..e7d861bff 100644 --- a/wp-admin/link-add.php +++ b/wp-admin/link-add.php @@ -20,17 +20,6 @@ wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image', wp_enqueue_script('link'); wp_enqueue_script('xfn'); -$link_added = ( isset($_GET['added']) && '' != $_POST['link_name'] ) ? - '

' . __('Link added.') . '

' : ''; - -require('admin-header.php'); -?> - - -

- - - - -

diff --git a/wp-admin/link.php b/wp-admin/link.php index b123bc6d5..f4b9740b6 100644 --- a/wp-admin/link.php +++ b/wp-admin/link.php @@ -106,7 +106,6 @@ switch ($action) { if (!$link = get_link_to_edit($link_id)) wp_die(__('Link not found.')); - include_once ('admin-header.php'); include ('edit-link-form.php'); include ('admin-footer.php'); break; diff --git a/wp-admin/page-new.php b/wp-admin/page-new.php index ab2215ddb..05ad92107 100644 --- a/wp-admin/page-new.php +++ b/wp-admin/page-new.php @@ -19,20 +19,13 @@ add_thickbox(); wp_enqueue_script('media-upload'); wp_enqueue_script('word-count'); -require_once('admin-header.php'); -?> - - -

|

- - - - +include('admin-footer.php'); + +?> diff --git a/wp-admin/page.php b/wp-admin/page.php index 1b5ddbe99..baf064d23 100644 --- a/wp-admin/page.php +++ b/wp-admin/page.php @@ -115,8 +115,6 @@ case 'edit': } } - require_once('admin-header.php'); - if ( !current_user_can('edit_page', $page_ID) ) die ( __('You are not allowed to edit this page.') ); diff --git a/wp-admin/post-new.php b/wp-admin/post-new.php index 233e6f4c8..229f3d06c 100644 --- a/wp-admin/post-new.php +++ b/wp-admin/post-new.php @@ -19,9 +19,8 @@ add_thickbox(); wp_enqueue_script('media-upload'); wp_enqueue_script('word-count'); -require_once ('./admin-header.php'); - -if ( ! current_user_can('edit_posts') ) { ?> +if ( ! current_user_can('edit_posts') ) { + require_once ('./admin-header.php'); ?>

edit_posts capability to your user, in order to be authorized to post.
You can also e-mail the admin to ask for a promotion.
@@ -33,15 +32,6 @@ When you’re promoted, just reload this page and you’ll be able to bl exit(); } -if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?> -

|

- - - - - -

diff --git a/wp-admin/users.php b/wp-admin/users.php index 7b9514eea..0e40ed562 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -220,8 +220,6 @@ default: } endif; ?> - -