Make WordPress Core

Changeset 7751


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

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

File:
1 edited

Legend:

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

    r7529 r7751  
    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.