Making WordPress.org

Changeset 9548


Ignore:
Timestamp:
02/28/2020 02:50:52 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Slack: Fix typo in a function name called for trimming longer messages when broadcasting /here announcements to the parent channel.

Follow-up to [9216].

See #4747.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/common/includes/slack/announce/lib.php

    r9530 r9548  
    160160    $text = str_ireplace( [ '@here', '@channel', '@group' ], '', $text );
    161161    if ( mb_strlen( $text ) > 103 ) {
    162         $text = mb_subsr( $text, 0, 100 ) . '...';
     162        $text = mb_substr( $text, 0, 100 ) . '...';
    163163    }
    164164
Note: See TracChangeset for help on using the changeset viewer.