Cleaned up the upload button.
git-svn-id: https://develop.svn.wordpress.org/trunk@830 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e39c5802bc
commit
86b72e1836
@ -156,7 +156,7 @@ if ($action != 'editcomment') {
|
|||||||
if ($action != 'editcomment') {
|
if ($action != 'editcomment') {
|
||||||
if ( ($use_fileupload) && ($user_level >= $fileupload_minlevel)
|
if ( ($use_fileupload) && ($user_level >= $fileupload_minlevel)
|
||||||
&& (in_array($user_login, $allowed_users) || (trim($fileupload_allowedusers)=="")) ) { ?>
|
&& (in_array($user_login, $allowed_users) || (trim($fileupload_allowedusers)=="")) ) { ?>
|
||||||
<input type="button" value="upload a file/image" onclick="launchupload();" class="search" tabindex="10" />
|
<p><input type="button" value="Upload a file or image" onclick="launchupload();" tabindex="10" /></p>
|
||||||
<?php }
|
<?php }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,7 +119,11 @@ edCanvas = document.getElementById('content');
|
|||||||
} ?>
|
} ?>
|
||||||
<input name="referredby" type="hidden" id="referredby" value="<?php echo $HTTP_SERVER_VARS['HTTP_REFERER']; ?>" />
|
<input name="referredby" type="hidden" id="referredby" value="<?php echo $HTTP_SERVER_VARS['HTTP_REFERER']; ?>" />
|
||||||
</p>
|
</p>
|
||||||
|
<?php
|
||||||
|
if ( ($use_fileupload) && ($user_level >= $fileupload_minlevel)
|
||||||
|
&& (in_array($user_login, $allowed_users) || (trim($fileupload_allowedusers)=="")) ) { ?>
|
||||||
|
<p><input type="button" value="Upload a file or image" onclick="launchupload();" tabindex="10" /></p>
|
||||||
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user