Skip to content
Snippets Groups Projects
Commit a8c740d6 authored by Erick Hitter's avatar Erick Hitter
Browse files

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

parent 5e487436
Branches
Tags
Loading
......@@ -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' ) ) {
return;
}
/**
* Redis-based user sessions token manager.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment