fixes
This commit is contained in:
parent
50f7ae2a04
commit
69195f8b3a
2 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ class Hashtag {
|
||||||
$tag = strtolower( $m[2] );
|
$tag = strtolower( $m[2] );
|
||||||
if ( '/' === $m[1] ) {
|
if ( '/' === $m[1] ) {
|
||||||
// Closing tag.
|
// Closing tag.
|
||||||
$i = array_search( $tag, $tag_stack );
|
$i = array_search( $tag, $tag_stack, true );
|
||||||
// We can only remove the tag from the stack if it is in the stack.
|
// We can only remove the tag from the stack if it is in the stack.
|
||||||
if ( false !== $i ) {
|
if ( false !== $i ) {
|
||||||
$tag_stack = array_slice( $tag_stack, 0, $i );
|
$tag_stack = array_slice( $tag_stack, 0, $i );
|
||||||
|
|
|
@ -144,7 +144,7 @@ class Comment {
|
||||||
// TODO Delete Or Modify
|
// TODO Delete Or Modify
|
||||||
$tags = array();
|
$tags = array();
|
||||||
|
|
||||||
$comment_tags = self::get_hashtags();
|
$comment_tags = $this->get_hashtags();
|
||||||
if ( $comment_tags ) {
|
if ( $comment_tags ) {
|
||||||
foreach ( $comment_tags as $comment_tag ) {
|
foreach ( $comment_tags as $comment_tag ) {
|
||||||
$tag_link = \get_tag_link( $comment_tag );
|
$tag_link = \get_tag_link( $comment_tag );
|
||||||
|
|
Loading…
Reference in a new issue