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:
ryan 2009-11-04 15:52:23 +00:00
parent 59c0c60e1c
commit 1c0015371f
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,7 @@ include('admin-header.php');
</fieldset></td> </fieldset></td>
</tr> </tr>
<?php if ( current_user_can('unfiltered_html') ) { ?>
<tr valign="top"> <tr valign="top">
<th scope="row"><?php _e('oEmbed discovery'); ?></th> <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> <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> </fieldset></td>
</tr> </tr>
<?php } ?>
<tr valign="top"> <tr valign="top">
<th scope="row"><?php _e('Maximum embed size') ?></th> <th scope="row"><?php _e('Maximum embed size') ?></th>
<td> <td>