[wp-trac] [WordPress Trac] #33034: Refactor SCRIPT_FILENAME ending with php.cgi check in load.php
WordPress Trac
noreply at wordpress.org
Sun Jul 19 09:46:29 UTC 2015
#33034: Refactor SCRIPT_FILENAME ending with php.cgi check in load.php
----------------------------+------------------------------
Reporter: wildpeat | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bootstrap/Load | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+------------------------------
Comment (by dd32):
To avoid the usage of a regular expression here, this seems far more
readable than the current odd code:
{{{
if ( isset( $_SERVER['SCRIPT_FILENAME'] ) && 'php.cgi' == substr(
$_SERVER['SCRIPT_FILENAME'], -7 ) )
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33034#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list