Changeset 21598
- Timestamp:
- 08/23/2012 08:34:41 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r21597 r21598 400 400 * 401 401 * @param string $post_type A post type string, defaults to 'post'. 402 * @return object stdClassobject containing all the default post data as attributes402 * @return WP_Post Post object containing all the default post data as attributes 403 403 */ 404 404 function get_default_post_to_edit( $post_type = 'post', $create_in_db = false ) { … … 456 456 * @since 2.5.0 457 457 * 458 * @return object stdClassobject containing all the default post data as attributes458 * @return WP_Post Post object containing all the default post data as attributes 459 459 */ 460 460 function get_default_page_to_edit() { … … 469 469 * @since 2.0.0 470 470 * 471 * @param unknown_type$id472 * @return unknown471 * @param int $id 472 * @return WP_Post 473 473 */ 474 474 function get_post_to_edit( $id ) { -
trunk/wp-includes/post.php
r21597 r21598 376 376 * @param string $output Optional, default is Object. Either OBJECT, ARRAY_A, or ARRAY_N. 377 377 * @param string $filter Optional, default is raw. 378 * @return mixed Post dataor null on failure378 * @return WP_Post|null WP_Post on success or null on failure 379 379 */ 380 380 function get_post( $post, $output = OBJECT, $filter = 'raw' ) { … … 1780 1780 * @uses sanitize_post_field() Used to sanitize the fields. 1781 1781 * 1782 * @param object| array $post The Post Object or Array1782 * @param object|WP_Post|array $post The Post Object or Array 1783 1783 * @param string $context Optional, default is 'display'. How to sanitize post fields. 1784 * @return object| array The now sanitized Post Object or Array (will be the same type as $post)1784 * @return object|WP_Post|array The now sanitized Post Object or Array (will be the same type as $post) 1785 1785 */ 1786 1786 function sanitize_post($post, $context = 'display') { … … 2499 2499 * @param int $postid Post ID. 2500 2500 * @param string $mode How to return result, either OBJECT, ARRAY_N, or ARRAY_A. 2501 * @return object|arrayPost object or array holding post contents and information2501 * @return WP_Post|array WP_Post object or array holding post contents and information 2502 2502 */ 2503 2503 function wp_get_single_post($postid = 0, $mode = OBJECT) { … … 3289 3289 * Retrieves page data given a page ID or page object. 3290 3290 * 3291 * Use get_post() instead instead of get_page(). 3292 * 3291 3293 * @since 1.5.1 3294 * @deprecated 3.5.0 3292 3295 * 3293 3296 * @param mixed $page Page object or page ID. Passed by reference. 3294 3297 * @param string $output What to output. OBJECT, ARRAY_A, or ARRAY_N. 3295 3298 * @param string $filter How the return value should be filtered. 3296 * @return mixed Page data.3299 * @return WP_Post|null WP_Post on success or null on failure 3297 3300 */ 3298 3301 function get_page( $page, $output = OBJECT, $filter = 'raw') { … … 3309 3312 * @param string $output Optional. Output type. OBJECT, ARRAY_N, or ARRAY_A. Default OBJECT. 3310 3313 * @param string $post_type Optional. Post type. Default page. 3311 * @return mixed Null when complete.3314 * @return WP_Post|null WP_Post on success or null on failure 3312 3315 */ 3313 3316 function get_page_by_path($page_path, $output = OBJECT, $post_type = 'page') { … … 3363 3366 * @param string $output Optional. Output type. OBJECT, ARRAY_N, or ARRAY_A. Default OBJECT. 3364 3367 * @param string $post_type Optional. Post type. Default page. 3365 * @return mixed3368 * @return WP_Post|null WP_Post on success or null on failure 3366 3369 */ 3367 3370 function get_page_by_title($page_title, $output = OBJECT, $post_type = 'page' ) { -
trunk/wp-includes/query.php
r21597 r21598 2786 2786 * @access public 2787 2787 * 2788 * @return object Next post.2788 * @return WP_Post Next post. 2789 2789 */ 2790 2790 function next_post() {
Note: See TracChangeset
for help on using the changeset viewer.