[wp-trac] [WordPress Trac] #43489: Strengthen resilience of wp_register_plugin_realpath to support Gutenberg

WordPress Trac noreply at wordpress.org
Tue Dec 1 05:24:00 UTC 2020


#43489: Strengthen resilience of wp_register_plugin_realpath to support Gutenberg
------------------------------------------+------------------------------
 Reporter:  bobbingwide                   |       Owner:  (none)
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Plugins                       |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+------------------------------
Changes (by peterwilsoncc):

 * keywords:  needs-patch => needs-patch needs-unit-tests
 * component:  General => Plugins


Comment:

 This was discussed in a triage session today.

 It seems reasonable to account for `realpath()` returning false, I've
 added a needs tests keyword and moved this to the Plugins component.

 [http://www.php.net/manual/en/function.realpath.php Per the
 documentation], `realpath()` returns false in the following circumstances:
 * the file does not exist
 * the script does not have execute permissions on all directories in the
 hierarchy

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43489#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list