WordPress.org

Support

Support » Plugins and Hacks » Support for HTTPS of Admin Page

Support for HTTPS of Admin Page

  • I am using WordPress. I will configurate the Apache to Redirect Admin Page to https server. But when I will using the adminstration function. check_admin_referer will reject my request. I have hack the function for checking https URL.

    function check_admin_referer() {
    $adminurl = strtolower( get_settings(‘siteurl’) ) . ‘/wp-admin’;
    $referer = strtolower( $_SERVER[‘HTTP_REFERER’] );
    /* Checking HTTPS */
    if (strstr($referer, “https://”)) $referer = “http://” . substr($referer, 8);
    /* Checking HTTPS */
    if ( !strstr($referer, $adminurl) )
    die(__(‘Sorry, you need to enable sending referrers for this feature to work.’));
    do_action(‘check_admin_referer’);
    }

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Support for HTTPS of Admin Page’ is closed to new replies.