[wp-trac] [WordPress Trac] #13919: $pagenow / vars.php refactoring / Move $pagenow generation into it's own function
WordPress Trac
wp-trac at lists.automattic.com
Wed Jun 16 14:03:48 UTC 2010
#13919: $pagenow / vars.php refactoring / Move $pagenow generation into it's own
function
------------------------------+---------------------------------------------
Reporter: hakre | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Warnings/Notices | Version: 3.0
Severity: normal | Keywords: has-patch
------------------------------+---------------------------------------------
In {{{wp-include/vars.php}}} an unset variable is passed by referecence to
{{{preg_match()}}} in mutliple places.
The same code-fragment where that problem is located does poisen the
globale variable table with temporary variables as well.
To prevent these problems, the variable needs to be set prior to be passed
to preg_match and the code fragment needs to be refactored in it's own
function.
This might be helpful a bit as well when we start to free the codebase
from hardencoded {{{/wp-admin/}}} admin directory definitions.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13919>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list