WordPress.org

Making WordPress.org

Changeset 2190


Ignore:
Timestamp:
12/13/2015 04:22:44 PM (3 years ago)
Author:
Otto42
Message:

Add modified embed template to add screenshot and eventually other information. See meta #1464

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php

    r2095 r2190  
    251251    return $translations;
    252252}
     253
     254/**
     255 * Override the embed template with our own
     256 */
     257function wporg_themes_embed_template( $template ) {
     258    $theme_embed_template = locate_template( 'embed.php' );
     259    if ( $theme_embed_template ) {
     260        return $theme_embed_template;
     261    }
     262    return $template;
     263}
     264add_filter('embed_template', 'wporg_themes_embed_template');
     265
Note: See TracChangeset for help on using the changeset viewer.