[wp-trac] [WordPress Trac] #55392: Performance improvements to get_user_data_from_wp_global_styles

WordPress Trac noreply at wordpress.org
Fri Sep 16 10:56:14 UTC 2022


#55392: Performance improvements to get_user_data_from_wp_global_styles
--------------------------------------+---------------------------
 Reporter:  spacedmonkey              |       Owner:  spacedmonkey
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.1
Component:  Posts, Post Types         |     Version:  5.9
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  performance
--------------------------------------+---------------------------
Changes (by spacedmonkey):

 * owner:  (none) => spacedmonkey
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"54186" 54186]:
 {{{
 #!CommitTicketReference repository="" revision="54186"
 Posts, Post Types: Improve performance of the
 `get_user_data_from_wp_global_styles` method.

 Improve the logic found in `get_user_data_from_wp_global_styles` method.
 Replace call to `wp_get_recent_posts` with the more standard, `WP_Query`
 for consistancy. Use transient over standard cache, to improve performance
 on sites without persistent object caching. Improve handling of cases
 where `wp_insert_post` returns a `WP_Error`.

 Props spacedmonkey, adamsilverstein, mukesh27, peterwilsoncc, andregal.
 Fixes #55392.
 }}}

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


More information about the wp-trac mailing list