Make WordPress Core


Ignore:
Timestamp:
07/13/2005 10:26:26 PM (21 years ago)
Author:
ryan
Message:

Migrate to caps.

File:
1 edited

Legend:

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

    r2702 r2709  
    156156if ('publish' != $post_status || 0 == $post_ID) {
    157157?>
    158 <?php if ( user_can_create_post($user_ID) ) : ?>
     158<?php if ( current_user_can('publish_posts') ) : ?>
    159159    <input name="publish" type="submit" id="publish" tabindex="10" value="<?php _e('Publish') ?>" />
    160160<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.