• Resolved bklang

    (@bklang)


    I’ve been using this fantastic plugin for several months. Today I upgraded WP to 3.6.1 as well as a few plugins. I noticed that I was no longer able to view Markdownified text when using the Publish or Preview features. I tried disabling all plugins, but to no avail. After some troubleshooting, I found that there was a check during the preview and publish feature looking to see whether the “revision” post type supported “markdown-osi”. I’m not sure if this check is new, but it was returning false for me. On my site, this caused my “Save” button presses to work normally (ie. the text was filtered and saved correctly) but if I used Preview, the Markdown text was getting removed.

    For me, the solution came by modifying plugins/markdown-on-save-improved/markdown-on-save.php around line 64, in the add_post_type_support() function like this:

    protected function add_post_type_support() {
                    add_post_type_support( 'post', 'markdown-osi' );
                    add_post_type_support( 'revision', 'markdown-osi' );
                    add_post_type_support( 'page', 'markdown-osi' );
            }

    The middle line, telling WP to support “markdown-osi” on “revision” post types, was the fix. I’m not certain this is the *correct* fix, but it does work for me.

    http://wordpress.org/plugins/markdown-on-save-improved/

Viewing 1 replies (of 1 total)
  • Plugin Author Matt Wiebe

    (@mattwiebe)

    Supporting on revision was a decent idea, but you really only want to support a revision if the post_type it is recording a revision of supports mosi. I’ve gone about things this way in v2.4.4, which I just published.

Viewing 1 replies (of 1 total)
  • The topic ‘Problems since upgrading to WordPress 3.6.1’ is closed to new replies.