[wp-trac] [WordPress Trac] #43903: Plug-in concatenation Error

WordPress Trac noreply at wordpress.org
Mon Apr 30 00:44:44 UTC 2018


#43903: Plug-in concatenation Error
--------------------------+-----------------------------
 Reporter:  kaine78       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  4.9.5
 Severity:  normal        |   Keywords:  needs-testing
  Focuses:                |
--------------------------+-----------------------------
 In plugin-settings.php when a variable is concatenated in the format of:

 {{{#!php
 <?php
 $x = "Hello " . $i+1;
 }}}

 the result evaluates to $x = "1".

 Haven't done full testing but these results turn out fine:

 {{{#!php
 <?php
 $x = $i+1."Hello";
 $x = "Hello".1+$i;
 }}}

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


More information about the wp-trac mailing list