Changeset 5404 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-support.php
- Timestamp:
- 04/21/2017 11:46:46 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-support.php
r4223 r5404 1 1 <?php 2 2 namespace WordPressdotorg\Plugin_Directory\Widgets; 3 use WordPressdotorg\Plugin_Directory\Template; 3 4 4 5 /** … … 32 33 $resolved = get_post_meta( $post->ID, 'support_threads_resolved', true ) ?: 0; 33 34 $resolutions = (bool) $threads; 34 $support_url = 'https://wordpress.org/support/plugin/' . $post->post_name;35 $support_url = Template::get_support_url(); 35 36 36 /* 37 * bbPress and BuddyPress get special treatment here. 38 * In the future we could open this up to all plugins that define a custom support URL. 39 */ 40 if ( 'buddypress' === $post->post_name ) { 37 if ( false === strpos( $support_url, 'https://wordpress.org' ) ) { 41 38 $resolutions = false; 42 $support_url = 'https://buddypress.org/support/'; 43 } else if ( 'bbpress' === $post->post_name ) { 44 $resolutions = false; 45 $support_url = 'https://bbpress.org/forums/'; 46 } 39 } 47 40 48 41 echo $args['before_widget']; … … 58 51 <span class="counter-count"> 59 52 <?php 60 /* Translators: 1: A Mount of resolved threads; 2: Amount of total threads; */53 /* Translators: 1: Amount of resolved threads; 2: Amount of total threads; */ 61 54 printf( __( '%1$s out of %2$s', 'wporg-plugins' ), $resolved, $threads ); 62 55 ?>
Note: See TracChangeset
for help on using the changeset viewer.