Changeset 2853495
- Timestamp:
- 01/24/2023 12:11:15 PM (3 years ago)
- Location:
- embedalbum-pro/trunk
- Files:
-
- 2 edited
-
embedalbum_pro.php (modified) (18 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
embedalbum-pro/trunk/embedalbum_pro.php
r2778751 r2853495 6 6 Author: EmbedSocial 7 7 Author URI: http://www.embedsocial.com 8 Version: 1.1.2 78 Version: 1.1.28 9 9 */ 10 10 defined( 'ABSPATH' ) or die; … … 26 26 } 27 27 28 private function sanitizeInput($key) { 29 return sanitize_key(trim($key)); 30 } 31 28 32 public function __construct() {} 29 33 … … 102 106 $out = ""; 103 107 if ($shortcodeId['id']) { 104 $shortcodeId['id'] = sanitize_text_field($shortcodeId['id']);108 $shortcodeId['id'] = $this->sanitizeInput($shortcodeId['id']); 105 109 $out .= "<div class='embedsocial-album' data-ref='{$shortcodeId['id']}'></div>"; 106 110 } … … 118 122 $out = ""; 119 123 if ($shortcodeId['id']) { 120 $shortcodeId['id'] = sanitize_text_field($shortcodeId['id']);124 $shortcodeId['id'] = $this->sanitizeInput($shortcodeId['id']); 121 125 $out .= "<div class='embedsocial-gallery' data-ref='{$shortcodeId['id']}'></div>"; 122 126 } … … 134 138 $out = ""; 135 139 if ($shortcodeId['id']) { 136 $shortcodeId['id'] = sanitize_text_field($shortcodeId['id']);140 $shortcodeId['id'] = $this->sanitizeInput($shortcodeId['id']); 137 141 $out .= "<div class='embedsocial-instagram' data-ref='{$shortcodeId['id']}'></div>"; 138 142 } … … 150 154 $out = ""; 151 155 if ($shortcodeId['id']) { 152 $shortcodeId['id'] = sanitize_text_field($shortcodeId['id']);156 $shortcodeId['id'] = $this->sanitizeInput($shortcodeId['id']); 153 157 $out .= "<div class='embedsocial-twitter' data-ref='{$shortcodeId['id']}'></div>"; 154 158 } … … 166 170 $out = ""; 167 171 if ($shortcodeId['id']) { 168 $shortcodeId['id'] = sanitize_text_field($shortcodeId['id']);172 $shortcodeId['id'] = $this->sanitizeInput($shortcodeId['id']); 169 173 $out .= "<div class='embedsocial-google-place' data-ref='{$shortcodeId['id']}'></div>"; 170 174 } … … 182 186 $out = ""; 183 187 if ($shortcodeId['id']) { 184 $shortcodeId['id'] = sanitize_text_field($shortcodeId['id']);188 $shortcodeId['id'] = $this->sanitizeInput($shortcodeId['id']); 185 189 $out .= "<div class='embedsocial-socialfeed' data-ref='{$shortcodeId['id']}'></div>"; 186 190 } … … 200 204 $out = "<div class='embedsocial-reviews' "; 201 205 if ($shortcodeId['id']) { 202 $shortcodeId['id'] = sanitize_text_field($shortcodeId['id']);206 $shortcodeId['id'] = $this->sanitizeInput($shortcodeId['id']); 203 207 $out .= " data-ref='{$shortcodeId['id']}' "; 204 208 205 209 if ($shortcodeId['tags']) { 210 $shortcodeId['tags'] = sanitize_text_field($shortcodeId['tags']); 206 211 $out .= " data-tags='{$shortcodeId['tags']}' "; 207 212 } … … 226 231 $out = ""; 227 232 if ($shortcodeId['id']) { 228 $shortcodeId['id'] = sanitize_text_field($shortcodeId['id']);233 $shortcodeId['id'] = $this->sanitizeInput($shortcodeId['id']); 229 234 $out .= "<div class='embedsocial-google-reviews' data-ref='{$shortcodeId['id']}'></div>"; 230 235 } … … 242 247 $out = ""; 243 248 if ($shortcodeId['id']) { 244 $shortcodeId['id'] = sanitize_text_field($shortcodeId['id']);249 $shortcodeId['id'] = $this->sanitizeInput($shortcodeId['id']); 245 250 $out .= "<div class='embedsocial-custom-reviews' data-ref='{$shortcodeId['id']}'></div>"; 246 251 } … … 258 263 $out = ""; 259 264 if ($shortcodeId['id']) { 260 $shortcodeId['id'] = sanitize_text_field($shortcodeId['id']);265 $shortcodeId['id'] = $this->sanitizeInput($shortcodeId['id']); 261 266 $out .= "<div class='embedsocial-stories' data-ref='{$shortcodeId['id']}'></div>"; 262 267 } … … 274 279 $out = ""; 275 280 if ($shortcodeId['id']) { 276 $shortcodeId['id'] = sanitize_text_field($shortcodeId['id']);281 $shortcodeId['id'] = $this->sanitizeInput($shortcodeId['id']); 277 282 $out .= "<div class='embedsocial-stories-popup' data-ref='{$shortcodeId['id']}'></div>"; 278 283 } … … 290 295 $out = ""; 291 296 if ($shortcodeId['id']) { 292 $shortcodeId['id'] = sanitize_text_field($shortcodeId['id']);297 $shortcodeId['id'] = $this->sanitizeInput($shortcodeId['id']); 293 298 $out .= "<div class='embedsocial-story-gallery' data-ref='{$shortcodeId['id']}'></div>"; 294 299 } … … 305 310 $out = ""; 306 311 if ($shortcodeId['id']) { 307 $shortcodeId['id'] = sanitize_text_field($shortcodeId['id']);312 $shortcodeId['id'] = $this->sanitizeInput($shortcodeId['id']); 308 313 $out .= "<div class='embedsocial-hashtag' data-ref='{$shortcodeId['id']}'></div>"; 309 314 } … … 336 341 $out = ""; 337 342 if ($params['id']) { 338 $params['id'] = sanitize_ text_field($params['id']);343 $params['id'] = sanitize_key($params['id']); 339 344 $key = $params['id'] . '_schema'; 340 345 $group = 'embedsocial'; … … 435 440 $out = ""; 436 441 if ($shortcodeId['id']) { 437 $shortcodeId['id'] = sanitize_text_field($shortcodeId['id']);442 $shortcodeId['id'] = $this->sanitizeInput($shortcodeId['id']); 438 443 $out = "<div class='reviews-badges'><img src='https://embedsocial.com/api/reviews_badges/{$shortcodeId['style']}/{$shortcodeId['id']}'/></div>"; 439 444 } … … 449 454 $out = ""; 450 455 if ($shortcodeId['id']) { 451 $shortcodeId['id'] = sanitize_text_field($shortcodeId['id']);456 $shortcodeId['id'] = $this->sanitizeInput($shortcodeId['id']); 452 457 $out = "<iframe src='https://embedsocial.com/api/reviews_source_badges_custom/{$shortcodeId['id']}' scrolling='no' style='width: 300px; height: 55px; border: 0px; overflow: hidden;' /></iframe>"; 453 458 } -
embedalbum-pro/trunk/readme.txt
r2778751 r2853495 5 5 Requires at least: 4.0 6 6 Tested up to: 6.0 7 Stable tag: 1.1.2 77 Stable tag: 1.1.28 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.