[wp-trac] [WordPress Trac] #15949: WP 3.0.x comments popup on pages returning 404 [including posible solution]

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 22 17:04:43 UTC 2010


#15949: WP 3.0.x comments popup on pages returning 404 [including posible solution]
--------------------------+----------------------------------------
 Reporter:  odosuiadan    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Query         |    Version:
 Severity:  normal        |   Keywords:  comments popup 404 page id
--------------------------+----------------------------------------
 comments-popup does not work on pages (but still working on blog entries)
 since the 3.0.x upgrade.

 i confirm bug and sollution on both: my own theme and on default them
 after adding comments_popup_link and comments_popup_script functions.

 after a long time looking for a solution i found that the new "handle_404"
 method in class WP (wp-includes/classes.php line 475) is the responsable,
 substituing this method with an older one from wp 2.x brunch solves the
 problem.

 looks like the new method "think" that there is no content when the index
 file is called with comments_popup parameter on a page id, so it returns a
 404 status, as said the old one solves the problem.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15949>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list