[wp-trac] [WordPress Trac] #17920: Unnecessary code

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 21 21:33:43 UTC 2012


#17920: Unnecessary code
-----------------------------+------------------------------
 Reporter:  nprasath002      |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  XML-RPC          |     Version:  3.2
 Severity:  minor            |  Resolution:
 Keywords:  has-patch close  |
-----------------------------+------------------------------

Comment (by markoheijnen):

 Now there is wp_getPost. I recommend using that instead of wp_getPage.
 That said I'm not sure how to use post_type_supports. There isn't one for
 categories, right?

 Weird thing is that we expect only categories and not tags or custom
 taxonomies. I think we should copy the stuff from _prepare_post to
 _prepare_page and that will solve the issue with a fallback for categories

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17920#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list