Changeset 42250 for trunk/src/wp-includes/rest-api.php
- Timestamp:
- 11/28/2017 07:09:43 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api.php
r42000 r42250 308 308 } 309 309 310 $path = '/' . ltrim( $path, '/' ); 311 310 312 if ( is_multisite() && get_blog_option( $blog_id, 'permalink_structure' ) || get_option( 'permalink_structure' ) ) { 311 313 global $wp_rewrite; … … 317 319 } 318 320 319 $url .= '/' . ltrim( $path, '/' );321 $url .= $path; 320 322 } else { 321 323 $url = trailingslashit( get_home_url( $blog_id, '', $scheme ) ); … … 325 327 $url .= 'index.php'; 326 328 } 327 328 $path = '/' . ltrim( $path, '/' );329 329 330 330 $url = add_query_arg( 'rest_route', $path, $url );
Note: See TracChangeset
for help on using the changeset viewer.