Make WordPress Core


Ignore:
Timestamp:
11/29/2022 03:49:49 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Always use parentheses when instantiating an object.

Note: This will be enforced by WPCS 3.0.0.

Props jrf.
See #56791.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-text-diff-renderer-table.php

    r54133 r54891  
    270270            if ( is_numeric( $o ) && is_numeric( $f ) ) {
    271271                $text_diff = new Text_Diff( 'auto', array( array( $orig[ $o ] ), array( $final[ $f ] ) ) );
    272                 $renderer  = new $this->inline_diff_renderer;
     272                $renderer  = new $this->inline_diff_renderer();
    273273                $diff      = $renderer->render( $text_diff );
    274274
Note: See TracChangeset for help on using the changeset viewer.