This requires the @wordpress/scripts package but I don’t have the time to get into that now.
Development
Connect PhpStorm to Local MySQL on Mac.
There’s some info out there about connecting to MySQL via socket using something called junixsocket. All the instructions were pretty straight forward but I continued to get an error, something about socket length or some such thing. Turns out we need a user with access via 127.0.0.1 so we can connect via port as opposed […]
Superscript ordinal date numbers with PHP
Only need to escape the superscript tag when formatting a date string. March 2nd, 2020 date(‘F j\<\s\u\p\>S\<\/\s\u\p\>, Y’)
Change Vim Cursor in Different Modes
To change the shape of the cursor in different modes, you can add the following into your .vimrc:
Swift – Convert json to plist
plutil -convert xml1 in.json -o out.plist xml1 – x-ray mike lima 1 From SO
Fix Redirect Loop After Genesis Upgrade
Add remove_action( ‘genesis_upgrade’, ‘genesis_upgrade_redirect’ ); to functions.php, reload admin without ?page=genesis-upgraded in URL, clear cache, re-save Genesis settings, remove added code.