WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 12 days ago

#16953 assigned enhancement

Allow symlinked plugins — at Version 2

Reported by: scribu Owned by: scribu
Priority: normal Milestone: Future Release
Component: Plugins Version:
Severity: normal Keywords: has-patch dev-feedback
Cc: yincrash, paulschreiber@…, boonebgorges@…, djpaul@…, coenjacobs@…, lkraav, simon@…, junk@…, juzzin, mitcho@…, kenn@…, hertzog@…, kwisatz, info@…, kawauso, synapticism, markus.magnuson@…, cklosowski@…, mike@…, imtiedup@…, johnbeales@…, beaver6813, jason@…, david@…, cor@…, JeromeC, francesco.laffi@…, rodrigosprimo@…, andyadamscp@…, andkrup, tollmanz@…

Description (last modified by scribu)

There are many scenarios where one would like to have a plugin's folder symlinked to another location.

A couple of these scenarios are described in #13550.

The reason this is not currently possible is because plugin_basename() doesn't know how to handle symlinks.

The most simple and most flexible solution is to make the plugin basename filterable, leaving individual devs to handle symlinks, depending on their environment.

Change History (4)

scribu2 years ago

'pre_plugin_basename' filter

comment:1 scribu2 years ago

  • Keywords has-patch added
  • Owner set to scribu
  • Status changed from new to accepted

Test files coming up.

scribu2 years ago

comment:2 scribu2 years ago

  • Description modified (diff)
  • Keywords commit added
  • Milestone changed from Awaiting Review to 3.2

To test:

  1. Extract test.zip into a wp root directory
  2. Activate Test Plugin

The archive already contains a symlink, so it probably won't work on Windows out of the box.

Last edited 2 years ago by scribu (previous) (diff)
Note: See TracTickets for help on using tickets.