Show oEmbed discovery option only if the current user has the unfiltered_html cap. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12140 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7bbf1c2489
commit
1b4bdc773c
@ -76,6 +76,7 @@ include('admin-header.php');
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
|
||||
<?php if ( current_user_can('unfiltered_html') ) { ?>
|
||||
<tr valign="top">
|
||||
<th scope="row"><?php _e('oEmbed discovery'); ?></th>
|
||||
<td><fieldset><legend class="screen-reader-text"><span><?php printf( __('Attempt to embed content from unknown URLs using <a href="%s">oEmbed</a>'), 'http://codex.wordpress.org/Embeds#oEmbed' ); ?></span></legend>
|
||||
@ -83,6 +84,7 @@ include('admin-header.php');
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
|
||||
<?php } ?>
|
||||
<tr valign="top">
|
||||
<th scope="row"><?php _e('Maximum embed size') ?></th>
|
||||
<td>
|
||||
|
Loading…
Reference in New Issue
Block a user