Quantcast
Channel: WordPress.org Forums » [Autoptimize] Support
Viewing all articles
Browse latest Browse all 14052

BBIndikator on "[Plugin: Autoptimize] PHP Notice"

$
0
0

Hello Frank,

I'm not sure why it happens. Our PHP-Error.log was full with this message:

[30-Jun-2015 10:15:37 UTC] PHP Notice: Undefined property: autoptimizeStyles::$dontmove in path/to/plugins/autoptimize/classes/autoptimizeStyles.php on line 546

Fix is pretty simple, but is there a special reason why this property is undefined?

private function ismovable($tag) {
		if(isset($this->dontmove)){
			if (is_array($this->dontmove)) {
				foreach($this->dontmove as $match) {
					if(strpos($tag,$match)!==false) {
						//Matched something
						return false;
					}
				}
			}
		}
		//If we're here it's safe to move
		return true;
	}

Thank you and best regards,
Bruno

https://wordpress.org/plugins/autoptimize/


Viewing all articles
Browse latest Browse all 14052

Trending Articles