Making WordPress.org


Ignore:
Timestamp:
11/02/2021 07:49:00 AM (5 years ago)
Author:
dd32
Message:

Theme Directory: Slack Firehose: Move the Commit message from a block to a section, to use the full width of the Slack message.

See [11305], #5899.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php

    r11305 r11306  
    17731773                        }
    17741774
    1775                         if ( $this->commit_msg ) {
    1776                                 $fields[] = [
    1777                                         'type' => 'mrkdwn',
    1778                                         'text' => "*Commit Message:*\n{$this->commit_msg}",
    1779                                 ];
    1780                         }
    1781 
    17821775                        $blocks[] = [
    17831776                                'type' => 'section',
     
    17991792                                'fields' => $fields
    18001793                        ];
     1794
     1795                        if ( $this->commit_msg ) {
     1796                                $blocks[] = [
     1797                                        'type' => 'section',
     1798                                        'text' => [
     1799                                                'type' => 'mrkdwn',
     1800                                                'text' => "*Commit Message:* {$this->commit_msg}",
     1801                                        ],
     1802                                ];
     1803                        }
     1804
    18011805                } elseif ( $this->theme_post ) {
    18021806                        $blocks[] = [
Note: See TracChangeset for help on using the changeset viewer.