Make WordPress Core

Changeset 24232


Ignore:
Timestamp:
05/10/2013 02:41:58 PM (12 years ago)
Author:
SergeyBiryukov
Message:

Display consistent labels in Image post format UI for users with and without unfiltered_html capability. props tollmanz. fixes #24304. see #24291.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post-formats.php

    r24230 r24232  
    5050                <label for="wp_format_image"><?php
    5151                    if ( current_user_can( 'unfiltered_html' ) )
    52                         _e( 'Image HTML or URL' );
     52                        _e( 'Image URL or HTML' );
    5353                    else
    5454                        _e( 'Image URL' );
     
    5656                <textarea id="wp_format_image" type="text" name="_format_image" class="widefat"><?php echo esc_textarea( $format_meta['image'] ); ?></textarea>
    5757            </div>
    58             <p class="use-url-or-html hide-if-no-js"><span><?php printf( __( '(or %suse an image URL or HTML%s)' ), '<a href="#">', '</a>' ); ?></span>
    59                 <span style="display: none"><?php printf( __( '(or %sselect/upload an image%s)' ), '<a href="#">', '</a>' ); ?></span></p>
     58            <p class="use-url-or-html hide-if-no-js">
     59                <span><?php
     60                    if ( current_user_can( 'unfiltered_html' ) )
     61                        _e( '(or <a href="#">use an image URL or HTML</a>)' );
     62                    else
     63                        _e( '(or <a href="#">use an image URL</a>)' );
     64                ?></span>
     65                <span style="display: none"><?php _e( '(or <a href="#">select/upload an image</a>)' ); ?></span></p>
    6066        </div>
    6167
Note: See TracChangeset for help on using the changeset viewer.