[wp-trac] [WordPress Trac] #15193: get_file_data() regex issue
WordPress Trac
wp-trac at lists.automattic.com
Sat Nov 6 00:46:26 UTC 2010
#15193: get_file_data() regex issue
--------------------------+-------------------------------------------------
Reporter: scribu | Owner:
Type: defect (bug) | Status: reopened
Priority: lowest | Milestone: 3.1
Component: Plugins | Version:
Severity: trivial | Resolution:
Keywords: has-patch |
--------------------------+-------------------------------------------------
Comment(by scribu):
So, based on a random sample of 2800+ plugins, here are all the
combinations I found:
{{{
Plugin Name
Plugin Name
* Plugin name
/*Plugin name
Plugin name
Plugin Name
* Plugin Name
* Plugin Name
* Plugin Name
Plugin Name
* Plugin Name
Plugin Name
Plugin Name
* Plugin Name
* Plugin Name
* Plugin Name
* Plugin Name
*Plugin Name
Plugin Name
//Plugin Name
/* Plugin Name
/*Plugin Name
* Plugin Name
* Plugin Name
/*Plugin Name
*Plugin Name
Plugin Name
Plugin Name
Plugin Name
PLUGIN NAME
preg_match("|Plugin Name
preg_match("|Plugin Name
<td width="80px" valign="top">Plugin Name
<td width="80px" valign="top">Plugin Name
while ( ( null !== $item_key = array_rand($items)
) && false !== strpos( $items[$item_key]->get_description(), 'Plugin Name
}}}
Notice how the last lines shouldn't be recognised as valid headers.
This is the command I used:
{{{grep --exclude-dir=.svn --include=*.php -ri 'Plugin Name:' | cut -d ':'
-f 2 | sort | uniq}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15193#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list