another fix
This commit is contained in:
parent
aa53bec4e4
commit
a0d670ed77
2 changed files with 2 additions and 2 deletions
|
@ -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' );
|
||||
|
|
|
@ -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' ),
|
||||
|
|
Loading…
Reference in a new issue