mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 23:41:38 +01:00
don't show publish button on posts that are already published, task 153
git-svn-id: http://svn.automattic.com/wordpress/trunk@1033 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
af57879ad1
commit
f70d37fdde
@ -159,16 +159,19 @@ if($metadata = has_meta($post_ID)) {
|
|||||||
|
|
||||||
|
|
||||||
<p><?php echo $saveasdraft; ?> <input type="submit" name="submit" value="Save" style="font-weight: bold;" tabindex="6" />
|
<p><?php echo $saveasdraft; ?> <input type="submit" name="submit" value="Save" style="font-weight: bold;" tabindex="6" />
|
||||||
<input name="publish" type="submit" id="publish" tabindex="10" value="Publish" />
|
<?php
|
||||||
<input name="referredby" type="hidden" id="referredby" value="<?php echo $HTTP_SERVER_VARS['HTTP_REFERER']; ?>" />
|
if ('publish' != $post_status) {
|
||||||
|
?>
|
||||||
|
<input name="publish" type="submit" id="publish" tabindex="10" value="Publish" />
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<input name="referredby" type="hidden" id="referredby" value="<?php echo $HTTP_SERVER_VARS['HTTP_REFERER']; ?>" />
|
||||||
</p>
|
</p>
|
||||||
<?php
|
<?php
|
||||||
if ('' != $pinged) {
|
if ('' != $pinged) {
|
||||||
echo $pings;
|
echo $pings;
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
|
|
||||||
// if the level is 5+, allow user to edit the timestamp - not on 'new post' screen though
|
// if the level is 5+, allow user to edit the timestamp - not on 'new post' screen though
|
||||||
// if (($user_level > 4) && ($action != "post"))
|
// if (($user_level > 4) && ($action != "post"))
|
||||||
|
Loading…
Reference in New Issue
Block a user