~ubuntu-branches/ubuntu/lucid/wordpress/lucid-security

« back to all changes in this revision

Viewing changes to wp-admin/page-new.php

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2009-02-17 01:15:21 UTC
  • mfrom: (11.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20090217011521-5bpmct5wtqrpu8u3
Tags: 2.7.1-2ubuntu1
* Merge from Debian unstable (LP: #327674), Ubuntu remaining changes:
  - debian/apache.conf:
    + Changed to use /var/www instead of /srv/www for virtual webroot.
  - debian/setup-mysql:
    + Changed to use /var/www instead of /srv/www.
  - debian/patches/010_remove_update_notice.patch:
    + Remove Wordpress upgrade notify in admin dashboard

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
 
2
/**
 
3
 * New page administration panel.
 
4
 *
 
5
 * @package WordPress
 
6
 * @subpackage Administration
 
7
 */
 
8
 
 
9
/** WordPress Administration Bootstrap */
2
10
require_once('admin.php');
3
 
$title = __('New Page');
4
 
$parent_file = 'post-new.php';
 
11
$title = __('Add New Page');
 
12
$parent_file = 'edit-pages.php';
5
13
$editing = true;
6
14
wp_enqueue_script('autosave');
7
15
wp_enqueue_script('page');
8
16
if ( user_can_richedit() )
9
17
        wp_enqueue_script('editor');
10
 
wp_enqueue_script('thickbox');
 
18
add_thickbox();
11
19
wp_enqueue_script('media-upload');
12
 
 
13
 
require_once('admin-header.php');
14
 
?>
15
 
 
16
 
<?php if ( (isset($_GET['posted']) && $_GET['posted'])  || isset($_GET['saved'])  ) : ?>
17
 
<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>
18
 
<?php endif; ?>
19
 
 
20
 
<?php
 
20
wp_enqueue_script('word-count');
 
21
 
21
22
if ( current_user_can('edit_pages') ) {
22
23
        $action = 'post';
23
24
        $post = get_default_page_to_edit();
24
25
 
25
26
        include('edit-page-form.php');
26
27
}
 
28
 
 
29
include('admin-footer.php');
 
30
 
27
31
?>
28
 
 
29
 
<?php include('admin-footer.php'); ?>