updated plugin Connect Matomo version 1.1.9

This commit is contained in:
2026-07-28 15:03:37 +00:00
committed by Gitium
parent a035558e8f
commit 75c7cb83fd
10 changed files with 49 additions and 34 deletions

View File

@ -55,7 +55,8 @@ class MetaBoxCustomVars extends \WP_Piwik\Template {
// Create key
$str_meta_key = 'wp-piwik_custom_' . $ary_names[ $j ] . $i;
// Get data
$str_meta_val = isset( $_POST[ $str_meta_key ] ) ? esc_html( $str_meta_key ) : '';
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
$str_meta_val = isset( $_POST[ $str_meta_key ] ) ? esc_html( wp_unslash( $_POST[ $str_meta_key ] ) ) : '';
// Get the meta value of the custom field key
$str_cur_val = get_post_meta( $int_id, $str_meta_key, true );
if ( $str_meta_val && '' === $str_cur_val ) {