Changeset 46660 for trunk/src/wp-includes/post.php
- Timestamp:
- 11/05/2019 09:21:46 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r46596 r46660 707 707 * 708 708 * @param string $post Post content. 709 * @return array Post before ('main'), after ('extended'), and custom read more ('more_text'). 709 * @return string[] { 710 * Extended entry info. 711 * 712 * @type string $main Content before the more tag. 713 * @type string $extended Content after the more tag. 714 * @type string $more_text Custom read more text, or empty string. 715 * } 710 716 */ 711 717 function get_extended( $post ) { … … 791 797 * 792 798 * @param int|WP_Post $post Post ID or post object. 793 * @return arrayAncestor IDs or empty array if none are found.799 * @return int[] Ancestor IDs or empty array if none are found. 794 800 */ 795 801 function get_post_ancestors( $post ) { … … 931 937 * @since 2.5.0 932 938 * 933 * @return array List of post statuses.939 * @return string[] Array of post status labels keyed by their status. 934 940 */ 935 941 function get_post_statuses() { … … 952 958 * @since 2.5.0 953 959 * 954 * @return array List of page statuses.960 * @return string[] Array of page status labels keyed by their status. 955 961 */ 956 962 function get_page_statuses() { … … 1917 1923 * means all elements must match; 'not' means no elements may 1918 1924 * match. Default 'and'. 1919 * @return arrayA list of post type names.1925 * @return string[] A list of post type names. 1920 1926 */ 1921 1927 function get_post_types_by_support( $feature, $operator = 'and' ) { … … 4707 4713 * 4708 4714 * @param int $post_id Post ID. 4709 * @return array List of enclosures.4715 * @return string[] Array of enclosures for the given post. 4710 4716 */ 4711 4717 function get_enclosed( $post_id ) { … … 4834 4840 * @global wpdb $wpdb WordPress database abstraction object. 4835 4841 * 4836 * @return array List of page IDs.4842 * @return string[] List of page IDs as strings. 4837 4843 */ 4838 4844 function get_all_page_ids() { … … 4856 4862 * @deprecated 3.5.0 Use get_post() 4857 4863 * 4858 * @param mixed$page Page object or page ID. Passed by reference.4859 * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to4860 * a WP_Post object, an associative array, or a numeric array, respectively. Default OBJECT.4861 * @param string $filter Optional. How the return value should be filtered. Accepts 'raw',4862 * 'edit', 'db', 'display'. Default 'raw'.4863 * @return WP_Post|array|null WP_Post (or array) on success, ornull on failure.4864 * @param int|WP_Post $page Page object or page ID. Passed by reference. 4865 * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to 4866 * a WP_Post object, an associative array, or a numeric array, respectively. Default OBJECT. 4867 * @param string $filter Optional. How the return value should be filtered. Accepts 'raw', 4868 * 'edit', 'db', 'display'. Default 'raw'. 4869 * @return WP_Post|array|null WP_Post or array on success, null on failure. 4864 4870 */ 4865 4871 function get_page( $page, $output = OBJECT, $filter = 'raw' ) { … … 6294 6300 * @global wpdb $wpdb WordPress database abstraction object. 6295 6301 * 6296 * @param array|string$post_type Single post type or an array of post types.6297 * @param bool $full Optional. Returns a full WHERE statement instead of just6298 * an 'andalso' term. Default true.6299 * @param int $post_author Optional. Query posts having a single author ID. Default null.6300 * @param bool $public_only Optional. Only return public posts. Skips cap checks for6301 * $current_user. Default false.6302 * @param string|string[] $post_type Single post type or an array of post types. 6303 * @param bool $full Optional. Returns a full WHERE statement instead of just 6304 * an 'andalso' term. Default true. 6305 * @param int $post_author Optional. Query posts having a single author ID. Default null. 6306 * @param bool $public_only Optional. Only return public posts. Skips cap checks for 6307 * $current_user. Default false. 6302 6308 * @return string SQL WHERE code that can be added to a query. 6303 6309 */
Note: See TracChangeset
for help on using the changeset viewer.