Ticket #24616: 24616.patch
File 24616.patch, 7.0 KB (added by , 12 years ago) |
---|
-
wp-includes/category-template.php
37 37 * @param string $separator Optional, default is '/'. How to separate categories. 38 38 * @param bool $nicename Optional, default is false. Whether to use nice name for display. 39 39 * @param array $visited Optional. Already linked to categories to prevent duplicates. 40 * @return string 40 * @return string|WP_Error A list of category parents on success, WP_Error on failure. 41 41 */ 42 42 function get_category_parents( $id, $link = false, $separator = '/', $nicename = false, $visited = array() ) { 43 43 $chain = ''; … … 131 131 * @since 0.71 132 132 * 133 133 * @param int $cat_ID Category ID. 134 * @return string Category name.134 * @return string|WP_Error Category name on success, WP_Error on failure. 135 135 */ 136 136 function get_the_category_by_ID( $cat_ID ) { 137 137 $cat_ID = (int) $cat_ID; … … 980 980 * @uses apply_filters() Calls 'get_the_tags' filter on the list of post tags. 981 981 * 982 982 * @param int $id Post ID. 983 * @return array 983 * @return array|bool Array of tag objects on success, false on failure. 984 984 */ 985 985 function get_the_tags( $id = 0 ) { 986 986 return apply_filters( 'get_the_tags', get_the_terms( $id, 'post_tag' ) ); … … 996 996 * @param string $sep Optional. Between tags. 997 997 * @param string $after Optional. After tags. 998 998 * @param int $id Optional. Post ID. Defaults to the current post. 999 * @return string 999 * @return string|bool|WP_Error A list of tags on success, false or WP_Error on failure. 1000 1000 */ 1001 1001 function get_the_tag_list( $before = '', $sep = '', $after = '', $id = 0 ) { 1002 1002 return apply_filters( 'the_tags', get_the_term_list( $id, 'post_tag', $before, $sep, $after ), $before, $sep, $after, $id ); … … 1010 1010 * @param string $before Optional. Before list. 1011 1011 * @param string $sep Optional. Separate items using this. 1012 1012 * @param string $after Optional. After list. 1013 * @return string1014 1013 */ 1015 1014 function the_tags( $before = null, $sep = ', ', $after = '' ) { 1016 1015 if ( null === $before ) … … 1056 1055 * 1057 1056 * @param mixed $post Post ID or object. 1058 1057 * @param string $taxonomy Taxonomy name. 1059 * @return array|bool False on failure. Array of term objects on success.1058 * @return array|bool|WP_Error Array of term objects on success, false or WP_Error on failure. 1060 1059 */ 1061 1060 function get_the_terms( $post, $taxonomy ) { 1062 1061 if ( ! $post = get_post( $post ) ) … … 1086 1085 * @param string $before Optional. Before list. 1087 1086 * @param string $sep Optional. Separate items using this. 1088 1087 * @param string $after Optional. After list. 1089 * @return string 1088 * @return string|bool|WP_Error A list of terms on success, false or WP_Error on failure. 1090 1089 */ 1091 1090 function get_the_term_list( $id, $taxonomy, $before = '', $sep = '', $after = '' ) { 1092 1091 $terms = get_the_terms( $id, $taxonomy ); -
wp-includes/formatting.php
3116 3116 * 3117 3117 * @since 2.5.0 3118 3118 * 3119 * @param integer$str String to get the excerpt from.3119 * @param string $str String to get the excerpt from. 3120 3120 * @param integer $count Maximum number of characters to take. 3121 3121 * @param string $more Optional. What to append if $str needs to be trimmed. Defaults to empty string. 3122 3122 * @return string The excerpt. -
wp-includes/js/quicktags.js
296 296 * QTags.addButton( 'my_id', 'my button', '<span>', '</span>' ); 297 297 * QTags.addButton( 'my_id2', 'my button', '<br />' ); 298 298 * 299 * @param id string requiredButton HTML ID300 * @param display string requiredButton's value="..."301 * @param arg1 string || function requiredEither a starting tag to be inserted like "<span>" or a callback that is executed when the button is clicked.302 * @param arg2 string optionalEnding tag like "</span>"303 * @param access_key string optionalAccess key for the button.304 * @param title string optionalButton's title="..."305 * @param priority int optionalNumber representing the desired position of the button in the toolbar. 1 - 9 = first, 11 - 19 = second, 21 - 29 = third, etc.306 * @param instance string optionalLimit the button to a specifric instance of Quicktags, add to all instances if not present.299 * @param string id Required. Button HTML ID 300 * @param string display Required. Button's value="..." 301 * @param string|function arg1 Required. Either a starting tag to be inserted like "<span>" or a callback that is executed when the button is clicked. 302 * @param string arg2 Optional. Ending tag like "</span>" 303 * @param string access_key Optional. Access key for the button. 304 * @param string title Optional. Button's title="..." 305 * @param int priority Optional. Number representing the desired position of the button in the toolbar. 1 - 9 = first, 11 - 19 = second, 21 - 29 = third, etc. 306 * @param string instance Optional. Limit the button to a specifric instance of Quicktags, add to all instances if not present. 307 307 * @return mixed null or the button object that is needed for back-compat. 308 308 */ 309 309 qt.addButton = function( id, display, arg1, arg2, access_key, title, priority, instance ) { -
wp-includes/post.php
725 725 * @uses sanitize_post_field() See for possible $context values. 726 726 * 727 727 * @param string $field Post field name 728 * @param i d$post Post ID729 * @param string $context Optional. How to filter the field. Default is display.730 * @return bool|string False on failure or returns the value in post field728 * @param int $post Post ID 729 * @param string $context Optional. How to filter the field. Default is 'display'. 730 * @return string The value of the post field on success, empty string on failure. 731 731 */ 732 732 function get_post_field( $field, $post, $context = 'display' ) { 733 733 $post = get_post( $post ); … … 750 750 * @since 2.0.0 751 751 * 752 752 * @param int $ID Optional. Post ID. 753 * @return bool|string False on failure or returns the mime type753 * @return string|bool The mime type on success, false on failure. 754 754 */ 755 755 function get_post_mime_type($ID = '') { 756 756 $post = get_post($ID); … … 770 770 * @since 2.0.0 771 771 * 772 772 * @param int $ID Post ID 773 * @return string|bool Post status o rfalse on failure.773 * @return string|bool Post status on success, false on failure. 774 774 */ 775 775 function get_post_status($ID = '') { 776 776 $post = get_post($ID); … … 1012 1012 * @uses $post The Loop current post global 1013 1013 * 1014 1014 * @param mixed $post Optional. Post object or post ID. 1015 * @return bool|string post type orfalse on failure.1015 * @return string|bool Post type on success, false on failure. 1016 1016 */ 1017 1017 function get_post_type( $post = null ) { 1018 1018 if ( $post = get_post( $post ) )