[wp-trac] [WordPress Trac] #55652: Test tool and unit test improvements for 6.1

WordPress Trac noreply at wordpress.org
Sat Jun 25 14:43:43 UTC 2022


#55652: Test tool and unit test improvements for 6.1
--------------------------------------+---------------------
 Reporter:  hellofromTonya            |       Owner:  (none)
     Type:  task (blessed)            |      Status:  new
 Priority:  normal                    |   Milestone:  6.1
Component:  Build/Test Tools          |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by SergeyBiryukov):

 In [changeset:"53577" 53577]:
 {{{
 #!CommitTicketReference repository="" revision="53577"
 Tests: Remove multiple `$wpdb::placeholder_escape()` calls in `wpdb`
 tests.

 This aims to improve performance of the tests by reducing the number of
 function calls.

 Since `$wpdb::placeholder_escape()` saves the result in a static variable
 on the first run, there is no need for repeated function calls during the
 same request or test run, as the result would still be the same.

 Follow-up to [42056].

 See #55652.
 }}}

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


More information about the wp-trac mailing list