Ticket #24413: 24413.patch
File 24413.patch, 3.3 KB (added by , 12 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; … … 357 357 358 358 if ( ! function_exists( 'twentythirteen_entry_meta' ) ) : 359 359 /** 360 * Prints HTML with meta information for current post : categories, tags, permalink, author, and date.360 * Prints HTML with meta information for current post. 361 361 * 362 * Printed meta includes: 363 * 1. categories 364 * 2. tags 365 * 3. permalink 366 * 4. author 367 * 5. date 368 * 362 369 * Create your own twentythirteen_entry_meta() to override in a child theme. 363 370 * 364 371 * @since Twenty Thirteen 1.0 … … 404 411 * @since Twenty Thirteen 1.0 405 412 * 406 413 * @param boolean $echo Whether to echo the date. Default true. 407 * @return string 414 * @return string The HTML-formatted post date. 408 415 */ 409 416 function twentythirteen_entry_date( $echo = true ) { 410 417 $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 433 /** 427 434 * Returns the URL from the post. 428 435 * 429 * @uses get_the_ link() to get the URL in the post meta (if it exists) or436 * @uses get_the_post_format_url() to get the URL in the post meta (if it exists) or 430 437 * the first link found in the post content. 431 438 * 432 439 * Falls back to the post permalink if no URL is found in the post. 433 440 * 434 441 * @since Twenty Thirteen 1.0 435 * @return string URL 442 * 443 * @return string The Link format URL. 436 444 */ 437 445 function twentythirteen_get_link_url() { 438 446 $has_url = get_the_post_format_url(); … … 446 454 * @since Twenty Thirteen 1.0 447 455 * 448 456 * @param array $atts Combined and filtered attribute list. 449 * @return array 457 * @return array The filtered attribute list. 450 458 */ 451 459 function twentythirteen_gallery_atts( $atts ) { 452 460 if ( has_post_format( 'gallery' ) && ! is_single() ) … … 457 465 add_filter( 'shortcode_atts_gallery', 'twentythirteen_gallery_atts' ); 458 466 459 467 /** 468 * Sets up special body classes. 469 * 460 470 * Extends the default WordPress body class to denote: 461 471 * 1. Custom fonts enabled. 462 472 * 2. Single or multiple authors. … … 465 475 * 466 476 * @since Twenty Thirteen 1.0 467 477 * 468 * @param array $classes Existingclass values.469 * @return array Filtered class values.478 * @param array $classes A list of existing body class values. 479 * @return array The filtered body class list. 470 480 */ 471 481 function twentythirteen_body_class( $classes ) { 472 482 … … 507 517 * 508 518 * @since Twenty Thirteen 1.0 509 519 * 510 * @param array $atts Attribute list.511 * @return array Filtered attribute list.520 * @param array $atts The attribute list. 521 * @return array The filtered attribute list. 512 522 */ 513 523 function twentythirteen_video_width( $atts ) { 514 524 if ( ! is_admin() && has_post_format( 'video' ) ) {