Changeset 2642104
- Timestamp:
- 12/09/2021 09:31:38 PM (4 years ago)
- Location:
- wp-lozad/trunk
- Files:
-
- 5 edited
-
classes/ContentProcessing.php (modified) (3 diffs)
-
classes/FrontPageProcessing.php (modified) (1 diff)
-
classes/settings/AdminSettingsPage.php (modified) (1 diff)
-
lozad.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-lozad/trunk/classes/ContentProcessing.php
r2580247 r2642104 96 96 continue; 97 97 } 98 if (strripos($replaceHTML, " {$imageBaseAttr}=") === false) {98 if (strripos($replaceHTML, " $imageBaseAttr=") === false) { 99 99 $replacement = sprintf('<img %s="%s"', $imageBaseAttr, $imageBaseAttrValue); 100 100 $replaceHTML = preg_replace('/<img/is', $replacement, $replaceHTML); … … 267 267 $classes = explode(',', $this->pluginOptions[SettingsConstants::SETTING_SKIPPED_CLASSES_STRING]); 268 268 foreach ($classes as $class) { 269 array_push($skippedClasses, trim($class));269 $skippedClasses[] = trim($class); 270 270 } 271 271 } … … 292 292 private function pushArrays($search, $replace) 293 293 { 294 array_push($this->search, $search);295 array_push($this->replace, $replace);294 $this->search[] = $search; 295 $this->replace[] = $replace; 296 296 } 297 297 } -
wp-lozad/trunk/classes/FrontPageProcessing.php
r2606195 r2642104 63 63 private function getPluginOptionsValue($option) 64 64 { 65 return get_option(SettingsConstants::PAGE_SETTING_OPTION_NAME)[$option] ?? null; 65 $val = get_option(SettingsConstants::PAGE_SETTING_OPTION_NAME); 66 return isset($val[$option]) ? $val[$option] : null; 66 67 } 67 68 } -
wp-lozad/trunk/classes/settings/AdminSettingsPage.php
r2602929 r2642104 91 91 $optionName = $args['name']; 92 92 $value = get_option(SettingsConstants::PAGE_SETTING_OPTION_NAME); 93 $value = $value[$optionName] ??null;93 $value = isset($value[$optionName]) ? $value[$optionName] : null; 94 94 $optionConfig = $args['optionConf']; 95 95 $formOptionName = SettingsConstants::PAGE_SETTING_OPTION_NAME . '[' . $optionName . ']'; -
wp-lozad/trunk/lozad.php
r2606195 r2642104 4 4 Description: lazy loading of images by baroda algorithm 5 5 Author: Evgeniy Kozenok 6 Version: 1.5. 16 Version: 1.5.2 7 7 */ 8 8 -
wp-lozad/trunk/readme.txt
r2606195 r2642104 4 4 Requires at least: 5.0 5 5 Tested up to: 5.8 6 Stable tag: 1.5. 16 Stable tag: 1.5.2 7 7 License: GPL2 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 24 24 25 25 == Changelog == 26 = 1.5.2 = 27 * 2021-12-09: fix php 5 support 28 26 29 = 1.5.1 = 27 30 * 2021-09-28: fix template_redirect action hook
Note: See TracChangeset
for help on using the changeset viewer.