- Timestamp:
- 11/09/2016 01:34:56 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase-rest-controller.php
r38832 r39177 41 41 42 42 public function filter_rest_url_for_leading_slash( $url, $path ) { 43 if ( is_multisite() ) { 44 return $url; 45 } 46 43 47 // Make sure path for rest_url has a leading slash for proper resolution. 44 $this->assertTrue( 0 === strpos( $path, '/' ) );48 $this->assertTrue( 0 === strpos( $path, '/' ), 'REST API URL should have a leading slash.' ); 45 49 46 50 return $url;
Note: See TracChangeset
for help on using the changeset viewer.