PHP4-style constructors still work on PHP7, they are just been deprecated and they will trigger a Deprecated warning. What you can do is define a __construct method, even an empty one, so that the php4-constructor method won’t be called on a newly-created instance of the class. Change to:
Search the Wiki
Brew not working
In the terminal: brew update cd $(brew –prefix) && git fetch && git reset –hard origin/master
How to view the number of unique visitors to a page
As seen here: http://www.martinlugton.com/view-number-unique-visitors-page-set-pages-google-analytics/ You can see the number of unique visitors to your site as a whole in Google Analytics’ Audience report. But if you go to Behavior > Content Drilldown, to view a particular page of set of pages, you can only see “unique page views”. Unique page views is a different measure to Full Article…
Wildcard Find & Replace in Sublime Text
As seen here: https://www.kevinleary.net/wildcard-find-replace-sublime-text/ This should have been easier for me to understand, but regex still gives me headaches. For anyone wanting to run a search and replace in Sublime Text that contains wildcard values this can be used: [^<]+ For example, we could use the following search string to find a set of anchor links. Full Article…
Detect the WordPress login page
As seen here: https://stevegrunwell.com/blog/quick-tip-is_login_page-function-for-wordpress/ Add this function: Then you can use:
Clean a hacked WordPress website
Use the online RedLeg fileviewer to scan the website in question for malware, malicious redirects, malicious scripts and other bad stuff. Use the online deobfuscate javascript tool to deobfuscate javascript if scripts have been hidden. Some good practises to keep your website free from hacks: Update WordPress to the latest version Web-server hosting WordPress should Full Article…
Reset the Recommended File and Directory Permission of Bitnami WordPress Website on Linux
As seen on Code Channels. You have a WordPress website provisioned from Bitnami. Sometimes you may not be able to write or edit files in the WordPress directory, create new directories or edit files in the wp-content folder. The article introduces how to reset the recommended access permission of the WordPress files and directories. 1. Full Article…
Add a browser css selector to your html tag
See this great tool: https://github.com/crucifyer/css-browser-selector Demo page here: http://crucifyer.github.io/css-browser-selector/
Internet Explorer – Version specific css rules
Amazing article published here originally: http://keithclark.co.uk/articles/moving-ie-specific-css-into-media-blocks/media-tests/ Exclusively targeting IE browsers Style rules defined in the following blocks will only be applied in IE, other browsers will ignore them. Rule IE 6 IE 7 IE 8 IE 9 IE 10 @media screen\0 {…} No No Yes Yes Yes @media screen\9 {…} Yes Yes No No No @media Full Article…
Fix grey google maps
I found this issue with the Manutec store finder. This css fixed the issue returning maps back to their normal display.