[wp-trac] [WordPress Trac] #56074: Bug related comment of old data in database not viewable anymore with new version of WordPress 6.0

WordPress Trac noreply at wordpress.org
Mon Jun 27 09:31:23 UTC 2022


#56074: Bug related comment of old data in database not viewable anymore with new
version of WordPress 6.0
-------------------------------+-----------------------------
 Reporter:  dealazer           |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  6.0
 Severity:  normal             |   Keywords:  needs-patch
  Focuses:                     |
-------------------------------+-----------------------------
 This is a follow-up to #26746. Also related to commenting functions.

 I have been using Tako Movable Comments for long.
 Now all my websites have comment problems. With the newer version of
 WordPress 6.0

 Some code it uses:
 $post_types = get_post_types( '', 'names' );
 $current_post = get_the_title( $comment->comment_post_ID );
 $comment_post_ID = (int) $_POST['tako_post'];
                 $comment_ID = (int) $_POST['comment_ID'];

 All comments are displayed as blank with WordPress 6.0
 Using downgrade with downgrade plugin to 5.9 works perfectly and all posts
 are back to their ordinary state.

 There has been an enhancement of post types function that has been waying
 away the old codes for better or newer codes.

 There are such means that compatibility is needed to ensure old codes too
 work as well with newer ones for future stability. And, in fact, maybe
 there wasn't a need for code change into 6.0 of post types, as maybe 1000
 different plugins now have several issues related to the code change. And
 post types and posts are for most plugins a crucial need to work properly,
 also with custom codes as maybe Tako Movable Comments may use.

 A code change will make many developers itch the head in such per as done.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56074>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list