Please parse a "vendor" file
|Reported by:||remicollet||Owned by:|
|Cc:||info@…, mcepl, mike@…|
I'm working on improving Wordpress packaging in fedora.
One of our need is to allow the use of system libraries instead of bundled copy (forbidden by Guidelines).
I would like to propose, as various projects already, to include a "vendor" file.
- without this file: no change
- with this file: use constant from it
- allow to define patch for each library (rather than a global WPINC)
Note: this is not the same as wp-settings, which are user configurable settings, while "vendor" are system configuration (not to be altered by users)
(probably) in default-constants.php
if (file_exists('vendor.php')) include_once('vendor.php');
For PHPMailer (for exemple)
if (!defined('WP_PHPMAILER_INC')) define('WP_PHPMAILER_INC', ABSPATH . WPINC);
And of course,
require_once WP_PHPMAILER_INC . '/class-smtp.php';
Using this, we could package wordpress in a simpler way, without altering provided sources, just adding this vendor file.
For example, see what have be done in GLPI
If you accept this feature, I will work on it and submit the patches (probably various, one per library, as I will progress on this work).
Change History (17)
comment:14 in reply to: ↑ 13 MikeSchinkel — 14 months ago
comment:16 c3mdigital — 4 months ago
- Keywords close dev-feedback removed
- Resolution set to maybelater
- Status changed from new to closed