[wp-trac] [WordPress Trac] #46327: Normalize class loading

WordPress Trac noreply at wordpress.org
Sat Feb 23 16:15:12 UTC 2019


#46327: Normalize class loading
----------------------------+------------------------------
 Reporter:  szepe.viktor    |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Bootstrap/Load  |     Version:
 Severity:  trivial         |  Resolution:
 Keywords:  needs-patch     |     Focuses:
----------------------------+------------------------------

Comment (by dmsnell):

 > My regexp did not match :)

 Ah. That makes sense. Let's not move the comment though - there's nothing
 wrong with it being there.

 You will definitely have better luck doing what you are wanting to do if
 you work from a PHP parser instead of from a RegExp. There aren't many
 choices but you shouldn't have any problem with [https://github.com/nikic
 /PHP-Parser nikic's php-parser].

 If you want to catch trailing comments though I don't see why your pattern
 should be failing. Did you debug the matches to see why?

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


More information about the wp-trac mailing list