Making WordPress.org

Changeset 11307


Ignore:
Timestamp:
11/03/2021 01:47:14 AM (5 years ago)
Author:
dd32
Message:

Slack: Trac: Avoid a rare fatal (7+ years old), $this is not defined as it's within global scope, use the Trac instance directly instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/dotorg/slack/trac-bot.php

    r11100 r11307  
    7070                                        // We don't have an attachment when the Trac is private or if we experienced an error.
    7171                                        // Don't set redundancy times on errors.
    72                                         if ( ! $this->trac->is_public() ) {
     72                                        if ( ! $trac_obj->is_public() ) {
    7373                                                $parser->set_redundancy( 'slack', $trac, $type, $id );
    7474                                        }
Note: See TracChangeset for help on using the changeset viewer.