PluginProbe
Property Hive / 2.3.1
Property Hive v2.3.1
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/class-ph-yoast-seo.php +4 -2 2.2.52.3.1 View file →
@@ -12,8 +12,9 @@
12 12 * @package PropertyHive/Classes/
13 13 * @category Class
14 14 * @author PropertyHive
15 15 */
16 +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- Preserve the existing public PH_Yoast_SEO class name for plugin and extension compatibility.
16 17 class PH_Yoast_SEO {
17 18
18 19 /** @var PH_Yoast_SEO The single instance of the class */
19 20 protected static $_instance = null;
@@ -39,9 +40,9 @@
39 40 $screen = get_current_screen();
40 41
41 42 if ( in_array( $screen->id, array( 'property' ) ) )
42 43 {
43 - wp_enqueue_script( 'propertyhive-yoast', PH()->plugin_url() . '/assets/js/admin/yoast.js', array(), PH_VERSION );
44 + wp_enqueue_script( 'propertyhive-yoast', PH()->plugin_url() . '/assets/js/admin/yoast.js', array( 'jquery' ), PH_VERSION, true );
44 45 }
45 46 }
46 47
47 48 public static function yoast_schema_webpage_type( $type )
@@ -81,9 +82,9 @@
81 82
82 83 // Core listing bits
83 84 $department = $property->_department;
84 85
85 - $data['datePosted'] = date("Y-m-d\TH:i:s", strtotime($property->_on_market_change_date)) . "+00:00";
86 + $data['datePosted'] = gmdate("Y-m-d\TH:i:s", strtotime($property->_on_market_change_date)) . "+00:00";
86 87
87 88 // Attach an Offer (price, currency, availability) that points at the Residence
88 89 if ( $department == 'residential-sales' || ph_get_custom_department_based_on($department) == 'residential-sales' )
89 90 {
@@ -272,8 +273,9 @@
272 273 return get_posts(array(
273 274 'fields' => 'ids',
274 275 'posts_per_page' => -1,
275 276 'post_type' => 'property',
277 + // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query -- Sitemap exclusions require all property IDs explicitly marked off-market in the existing metadata schema; preserve the complete exclusion list and status semantics.
276 278 'meta_query' => array(
277 279 array(
278 280 'key' => '_on_market',
279 281 'value' => '',