| @@ -19,8 +19,9 @@ | ||
| 19 | 19 | * |
| 20 | 20 | * @param string $page |
| 21 | 21 | * @return int |
| 22 | 22 | */ |
| 23 | +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound -- Legacy public global helper ph_get_page_id; the established callable name is part of the plugin/extension API and must remain stable. | |
| 23 | 24 | function ph_get_page_id( $page ) { |
| 24 | 25 | |
| 25 | 26 | $page = apply_filters( 'propertyhive_get_' . $page . '_page_id', get_option('propertyhive_' . $page . '_page_id' ) ); |
| 26 | 27 | |
| @@ -32,8 +33,9 @@ | ||
| 32 | 33 | * |
| 33 | 34 | * @param array $menu_items |
| 34 | 35 | * @return array |
| 35 | 36 | */ |
| 37 | +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound -- Legacy public global helper ph_nav_menu_item_classes; the established callable name is part of the plugin/extension API and must remain stable. | |
| 36 | 38 | function ph_nav_menu_item_classes( $menu_items ) { |
| 37 | 39 | if ( ! is_propertyhive() ) { |
| 38 | 40 | return $menu_items; |
| 39 | 41 | } |
| @@ -71,8 +73,9 @@ | ||
| 71 | 73 | * |
| 72 | 74 | * @param string $pages |
| 73 | 75 | * @return string |
| 74 | 76 | */ |
| 77 | +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound -- Legacy public global helper ph_list_pages; the established callable name is part of the plugin/extension API and must remain stable. | |
| 75 | 78 | function ph_list_pages( $pages ) { |
| 76 | 79 | if ( is_propertyhive() ) { |
| 77 | 80 | // Remove current_page_parent class from any item. |
| 78 | 81 | $pages = str_replace( 'current_page_parent', '', $pages ); |