Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/03/2020 01:20:09 PM (3 years ago)
Author:
xknown
Message:

PHP 7.4 Compat: Use square brackets and remove create_function calls.

File:
1 edited

Legend:

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

    r6156 r7110  
    32583258
    32593259    foreach ( (array) $tags as $tag ) {
    3260         $counts{$tag->raw_tag} = $tag->tag_count;
    3261         $taglinks{$tag->raw_tag} = bb_get_tag_link( $tag );
     3260        $counts[$tag->raw_tag] = $tag->tag_count;
     3261        $taglinks[$tag->raw_tag] = bb_get_tag_link( $tag );
    32623262    }
    32633263
     
    32763276
    32773277    foreach ( $counts as $tag => $count ) {
    3278         $taglink = esc_attr($taglinks{$tag});
     3278        $taglink = esc_attr($taglinks[$tag]);
    32793279        $tag = str_replace(' ', ' ', esc_html( $tag ));
    32803280        $fontsize = round( $smallest + ( ( $count - $min_count ) * $fontstep ), 1 );
Note: See TracChangeset for help on using the changeset viewer.