Code Patch
-
Hello,
We are using your plugin for our WordPress website, but we had to tweak it a bit for our purposes. In doing so, I made some improvements to the code which you might be interested in.
- Changed the order of some of the checks to improve performance.
- Used “return” statements to reduce the amount of code indentation.
- Used booleans instead of 0/1
Patch: https://www.dropbox.com/s/5htsxhfqntnipmc/addfunc-mobile-detect.php.patch?dl=0
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Code Patch’ is closed to new replies.