2,101 reputation
22048
bio website tomauger.com
location Toronto, Canada
age
visits member for 3 years, 9 months
seen Dec 18 at 19:42

WordPress developer. Always learning. Hoping to contribute.


Apr
5
answered How do I call wp_get_current_user() in a plugin when plugins are loaded before pluggable.php?
Mar
21
awarded  Notable Question
Mar
4
awarded  Yearling
Feb
26
awarded  Notable Question
Jan
27
awarded  Popular Question
Jan
23
awarded  Notable Question
Dec
21
comment After having installed APC Object Cache Backend transients stopped working
APC Version 3.1.9; PHP Version 5.3.5
Dec
19
suggested rejected edit on Using wp_enqueue_script on shortcode function handler
Dec
17
answered How do I enqueue styles/scripts on certain /wp-admin pages?
Dec
10
comment After having installed 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
7
awarded  Necromancer
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.
Dec
3
accepted How do you allow plugins to be updated using the GUI without breaking your subversion repository?
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
asked Is there a WP Way of getting a filehandle?
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...
Nov
27
comment How do you allow plugins to be updated using the GUI without breaking your subversion repository?
Thanks Otto for the clarification. I should apologize @Ashfame for my snarky tone.