updated plugin Connect Matomo version 1.1.9
This commit is contained in:
@ -21,7 +21,7 @@ class Settings extends \WP_Piwik\Admin {
|
||||
return;
|
||||
}
|
||||
if ( ! empty( $_GET['clear'] ) && check_admin_referer() ) {
|
||||
$this->clear( 2 === $_GET['clear'] );
|
||||
$this->clear( 2 === (int) $_GET['clear'] );
|
||||
self::$wp_piwik->reset_request();
|
||||
$page = isset( $_GET['page'] ) ? sanitize_key( wp_unslash( $_GET['page'] ) ) : '';
|
||||
echo '<form method="post" action="?page=' . esc_attr( $page ) . '"><input type="submit" value="' . esc_attr__( 'Reload', 'wp-piwik' ) . '" /></form>';
|
||||
@ -1158,11 +1158,11 @@ class Settings extends \WP_Piwik\Admin {
|
||||
$GLOBALS ['wp-piwik_debug'] = true;
|
||||
$id = \WP_Piwik\Request::register( 'API.getPiwikVersion', array() );
|
||||
echo "\n\n";
|
||||
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_dump
|
||||
var_dump( self::$wp_piwik->request( $id ) );
|
||||
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_export
|
||||
echo esc_textarea( var_export( self::$wp_piwik->request( $id ), true ) );
|
||||
echo "\n";
|
||||
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_dump
|
||||
var_dump( self::$wp_piwik->request( $id, true ) );
|
||||
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_export
|
||||
echo esc_textarea( var_export( self::$wp_piwik->request( $id, true ), true ) );
|
||||
echo "\n";
|
||||
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
|
||||
$GLOBALS ['wp-piwik_debug'] = false;
|
||||
@ -1173,11 +1173,11 @@ class Settings extends \WP_Piwik\Admin {
|
||||
$GLOBALS ['wp-piwik_debug'] = true;
|
||||
$id = \WP_Piwik\Request::register( 'SitesManager.getSitesWithAtLeastViewAccess', array() );
|
||||
echo "\n\n";
|
||||
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_dump
|
||||
var_dump( self::$wp_piwik->request( $id ) );
|
||||
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_export
|
||||
echo esc_textarea( var_export( self::$wp_piwik->request( $id ), true ) );
|
||||
echo "\n";
|
||||
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_dump
|
||||
var_dump( self::$wp_piwik->request( $id, true ) );
|
||||
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_export
|
||||
echo esc_textarea( var_export( self::$wp_piwik->request( $id, true ), true ) );
|
||||
echo "\n";
|
||||
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
|
||||
$GLOBALS ['wp-piwik_debug'] = false;
|
||||
@ -1193,15 +1193,15 @@ class Settings extends \WP_Piwik\Admin {
|
||||
)
|
||||
);
|
||||
echo "\n\n";
|
||||
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_dump
|
||||
var_dump( self::$wp_piwik->request( $id ) );
|
||||
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_export
|
||||
echo esc_textarea( var_export( self::$wp_piwik->request( $id ), true ) );
|
||||
echo "\n";
|
||||
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_dump
|
||||
var_dump( self::$wp_piwik->request( $id, true ) );
|
||||
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_export
|
||||
echo esc_textarea( var_export( self::$wp_piwik->request( $id, true ), true ) );
|
||||
echo "\n";
|
||||
echo "\n\n";
|
||||
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_dump
|
||||
var_dump( self::$settings->get_debug_data() );
|
||||
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_export
|
||||
echo esc_textarea( var_export( self::$settings->get_debug_data(), true ) );
|
||||
echo '`';
|
||||
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
|
||||
$GLOBALS ['wp-piwik_debug'] = false;
|
||||
|
||||
Reference in New Issue
Block a user