Making WordPress.org


Ignore:
Timestamp:
01/15/2019 03:10:41 AM (6 years ago)
Author:
dd32
Message:

Support Forums: Prefix notifications from the Plugin/Theme forums with the plugin name.

For example: [WordPress.org] [Example Plugin Name] Example Topic Title.

Fixes #2016.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-support-compat.php

    r7293 r8081  
    355355        if ( class_exists( 'WordPressdotorg\Forums\Term_Subscription\Plugin' ) ) {
    356356            Plugin::get_instance()->plugin_subscriptions = new Term_Subscription\Plugin( array(
    357                 'taxonomy' => 'topic-plugin',
    358                 'labels'   => array(
     357                'taxonomy'  => 'topic-plugin',
     358                'directory' => Plugin::get_instance()->plugins,
     359                'labels'    => array(
    359360                    'subscribed_header'      => __( 'Subscribed Plugins', 'wporg-forums' ),
    360361                    'subscribed_user_notice' => __( 'You are not currently subscribed to any plugins.', 'wporg-forums' ),
    361362                    'subscribed_anon_notice' => __( 'This user is not currently subscribed to any plugins.', 'wporg-forums' ),
    362                     'receipt'                => __( 'You are receiving this email because you are subscribed to a plugin.', 'wporg-forums' ),
     363                    /* translators: %s: Plugin Name. */
     364                    'receipt'                => __( 'You are receiving this email because you are subscribed to the %s plugin.', 'wporg-forums' ),
    363365                ),
    364366            ) );
    365367            Plugin::get_instance()->theme_subscriptions = new Term_Subscription\Plugin( array(
    366                 'taxonomy' => 'topic-theme',
    367                 'labels'   => array(
     368                'taxonomy'  => 'topic-theme',
     369                'directory' => Plugin::get_instance()->themes,
     370                'labels'    => array(
    368371                    'subscribed_header'      => __( 'Subscribed Themes', 'wporg-forums' ),
    369372                    'subscribed_user_notice' => __( 'You are not currently subscribed to any themes.', 'wporg-forums' ),
    370373                    'subscribed_anon_notice' => __( 'This user is not currently subscribed to any themes.', 'wporg-forums' ),
    371                     'receipt'                => __( 'You are receiving this email because you are subscribed to a theme.', 'wporg-forums' ),
     374                    /* translators: %s: Theme Name. */
     375                    'receipt'                => __( 'You are receiving this email because you are subscribed to the %s theme.', 'wporg-forums' ),
    372376                ),
    373377            ) );
     
    394398             FROM {$prefix}posts AS p
    395399             LEFT JOIN {$prefix}term_relationships AS tr ON p.ID = tr.object_id
    396              LEFT JOIN {$prefix}term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id 
     400             LEFT JOIN {$prefix}term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id
    397401             LEFT JOIN {$prefix}terms AS t ON tt.term_id = t.term_id
    398402             WHERE tt.taxonomy = 'plugin_committers' AND p.post_status = 'publish' AND p.post_type = 'plugin' AND t.slug = %s
     
    412416             FROM {$prefix}posts AS p
    413417             LEFT JOIN {$prefix}term_relationships AS tr ON p.ID = tr.object_id
    414              LEFT JOIN {$prefix}term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id 
     418             LEFT JOIN {$prefix}term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id
    415419             LEFT JOIN {$prefix}terms AS t ON tt.term_id = t.term_id
    416420             WHERE tt.taxonomy = 'plugin_contributors' AND p.post_status = 'publish' AND p.post_type = 'plugin' AND t.slug = %s
Note: See TracChangeset for help on using the changeset viewer.