File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,9 @@ public function __construct() {
31
31
define ( 'WP_SESSION_COOKIE ' , 'sell_media_session ' );
32
32
}
33
33
34
- if ( ! class_exists ( 'Recursive_ArrayAccess ' ) && phpversion () < 8 ) {
35
- include sprintf ( '%s/inc/libraries/wp-session/class-recursive-arrayaccess-7 .php ' , plugin_dir_path ( dirname ( __FILE__ ) ) );
36
- } elseif ( ! class_exists ( 'Recursive_ArrayAccess ' ) && phpversion () > 8 ) {
34
+ if ( ! class_exists ( 'Recursive_ArrayAccess ' ) && ( defined ( ' PHP_MAJOR_VERSION ' ) && PHP_MAJOR_VERSION >= 8 ) ) {
35
+ include sprintf ( '%s/inc/libraries/wp-session/class-recursive-arrayaccess.php ' , plugin_dir_path ( dirname ( __FILE__ ) ) );
36
+ } elseif ( ! class_exists ( 'Recursive_ArrayAccess ' ) && ( defined ( ' PHP_MAJOR_VERSION ' ) && PHP_MAJOR_VERSION < 8 ) ) {
37
37
include sprintf ( '%s/inc/libraries/wp-session/class-recursive-arrayaccess-7.php ' , plugin_dir_path ( dirname ( __FILE__ ) ) );
38
38
}
39
39
You can’t perform that action at this time.
0 commit comments