[wp-trac] [WordPress Trac] #22316: Plugin Dependencies (Yet Another Plugin Dependencies Ticket)

WordPress Trac noreply at wordpress.org
Thu Nov 2 12:35:13 UTC 2017


#22316: Plugin Dependencies (Yet Another Plugin Dependencies Ticket)
--------------------------+------------------------------
 Reporter:  Viper007Bond  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Plugins       |     Version:  3.4.2
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |     Focuses:
--------------------------+------------------------------

Comment (by tazotodua):

 With my opinion, plugin dependency in "plugin header" is the most
 undesired way.
 I think "dependencies" list should be dynamic (dynamic function is much
 flexible), within plugins own variable, like:


 {{{

 //========= with PHP libraries =======//
 foreach (array("LibraryXYZ", "libraryABC") as $e) {
 wp_include_framework($e) };



 //========= with JS libraries =======//
 foreach (array("jquery-ui", "fancybox") as $e) {
 wp_ensure_to_download_library_if_not_exists($e) };
 ...
 <script src="<?php echo $WP_FrameWork_URLS_Global_Array['jquery-ui']; ?>"
 }}}



 it should be with the similar function I mentioned

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


More information about the wp-trac mailing list