Paul Vickery
Forum Replies Created
-
Forum: Plugins
In reply to: [PHP Shortcode] PHP Shortcode messes up formatting – a fixSince posting this, I have discovered that on some (older) versions of PHP this results in all shortcode handlers being removed.
To fix this, and make it work for all versions, replace the line:
remove_all_shortcodes();with:
// (NB: don't call remove_all_shortcodes as that set the variable to array(), // and it seems that on some older versions of PHP the array elements are not // copied but referenced and so clearing means that we lose them in our saved copy. // It's not known exactly which versions are relevant, but clearing the array // break this code in 5.2.6 and doesn't in 5.2.17.) unset($shortcode_tags);Forum: Plugins
In reply to: [PHP Shortcode] PHP Shortcode Breaks other ShortcodesHi,
I have just posted a fix which may help you. See my post at http://wordpress.org/support/topic/php-shortcode-messes-up-formatting-a-fix
Paul.
Forum: Plugins
In reply to: Redirection plugin and regular expressionsI think your problem could be that you are trying to match “^oldsite/(.*)” rather than “^/oldsite/(.*)”. I don’t bother using ^ in my matches though.
Also, you may find it useful to include the actual old page in the new url as a query string, as you’ve tagged it, something like:
You can then see your redirections in Google analytics etc.
So try:
Source: ^/oldsite/(.*) Target: http://mydomain.com/?redir=$1I found a really nice regex cheat sheet the other day at http://www.addedbytes.com/cheat-sheets/regular-expressions-cheat-sheet/ so it might be worth you printing that out, and experimenting!
Forum: Plugins
In reply to: [Plugin: Register Plus Redux] Hidden Fields Don't WorkI changed the code to work around this problem. In register-plus-redux.php at line 2156, I replaced the condition with just a test for true:
// BUG: hidden fields don't get saved to the database, so replace the following condition // if ( current_user_can("edit_users") || !empty($v["show_on_profile"]) ) { if ( true ) {It now correctly adds hidden fields to the database.