WordPress.org

Make WordPress Core

Ticket #23503: 23503.post-format-tip.patch

File 23503.post-format-tip.patch, 1.2 KB (added by kopepasah, 13 months ago)

Remove 'Post' from the post format tip.

  • wp-admin/edit-form-advanced.php

     
    183183                        $active_post_format_description = $attr['description']; 
    184184                } 
    185185 
    186                 $post_format_options .= '<a ' . $class . ' href="?format=' . $slug . '" data-description="' . $attr['description'] . '" data-wp-format="' . $slug . '" title="' . ucfirst( sprintf( __( '%s Post' ), $slug ) ) . '"><div class="' . $slug . '"></div></a>'; 
     186                $post_format_options .= '<a ' . $class . ' href="?format=' . $slug . '" data-description="' . $attr['description'] . '" data-wp-format="' . $slug . '" title="' . ucfirst( sprintf( __( '%s' ), $slug ) ) . '"><div class="' . $slug . '"></div></a>'; 
    187187        } 
    188188 
    189189        $current_post_format = array( 'currentPostFormat' => esc_html( $active_post_type_slug ) ); 
     
    397397 
    398398<?php if ( ! empty( $post_format_options ) ) : ?> 
    399399<div class="post-format-options"> 
    400         <span class="post-format-tip">Standard Post</span> 
     400        <span class="post-format-tip"><?php ucfirst( _e( $post_format ) ); ?></span> 
    401401        <?php echo $post_format_options; ?> 
    402402</div> 
    403403<?php endif; ?>