Changeset 6287 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-developers.php
- Timestamp:
- 12/19/2017 04:22:37 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-developers.php
r5920 r6287 1 1 <?php 2 2 namespace WordPressdotorg\Plugin_Directory\Shortcodes; 3 3 4 use WordPressdotorg\Plugin_Directory\Plugin_I18n; 4 5 use WordPressdotorg\Plugin_Directory\Tools; … … 15 16 */ 16 17 static function display() { 17 $post = get_post();18 $slug = $post->post_name;19 $title = get_the_title( $post );18 $post = get_post(); 19 $slug = $post->post_name; 20 $title = get_the_title( $post ); 20 21 21 22 $output = '<div class="plugin-contributors">'; … … 44 45 $output .= '<p>'; 45 46 46 $wp_locales = wp_list_pluck( $locales,'wp_locale' );47 $wp_locales = wp_list_pluck( $locales, 'wp_locale' ); 47 48 $locales_count = get_sites( [ 48 49 'network_id' => WPORG_GLOBAL_NETWORK_ID, … … 76 77 } 77 78 78 $output .= '<p>' . sprintf( '<a href="%1$s">%2$s</a>', 79 $output .= '<p>' . sprintf( 80 '<a href="%1$s">%2$s</a>', 79 81 esc_url( 'https://translate.wordpress.org/projects/wp-plugins/' . $slug ), 80 82 sprintf( … … 84 86 ) 85 87 ) . '</p>'; 86 87 88 88 89 $output .= '<h3>' . __( 'Interested in development?', 'wporg-plugins' ) . '</h3>'; … … 115 116 } 116 117 $output .= '</div>'; 118 117 119 return $output; 118 120 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)