[wp-trac] [WordPress Trac] #59226: get_pages: post_modified_gmt value for sort_column/orderby silently dropped

WordPress Trac noreply at wordpress.org
Tue Aug 29 16:14:49 UTC 2023


#59226: get_pages: post_modified_gmt value for sort_column/orderby silently dropped
-------------------------------------+--------------------------
 Reporter:  david.binda              |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  6.3.2
Component:  Posts, Post Types        |     Version:  6.3
 Severity:  normal                   |  Resolution:
 Keywords:  2nd-opinion needs-patch  |     Focuses:  performance
-------------------------------------+--------------------------

Comment (by azaozz):

 Replying to [comment:5 spacedmonkey]:
 > I think that reverting would not be a good idea. As this was part of WP
 6.3 and has a dev note and people would also expect filters from WP_Query
 to now run now.

 Umm, the filters from WP_Query running for pages is unexpected and might
 be considered a regression in itself :)

 The fact that there was a dev. note doesn't magically "fix" all plugins to
 comply with the changes. It simply informs extenders about new
 functionality that is available.

 > Reverting this would be a breaking change itself.

 WP 6.3 was released few days ago. It would be much easier for the (few)
 plugins that might have adopted the new functionality to adapt.

 > I think there if a workable fix for this.

 Could be. Looking at [55569] there is a big chunk of red (deleted) code
 starting at line 6072. Guessing this regression comes from deleting that
 code and not providing backwards compatibility for it. There may also be
 other regressions from that which will eventually show up.

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


More information about the wp-trac mailing list