[wp-trac] Re: [WordPress Trac] #7870: gears-manifest.php might be
included on administration page, when it should not be
WordPress Trac
wp-trac at lists.automattic.com
Sun Oct 12 12:07:17 GMT 2008
#7870: gears-manifest.php might be included on administration page, when it should
not be
-------------------------------------+--------------------------------------
Reporter: impleri | Owner: anonymous
Type: defect | Status: closed
Priority: normal | Milestone:
Component: Administration | Version:
Severity: normal | Resolution: invalid
Keywords: gears reporter-feedback |
-------------------------------------+--------------------------------------
Changes (by DD32):
* status: new => closed
* version: 2.6.1 =>
* resolution: => invalid
* milestone: 2.8 =>
Comment:
For a start, That should be being run on an activation hook rather than in
the global context, have a look at {{{register_activation_hook()}}}
Secondly, The reason for the errors are because you're using the wrong
pathname, and are instead, including every file in /wp-admin/. (Hint:
dirname(basename(__FILE__)) == '.')
--
Ticket URL: <http://trac.wordpress.org/ticket/7870#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list