Make WordPress Core


Ignore:
Timestamp:
03/14/2005 12:48:11 AM (21 years ago)
Author:
ryan
Message:

Don't let users who cannot publish edit published posts, even their own. Make consistent use of user_can_create_post(). http://mosquito.wordpress.org/view.php?id=1004 Props: MC_incubus

File:
1 edited

Legend:

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

    r2413 r2441  
    5959  <input name="saveasprivate" type="submit" id="saveasprivate" tabindex="10" value="<?php _e('Save as Private') ?>" />
    6060
    61 <?php if ( 1 < $user_level || (1 == $user_level && 2 == get_option('new_users_can_blog')) ) : ?>
     61     <?php if ( user_can_create_post($user_ID) ) : ?>
    6262  <input name="publish" type="submit" id="publish" tabindex="6" style="font-weight: bold;" value="<?php _e('Publish') ?>" />
    6363<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.