WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/25/2012 07:10:09 AM (7 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/formatting.php

    r21996 r21998  
    27652765        case 'large_size_w':
    27662766        case 'large_size_h':
    2767         case 'embed_size_h':
    27682767        case 'default_post_edit_rows':
    27692768        case 'mailserver_port':
     
    27832782            break;
    27842783
    2785         case 'embed_size_w':
    2786             if ( '' !== $value )
    2787                 $value = absint( $value );
    2788             break;
    2789 
    27902784        case 'posts_per_page':
    27912785        case 'posts_per_rss':
Note: See TracChangeset for help on using the changeset viewer.