Skip to content

Commit 52689fb

Browse files
committed
Move authorization class to correct position
1 parent 137bacf commit 52689fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

authorize-page.php renamed to lib/class-wp-json-authentication-oauth1-authorize.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function render_page() {
8282

8383
$file = locate_template( 'oauth1-authorize.php' );
8484
if ( empty( $file ) ) {
85-
$file = dirname( __FILE__ ) . '/theme/oauth1-authorize.php';
85+
$file = dirname( dirname( __FILE__ ) ) . '/theme/oauth1-authorize.php';
8686
}
8787

8888
include $file;

oauth-server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
include_once( dirname( __FILE__ ) . '/lib/class-wp-json-authentication.php' );
88
include_once( dirname( __FILE__ ) . '/lib/class-wp-json-authentication-oauth1.php' );
9-
include_once( dirname( __FILE__ ) . '/authorize-page.php' );
9+
include_once( dirname( __FILE__ ) . '/lib/class-wp-json-authentication-oauth1-authorize.php' );
1010

1111
/**
1212
* Register our rewrite rules for the API

0 commit comments

Comments
 (0)