clef / clef-wordpress

The official Clef plugin for WordPress.
http://wordpress.org/plugins/wpclef
44 stars 24 forks source link

Accommodate WP Engine servers #248

Closed lolux closed 8 years ago

lolux commented 8 years ago

This PR implements automations for the current manual workarounds that are required after installing the Clef 2FA plugin on a WP Engine server; in other words, these changes make the plugin plug-n-play for WPE users:

  1. The wpe-login=clef param is added to the Logout Hook URL during plugin installation
  2. WPE's 60-sec. Heartbeat API interval throttle is changed to 5 sec.
  3. WPE's restriction on the scope of the Heartbeat API (i.e., it applies only to editing pages) is set back to its default scope (i.e., all pages) via the wpe_heartbeat_allowed_pages filter.
jessepollak commented 8 years ago

LGTM