Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #36801


Ignore:
Timestamp:
05/10/2016 08:29:09 AM (9 years ago)
Author:
swissspidy
Comment:

When i add (or edit) a post type MyVideos, it is good, if the <form> contained the class name

Why? The post type is already part of the <body>. For example, for the post post type it looks like this:

<body class="wp-admin wp-core-ui post-new-php post-type-post …">

IMHO the editor should not need to know about the post type (and probably can't the way things are set up now).

If you need to target the editor for a specific post type, you can use .post-type-<type> form

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36801

    • Property Keywords close added
    • Property Component changed from General to Editor
    • Property Summary changed from Add POST-TYPE into css CLASSNAME to Add post type to editor form class
  • Ticket #36801 – Description

    initial v1  
    1 typical source code of PAGE EDITOR (in dashboard), is like this:
     1typical source code of the editor in the admin is like this:
    22
    33{{{
     
    55}}}
    66
     7Suggestion:
    78
    8 REQUEST:
    9 when i add(or edit) a post type '''MyVideos''', it is good, if the FORM contained classname, like:
     9When i add (or edit) a post type '''MyVideos''', it is good, if the `<form>` contained the class name, like:
    1010
    1111{{{