Skip to content

Commit

Permalink
Fix Undefined array key "pk-post-seo_noncename"
Browse files Browse the repository at this point in the history
错误抑制符用法错误,
  • Loading branch information
miniwater committed Jan 30, 2024
1 parent 7185642 commit 26cf29d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/classes/meta/PuockAbsMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function getValue($post_id, $attr_id, $default = '')
public function baseSaveData($post_id)
{
$args = $this->instance_args;
if (!wp_verify_nonce(@$_POST[$args['id'] . '_noncename'], plugin_basename(__FILE__))) {
if (!wp_verify_nonce($_POST[$args['id'] . '_noncename'] ?? '', plugin_basename(__FILE__))) {
return $post_id;
}
$data = array();
Expand Down

0 comments on commit 26cf29d

Please sign in to comment.