[wp-trac] [WordPress Trac] #47461: The message "This is a preview, your comment will be visible after it has been approved." is not shown in all themes

WordPress Trac noreply at wordpress.org
Mon Jun 3 06:26:12 UTC 2019


#47461: The message "This is a preview, your comment will be visible after it has
been approved." is not shown in all themes
---------------------------+------------------------------
 Reporter:  superpoincare  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:  5.2.1
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------

Comment (by birgire):

 Good catch @superpoincare

 Four default themes seems to override the native comment walker or parts
 of it that contains the adjusted comment moderation note:

 1) **Twenty Ten** defines it's own callback:

 {{{
 wp_list_comments( array( 'callback' => 'twentyten_comment' ) ); )

 }}}
 https://core.trac.wordpress.org/browser/tags/5.2.1/src/wp-
 content/themes/twentyten/comments.php#L70

 Here's the comment's moderation note in {{{twentyten_comment()}}}:

 https://core.trac.wordpress.org/browser/tags/5.2.1/src/wp-
 content/themes/twentyten/functions.php#L429


 2) **Twenty Eleven** defines it's own callback:

 {{{
 wp_list_comments( array( 'callback' => 'twentyeleven_comment' ) );

 }}}

 https://core.trac.wordpress.org/browser/tags/5.2.1/src/wp-
 content/themes/twentyeleven/comments.php#L68

 Here's the comment's moderation note in {{{twentyeleven_comment()}}}:

 https://core.trac.wordpress.org/browser/tags/5.2.1/src/wp-
 content/themes/twentyeleven/functions.php#L747

 3) **Twenty Twelve** defines it's own callback:

 {{{
 wp_list_comments(
         array(
                 'callback' => 'twentytwelve_comment',
                 'style'    => 'ol',
         )
 );

 }}}

 https://core.trac.wordpress.org/browser/tags/5.2.1/src/wp-
 content/themes/twentytwelve/comments.php#L51

 Here's the comment's moderation note in {{{twentytwelve_comment()}}}:

 https://core.trac.wordpress.org/browser/tags/5.2.1/src/wp-
 content/themes/twentytwelve/functions.php#L446

 4) **Twenty Nineteen** defines it's own walker:

 {{{
 wp_list_comments(
         array(
                 'walker'      => new TwentyNineteen_Walker_Comment(),
                 'avatar_size' => twentynineteen_get_avatar_size(),
                 'short_ping'  => true,
                 'style'       => 'ol',
         )
 );

 }}}

 https://core.trac.wordpress.org/browser/tags/5.2.1/src/wp-
 content/themes/twentynineteen/comments.php#L76

 The comment's moderation note from the custom walker:

 https://core.trac.wordpress.org/browser/tags/5.2.1/src/wp-
 content/themes/twentynineteen/classes/class-twentynineteen-walker-
 comment.php#L99

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47461#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list