Ticket #24413: 24413.2.patch
File 24413.2.patch, 3.0 KB (added by , 11 years ago) |
---|
-
wp-content/themes/twentythirteen/functions.php
179 179 * @since Twenty Thirteen 1.0 180 180 * 181 181 * @param string $mce_css CSS path to load in TinyMCE. 182 * @return string 182 * @return string The filtered CSS paths list. 183 183 */ 184 184 function twentythirteen_mce_css( $mce_css ) { 185 185 $fonts_url = twentythirteen_fonts_url(); … … 237 237 * 238 238 * @param string $title Default title text for current view. 239 239 * @param string $sep Optional separator. 240 * @return string Filtered title.240 * @return string The filtered title. 241 241 */ 242 242 function twentythirteen_wp_title( $title, $sep ) { 243 243 global $paged, $page; … … 404 404 * @since Twenty Thirteen 1.0 405 405 * 406 406 * @param boolean $echo Whether to echo the date. Default true. 407 * @return string 407 * @return string The HTML-formatted post date. 408 408 */ 409 409 function twentythirteen_entry_date( $echo = true ) { 410 410 $format_prefix = ( has_post_format( 'chat' ) || has_post_format( 'status' ) ) ? _x( '%1$s on %2$s', '1: post format name. 2: date', 'twentythirteen' ): '%2$s'; … … 426 426 /** 427 427 * Returns the URL from the post. 428 428 * 429 * @uses get_the_ link() to get the URL in the post meta (if it exists) or429 * @uses get_the_post_format_url() to get the URL in the post meta (if it exists) or 430 430 * the first link found in the post content. 431 431 * 432 432 * Falls back to the post permalink if no URL is found in the post. 433 433 * 434 434 * @since Twenty Thirteen 1.0 435 * @return string URL 435 * 436 * @return string The Link format URL. 436 437 */ 437 438 function twentythirteen_get_link_url() { 438 439 $has_url = get_the_post_format_url(); … … 446 447 * @since Twenty Thirteen 1.0 447 448 * 448 449 * @param array $atts Combined and filtered attribute list. 449 * @return array 450 * @return array The filtered attribute list. 450 451 */ 451 452 function twentythirteen_gallery_atts( $atts ) { 452 453 if ( has_post_format( 'gallery' ) && ! is_single() ) … … 457 458 add_filter( 'shortcode_atts_gallery', 'twentythirteen_gallery_atts' ); 458 459 459 460 /** 460 * Extends the default WordPress body class to denote: 461 * Extends the default WordPress body classes. 462 * 463 * Adds body classes to denote: 461 464 * 1. Custom fonts enabled. 462 465 * 2. Single or multiple authors. 463 466 * 3. Active widgets in the sidebar to change the layout and spacing. … … 465 468 * 466 469 * @since Twenty Thirteen 1.0 467 470 * 468 * @param array $classes Existingclass values.469 * @return array Filtered class values.471 * @param array $classes A list of existing body class values. 472 * @return array The filtered body class list. 470 473 */ 471 474 function twentythirteen_body_class( $classes ) { 472 475 … … 507 510 * 508 511 * @since Twenty Thirteen 1.0 509 512 * 510 * @param array $atts Attribute list.511 * @return array Filtered attribute list.513 * @param array $atts The attribute list. 514 * @return array The filtered attribute list. 512 515 */ 513 516 function twentythirteen_video_width( $atts ) { 514 517 if ( ! is_admin() && has_post_format( 'video' ) ) {