Title: Daniram's Replies | WordPress.org

---

# Daniram

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Site Speed Slower after Update Today](https://wordpress.org/support/topic/site-speed-slower-after-update-today/)
 *  [Daniram](https://wordpress.org/support/users/daniram/)
 * (@daniram)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/site-speed-slower-after-update-today/#post-14112265)
 * In addition to my previous post..
 * In case you’re using any scripts optimization plugins (WP Rocket, Autoptimize,
   etc.) and your are facing CF7 (5.4) related console errors, you should exclude
   from defer the following scripts:
 *     ```
       /jquery-?[0-9.]*(.min|.slim|.slim.min)?\.js
       /wp-includes/js/dist/vendor/wp-polyfill.min.js
       /wp-includes/js/dist/vendor/lodash.min.js
       /wp-includes/js/dist/api-fetch.min.js
       /wp-includes/js/dist/url.min.js
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Can’t not dequeue recaptcha scripts](https://wordpress.org/support/topic/cant-not-dequeue-recaptcha-scripts/)
 *  [Daniram](https://wordpress.org/support/users/daniram/)
 * (@daniram)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cant-not-dequeue-recaptcha-scripts/#post-14111458)
 * See here: [https://wordpress.org/support/topic/site-speed-slower-after-update-today/#post-14111454](https://wordpress.org/support/topic/site-speed-slower-after-update-today/#post-14111454)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Site Speed Slower after Update Today](https://wordpress.org/support/topic/site-speed-slower-after-update-today/)
 *  [Daniram](https://wordpress.org/support/users/daniram/)
 * (@daniram)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/site-speed-slower-after-update-today/#post-14111454)
 * After the 5.4 update, if you want to load CF7’s JS and CSS only on pages/posts
   where a CF7 shortcode is present you can put the following code in your child-
   theme’s functions.php (backup it first!).
 * Hope this helps.
 *     ```
       /**
        * Conditionally Load CF7's Scripts and Styles Only Where Needed
        */
   
       /**
        * Dequeue:
        * 
        * contact-form-7
        * wp-i18n
        * lodash
        * wp-url
        * wp-hooks
        * wp-api-fetch
        * wp-polyfill (To completely dequeue this, also dequeue recaptcha scripts - see below)
        */
       add_filter( 'wpcf7_load_js', '__return_false' );
   
       // Dequeue contact-form-7 CSS
       add_filter( 'wpcf7_load_css', '__return_false' );
   
       function conditionally_enqueue_cf7_js_css() {
   
       	// Dequeue wpcf7-recaptcha
           wp_dequeue_script('wpcf7-recaptcha');
   
       	// Dequeue google-recaptcha
       	wp_dequeue_script( 'google-recaptcha' );
   
           // If current post has cf7 shortcode, enqueue everything back
           global $post;
           if ( isset( $post->post_content ) AND has_shortcode( $post->post_content, 'contact-form-7' ) ) {
   
               if ( function_exists( 'wpcf7_enqueue_scripts' ) ) {
                   wpcf7_enqueue_scripts();
       			wp_enqueue_script('wpcf7-recaptcha');
                   wp_enqueue_script( 'google-recaptcha' );
               }
   
       		if ( function_exists( 'wpcf7_enqueue_styles' ) ) {
       			wpcf7_enqueue_styles();
       		}
           }
       }
       add_action( 'wp_enqueue_scripts', 'conditionally_enqueue_cf7_js_css', 20, 0 );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Memory size exhausted after updating to 14.9](https://wordpress.org/support/topic/memory-size-exhausted-after-updating-to-14-9/)
 *  Thread Starter [Daniram](https://wordpress.org/support/users/daniram/)
 * (@daniram)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/memory-size-exhausted-after-updating-to-14-9/#post-13364781)
 * [@onlyincebu](https://wordpress.org/support/users/onlyincebu/) Thanks for your
   reply.
 * ALL of installed plugins are up to date.
 * On my staging site I only have 3 plugins activated (please read my first post)
   and the theme is a custom (very basic) one which did not give any problems or(
   JS/jQuery) conflicts after WordPress 5.5 update.
 * Already checked Health Check & Troubleshooting plugin and nothing partcular is
   showing up there.
 * If I revert to Yoast SEO 14.8.1 everything is working back again normally (here
   again, please read my first post and screenshots…).
 * So the only variable here would seem to be Yoast SEO 14.9.
 * Also, I noticed that in Yoast SEO 14.9 you made some modification on how DB queries
   are performed. Might that be the culprit?
 * Thanks,
    Dan
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Memory size exhausted after updating to 14.9](https://wordpress.org/support/topic/memory-size-exhausted-after-updating-to-14-9/)
 *  Thread Starter [Daniram](https://wordpress.org/support/users/daniram/)
 * (@daniram)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/memory-size-exhausted-after-updating-to-14-9/#post-13364663)
 * [@devnihil](https://wordpress.org/support/users/devnihil/) Thanks for your reply.
 * Forgot to mention that installed WordPress version is 5.5.1. Sorry for that.
 * Here you can see two slow queries which shows up in Query Monitor after updating
   Yoast SEO to 14.9: [https://ibb.co/7zFbPk6](https://ibb.co/7zFbPk6).
 * Hope this helps,
    Dan
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] How to remove_action for ‘add_cookie_script’](https://wordpress.org/support/topic/how-to-remove_action-for-add_cookie_script/)
 *  Thread Starter [Daniram](https://wordpress.org/support/users/daniram/)
 * (@daniram)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/how-to-remove_action-for-add_cookie_script/#post-12496719)
 * Just wanted to add a quick note that I was able to `add_action` to `wp_head` 
   succesfully with the following code:
 *     ```
       add_action( 'wp', function() {
   
       	remove_action( 'wp_print_footer_scripts', array( 'PLL_Cache_Compat', 'add_cookie_script' ) ); /*NOT WORKING!*/
   
       	add_action( 'wp_head', array(new PLL_Cache_Compat, 'add_cookie_script' ) ); /*WORKING FINE*/
   
       });
       ```
   
 * But unfortunately I am not able to `remove_action` from `wp_print_footer_scripts`,
   is there a way to remove it?
 * Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Sucuri Security - Auditing, Malware Scanner and Security Hardening] Strange IP behaviour – IP changing after login](https://wordpress.org/support/topic/strange-ip-behaviour-ip-changing-after-login/)
 *  Thread Starter [Daniram](https://wordpress.org/support/users/daniram/)
 * (@daniram)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/strange-ip-behaviour-ip-changing-after-login/#post-6943841)
 * Thank you for your reply. This make sense to me. I verified at whatismyipaddress.
   com/proxy-check and ‘Header test’ resulted positive, so the client is using a
   proxy server.
 * I know which is the real IP address as I whitelisted it in the .htaccess.
    Wordfence
   notifies the real IP, while Sucuri the fake one (proxy).
 * One last question though. How is it possible that the fake IP address has access
   to the /wp-admin area which is protected by the .htaccess rule (see my previous
   post)?
 * Thanks again for you help.

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