Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/15/2019 10:42:29 AM (5 years ago)
Author:
netweb
Message:

PHPCS: Use Parenthesis when instantiating a new object.

Props jrf.
See #3294.
For trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/replies/template.php

    r7006 r7046  
    236236        // Figure out total pages
    237237        if ( true === $r['hierarchical'] ) {
    238             $walker      = new BBP_Walker_Reply;
     238            $walker      = new BBP_Walker_Reply();
    239239            $total_pages = ceil( $walker->get_number_of_root_elements( $bbp->reply_query->posts ) / $bbp->reply_query->posts_per_page );
    240240        } else {
     
    23742374        // We are threading replies
    23752375        if ( bbp_thread_replies() ) {
    2376             $walker  = new BBP_Walker_Reply;
     2376            $walker  = new BBP_Walker_Reply();
    23772377            $threads = absint( $walker->get_number_of_root_elements( $bbp->reply_query->posts ) - 1 );
    23782378            $retstr  = sprintf( _n( 'Viewing %1$s reply thread', 'Viewing %1$s reply threads', $threads, 'bbpress' ), bbp_number_format( $threads ) );
Note: See TracChangeset for help on using the changeset viewer.