Notice: GP 1.3.04 will not display shortcodes in widgets

Home Forums Support Notice: GP 1.3.04 will not display shortcodes in widgets

Home Forums Support Notice: GP 1.3.04 will not display shortcodes in widgets

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #116963
    Tom
    Lead Developer
    Lead Developer

    GeneratePress 1.3.04 will no longer automatically display shortcodes in the “Text” widget.

    This is due to a rule on WordPress.org – they believe themes shouldn’t be able to make the decision to allow shortcodes in the Text widget.

    Therefore, I’ve had to remove the filter that does this for you.

    To prepare for this change, you can add the following line into your child theme functions.php file:

    add_filter( 'widget_text', 'do_shortcode' );

    Adding PHP: http://generatepress.com/knowledgebase/adding-php-functions/

    Kind of a funny rule, but we have to follow it regardless.

    Thanks for understanding! πŸ™‚

    #116969
    Tom
    Lead Developer
    Lead Developer

    I’ve added this piece of code to GP Premium now as well πŸ™‚

    #117188
    Ilse Turnbull

    For those of us who are clueless (raises hand) what does this mean? If I haven’t added any shortcodes to widgets do I need to worry about this?

    #117197
    Tom
    Lead Developer
    Lead Developer

    Nope – if you’re not using shortcodes in your Text widgets, you’re good to go πŸ™‚

    #117198
    Ilse Turnbull

    Thank you, Tom

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.