keycdn / cache-enabler

A lightweight caching plugin for WordPress that makes your website faster by generating static HTML files.
https://wordpress.org/plugins/cache-enabler/
123 stars 46 forks source link

update conditional statements #264

Closed coreykn closed 3 years ago

coreykn commented 3 years ago

Update conditional statements checking for a numeric user ID to be an elseif instead of a separate if statement. There is no reason to check this if the value was empty beforehand and set as the current user WP_User instance. This updates what was added in PR #247.

Update conditional statement in the directory object filter to be an elseif statement instead of an else statement. Using a ternary operator makes no sense here. This updates what was added in PR #252.