Make WordPress Core

Ticket #24304: 24304.diff

File 24304.diff, 1.3 KB (added by tollmanz, 12 years ago)
  • wp-admin/includes/post-formats.php

    diff --git a/wp-admin/includes/post-formats.php b/wp-admin/includes/post-formats.php
    index 70dad05..eee8666 100644
    a b wp_nonce_field( 'show-post-format-ui_' . $post_type, 'show_post_format_ui_nonce' 
    4646                                        <?php _e( 'Select / Upload Image' ); ?>
    4747                                </a>
    4848                        </div>
     49
    4950                        <div class="wp-format-image-textarea hide-if-js">
    5051                                <label for="wp_format_image"><?php
    5152                                        if ( current_user_can( 'unfiltered_html' ) )
    wp_nonce_field( 'show-post-format-ui_' . $post_type, 'show_post_format_ui_nonce' 
    5556                                ?></label>
    5657                                <textarea id="wp_format_image" type="text" name="_format_image" class="widefat"><?php echo esc_html( $format_meta['image'] ); ?></textarea>
    5758                        </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                        <p class="use-url-or-html hide-if-no-js"><span><?php if ( current_user_can( 'unfiltered_html' ) ) : printf( __( '(or %suse an image URL or HTML%s)' ), '<a href="#">', '</a>' ); else : printf( __( '(or %suse an image URL%s)' ), '<a href="#">', '</a>' ); endif; ?></span>
    5960                                <span style="display: none"><?php printf( __( '(or %sselect/upload an image%s)' ), '<a href="#">', '</a>' ); ?></span></p>
    6061                </div>
    6162