Changeset 38321 for trunk/src/wp-includes/embed.php
- Timestamp:
- 08/23/2016 12:04:46 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/embed.php
r37744 r38321 381 381 $url = rest_url( 'oembed/1.0/embed' ); 382 382 383 if ( 'json' === $format ) {384 $format = false;385 }386 387 383 if ( '' !== $permalink ) { 388 384 $url = add_query_arg( array( 389 385 'url' => urlencode( $permalink ), 390 'format' => $format,386 'format' => ( 'json' !== $format ) ? $format : false, 391 387 ), $url ); 392 388 }
Note: See TracChangeset
for help on using the changeset viewer.