Make WordPress Core


Ignore:
Timestamp:
11/14/2008 11:34:18 PM (17 years ago)
Author:
ryan
Message:

Check proper caps when publising a page. Props DD32. fixes #8208

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-page-form.php

    r9683 r9701  
    229229<?php
    230230if ( !in_array( $post->post_status, array('publish', 'future', 'private') ) || 0 == $post->ID ) { ?>
    231 <?php if ( current_user_can('publish_posts') ) : ?>
     231<?php if ( $can_publish ) : ?>
    232232    <?php if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?>
    233233        <input name="original_publish" type="hidden" id="original_publish" value="<?php _e('Schedule') ?>" />
Note: See TracChangeset for help on using the changeset viewer.