Make WordPress Core

Changeset 7750


Ignore:
Timestamp:
04/20/2008 06:48:00 AM (16 years ago)
Author:
ryan
Message:

Check publish_pages capability, not publish_posts. Props matthijs. fixes #6777 for trunk

File:
1 edited

Legend:

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

    r7740 r7750  
    7373<p>
    7474<select name='post_status' tabindex='4'>
    75 <?php if ( current_user_can('publish_posts') ) : ?>
     75<?php if ( current_user_can('publish_pages') ) : ?>
    7676<option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='publish'><?php _e('Published') ?></option>
    7777<?php else: ?>
Note: See TracChangeset for help on using the changeset viewer.