8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
papi_ajax to work in admin when doing conditionals (bool show as per example)
papi_ajax call was blocked since it was doing the request to get_bloginfo( 'url' ) and I have define('FORCE_SSL_ADMIN', true);
set bloginfo url to http and turn on SSL as above in wp-config. paste the sample code from conditionals in docs.
Change row 34 - function ajax_url() in class-papi-admin-ajax.php from $url = esc_url( trailingslashit( get_bloginfo( 'url' ) ) . 'papi-ajax/' ); to $url = esc_url( trailingslashit( home_url( '/' , is_ssl() ? 'https' : 'http' ) ) . 'papi-ajax/' );
The text was updated successfully, but these errors were encountered:
Fix force ssl admin #213
908b57c
5e1d184
e51fd4a
Thanks, fixed in all branches and will be out in next patch version!
Sorry, something went wrong.
No branches or pull requests
What I expected
papi_ajax to work in admin when doing conditionals (bool show as per example)
What happened instead
papi_ajax call was blocked since it was doing the request to get_bloginfo( 'url' ) and I have define('FORCE_SSL_ADMIN', true);
Steps to reproduce
set bloginfo url to http and turn on SSL as above in wp-config.
paste the sample code from conditionals in docs.
Proposed fix
Change row 34 - function ajax_url() in class-papi-admin-ajax.php
from
$url = esc_url( trailingslashit( get_bloginfo( 'url' ) ) . 'papi-ajax/' );
to
$url = esc_url( trailingslashit( home_url( '/' , is_ssl() ? 'https' : 'http' ) ) . 'papi-ajax/' );
What versions of softwares are you using?
The text was updated successfully, but these errors were encountered: