WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #16476, comment 2


Ignore:
Timestamp:
03/29/11 00:06:22 (3 years ago)
Author:
rofflox
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16476, comment 2

    v1 v2  
    44 
    551. Create a generic wp_getPost / wp_newPost / wp_deletePost / wp_editPost 
    6 2. The output of the functions should be more or less the same as in the default functions. E.g. title => post_title, postid => ID etc. 
     62. The output of the functions should be more or less the same as in the default functions. E.g. title => post_title, postid => ID etc. 
    773. For backwards compatibility: 
    88  a. Create all sub functions e.g. mw_getPost with link to the generic wp_getPost 
    99  a. Add an optional second parameter "mode" to format the output based on the calling function. E.g. mode = mw_getPost will format the output of the result array in a different way. 
    10104. Take an associative array instead of a numeric one as argument, so we could seamless add additional features in the future. Thats already WP standard. 
    11 5. For custom post types, we have to check for the registered capbilities. Unfortunaltey, they aren't mapped by default. This should also be added to the register_posttype function. e.g. 
     115. For custom post types, we have to check for the registered capabilities. Unfortunaltey, they aren't mapped by default. This should also be added to the register_posttype function. e.g. 
    1212 
    1313{{{