1,489 reputation
1030
bio website tomauger.com
location Toronto, Canada
age
visits member for 2 years, 3 months
seen Jun 11 at 16:52
stats profile views 492

WordPress developer. Always learning. Hoping to contribute.


Jun
5
comment Multisite with a single, shared custom post type, while retaining site URL
I've already been there, and that's why I created this question specifically. Thanks for the comment though.
May
28
comment How to obfuscate theme directory URLs
Thanks @Toscho. I realize that my original question was a bit silly, considering that WordPress exposes the theme directory and URI in so many other ways. I really appreciate your link to your other post on Endpoints. Lots to learn there!
May
22
comment How it is possible to use taxonomies on attachments?
Frank, don't forget that for attachment taxonomies, you should probably set update_count_callback to _update_generic_term_count. See updated Codex entry for why: codex.wordpress.org/Function_Reference/…
May
22
comment What is 'term_group' for 'order_by' in get_terms()?
The bottom line is... don't use it, as it's not currently supported and term aliasing is neither currently supported either, nor is it fully thought through and has a bunch of nasty pitfalls to boot. Codex updated.
May
17
comment Run an action only when Widget actually instantiated (not just registered)
@Rarst, a valid point, and one I'll be sure to keep in mind. In this particular case, I think it makes complete sense to tie the metaboxes in the Edit Post page to the presence of the Widget.
May
16
comment How to obfuscate theme directory URLs
I'm sorry Toscho, I should have been more clear in my OP. Obviously I know about get_template_directory_uri() etc. But that will spit out mysite.com/wp-content/themes/mytheme which is not what I want. Maybe I need to rewrite my OP to be more clear.
Apr
25
comment WP_Query can't exclude more than 1 author?
I don't think this is a good solution, because it completely short-circuits all of the business logic and brains within WP_Query. You're much better using the 'posts_where' filter and appending to the existing WHERE clause (once you do the appropriate checking to be sure you're modifying only those queries you're interested in modifying). Your solution works, but is missing out on any of the "brains" that WordPress already provides. Sticking with filters is usually a much better bet.
Apr
25
comment WP_Query can't exclude more than 1 author?
Sadly, this will not work for a number of reasons 1. WP_Query->set() only takes 2 arguments - it will completely ignore the 3rd and 4th arguments; you probably meant $query->set( 'author', '-2, -3, -4' );, 2. however that will not work either based on a limitation on how the author query variable is currently being handled in core. Follow (and add your cc) to this bug/enhancement request: core.trac.wordpress.org/ticket/16854
Apr
22
comment Trying to create a table/list of my EventBrite course listings
Too bad this question was closed. I have exactly the same requirements. Arguably, this is less of a WordPress issue and more of an Eventbrite API issue.
Apr
15
comment Pre-install widgets in WP-Admin
@RobMyrick the best thing of course is just to move the widget out of the sidebar and into the "inactive widgets" section. That way you don't lose any of the configuration data - you just "hide" the widget from being seen.
Apr
11
comment Using the on-board image editor for featured images: edits are not being used
Thanks for circling back on this, Jer. Sigh. Maybe we push for this in 3.7
Apr
5
comment Advice on naming files for a plugin
Yeah, I've often wondered why they recommend hyphens instead of underscores for file names.
Dec
21
comment After Installing APC Object Cache Backend transients stopped working
APC Version 3.1.9; PHP Version 5.3.5
Dec
10
comment After Installing APC Object Cache Backend transients stopped working
Thanks @meeble for the update. It's a little hard for me to be as proactive as I'd like to be because it's on a production server where we have had to turn off the cache as a result, and I'm leery to turn it back on. If there is a fix, please come back and post it here so I can close out this thread!
Dec
3
comment How do you allow plugins to be updated using the GUI without breaking your subversion repository?
Thanks Otto! I've accepted this answer as the most complete. The bounty got mistakenly awarded to the wrong answer (and an incomplete one at that), and there's no way to undo it. Should make that other user happy though - I daresay you hardly need the additional rep.
Nov
30
comment Is there a WP Way of getting a filehandle?
Haha, thanks Chris - this is a great writeup for people interested in learning about WP_Filesystem usage! But I'm not sure you have addressed my concern about getting the resource handle to the file. From what I can see, get_contents() returns the file as a string, not the filehandle resources that I need for my external library. If we look at, for example, the Direct implementation simply uses PHP's file_get_contents( $file ), which returns the entire file's contents as a string, but does not give you the filehandle resource. Unless I'm mistaken.
Nov
29
comment How do you allow plugins to be updated using the GUI without breaking your subversion repository?
@bungeshea Take a look at Otto's answer wordpress.stackexchange.com/a/74122/3687. Since 1.7 Subversion DOES NOT put a .svn in every directory of your working copy.
Nov
29
comment How do you allow plugins to be updated using the GUI without breaking your subversion repository?
Excellent suggestion, Ralf! I wonder whether the filesystem API couldn't handle some of the things shell_exec() was attempting to accomplish...
Nov
28
comment How do you allow plugins to be updated using the GUI without breaking your subversion repository?
Hey @Otto, thanks for the detailed writeup. I'm in the unfortunate situation of having inherited a Linux server without a lot of knowledge about server administration - this explains my out of date Subversion (and probably a host of other things). I'll read the literature and figure out how to upgrade it, right soon! I think it might be interesting to look into writing a plugin that allows tighter integration of the WP auto-updater and various version control systems, such that the updater was a notifier, and the actual update happens through the VC system. Maybe someday I'll have the time!
Nov
27
comment How do you allow plugins to be updated using the GUI without breaking your subversion repository?
I still don't think @Ashfame's solution is universal. Some plugins delete files, others add files. In those circumstances, more work is to be done. In between his steps, there should be at least an svn st and svn add and possibly svn rm to handle those circumstances. Probably an svn st | grep '^\?' | awk '{print $2}' | xargs svn add etc...