WordPress.org

Ready to get started?Download WordPress

Forums

Captions disappearing (3 posts)

  1. Brett
    Member
    Posted 1 year ago #

    Ever since I upgraded to 3.4.1 I've been having a problem with my image captions not appearing.

    If I insert the image while in Visual mode it looks OK, but if I then click on to HTML mode, the caption shortcodes have disappeared.

    I think I might be having other issues with shortcodes as well, but it's the captions that I want to work.

    I am using Thesis. I upgraded to 1.8.5 because I was lead to believe that this might help fix this issue, but there was no change.

    Any idea what might be killing my caption shortcodes?

    Thanks
    Brett

  2. Brett
    Member
    Posted 1 year ago #

    Hmmmm I found *an* answer in another thread, although not a very satisfactory one.

    In this thread: http://wordpress.org/support/topic/shortcodes-stop-working-after-341-upgrade

    There is a comment about removing a line from shortcodes.php

    I spent a lot of time looking in to it last night and it turned out to be this line of code in /wp-includes/shortcodes.php in the shortcode_parse_atts() function:

    $text = preg_replace("/[\x{00a0}\x{200b}]+/u", " ", $text);

    I did this - commented out this code. And it seems to have fixed the problem. This is a very undesirable situation though - changing core functionality.

    What's up with this?

    Thanks
    Brett

  3. dmiyares
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic