[wp-trac] [WordPress Trac] #32385: Adding Post Formats Support to Pages breaks the Preview Changes functionality

WordPress Trac noreply at wordpress.org
Thu May 28 12:35:55 UTC 2015


#32385: Adding Post Formats Support to Pages breaks the Preview Changes
functionality
--------------------------+------------------------
 Reporter:  bduclos       |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Post Formats  |     Version:  3.1
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |     Focuses:
--------------------------+------------------------
Changes (by chriscct7):

 * keywords:  close =>
 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 Duplicate of #20438.

 So this is actually a duplicate of
 https://core.trac.wordpress.org/ticket/20438

 Your code should be:


 {{{
 add_action( 'init', function() {
         add_post_type_support( 'page', 'post-formats' );
         register_taxonomy_for_object_type( 'post_format', 'page' );
 }, 11 );
 }}}

 as you have to register the taxonomy for the page object

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32385#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list