Changeset 16951 for trunk/wp-includes/link-template.php
- Timestamp:
- 12/15/2010 04:45:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r16938 r16951 1055 1055 1056 1056 /** 1057 * Retrieve previous post linkthat is adjacent to current post.1057 * Retrieve previous post that is adjacent to current post. 1058 1058 * 1059 1059 * @since 1.5.0 1060 1060 * 1061 * @param bool $in_same_cat Optional. Whether linkshould be in same category.1061 * @param bool $in_same_cat Optional. Whether post should be in same category. 1062 1062 * @param string $excluded_categories Optional. Excluded categories IDs. 1063 * @return string1063 * @return mixed Post object if successful. Null if global $post is not set. Empty string if no corresponding post exists. 1064 1064 */ 1065 1065 function get_previous_post($in_same_cat = false, $excluded_categories = '') { … … 1068 1068 1069 1069 /** 1070 * Retrieve next post linkthat is adjacent to current post.1070 * Retrieve next post that is adjacent to current post. 1071 1071 * 1072 1072 * @since 1.5.0 1073 1073 * 1074 * @param bool $in_same_cat Optional. Whether linkshould be in same category.1074 * @param bool $in_same_cat Optional. Whether post should be in same category. 1075 1075 * @param string $excluded_categories Optional. Excluded categories IDs. 1076 * @return string1076 * @return mixed Post object if successful. Null if global $post is not set. Empty string if no corresponding post exists. 1077 1077 */ 1078 1078 function get_next_post($in_same_cat = false, $excluded_categories = '') { … … 1081 1081 1082 1082 /** 1083 * Retrieve adjacent post link.1084 * 1085 * Can either be next or previous post link.1083 * Retrieve adjacent post. 1084 * 1085 * Can either be next or previous post. 1086 1086 * 1087 1087 * @since 2.5.0 1088 1088 * 1089 * @param bool $in_same_cat Optional. Whether linkshould be in same category.1089 * @param bool $in_same_cat Optional. Whether post should be in same category. 1090 1090 * @param string $excluded_categories Optional. Excluded categories IDs. 1091 1091 * @param bool $previous Optional. Whether to retrieve previous post. 1092 * @return string1092 * @return mixed Post object if successful. Null if global $post is not set. Empty string if no corresponding post exists. 1093 1093 */ 1094 1094 function get_adjacent_post($in_same_cat = false, $excluded_categories = '', $previous = true) {
Note: See TracChangeset
for help on using the changeset viewer.