[wp-trac] [WordPress Trac] #45854: Avoid printf/sprintf strings to be "double-quoted"

WordPress Trac noreply at wordpress.org
Mon Jan 7 20:18:23 UTC 2019

#45854: Avoid printf/sprintf strings to be "double-quoted"
 Reporter:  arena         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:

Comment (by chriscct7):

 Do you have a modern benchmark showing it is faster?

 When there is no variable present in the string, PHP will use _identical_
 opcodes for the string if its a single vs double, so there's no difference
 in performance.

Ticket URL: <https://core.trac.wordpress.org/ticket/45854#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list