Title: frenchesco's Replies | WordPress.org

---

# frenchesco

  [  ](https://wordpress.org/support/users/frenchesco/)

 *   [Profile](https://wordpress.org/support/users/frenchesco/)
 *   [Topics Started](https://wordpress.org/support/users/frenchesco/topics/)
 *   [Replies Created](https://wordpress.org/support/users/frenchesco/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/frenchesco/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/frenchesco/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/frenchesco/engagements/)
 *   [Favorites](https://wordpress.org/support/users/frenchesco/favorites/)

 Search replies:

## Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Seriously Simple Podcasting] redirect_old_feed hook breaks /feed/podcast](https://wordpress.org/support/topic/redirect_old_feed-hook-breaks-feed-podcast/)
 *  Thread Starter [frenchesco](https://wordpress.org/support/users/frenchesco/)
 * (@frenchesco)
 * [5 years ago](https://wordpress.org/support/topic/redirect_old_feed-hook-breaks-feed-podcast/#post-14320577)
 * Thanks. I think I’ve finally resolved the problem. It appears that I had the 
   following in my `.htaccess` file, after removing it `/feed/podcast` works correctly:
 *     ```
       # Podcast feed rewrite
       <IfModule mod_rewrite.c>
       RewriteEngine On
       Options +FollowSymlinks
       RewriteRule ^feed/podcast/?$ ?feed=podcast [NC]
       RewriteRule ^feed/?$ ?feed=podcast [NC]
       </IfModule>
       ```
   
 * This has been there for many years, but the update must have caused it to fail.
   It’s working now after I removed it. Thanks all for your assistance!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Seriously Simple Podcasting] redirect_old_feed hook breaks /feed/podcast](https://wordpress.org/support/topic/redirect_old_feed-hook-breaks-feed-podcast/)
 *  Thread Starter [frenchesco](https://wordpress.org/support/users/frenchesco/)
 * (@frenchesco)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/redirect_old_feed-hook-breaks-feed-podcast/#post-14311453)
 * Sorry about the delay responding back.
 * I do not have a custom `class-feed-controller.php`. I am using the following 
   theme now:
    [https://secondlinethemes.com/theme/tusant-wordpress-theme/](https://secondlinethemes.com/theme/tusant-wordpress-theme/)
   and was using a different theme previously and was having the same issue.
 * After playing around a bit more, I’m guessing there is some issue with the priority
   of the rules. If I change the priority of that line from `11` to `12` it fixes
   the issue as well.
 * `add_action( 'init', array( $this, 'redirect_old_feed' ), 11 );`
 * to:
 * `add_action( 'init', array( $this, 'redirect_old_feed' ), 12 );`
 * From the WordPress Docs:
    [https://developer.wordpress.org/reference/functions/add_action/](https://developer.wordpress.org/reference/functions/add_action/)
 * >  $priority
   >  (int) (Optional) Used to specify the order in which the functions
   > associated with a particular action are executed. Lower numbers correspond 
   > with earlier execution, and functions with the same priority are executed in
   > the order in which they were added to the action.
   > Default value: 10
 * By moving the code in release 1.20.8 it must have changed the priority of the
   hooks. As to why it doesn’t break in your site, I’m not sure, but there must 
   be some difference in our sites causing it not to trigger for you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Seriously Simple Podcasting] Feed Broken Since 1.20.8 Update](https://wordpress.org/support/topic/feed-broken-since-1-20-8-update/)
 *  Thread Starter [frenchesco](https://wordpress.org/support/users/frenchesco/)
 * (@frenchesco)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/feed-broken-since-1-20-8-update/#post-12498532)
 * Just tested again with version 1.20.12, this is still an issue.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Please help! Not able to get into dashboard or create a new post or anything!](https://wordpress.org/support/topic/please-help-not-able-to-get-into-dashboard-or-create-a-new-post-or-anything/)
 *  [frenchesco](https://wordpress.org/support/users/frenchesco/)
 * (@frenchesco)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/please-help-not-able-to-get-into-dashboard-or-create-a-new-post-or-anything/#post-3683948)
 * I was getting a similar error message when I updated Contact Form 7 to version
   3.4.2. Replacing the `add_shortcode` function in `wp-content/plugins/contact-
   form-7/includes/shortcodes.php` from this:
 *     ```
       function add_shortcode( $tag, $func, $has_name = false ) {
           if ( is_callable( $func ) )
               $this->shortcode_tags[$tag] = array(
                   'function' => $func,
                   'has_name' => (boolean) $has_name );
       }
       ```
   
 * …to this:
 *     ```
       function add_shortcode( $tag, $func, $has_name = false ) {
           if ( ! is_callable( $func ) )
               return;
   
           $tags = array_filter( array_unique( (array) $tag ) );
   
           foreach ( $tags as $tag ) {
               $this->shortcode_tags[$tag] = array(
                   'function' => $func,
                   'has_name' => (boolean) $has_name );
           }
       }
       ```
   
 * …seemed to work for me. I think it has something to do with a change in PHP 5.4
   and how it handles `$this`.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Warning: Illegal offset](https://wordpress.org/support/topic/warning-illegal-offset-1/)
 *  [frenchesco](https://wordpress.org/support/users/frenchesco/)
 * (@frenchesco)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/warning-illegal-offset-1/#post-3650663)
 * I was getting a similar error message when I updated Contact Form 7 to version
   3.4.2. Replacing the `add_shortcode` function in `wp-content/plugins/contact-
   form-7/includes/shortcodes.php` from this:
 *     ```
       function add_shortcode( $tag, $func, $has_name = false ) {
           if ( is_callable( $func ) )
               $this->shortcode_tags[$tag] = array(
                   'function' => $func,
                   'has_name' => (boolean) $has_name );
       }
       ```
   
 * …to this:
 *     ```
       function add_shortcode( $tag, $func, $has_name = false ) {
           if ( ! is_callable( $func ) )
               return;
   
           $tags = array_filter( array_unique( (array) $tag ) );
   
           foreach ( $tags as $tag ) {
               $this->shortcode_tags[$tag] = array(
                   'function' => $func,
                   'has_name' => (boolean) $has_name );
           }
       }
       ```
   
 * …seemed to work for me. I think it has something to do with a change in PHP 5.4
   and how it handles `$this`.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Update Broke SweetCaptcha](https://wordpress.org/support/topic/update-broke-sweetcaptcha/)
 *  [frenchesco](https://wordpress.org/support/users/frenchesco/)
 * (@frenchesco)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/update-broke-sweetcaptcha/#post-3643454)
 * I was getting a similar error message when I updated Contact Form 7 to version
   3.4.2. Replacing the `add_shortcode` function in `wp-content/plugins/contact-
   form-7/includes/shortcodes.php` from this:
 *     ```
       function add_shortcode( $tag, $func, $has_name = false ) {
           if ( is_callable( $func ) )
               $this->shortcode_tags[$tag] = array(
                   'function' => $func,
                   'has_name' => (boolean) $has_name );
       }
       ```
   
 * …to this:
 *     ```
       function add_shortcode( $tag, $func, $has_name = false ) {
           if ( ! is_callable( $func ) )
               return;
   
           $tags = array_filter( array_unique( (array) $tag ) );
   
           foreach ( $tags as $tag ) {
               $this->shortcode_tags[$tag] = array(
                   'function' => $func,
                   'has_name' => (boolean) $has_name );
           }
       }
       ```
   
 * …seemed to work for me. I think it has something to do with a change in PHP 5.4
   and how it handles `$this`.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Need help, have error(s) after moving site from another server](https://wordpress.org/support/topic/need-help-have-errors-after-moving-site-from-another-server/)
 *  [frenchesco](https://wordpress.org/support/users/frenchesco/)
 * (@frenchesco)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/need-help-have-errors-after-moving-site-from-another-server/#post-3807909)
 * I was getting a similar error message when I updated Contact Form 7 to version
   3.4.2. Replacing the `add_shortcode` function in `wp-content/plugins/contact-
   form-7/includes/shortcodes.php` from this:
 *     ```
       function add_shortcode( $tag, $func, $has_name = false ) {
           if ( is_callable( $func ) )
               $this->shortcode_tags[$tag] = array(
                   'function' => $func,
                   'has_name' => (boolean) $has_name );
       }
       ```
   
 * …to this:
 *     ```
       function add_shortcode( $tag, $func, $has_name = false ) {
           if ( ! is_callable( $func ) )
               return;
   
           $tags = array_filter( array_unique( (array) $tag ) );
   
           foreach ( $tags as $tag ) {
               $this->shortcode_tags[$tag] = array(
                   'function' => $func,
                   'has_name' => (boolean) $has_name );
           }
       }
       ```
   
 * …seemed to work for me. I think it has something to do with a change in PHP 5.4
   and how it handles `$this`.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ninja Forms - The Contact Form Builder That Grows With You] [Plugin: Ninja Forms Lite] Can I set E-Mail "From" Name](https://wordpress.org/support/topic/plugin-ninja-forms-lite-can-i-set-e-mail-from-name/)
 *  [frenchesco](https://wordpress.org/support/users/frenchesco/)
 * (@frenchesco)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-ninja-forms-lite-can-i-set-e-mail-from-name/#post-2566325)
 * It’s been a month since you posted Gizmo, so you’ve probably already figured 
   out how to do this, but if you haven’t yet, or for the benfit of others:
 * If you want to populate the From field with an email retrieved from the form,
   you can just add the following to **\includes\processing_functions.php** > `ninja_mail_form`
   function in the first `foreach` loop:
 *     ```
       if($email_from){
           $email_from = str_replace("[$label]", $val, $email_from);
       }
       ```
   
 * It needs to be underneath the following lines:
 *     ```
       $id = $post['id'];
       $label = $post['label'];
       $type = $post['type'];
       $val = $post['value'];
       $extra = $post['extra'];
       ```
   
 * Then in the admin area you can just set the **Email Sent From** field to **[Name]
   <[Email]>**. (You’ll need to replace [Name] and [Email] with whatever names you
   gave to these fields on your form).
 * Would be great if it could be implemented in a future version as I really don’t
   like having to modify plugins this way.

Viewing 8 replies - 1 through 8 (of 8 total)