Changeset 47114
- Timestamp:
- 01/27/2020 04:31:48 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r47086 r47114 1585 1585 $subject = sprintf( __( '[%1$s] Trackback: "%2$s"' ), $blogname, $post->post_title ); 1586 1586 break; 1587 1587 1588 case 'pingback': 1588 1589 /* translators: %s: Post title. */ … … 1598 1599 $subject = sprintf( __( '[%1$s] Pingback: "%2$s"' ), $blogname, $post->post_title ); 1599 1600 break; 1601 1600 1602 default: // Comments 1601 1603 /* translators: %s: Post title. */ … … 1607 1609 /* translators: %s: Trackback/pingback/comment author URL. */ 1608 1610 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1611 1612 1613 1614 1615 1616 1609 1617 /* translators: %s: Comment text. */ 1610 1618 $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; … … 1614 1622 break; 1615 1623 } 1624 1616 1625 $notify_message .= get_permalink( $comment->comment_post_ID ) . "#comments\r\n\r\n"; 1617 1626 /* translators: %s: Comment URL. */ … … 1762 1771 $notify_message .= __( 'Trackback excerpt: ' ) . "\r\n" . $comment_content . "\r\n\r\n"; 1763 1772 break; 1773 1764 1774 case 'pingback': 1765 1775 /* translators: %s: Post title. */ … … 1772 1782 $notify_message .= __( 'Pingback excerpt: ' ) . "\r\n" . $comment_content . "\r\n\r\n"; 1773 1783 break; 1784 1774 1785 default: // Comments 1775 1786 /* translators: %s: Post title. */ … … 1782 1793 /* translators: %s: Trackback/pingback/comment author URL. */ 1783 1794 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1795 1796 1797 1798 1799 1800 1784 1801 /* translators: %s: Comment text. */ 1785 1802 $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; -
trunk/tests/phpunit/tests/comment.php
r46586 r47114 7 7 protected static $user_id; 8 8 protected static $post_id; 9 9 10 10 11 public function setUp() { … … 433 434 $sent = wp_new_comment_notify_postauthor( $c ); 434 435 $this->assertFalse( $sent ); 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 435 496 } 436 497
Note: See TracChangeset
for help on using the changeset viewer.