[wp-trac] [WordPress Trac] #21954: Nested plugins cause activation link error

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 21 00:36:46 UTC 2012


#21954: Nested plugins cause activation link error
-----------------------------+-----------------------------
 Reporter:  prometh          |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Upgrade/Install
  Version:  3.4.2            |   Severity:  major
 Keywords:                   |
-----------------------------+-----------------------------
 My plugin, [http://wordpress.org/extend/plugins/wp-html-compression/ WP-
 HTML-Compression] includes another of my plugins,
 [http://wordpress.org/extend/plugins/absolute-to-relative-urls/ Absolute-
 to-Relative-URLs] from /wp-content/plugins/wp-html-compression/external/
 after first checking if it already exists.

 The problem is that nested plugin has a WordPress header which leads to
 the activation link being:

 /wp-admin/plugins.php?action=activate&plugin=wp-html-
 compression%2Fexternal%2Fabsolute-to-relative-urls.php&_wpnonce=...

 and results in a "The plugin does not have a valid header" error.

 A temporary solution is to remove the header from the nested plugin.

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


More information about the wp-trac mailing list