[wp-trac] [WordPress Trac] #34068: Comment permalink always include comment page

WordPress Trac noreply at wordpress.org
Tue Sep 29 05:26:20 UTC 2015


#34068: Comment permalink always include comment page
----------------------------------------+--------------------
 Reporter:  knutsp                      |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  4.4
Component:  Comments                    |     Version:  trunk
 Severity:  normal                      |  Resolution:
 Keywords:  needs-unit-tests has-patch  |     Focuses:
----------------------------------------+--------------------
Changes (by boonebgorges):

 * keywords:  needs-patch needs-unit-tests => needs-unit-tests has-patch


Comment:

 Battery's about to die :) so I can't finish the tests at the moment, but I
 think that [attachment:34068.diff] gets it pretty close to right. Test it
 with this:

 {{{
 function wp_34068( $text, $comment ) {
         $link = get_comment_link( $comment );

         return $link . '<br />' . $text;
 }
 add_filter( 'comment_text', 'wp_34068', 10, 2 );
 }}}

 and with various pagination settings.

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


More information about the wp-trac mailing list