Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/03/2020 01:20:09 PM (4 months 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-core.php

    r6825 r7110  
    14321432        if ( $themes_dir = @dir( $_data['dir'] ) ) {
    14331433            while( ( $theme_dir = $themes_dir->read() ) !== false ) {
    1434                 if ( is_file( $_data['dir'] . $theme_dir . '/style.css' ) && is_readable( $_data['dir'] . $theme_dir . '/style.css' ) && '.' != $theme_dir{0} ) {
     1434                if ( is_file( $_data['dir'] . $theme_dir . '/style.css' ) && is_readable( $_data['dir'] . $theme_dir . '/style.css' ) && '.' != $theme_dir[0] ) {
    14351435                    $r[$_name . '#' . $theme_dir] = $_name . '#' . $theme_dir;
    14361436                }
Note: See TracChangeset for help on using the changeset viewer.