• Resolved Chris Baldelomar

    (@cbaldelomar)


    In jetpack_author_bio(), the the_author_meta( ‘description’ ); is now returning paragraph text. This is causing <p> to be wrapped inside another <p>, breaking the HTML display in browsers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Richard Archambault

    (@richardmtl)

    Hi!

    This was caused by a change in WordPress 4.9:

    https://core.trac.www.ads-software.com/ticket/40040

    There’s some discussion there as it is a change that has caused problems and not just for Jetpack sites. For now, I suggest you install this plugin:

    https://www.ads-software.com/plugins/code-snippets/

    And then add this code to a snippet:

    remove_filter( 'get_the_author_description', 'wpautop' );

    That should fix it for now.

    Thread Starter Chris Baldelomar

    (@cbaldelomar)

    For a theme developer, would your recommend the remove_filter hack, or write my own author bio function. Really, all that needs to be done is for the <p> wrapper to be changed to a <div> element. Is WordPress planning on reversing this change?

    Plugin Contributor Richard Archambault

    (@richardmtl)

    For a theme developer, would your recommend the remove_filter hack, or write my own author bio function.

    I can’t decide that for you. The filter is probably easier and more future-proof if the change is reversed, but I can’t decide that for you.

    Is WordPress planning on reversing this change?

    As far as I know, currently not, but you can follow along that issue or possibly comment on it if you’d like.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Author Bio HTML is Bad After WordPress Update 4.9’ is closed to new replies.