WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/14/2004 12:41:09 PM (17 years ago)
Author:
saxmatt
Message:

Initial functionality so level 1 users may be allowed to publish or just post drafts.

File:
1 edited

Legend:

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

    r1631 r1656  
    6666    <fieldset id="poststatusdiv">
    6767      <legend><a href="http://wordpress.org/docs/reference/post/#post_status" title="<?php _e('Help on post status') ?>"><?php _e('Post Status') ?></a></legend>
    68       <div><label for="post_status_publish" class="selectit"><input id="post_status_publish" name="post_status" type="radio" value="publish" <?php checked($post_status, 'publish'); ?> /> <?php _e('Publish') ?></label>
     68      <div>
     69<?php if ( 2 == get_option('new_users_can_blog') && 1 != $user_level ) : ?>
     70<label for="post_status_publish" class="selectit"><input id="post_status_publish" name="post_status" type="radio" value="publish" <?php checked($post_status, 'publish'); ?> /> <?php _e('Publish') ?></label>
     71<?php endif; ?>
    6972      <label for="post_status_draft" class="selectit"><input id="post_status_draft" name="post_status" type="radio" value="draft" <?php checked($post_status, 'draft'); ?> /> <?php _e('Draft') ?></label>
    7073      <label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="radio" value="private" <?php checked($post_status, 'private'); ?> /> <?php _e('Private') ?></label></div>
     
    143146if ('publish' != $post_status || 0 == $post_ID) {
    144147?>
     148<?php if ( 2 == get_option('new_users_can_blog') && 1 != $user_level ) : ?>
    145149    <input name="publish" type="submit" id="publish" tabindex="10" value="<?php _e('Publish') ?>" />
     150<?php endif; ?>
    146151<?php
    147152}
Note: See TracChangeset for help on using the changeset viewer.