Changeset 3326 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
- Timestamp:
- 06/09/2016 10:28:14 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r3323 r3326 359 359 * Filter the permalink for terms to be more useful. 360 360 * 361 * @param string $termlink The generated term link. 362 * @param \WP_Term $term The term the link is for. 363 */ 364 public function term_link( $termlink, $term ) { 361 * @param string $term_link The generated term link. 362 * @param \WP_Term $term The term the link is for. 363 * @return string|false 364 */ 365 public function term_link( $term_link, $term ) { 365 366 if ( 'plugin_business_model' == $term->taxonomy ) { 366 367 return false; … … 371 372 } 372 373 373 return $term link;374 return $term_link; 374 375 } 375 376 … … 447 448 * Returns the requested page's content, translated. 448 449 * 449 * @param string $content 450 * @param string $content Post content. 451 * @param string $section Optional. Which readme section to translate. 450 452 * @return string 451 453 */ … … 454 456 return $content; 455 457 } 456 return Plugin_ i18n::instance()->translate( $section, $content );458 return Plugin_I18n::instance()->translate( $section, $content ); 457 459 } 458 460 … … 460 462 * Returns the requested page's content, translated. 461 463 * 462 * @param string $content 464 * @param string $title 465 * @param int $post_id 463 466 * @return string 464 467 */ 465 468 public function translate_post_title( $title, $post_id ) { 466 469 if ( $post_id === get_post()->ID ) { 467 return Plugin_ i18n::instance()->translate( 'title', $title );470 return Plugin_I18n::instance()->translate( 'title', $title ); 468 471 } 469 472 return $title; … … 473 476 * Returns the requested page's excerpt, translated. 474 477 * 475 * @param string $ content478 * @param string $excerpt 476 479 * @return string 477 480 */ 478 481 public function translate_post_excerpt( $excerpt ) { 479 return Plugin_ i18n::instance()->translate( 'excerpt', $excerpt );482 return Plugin_I18n::instance()->translate( 'excerpt', $excerpt ); 480 483 } 481 484
Note: See TracChangeset
for help on using the changeset viewer.