311 reputation
39
bio website twitter.com/julien_c
location
age
visits member for 3 years, 7 months
seen Jan 8 at 17:17

Mar
6
comment In the Wordpress admin, how can I find out which page (themes.php, widgets.php, etc.) I'm on?
I meant admin_head works. For some reason, admin_menu does not seem to work. Thanks!
Mar
6
comment In the Wordpress admin, how can I find out which page (themes.php, widgets.php, etc.) I'm on?
Which action do you hook it to? I tried hooking it up to admin_init, but apparently global $current_screen; is still unset at that point.
Mar
6
comment In the Wordpress admin, how can I find out which page (themes.php, widgets.php, etc.) I'm on?
I was calling it up in a theme's functions.php file, so I guess that's too early. I will try and add that to a later action.
Mar
6
comment In the Wordpress admin, how can I find out which page (themes.php, widgets.php, etc.) I'm on?
Weird... get_current_screen() is reported as undefined. Do I have to declare a global variable into scope, or anything else?
Mar
6
asked In the Wordpress admin, how can I find out which page (themes.php, widgets.php, etc.) I'm on?
Mar
6
comment What's the best action to use when you want to do something only once per theme setup?
I think setup_theme is run on every page views.
Feb
2
awarded  Supporter
Jan
12
accepted Why is WordPress' installer “phoning home” during the install script?
Jan
12
comment How to use one git (github) repository for version control for multiple themes
I don't think branches would be relevant here. Why don't you just use subfolders?
Jan
10
awarded  Teacher
Jan
10
answered Why is WordPress' installer “phoning home” during the install script?
Jan
10
asked Why is WordPress' installer “phoning home” during the install script?
Oct
30
awarded  Student
Apr
22
awarded  Scholar
Apr
22
accepted Is sanitize_title_with_dashes formatting function too liberal (in terms of accepted characters)?
Apr
22
comment Is sanitize_title_with_dashes formatting function too liberal (in terms of accepted characters)?
Plus, the function's documentation is just plain wrong: Limits the output to alphanumeric characters, underscore (_) and dash (-). Whitespace becomes a dash.. I don't get it.
Apr
22
comment Is sanitize_title_with_dashes formatting function too liberal (in terms of accepted characters)?
Thanks! I just had a look at your plugin, indeed there are a lot of language-specific tweaks, though French's probably slightly easier in this respect ;) What seems strange to me, though, is that I've never seen a Wordpress-generated URL in the wild with °, , etc. characters in them. Do most Wordpress use a more restrictive plugin, then? Or do people just rewrite all their URLs by hand? Mostly, I just want to remove all characters that are not a-z0-9-` (like StackOverflow seems to be doing in their URLs too, incidentally). I'll guess I'll just end up rewriting my own funct., but it sucks
Apr
22
asked Is sanitize_title_with_dashes formatting function too liberal (in terms of accepted characters)?