Commit a8c740d6 authored by Erick Hitter's avatar Erick Hitter

Don't load when the underlying class isn't available, such as when using WP CLI.

parent 5e487436
......@@ -22,6 +22,13 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* Don't load in contexts that lack the WP_Session_Tokens class
if ( ! class_exists( 'WP_Session_Tokens' ) ) {
* Redis-based user sessions token manager.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment