WordPress.org

Make WordPress Core

Ticket #9371: r10828-excerpt-info-codex-link.diff

File r10828-excerpt-info-codex-link.diff, 991 bytes (added by demetris, 5 years ago)

Changes the info link for Excerpts to a Codex page for end users

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

     
    371371function post_excerpt_meta_box($post) { 
    372372?> 
    373373<label class="hidden" for="excerpt"><?php _e('Excerpt') ?></label><textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt"><?php echo $post->post_excerpt ?></textarea> 
    374 <p><?php _e('Excerpts are optional hand-crafted summaries of your content. You can <a href="http://codex.wordpress.org/Template_Tags/the_excerpt" target="_blank">use them in your template</a>'); ?></p> 
     374<p><?php _e('Excerpts are optional hand-crafted summaries of your content that can be used in your template. <a href="http://codex.wordpress.org/Excerpt" target="_blank">Learn more about manual excerpts.</a>'); ?></p> 
    375375<?php 
    376376} 
    377377add_meta_box('postexcerpt', __('Excerpt'), 'post_excerpt_meta_box', 'post', 'normal', 'core');