Changeset 43766 for branches/5.0/src/wp-includes/rest-api.php
- Timestamp:
- 10/19/2018 11:13:57 AM (7 years ago)
- Location:
- branches/5.0
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/rest-api.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0
-
branches/5.0/src/wp-includes/rest-api.php
r43763 r43766 326 326 } 327 327 328 $path = '/' . ltrim( $path, '/' ); 329 328 330 if ( is_multisite() && get_blog_option( $blog_id, 'permalink_structure' ) || get_option( 'permalink_structure' ) ) { 329 331 global $wp_rewrite; … … 335 337 } 336 338 337 $url .= '/' . ltrim( $path, '/' );339 $url .= $path; 338 340 } else { 339 341 $url = trailingslashit( get_home_url( $blog_id, '', $scheme ) ); … … 343 345 $url .= 'index.php'; 344 346 } 345 346 $path = '/' . ltrim( $path, '/' );347 347 348 348 $url = add_query_arg( 'rest_route', $path, $url );
Note: See TracChangeset
for help on using the changeset viewer.