| @@ -17,9 +17,11 @@ | ||
| 17 | 17 | * |
| 18 | 18 | * @access public |
| 19 | 19 | * @return bool |
| 20 | 20 | */ |
| 21 | +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound -- Legacy public global helper is_propertyhive; the established callable name is part of the plugin/extension API and must remain stable. | |
| 21 | 22 | function is_propertyhive() { |
| 23 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Existing public Property Hive extension hook is_propertyhive; changing the established name would detach installed callbacks. | |
| 22 | 24 | return apply_filters( 'is_propertyhive', ( is_search_results() || is_property() ) ? true : false ); |
| 23 | 25 | } |
| 24 | 26 | |
| 25 | 27 | if ( ! function_exists( 'is_search_results' ) ) { |
| @@ -29,8 +31,9 @@ | ||
| 29 | 31 | * |
| 30 | 32 | * @access public |
| 31 | 33 | * @return bool |
| 32 | 34 | */ |
| 35 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound -- Legacy public global helper is_search_results; the established callable name is part of the plugin/extension API and must remain stable. | |
| 33 | 36 | function is_search_results() { |
| 34 | 37 | return ( is_post_type_archive( 'property' ) || is_page( ph_get_page_id( 'search_results' ) ) ) ? true : false; |
| 35 | 38 | } |
| 36 | 39 | } |
| @@ -42,8 +45,9 @@ | ||
| 42 | 45 | * |
| 43 | 46 | * @access public |
| 44 | 47 | * @return bool |
| 45 | 48 | */ |
| 49 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound -- Legacy public global helper is_property; the established callable name is part of the plugin/extension API and must remain stable. | |
| 46 | 50 | function is_property() { |
| 47 | 51 | return is_singular( array( 'property' ) ); |
| 48 | 52 | } |
| 49 | 53 | } |
| @@ -55,8 +59,9 @@ | ||
| 55 | 59 | * |
| 56 | 60 | * @access public |
| 57 | 61 | * @return bool |
| 58 | 62 | */ |
| 63 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound -- Legacy public global helper is_ajax; the established callable name is part of the plugin/extension API and must remain stable. | |
| 59 | 64 | function is_ajax() { |
| 60 | 65 | return defined( 'DOING_AJAX' ); |
| 61 | 66 | } |
| 62 | 67 | } |