Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/10/2020 07:44:46 PM (4 months ago)
Author:
xknown
Message:

PHP 7.4 Compat: Don't use curly braces for array/string access

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.9/bb-includes/template-functions.php

    r6159 r7115  
    20482048
    20492049    foreach ( (array) $tags as $tag ) {
    2050         $counts{$tag->raw_tag} = $tag->tag_count;
    2051         $taglinks{$tag->raw_tag} = bb_get_tag_link( $tag->tag );
     2050        $counts[$tag->raw_tag] = $tag->tag_count;
     2051        $taglinks[$tag->raw_tag] = bb_get_tag_link( $tag->tag );
    20522052    }
    20532053
     
    20662066
    20672067    foreach ( $counts as $tag => $count ) {
    2068         $taglink = attribute_escape($taglinks{$tag});
     2068        $taglink = attribute_escape($taglinks[$tag]);
    20692069        $tag = str_replace(' ', ' ', wp_specialchars( $tag ));
    20702070        $a[] = "<a href='$taglink' title='" . attribute_escape( sprintf( __('%d topics'), $count ) ) . "' rel='tag' style='font-size: " .
Note: See TracChangeset for help on using the changeset viewer.