Don't use mb_* functions to match file extension, fixes #9289
git-svn-id: http://svn.automattic.com/wordpress/trunk@10734 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3c803da070
commit
e97a2c3e90
|
@ -92,7 +92,7 @@ default:
|
|||
if ( ! $error ) {
|
||||
$content = file_get_contents( $real_file );
|
||||
|
||||
if ( 'php' == mb_substr( $real_file, mb_strrpos( $real_file, '.' ) + 1 ) ) {
|
||||
if ( '.php' == substr( $real_file, strrpos( $real_file, '.' ) ) ) {
|
||||
$functions = wp_doc_link_parse( $content );
|
||||
|
||||
$docs_select = '<select name="docs-list" id="docs-list">';
|
||||
|
|
|
@ -90,7 +90,7 @@ default:
|
|||
$f = fopen($real_file, 'r');
|
||||
$content = fread($f, filesize($real_file));
|
||||
|
||||
if ( 'php' == mb_substr( $real_file, mb_strrpos( $real_file, '.' ) + 1 ) ) {
|
||||
if ( '.php' == substr( $real_file, strrpos( $real_file, '.' ) ) ) {
|
||||
$functions = wp_doc_link_parse( $content );
|
||||
|
||||
$docs_select = '<select name="docs-list" id="docs-list">';
|
||||
|
|
Loading…
Reference in New Issue