Changes between Initial Version and Version 1 of Ticket #18375, comment 32
- Timestamp:
- 10/01/2016 10:16:34 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #18375, comment 32
initial v1 6 6 > or a filter via a function callback? 7 7 8 Yes, actually the patch use `page-attributes` as term for that function. 8 Edit: my fault the right code to use it: 9 10 {{{ 11 function wpcodex_add_page_attributes_support_for_posts() { 12 add_post_type_support( 'post', 'page-attributes' ); 13 } 14 add_action( 'init', 'wpcodex_add_page_attributes_support_for_posts' ); 15 }}} 16 17 That 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