[wp-trac] [WordPress Trac] #22303: Please parse a "vendor" file

WordPress Trac noreply at wordpress.org
Mon Oct 29 15:31:55 UTC 2012


#22303: Please parse a "vendor" file
-----------------------------+-------------------------
 Reporter:  remicollet       |       Type:  enhancement
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  General
  Version:                   |   Severity:  normal
 Keywords:                   |
-----------------------------+-------------------------
 Hi,

 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.

 Goals:
 - 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)

 Work proposal.

 (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
 https://forge.indepnet.net/projects/glpi/wiki/GlpiPackaging

 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).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22303>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list