embed-404.php 967 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Contains the post embed content template part
  4. *
  5. * When a post is embedded in an iframe, this file is used to create the content template part
  6. * output if the active theme does not include an embed-404.php template.
  7. *
  8. * @package WordPress
  9. * @subpackage Theme_Compat
  10. * @since 4.5.0
  11. */
  12. ?>
  13. <div class="wp-embed">
  14. <p class="wp-embed-heading"><?php _e( 'Oops! That embed cannot be found.' ); ?></p>
  15. <div class="wp-embed-excerpt">
  16. <p>
  17. <?php
  18. printf(
  19. /* translators: %s: A link to the embedded site. */
  20. __( 'It looks like nothing was found at this location. Maybe try visiting %s directly?' ),
  21. '<strong><a href="' . esc_url( home_url() ) . '">' . esc_html( get_bloginfo( 'name' ) ) . '</a></strong>'
  22. );
  23. ?>
  24. </p>
  25. </div>
  26. <?php
  27. /** This filter is documented in wp-includes/theme-compat/embed-content.php */
  28. do_action( 'embed_content' );
  29. ?>
  30. <div class="wp-embed-footer">
  31. <?php the_embed_site_title(); ?>
  32. </div>
  33. </div>