Make WordPress Core


Ignore:
Timestamp:
09/25/2012 07:10:09 AM (12 years ago)
Author:
nacin
Message:

Always attempt to embed URLs in content, removing the Auto-embeds (autoembed_urls) option.

Remove the UI for setting the default width and height for embeds. Width was confusing as it
was blank by default (inheriting the content width from the theme, or 500px). The height is
now calculated as 1.5x the content width, or 1000px, whichever is smaller.

The [embed] shortcode can still receive manual height and width attributes. This just removes
the global settings.

props wonderboymusic. see #21719.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/schema.php

    r21827 r21998  
    469469    'timezone_string' => $timezone_string,
    470470
    471     // 2.9
    472     'embed_autourls' => 1,
    473     'embed_size_w' => '',
    474     'embed_size_h' => 600,
    475 
    476471    // 3.0
    477472    'page_for_posts' => 0,
     
    543538        'random_seed', 'rss_excerpt_length', 'secret', 'use_linksupdate', 'default_comment_status_page',
    544539        'wporg_popular_tags', 'what_to_show', 'rss_language', 'language', 'enable_xmlrpc', 'enable_app',
     540        'autoembed_urls',
    545541    );
    546542    foreach ( $unusedoptions as $option )
Note: See TracChangeset for help on using the changeset viewer.