WordPress.org

Make WordPress Core

Changeset 35429


Ignore:
Timestamp:
10/29/2015 11:09:39 AM (6 years ago)
Author:
pento
Message:

Embeds: Tweak the "embed not found" message, based on the Twenty Sixteen 404 template.

See #32522.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/embed-template.php

    r35409 r35429  
    206206    ?>
    207207    <div class="wp-embed">
    208         <p class="wp-embed-heading"><?php _e( 'Page not found' ); ?></p>
     208        <p class="wp-embed-heading"><?php _e( 'Oops! That embed can’t be found.' ); ?></p>
    209209
    210210        <div class="wp-embed-excerpt">
    211             <p><?php _e( 'Error 404! The requested content was not found.' ) ?></p>
     211            <p>
     212                <?php
     213                printf(
     214                    __( 'It looks like nothing was found at this location. Maybe try visiting %s directly?' ),
     215                    '<strong><a href="' . esc_url( home_url() ) . '">' . esc_html( get_bloginfo( 'name' ) ) . '</a></strong>'
     216                );
     217                ?>
     218            </p>
    212219        </div>
    213220
Note: See TracChangeset for help on using the changeset viewer.