Make WordPress Core

Ticket #44651: filterable_excerpt_explanation.diff

File filterable_excerpt_explanation.diff, 1018 bytes (added by sillybean, 5 years ago)
  • wp-admin/includes/meta-boxes.php

     
    661661<label class="screen-reader-text" for="excerpt"><?php _e( 'Excerpt' ); ?></label><textarea rows="1" cols="40" name="excerpt" id="excerpt"><?php echo $post->post_excerpt; // textarea_escaped ?></textarea>
    662662<p>
    663663<?php
    664         printf(
    665                 /* translators: %s: Codex URL */
    666                 __( 'Excerpts are optional hand-crafted summaries of your content that can be used in your theme. <a href="%s">Learn more about manual excerpts</a>.' ),
    667                 __( 'https://codex.wordpress.org/Excerpt' )
     664        echo apply_filters( 'excerpt_explanation',
     665                sprintf(
     666                        /* translators: %s: Codex URL */
     667                        __( 'Excerpts are optional hand-crafted summaries of your content that can be used in your theme. <a href="%s">Learn more about manual excerpts</a>.' ),
     668                        __( 'https://codex.wordpress.org/Excerpt' )
     669                )
    668670        );
    669671?>
    670672</p>