PluginProbe
Property Hive / 2.3.0
Property Hive v2.3.0
2.3.1 2.3.0 2.2.6 2.2.5 2.2.4 2.2.3 2.2.2 1.4.46 1.4.47 1.4.48 1.4.49 1.4.5 1.4.50 1.4.51 1.4.52 1.4.53 1.4.54 1.4.55 1.4.56 1.4.57 1.4.58 1.4.59 1.4.6 1.4.60 1.4.61 All 261 releases
← All changes | includes/admin/ph-admin-functions.php +5 -2 2.2.32.3.0 View file →
@@ -1,5 +1,8 @@
1 1 <?php
2 +// phpcs:set WordPress.Security.ValidatedSanitizedInput customSanitizingFunctions[] ph_clean
3 +// ph_clean() recursively sanitizes text; presence, shape and unslashing checks remain separate.
4 +
2 5 /**
3 6 * PropertyHive Admin Functions
4 7 *
5 8 * @author PropertyHive
@@ -14,11 +17,10 @@
14 17 * Get all PropertyHive screen ids
15 18 *
16 19 * @return array
17 20 */
21 +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound -- Legacy public global helper ph_get_screen_ids; the established callable name is part of the plugin/extension API and must remain stable.
18 22 function ph_get_screen_ids() {
19 - $ph_screen_id = sanitize_title( __( 'PropertyHive', 'propertyhive' ) );
20 -
21 23 return apply_filters( 'propertyhive_screen_ids', array(
22 24 'edit-property',
23 25 'property',
24 26 'edit-contact',
@@ -52,8 +54,9 @@
52 54 * @param string $page_content (default: '') Content for the new page
53 55 * @param int $post_parent (default: 0) Parent for the new page
54 56 * @return int page ID
55 57 */
58 +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound -- Legacy public global helper ph_create_page; the established callable name is part of the plugin/extension API and must remain stable.
56 59 function ph_create_page( $slug, $option = '', $page_title = '', $page_content = '', $post_parent = 0 ) {
57 60 global $wpdb;
58 61
59 62 /*$option_value = get_option( $option );