implementation if wordpress is in a subdirectory
-
hi,
nice plugin, thanks, but may i ask for a request ?
the way you are testing if it is an author page that is requested, if the author does not exists, is not working if wordpress is installed in a subdirectory :
for
https://example.com/wp/author/mike
the$request
is/wp/author/mike
sostripos
is not 0.what do you think about using
get_query_var()
instead of$request
:if ( is_404() && ( get_query_var( 'author' ) || get_query_var( 'author_name' ) ) ) { if ( get_option( 'disable_author_pages_redirect_non_authors' ) == 1 ) { $authorrequest = true; } } if ( is_404() && ! ( get_query_var( 'author' ) || get_query_var( 'author_name' ) ) ) { return; }
what do you think ?
seb.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘implementation if wordpress is in a subdirectory’ is closed to new replies.