Ticket #21220: 21220.patch
File 21220.patch, 3.0 KB (added by , 12 years ago) |
---|
-
wp-includes/post-template.php
231 231 * @since 3.1.0 232 232 * @access private 233 233 * @param array $match Match array from preg_replace_callback 234 * @return sstring234 * @return string 235 235 */ 236 236 function _convert_urlencoded_to_entities( $match ) { 237 237 return '&#' . base_convert( $match[1], 16, 10 ) . ';'; … … 865 865 * @since 2.7.0 866 866 * 867 867 * @param array|string $args 868 * @return string html menu 868 869 */ 869 870 function wp_page_menu( $args = array() ) { 870 871 $defaults = array('sort_column' => 'menu_order, post_title', 'menu_class' => 'menu', 'echo' => true, 'link_before' => '', 'link_after' => ''); … … 978 979 * 979 980 * @param string $output Passed by reference. Used to append additional content. 980 981 * @param int $depth Depth of page. Used for padding. 982 * @param array $args 981 983 */ 982 984 function start_lvl( &$output, $depth = 0, $args = array() ) { 983 985 $indent = str_repeat("\t", $depth); … … 990 992 * 991 993 * @param string $output Passed by reference. Used to append additional content. 992 994 * @param int $depth Depth of page. Used for padding. 995 * @param array $args 993 996 */ 994 997 function end_lvl( &$output, $depth = 0, $args = array() ) { 995 998 $indent = str_repeat("\t", $depth); … … 1048 1051 * @param string $output Passed by reference. Used to append additional content. 1049 1052 * @param object $page Page data object. Not used. 1050 1053 * @param int $depth Depth of page. Not Used. 1054 * @param array $args 1051 1055 */ 1052 1056 function end_el( &$output, $page, $depth = 0, $args = array() ) { 1053 1057 $output .= "</li>\n"; … … 1086 1090 * @param object $page Page data object. 1087 1091 * @param int $depth Depth of page in reference to parent pages. Used for padding. 1088 1092 * @param array $args Uses 'selected' argument for selected page to set selected HTML attribute for option element. 1093 * @param int $id 1089 1094 */ 1090 1095 function start_el(&$output, $page, $depth, $args, $id = 0) { 1091 1096 $pad = str_repeat(' ', $depth * 3); … … 1134 1139 * @param string $size Optional, default is 'thumbnail'. Size of image, either array or string. 1135 1140 * @param bool $permalink Optional, default is false. Whether to add permalink to image. 1136 1141 * @param bool $icon Optional, default is false. Whether to include icon. 1137 * @param string $text Optional, default is false. If string, then will be link text.1142 * @param string|bool $text Optional, default is false. If string, then will be link text. 1138 1143 * @return string HTML content. 1139 1144 */ 1140 1145 function wp_get_attachment_link( $id = 0, $size = 'thumbnail', $permalink = false, $icon = false, $text = false ) { … … 1245 1250 * 1246 1251 * @since 3.4.0 1247 1252 * 1248 * @param int $ id The page ID to check. Defaults to the current post, when used in the loop.1253 * @param int $post_id The page ID to check. Defaults to the current post, when used in the loop. 1249 1254 * @return string|bool Page template filename. Returns an empty string when the default page template 1250 1255 * is in use. Returns false if the post is not a page. 1251 1256 */