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-includes/default-filters.php

    r21943 r21998  
    285285add_filter( 'default_option_link_manager_enabled', '__return_true' );
    286286
     287// Automatically embed URLs
     288add_filter( 'default_option_autoembed_urls', '__return_true' );
     289
    287290unset($filter, $action);
Note: See TracChangeset for help on using the changeset viewer.