Changeset 10351 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php
- Timestamp:
- 10/06/2020 05:00:31 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php
r10330 r10351 432 432 } 433 433 434 /**435 * Override the embed template with our own for themes436 */437 function wporg_themes_embed_template( $template ) {438 if ( 'repopackage' === get_post_type() ) {439 $theme_embed_template = locate_template( 'embed.php' );440 if ( $theme_embed_template ) {441 $template = $theme_embed_template;442 }443 }444 445 return $template;446 }447 add_filter( 'embed_template', 'wporg_themes_embed_template' );448 449 434 include_once WP_CONTENT_DIR . '/plugins/jetpack/modules/seo-tools/jetpack-seo.php'; 450 435 include_once WP_CONTENT_DIR . '/plugins/jetpack/modules/seo-tools/jetpack-seo-posts.php';
Note: See TracChangeset
for help on using the changeset viewer.