another fix

This commit is contained in:
Matthias Pfefferle 2019-08-18 22:39:34 +02:00
parent aa53bec4e4
commit a0d670ed77
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ class Hashtag {
*/
public static function replace_with_links( $result ) {
$tag = $result[1];
$tag_object = get_term_by( 'name', $result[1], 'post_tag' );
$tag_object = get_term_by( 'name', $tag, 'post_tag' );
if ( $tag_object ) {
$link = get_term_link( $tag_object, 'post_tag' );

View file

@ -15,7 +15,7 @@ class Test_Activitypub_Hashtag extends WP_UnitTestCase {
public function the_content_provider() {
$object = get_term_by( 'name', 'object', 'post_tag' );
$link = get_tag_link( $object );
$link = get_term_link( $object, 'post_tag' );
return array(
array( 'test', 'test' ),