Changeset 9017 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
- Timestamp:
- 07/02/2019 05:56:38 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r9016 r9017 972 972 $post = get_post( $post_id ); 973 973 974 // Only translate Plugin post objects 974 // Only translate Plugin post objects. 975 975 if ( $post && 'plugin' === $post->post_type ) { 976 976 return Plugin_I18n::instance()->translate( $section, $content, [ 'post_id' => $post_id ] ); … … 990 990 $post = get_post( $post_id ); 991 991 992 // Only translate P ost type items.992 // Only translate Plugin post objects. 993 993 if ( $post && $post->post_type === 'plugin' ) { 994 994 return Plugin_I18n::instance()->translate( 'title', $title, [ 'post_id' => $post ] ); … … 1008 1008 $post = get_post( $post ); 1009 1009 1010 // Only translate P ost type items.1010 // Only translate Plugin post objects. 1011 1011 if ( $post && $post->post_type === 'plugin' ) { 1012 1012 return Plugin_I18n::instance()->translate( 'excerpt', $excerpt, [ 'post_id' => $post ] );
Note: See TracChangeset
for help on using the changeset viewer.