WordPress.org

Forums

WordPress SEO by Yoast
Do not block the use of buffer in wp_footer hooks (4 posts)

  1. gabrielperezs
    Member
    Posted 1 year ago #

    In our latest development we need to keep in buffer (ob_start) all footer content. But after activating SEO WordPress stopped working.

    Making a small modification to the file: wordpress-seo/frontend/class-frontend.php

    @ 102:
    - Add_action ('wp_footer', array ($ this, 'flush_cache'));
    + add_action ('wp_footer', array ($ this, 'flush_cache'), -1);

    The problem is solved, and I think it does not interfere with the operation of WordPress SEO.

    So be free to use on wp_footer actions. Otherwise buffer are blocked by the SEO WordPress itself.

    Is it possible to add the "-1" in the original code? Thank you!

    http://wordpress.org/plugins/wordpress-seo/

  2. jrf
    Member
    Posted 1 year ago #

    You can send in a pull request to the GitHub repository for the plugin. No guarantees that it'll make it into the plugin though.

  3. gabrielperezs
    Member
    Posted 1 year ago #

  4. jrf
    Member
    Posted 1 year ago #

    Great, now let's wait and see ;-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress SEO by Yoast
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic