WordPress.org

Forums

[resolved] custom post type post formats revert to "post" post type (8 posts)

  1. ChemicalSailor
    Member
    Posted 2 years ago #

    This seems to be a 3.6 bug. I have a custom post type defined which supports post formats, as does the normal posts post type. When selecting a new post format in custom post type with javascript disabled (under post-new.php) then the post type gets reverted to the default posts post type.

    Only an issue with javascript disabled (or when there is a javascript error). Just needs the url query argument adjusting.

    Please fix

  2. ChemicalSailor
    Member
    Posted 2 years ago #

    Also occurs under post.php, but sends you back to edit.php instead. Same cause.

  3. Only an issue with javascript disabled (or when there is a javascript error). Just needs the url query argument adjusting.

    You mean this error only happens when you disable JS?

  4. ChemicalSailor
    Member
    Posted 2 years ago #

    Yep, only occurs with JS disabled. Not an issue when JS is working because links are not followed. I only noticed the bug though because I had a JS error (something to do with my install), but could cause some unexpected behaviour.

    Basic issue: post format links should be ?post_type=custom&format=value but is just ?format=value

  5. I'm not entirely sure how big of a problem that is. I mean, there's a LOT about WordPress that fails when JS is disabled or broken (dragging and dropping widgets etc).

  6. ChemicalSailor
    Member
    Posted 2 years ago #

    True, but I think being redirected to a page you weren't expecting is a lot more of a problem than not being able to move a metabox around. Could be more of an issue if the user has already started entering post content, then changes format, gets redirected and loses unsaved changes (I take it that autosave doesn't work without JS too).

    If the assumption is going to be that JS needs to be working to use post formats UI, then the UI should either not use anchor tags, or have them point to an in page reference ie #format-gallery.

  7. Sergey Biryukov
    WordPress Dev
    Posted 2 years ago #

    Should be fixed in the latest nightly builds:
    http://core.trac.wordpress.org/changeset/24373

  8. trewknowledge
    Member
    Posted 2 years ago #

    That fixed it for me. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.