WordPress.org

Make WordPress Core

Changes between Version 1 and Version 7 of Ticket #15193


Ignore:
Timestamp:
10/22/10 14:16:57 (3 years ago)
Author:
scribu
Comment:

I always wondered how

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15193

    • Property Keywords has-patch added
  • Ticket #15193 – Description

    v1 v7  
    1 The regex in get_file_data() needs a {{{^}}} at the begining to prevent matching something like this: 
     1I always wondered how the plugin/theme header syntax could be so permissive. 
     2 
     3It turns out the regex is too permissive. 
     4 
     5If the description field is missing, for example, it will match any line at the beginning of a file that contains 'description:' in it, such as: 
    26 
    37{{{Some_Class_Description::init();}}} 
     8 
     9{{{_e('Edit description:');}}}