Show oEmbed discovery option only if the current user has the unfiltered_html cap. see #10337
git-svn-id: http://svn.automattic.com/wordpress/trunk@12140 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
59c0c60e1c
commit
1c0015371f
|
@ -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