Make WordPress Core

Changeset 3550


Ignore:
Timestamp:
02/19/2006 05:57:54 AM (19 years ago)
Author:
ryan
Message:

Add Publish button for pages. fixes #2451

File:
1 edited

Legend:

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

    r3541 r3550  
    182182
    183183<p class="submit">
    184 <?php if ( $post_ID ) : ?>
    185 <input name="save" type="submit" id="save" tabindex="5" value=" <?php _e('Save and Continue Editing'); ?> "/>
    186 <input name="savepage" type="submit" id="savepage" tabindex="6" value="<?php $post_ID ? _e('Save') : _e('Create New Page &raquo;') ?>" />
    187 <?php else : ?>
    188 <input name="savepage" type="submit" id="savepage" tabindex="6" value="<?php _e('Create New Page &raquo;') ?>" />
    189 <?php endif; ?>
     184<input name="save" type="submit" id="save" tabindex="3" value="<?php _e('Save and Continue Editing'); ?>" />
     185<input type="submit" name="submit" value="<?php _e('Save') ?>" style="font-weight: bold;" tabindex="4" />
     186<?php
     187if ('publish' != $post->post_status || 0 == $post_ID):
     188?>
     189<?php if ( current_user_can('publish_pages') ) : ?>
     190    <input name="publish" type="submit" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" />
     191<?php endif; endif;?>
    190192<input name="referredby" type="hidden" id="referredby" value="<?php echo $sendto; ?>" />
    191193</p>
Note: See TracChangeset for help on using the changeset viewer.