PluginProbe
Filter Everything — WordPress & WooCommerce Filters / 1.9.7
Filter Everything — WordPress & WooCommerce Filters v1.9.7
1.9.7 1.9.6 1.9.5 1.9.4 1.9.3 1.9.2.2 1.9.2.1 trunk 1.2.1 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 1.4.1 1.4.4 1.4.5 1.4.8 1.4.9 1.5.0 1.5.1 1.6.0 1.6.1 1.6.2 All 52 releases
← All changes | src/wpc-compat.php +9 -2 1.5.11.9.7 View file →
@@ -1,8 +1,8 @@
1 1 <?php
2 2
3 -if ( ! defined('WPINC') ) {
4 - wp_die();
3 +if ( ! defined('ABSPATH') ) {
4 + exit;
5 5 }
6 6
7 7 if( ! function_exists('mb_strpos') ){
8 8 function mb_strpos( $haystack, $needle, $offset = 0, $encoding = null )
@@ -63,6 +63,13 @@
63 63
64 64 if( !function_exists('array_key_last') ) {
65 65 function array_key_last(array $array) {
66 66 if( !empty($array) ) return key(array_slice($array, -1, 1, true));
67 + }
68 +}
69 +
70 +if( ! function_exists('is_login') ) {
71 + function is_login()
72 + {
73 + return false !== stripos( wp_login_url(), $_SERVER['SCRIPT_NAME'] );
67 74 }
68 75 }