[wp-trac] [WordPress Trac] #57527: Duotone: Two minor code quality fixes

WordPress Trac noreply at wordpress.org
Sun Jan 22 15:36:09 UTC 2023


#57527: Duotone: Two minor code quality fixes
-------------------------+-----------------------------
 Reporter:  Mamaduka     |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Editor       |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 Backports following changes from the Gutenberg plugin

 * Use in/decrementors where appropriate. They're more performant than an
 assignment with a calculation.
 * Don't check if constants set by `wp_initial_constants()` are defined.

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


More information about the wp-trac mailing list