Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #18375, comment 32


Ignore:
Timestamp:
10/01/2016 10:16:34 PM (9 years ago)
Author:
Mte90
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18375, comment 32

    initial v1  
    66> or a filter via a function callback?
    77
    8 Yes, actually the patch use `page-attributes` as term for that function.
     8Edit: my fault the right code to use it:
     9
     10{{{
     11function wpcodex_add_page_attributes_support_for_posts() {
     12        add_post_type_support( 'post', 'page-attributes' );
     13}
     14add_action( 'init', 'wpcodex_add_page_attributes_support_for_posts' );
     15}}}
     16
     17That generate an error on that patch: Notice:  Undefined property: stdClass::$attributes in /srv/www/wordpress-develop/src/wp-admin/edit-form-advanced.php on line 263