1,941 reputation
1721
bio website snippets.webaware.com.au
location Australia
age 48
visits member for 2 years, 7 months
seen 12 hours ago

Code must be clean.

Desk may be messy.

Fermenting makes it better.


May
24
awarded  Revival
Apr
1
awarded  Announcer
Jan
28
awarded  Revival
Dec
28
awarded  Announcer
Nov
30
awarded  Yearling
Oct
16
awarded  Announcer
Jul
19
comment can register_post_type() be safely called before init
For completeness, translations also should be loaded on init, because locale can be filtered and the effective locale can differ from whatever WP_LANG is set to in wp-config.php. Translations can actually be loaded before init, but might get the wrong locale. Which raises another interesting point, translations should be loaded before CPT are registered, and both should happen on init... :)
Jul
19
awarded  Scholar
Jul
19
comment can register_post_type() be safely called before init
Ah, locale and l10n, of course. Thanks!
Jul
19
accepted can register_post_type() be safely called before init
Jul
19
revised can register_post_type() be safely called before init
seems like I can use init after all, with a high enough priority...
Jul
19
asked can register_post_type() be safely called before init
May
22
awarded  Revival
Mar
7
comment Advanced Tax Query
And case is important (at least on WP bloody Engine -- no problem on Fedora+MariaDB). 'AND', not 'and'. grrrrr
Feb
3
comment Set Transient expiration
For a nice rundown on how transients are implemented (and why they may or may not be destroyed at any given time), read A Technical Transients Treatise on the WP Engine blog.
Feb
1
comment This webpage has a redirect loop issue with SSL page
Make sure you aren't caught by the SSL proxy problem. There's a test script in this plugin that will tell you if WordPress can detect SSL properly.
Jan
20
awarded  Constituent
Jan
15
comment Wordpress cache a menu with Transient API
"It should be noted that by caching the entire menu in a transient, you will lose it dynamic nature. " -- and not just stuff like CSS classes (current_item), but also the links themselves. Loading the site over HTTPS makes links start with HTTPS instead of HTTP; using a translation plugin like WPML can change the menu entirely, to translated pages; using a mobile domain with a mobile switcher plugin can change www. to m. or other mobile domain variant; etc.
Jan
13
awarded  Caucus
Dec
28
comment Problem with the position of SyntaxHighlighter Evolved javascript
I use SyntaxHighlighter Evolved on a few sites, and have not seen this behaviour. It must be something specific to your website.