latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Quick Cache: Needing a New Hook

Home Forums Community Forum Quick Cache: Needing a New Hook

This topic contains 5 replies, has 2 voices. Last updated by  Eduan 4 years, 7 months ago.

Topic Author Topic
Posted: Wednesday May 30th, 2012 at 10:34 am #14941
Eric Juden
Username: ericjuden

I recently wrote a plugin to extend Quick Cache: Quick Cache Clear for Publishers. This plugin works great in WordPress Multisite, but not in regular WordPress. Would it be possible to add another hook here:

/wp-content/plugins/quick-cache/includes/classes/menu-pages.inc.php line 237

You have 2 parts to the if statement…1 for WordPress, and one for WordPress Multisite. Below is the code.

Original line 237:

if ((!is_multisite () && current_user_can ("edit_plugins")) || (is_multisite () && (is_super_admin () || apply_filters ("ws_plugin__qcache_ms_user_can_see_admin_header_controls", false))))

Suggested line 237:

if ((!is_multisite () && (current_user_can ("edit_plugins") || apply_filters ("ws_plugin__qcache_user_can_see_admin_header_controls", false))) || (is_multisite () && (is_super_admin () || apply_filters ("ws_plugin__qcache_ms_user_can_see_admin_header_controls", false))))

Thanks,

Eric

List Of Topic Replies

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Wednesday May 30th, 2012 at 5:13 pm #14977
Eduan
Username: Eduan
Moderator

Hello Eric,

I will forward this to the lead developer, so that he can see your suggestion. :)

Posted: Wednesday May 30th, 2012 at 5:32 pm #14979
Eric Juden
Username: ericjuden

Thanks Eduan!

Posted: Friday Jun 1st, 2012 at 9:12 am #15159
Eduan
Username: Eduan
Moderator

Hello Eric,

He answered, and he says he’ll keep it in mind for the next release for Quick Cache.

Hope this helps. :)

Posted: Friday Jun 1st, 2012 at 2:19 pm #15192
Eric Juden
Username: ericjuden

Thanks!

Posted: Saturday Jun 2nd, 2012 at 10:20 am #15255
Eduan
Username: Eduan
Moderator

You’re welcome Eric,

Glad I was able to help. :)

Viewing 5 replies - 1 through 5 (of 5 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.