You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -51,6 +52,9 @@ public function insert( object $post, string $rule, string $ruletype, string $ru
51
52
'type' => $post->post_type,
52
53
'landmark' => $landmark,
53
54
'landmark_selector' => $landmark_selector,
55
+
'selector' => $selectors['selector'][0] ?? null,
56
+
'ancestry' => $selectors['ancestry'][0] ?? null,
57
+
'xpath' => $selectors['xpath'][0] ?? null,
54
58
'rule' => $rule,
55
59
'ruletype' => $ruletype,
56
60
'object' => esc_attr( $rule_obj ),
@@ -96,9 +100,14 @@ public function insert( object $post, string $rule, string $ruletype, string $ru
96
100
// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- Using direct query for adding data to database, caching not required for one time operation.
97
101
$wpdb->query(
98
102
$wpdb->prepare(
99
-
'UPDATE %i SET recordcheck = %d, ignre = %d WHERE siteid = %d and postid = %d and rule = %s and object = %s and type = %s',
103
+
'UPDATE %i SET recordcheck = %d, landmark = %s, landmark_selector = %s, selector = %s, ancestry = %s, xpath = %s, ignre = %d WHERE siteid = %d and postid = %d and rule = %s and object = %s and type = %s',
100
104
$table_name,
101
105
1,
106
+
$rule_data['landmark'],
107
+
$rule_data['landmark_selector'],
108
+
$rule_data['selector'],
109
+
$rule_data['ancestry'],
110
+
$rule_data['xpath'],
102
111
$rule_data['ignre'],
103
112
$rule_data['siteid'],
104
113
$rule_data['postid'],
@@ -134,6 +143,9 @@ public function insert( object $post, string $rule, string $ruletype, string $ru
0 commit comments