Changeset 2780267 for goolytics-simple-google-analytics
- Timestamp:
- 09/05/2022 04:29:02 PM (4 years ago)
- Location:
- goolytics-simple-google-analytics/trunk
- Files:
-
- 5 edited
-
goolytics.php (modified) (4 diffs)
-
languages/goolytics-simple-google-analytics-de_DE.mo (modified) (previous)
-
languages/goolytics-simple-google-analytics-de_DE.po (modified) (5 diffs)
-
languages/goolytics-simple-google-analytics.pot (modified) (5 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
goolytics-simple-google-analytics/trunk/goolytics.php
r2579676 r2780267 2 2 /* 3 3 Plugin Name: Goolytics - Simple Google Analytics 4 Version: 1.1. 14 Version: 1.1.2 5 5 Plugin URI: https://wordpress.org/plugins/goolytics-simple-google-analytics/ 6 6 Description: A simple Google Analytics solution that works without slowing down your WordPress installation. … … 10 10 Domain Path: /languages 11 11 12 Copyright 2013-202 1Oliver Schlöbe (email : scripts@schloebe.de)12 Copyright 2013-2022 Oliver Schlöbe (email : scripts@schloebe.de) 13 13 14 14 This program is free software; you can redistribute it and/or modify … … 122 122 if ( !function_exists("add_action") ) return; 123 123 124 register_setting(self::_NAMESPACE, 'goolytics_web_property_id'); 124 register_setting(self::_NAMESPACE, 'goolytics_web_property_id', array( 125 'type' => 'string', 126 'sanitize_callback' => array(&$this, 'sanitize_web_property_id') 127 )); 125 128 register_setting(self::_NAMESPACE, 'goolytics_anonymize_ip'); 126 129 register_setting(self::_NAMESPACE, 'goolytics_usercentrics_support'); … … 244 247 } 245 248 249 250 /** 251 * Sanitize web_property_id input 252 * 253 * @since 1.1.2 254 * @author scripts@schloebe.de 255 */ 256 function sanitize_web_property_id( $input ) { 257 if( preg_match('/^[A-Z][A-Z0-9]?-[A-Z0-9]{4,10}(?:\-[1-9]\d{0,3})?$/', $input) ) { 258 return $input; 259 } else { 260 if( empty($input) ) { 261 add_settings_error( 262 'goolytics_web_property_id', 263 'goolytics_web_property_id', 264 __('The Google Analytics ID is empty.', 'goolytics-simple-google-analytics'), 265 'error' 266 ); 267 } else { 268 add_settings_error( 269 'goolytics_web_property_id', 270 'goolytics_web_property_id', 271 __('The Google Analytics ID you entered is invalid. Please check your input and try again.', 'goolytics-simple-google-analytics'), 272 'error' 273 ); 274 } 275 return ''; 276 } 277 } 278 246 279 } 247 280 -
goolytics-simple-google-analytics/trunk/languages/goolytics-simple-google-analytics-de_DE.po
r2185546 r2780267 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "POT-Creation-Date: 2019-11-04 11:21+0000\n" 6 "PO-Revision-Date: 20 19-11-04 12:42+0000\n"6 "PO-Revision-Date: 2022-09-02 19:16+0000\n" 7 7 "Last-Translator: Alphawolf <scripts@schloebe.de>\n" 8 "Language-Team: Deutsch\n"8 "Language-Team: German\n" 9 9 "Language: de_DE\n" 10 10 "Plural-Forms: nplurals=2; plural=n != 1;\n" … … 94 94 msgstr "Goolytics - Simple Google Analytics" 95 95 96 #: goolytics.php:24 396 #: goolytics.php:246 97 97 msgid "Goolytics - Simple Google Analytics requires at least WordPress 3.0!" 98 98 msgstr "Goolytics - Simple Google Analytics benötigt mindestens WordPress 3.0!" … … 126 126 msgstr "Oliver Schlöbe" 127 127 128 #: goolytics.php:21 5inc/options.php:11128 #: goolytics.php:218 inc/options.php:11 129 129 msgid "Settings" 130 130 msgstr "Einstellungen" … … 142 142 "werden sollen, indem das letzte Oktett der IP-Adresse entfernt wird." 143 143 144 #: goolytics.php:23 0144 #: goolytics.php:233 145 145 #, php-format 146 146 msgid "" … … 153 153 "werden. Danach ist alles bereit." 154 154 155 #: goolytics.php:264 156 msgid "The Google Analytics ID is empty." 157 msgstr "Die Google Analytics ID ist leer." 158 159 #: goolytics.php:271 160 msgid "" 161 "The Google Analytics ID you entered is invalid. Please check your input and " 162 "try again." 163 msgstr "" 164 "Die von Ihnen eingegebene Google Analytics-ID ist ungültig. Bitte überprüfen " 165 "Sie Ihre Eingabe und versuchen Sie es erneut." 166 155 167 #: inc/options.php:23 inc/options.php:38 156 168 msgid "Yes" -
goolytics-simple-google-analytics/trunk/languages/goolytics-simple-google-analytics.pot
r2185546 r2780267 4 4 "Project-Id-Version: Goolytics - Simple Google Analytics\n" 5 5 "Report-Msgid-Bugs-To: \n" 6 "POT-Creation-Date: 20 19-11-04 11:21+0000\n"6 "POT-Creation-Date: 2022-09-02 19:15+0000\n" 7 7 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 8 8 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 81 81 msgstr "" 82 82 83 #: goolytics.php:24 383 #: goolytics.php:246 84 84 msgid "Goolytics - Simple Google Analytics requires at least WordPress 3.0!" 85 85 msgstr "" … … 111 111 msgstr "" 112 112 113 #: goolytics.php:21 5inc/options.php:11113 #: goolytics.php:218 inc/options.php:11 114 114 msgid "Settings" 115 115 msgstr "" … … 125 125 msgstr "" 126 126 127 #: goolytics.php:23 0127 #: goolytics.php:233 128 128 #, php-format 129 129 msgid "" … … 131 131 "<a href=\"%s\">settings page</a>, finish setting up the plugin and you are " 132 132 "good to go!" 133 msgstr "" 134 135 #: goolytics.php:264 136 msgid "The Google Analytics ID is empty." 137 msgstr "" 138 139 #: goolytics.php:271 140 msgid "" 141 "The Google Analytics ID you entered is invalid. Please check your input and " 142 "try again." 133 143 msgstr "" 134 144 -
goolytics-simple-google-analytics/trunk/readme.txt
r2730943 r2780267 46 46 == Changelog == 47 47 48 = 1.1.2 = 49 * Fixed Admin+ Stored XSS vulnerability 50 48 51 = 1.1.1 = 49 52 * Localization preparations for translate.wordpress.org
Note: See TracChangeset
for help on using the changeset viewer.