Making WordPress.org

Ticket #7508: 7508.diff

File 7508.diff, 1.5 KB (added by adamsilverstein, 4 months ago)
  • wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-components.php

    From 2c5b89fbaccd53636b3b893c1cad691d787bbfd9 Mon Sep 17 00:00:00 2001
    From: Adam Silverstein <adamsilverstein@earthboundhosting.com>
    Date: Wed, 6 Mar 2024 22:50:15 -0700
    Subject: [PATCH] Add the new 'sustainability' focus to the `trac-select`
     shortcode.
    
    ---
     .../wp-content/plugins/trac-notifications/trac-components.php   | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-components.php b/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-components.php
    index 971e8fb13d..596a1c18bc 100644
    a b function shortcode_select( $attr ) { 
    656656                }
    657657                echo '<option value="" selected="selected">' . $default . '</option>';
    658658                if ( in_array( 'focus', $topics ) ) {
    659                         $focuses = array( 'accessibility', 'administration', 'coding-standards', 'css', 'docs', 'javascript', 'multisite', 'performance', 'privacy', 'rest-api', 'rtl', 'template', 'ui' );
     659                        $focuses = array( 'accessibility', 'administration', 'coding-standards', 'css', 'docs', 'javascript', 'multisite', 'performance', 'privacy', 'rest-api', 'rtl', 'sustainability', 'template', 'ui' );
    660660                        foreach ( $focuses as $focus ) {
    661661                                echo '<option value="focus/' . esc_attr( rawurlencode( $focus ) ) . '">' . $focus . ( $both ? ' (focus)' : '' ) . '</option>';
    662662                        }