Make WordPress Core


Ignore:
Timestamp:
11/02/2009 02:41:35 PM (17 years ago)
Author:
ryan
Message:

Switch oEmbed option to control discovery. Tweak whitelist and settings page. Props Viper007Bond. see #10337

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-media.php

    r12076 r12136  
    7878
    7979<tr valign="top">
    80 <th scope="row"><?php _e('oEmbed'); ?></th>
    81 <td><fieldset><legend class="screen-reader-text"><span><?php printf( __('Use <a href="%s">oEmbed</a> to assist in rich content embedding'), 'http://codex.wordpress.org/oEmbed' ); ?></span></legend>
    82 <label for="embed_useoembed"><input name="embed_useoembed" type="checkbox" id="embed_useoembed" value="1" <?php checked( '1', get_option('embed_useoembed') ); ?>/> <?php printf( __('Use <a href="%s">oEmbed</a> to allow embedding content from additional websites'), 'http://codex.wordpress.org/oEmbed' ); ?></label>
     80<th scope="row"><?php _e('oEmbed discovery'); ?></th>
     81<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>
     82<label for="embed_oembed_discover"><input name="embed_oembed_discover" type="checkbox" id="embed_oembed_discover" value="1" <?php checked( '1', get_option('embed_oembed_discover') ); ?>/> <?php printf( __('Attempt to embed content from unknown URLs using <a href="%s">oEmbed</a>'), 'http://codex.wordpress.org/Embeds#oEmbed' ); ?></label>
    8383</fieldset></td>
    8484</tr>
    8585
    8686<tr valign="top">
    87 <th scope="row"><?php _e('Embed size') ?></th>
     87<th scope="row"><?php _e('Maximum embed size') ?></th>
    8888<td>
    8989<label for="embed_size_w"><?php _e('Width'); ?></label>
Note: See TracChangeset for help on using the changeset viewer.