oEmbed: Drop the trailing slash from the namespace.
Props swissspidy. Fixes #34709. git-svn-id: https://develop.svn.wordpress.org/trunk@35656 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d55c605242
commit
6190489e45
@ -31,7 +31,7 @@ final class WP_oEmbed_Controller {
|
||||
*/
|
||||
$maxwidth = apply_filters( 'oembed_default_width', 600 );
|
||||
|
||||
register_rest_route( 'oembed/1.0/', '/embed', array(
|
||||
register_rest_route( 'oembed/1.0', '/embed', array(
|
||||
array(
|
||||
'methods' => WP_REST_Server::READABLE,
|
||||
'callback' => array( $this, 'get_item' ),
|
||||
|
Loading…
Reference in New Issue
Block a user