Support » Plugin: Feature A Page Widget » Version 1.2.4 breaks the_exceprt filters

  • Resolved phrenq


    Had to roll back to the previous version, as 1.2.4 caused this line (elsewhere on the same page):

    apply_filters( ‘the_excerpt’, $post->post_excerpt );

    to dump this warning:

    Warning: call_user_func_array() []: First argument is expected to be a valid callback, ‘Array’ was given in /<snip>/wp-includes/plugin.php on line 173.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mark Root-Wiley


    Hi @phrenq. Thanks for reporting this issue.

    I can’t replicate that warning using Feature a Page Widget 1.2.4 and Twenty Twelve.

    If you could provide the following information, that may help me see if this is a problem with the plugin or something else:

    • Do I understand you correctly that the error you got was in another theme or plugin?
    • Can you post a longer excerpt of the code that actually has the error. (pastebin or gist)?
    • Did you update other plugins at the same time?

    Sorry for the delay — it took me a bit to narrow down the key steps to reproduce.

    You should be able to repro in Twenty Twelve, if you replace index.php with this file:

    I did this in a fresh test WordPress install, with no other plugins installed. The only content changes I made were to add some manual excerpts to the sample post and the sample page.

    They key points are:
    1. The sidebar with the Feature a Page Widget must be rendered before the loop.
    2. The apply_filters call should happen inside the loop.

    Hope that helps!

    Plugin Author Mark Root-Wiley


    Thanks for this, @phrenq. I’ll look into this and try to get a fix out sometime this week.

    Plugin Author Mark Root-Wiley


    Thanks for all your help on this, @phrenq. You’ve earned yourself a changelog shoutout 🙂

    I just pushed out version 1.2.5 that at least resolves the problem you helped me recreate on my test site. it rolls back a key change made in 1.2.4, so I suspect that 1.2.5 will work for you without problem.

    If you could, please let me know if you can safely upgrade. I’ll hold off on marking this as resolved until then.

    Glad I could help! 1.2.5 is looking fine on my end. Thanks for the useful plugin :).

    Plugin Author Mark Root-Wiley


    Great. Thanks again for your help. Marking this as resolved.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Version 1.2.4 breaks the_exceprt filters’ is closed to new replies.