Changeset 3468 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-i18n.php
- Timestamp:
- 06/19/2016 12:15:28 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-i18n.php
r3391 r3468 268 268 } 269 269 270 if ( !empty( $args['post_id'] ) && is_numeric( $args['post_id'] ) ) { 271 $topic = get_post( $args['post_id'] ); 272 } else { 273 global $post; 274 } 275 276 if ( empty( $post ) ) { 277 return $content; 278 } 279 280 if ( !empty( $args['locale'] ) ) { 270 $args = wp_parse_args( $args, [ 271 'post_id' => null, 272 'locale' => '', 273 ] ); 274 275 $post = get_post( $args['post_id'] ); 276 277 if ( ! $post ) { 278 return $content; 279 } 280 281 if ( ! empty( $args['locale'] ) ) { 281 282 $wp_locale = $args['locale']; 282 283 } else {
Note: See TracChangeset
for help on using the changeset viewer.