Make WordPress Core

Changeset 34904


Ignore:
Timestamp:
10/07/2015 11:00:59 AM (11 years ago)
Author:
pento
Message:

Embeds: After [34903], remove an accidentally included text domain, and exclude a test failing in PHP 5.2.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpunit.xml.dist

    r30298 r34904  
    1616            <file phpVersion="5.3.0">tests/phpunit/tests/image/editor_gd.php</file>
    1717            <file phpVersion="5.3.0">tests/phpunit/tests/image/editor_imagick.php</file>
     18            <file phpVersion="5.3.0">tests/phpunit/tests/oembed/headers.php</file>
    1819        </testsuite>
    1920    </testsuites>
  • trunk/src/wp-includes/class-wp-oembed-controller.php

    r34903 r34904  
    8989                if ( false === $data ) {
    9090                        status_header( 404 );
    91                         return __( 'Invalid URL.', 'oembed-api' );
     91                        return __( 'Invalid URL.' );
    9292                }
    9393
  • trunk/src/wp-includes/embed-functions.php

    r34903 r34904  
    485485                absint( $width ),
    486486                absint( $height ),
    487                 esc_attr__( 'Embedded WordPress Post', 'oembed-api' )
     487                esc_attr__( 'Embedded WordPress Post' )
    488488        );
    489489
     
    749749
    750750        return sprintf(
    751                 _x( '&hellip; %s', 'read more link', 'oembed-api' ),
     751                _x( '&hellip; %s', 'read more link' ),
    752752                sprintf(
    753753                        '<a class="wp-embed-more" href="%s" target="_top">%s</a>',
    754754                        get_the_permalink(),
    755                         __( 'Read more', 'oembed-api' )
     755                        __( 'Read more' )
    756756                )
    757757        );
  • trunk/src/wp-includes/embed-template.php

    r34903 r34904  
    162162                                                                                '%s <span class="screen-reader-text">Comment</span>',
    163163                                                                                '%s <span class="screen-reader-text">Comments</span>',
    164                                                                                 get_comments_number(),
    165                                                                                 'oembed-api'
     164                                                                                get_comments_number()
    166165                                                                        ),
    167166                                                                        absint( get_comments_number() )
     
    173172                                        <div class="wp-embed-share">
    174173                                                <button type="button" class="wp-embed-share-dialog-open"
    175                                                         aria-label="<?php esc_attr_e( 'Open sharing dialog', 'oembed-api' ); ?>">
     174                                                        aria-label="<?php esc_attr_e( 'Open sharing dialog' ); ?>">
    176175                                                        <span class="dashicons dashicons-share"></span>
    177176                                                </button>
     
    184183                                                <ul class="wp-embed-share-tabs" role="tablist">
    185184                                                        <li id="wp-embed-share-tab-button-wordpress" class="wp-embed-share-tab-button" role="presentation">
    186                                                                 <button role="tab" aria-controls="wp-embed-share-tab-wordpress" aria-selected="true" tabindex="0"><?php esc_html_e( 'WordPress Embed', 'oembed-api' ); ?></button>
     185                                                                <button role="tab" aria-controls="wp-embed-share-tab-wordpress" aria-selected="true" tabindex="0"><?php esc_html_e( 'WordPress Embed' ); ?></button>
    187186                                                        </li>
    188187                                                        <li id="wp-embed-share-tab-button-embed" class="wp-embed-share-tab-button" role="presentation">
    189                                                                 <button role="tab" aria-controls="wp-embed-share-tab-html" aria-selected="false" tabindex="-1"><?php esc_html_e( 'HTML Embed', 'oembed-api' ); ?></button>
     188                                                                <button role="tab" aria-controls="wp-embed-share-tab-html" aria-selected="false" tabindex="-1"><?php esc_html_e( 'HTML Embed' ); ?></button>
    190189                                                        </li>
    191190                                                </ul>
     
    194193
    195194                                                        <p class="wp-embed-share-description">
    196                                                                 <?php _e( 'Copy and paste this URL into your WordPress site to embed', 'oembed-api' ); ?>
     195                                                                <?php _e( 'Copy and paste this URL into your WordPress site to embed' ); ?>
    197196                                                        </p>
    198197                                                </div>
     
    201200
    202201                                                        <p class="wp-embed-share-description">
    203                                                                 <?php _e( 'Copy and paste this code into your site to embed', 'oembed-api' ); ?>
     202                                                                <?php _e( 'Copy and paste this code into your site to embed' ); ?>
    204203                                                        </p>
    205204                                                </div>
    206205                                        </div>
    207206
    208                                         <button type="button" class="wp-embed-share-dialog-close" aria-label="<?php esc_attr_e( 'Close sharing dialog', 'oembed-api' ); ?>">
     207                                        <button type="button" class="wp-embed-share-dialog-close" aria-label="<?php esc_attr_e( 'Close sharing dialog' ); ?>">
    209208                                                <span class="dashicons dashicons-no"></span>
    210209                                        </button>
     
    217216        ?>
    218217        <div class="wp-embed">
    219                 <p class="wp-embed-heading"><?php _e( 'Page not found', 'oembed-api' ); ?></p>
     218                <p class="wp-embed-heading"><?php _e( 'Page not found' ); ?></p>
    220219
    221220                <div class="wp-embed-excerpt">
    222                         <p><?php _e( 'Error 404! The requested content was not found.', 'oembed-api' ) ?></p>
     221                        <p><?php _e( 'Error 404! The requested content was not found.' ) ?></p>
    223222                </div>
    224223
Note: See TracChangeset for help on using the changeset viewer.