Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #43489


Ignore:
Timestamp:
03/07/2018 06:36:13 PM (6 years ago)
Author:
johnbillion
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43489

    • Property Keywords needs-patch added
    • Property Version changed from trunk to
  • Ticket #43489 – Description

    initial v1  
    77This can lead to the following:
    88
    9 Warning: strpos(): Empty needle in C:\apache\htdocs\hm\wp-includes\plugin.php on line 658.
     9`Warning: strpos(): Empty needle in C:\apache\htdocs\hm\wp-includes\plugin.php on line 658.`
    1010
    1111This message has the uncanny knack of happening at the most inappropriate times.
     
    1818
    1919This change will prevent the warning message being issued from plugin_basename()'s test
    20 ```
     20{{{
    2121if ( strpos( $file, $realdir ) === 0 ) {
    22 ```
     22}}}
    2323
    2424and therefore increases the robustness of the system.
    2525
    2626Bottom line.
    27 - realpath() may return false.
     27- `realpath()` may return false.
    2828- This should be catered for.
    2929