WordPress.org

Ready to get started?Download WordPress

Forums

Support for HTTPS of Admin Page (2 posts)

  1. hilary
    Member
    Posted 8 years ago #

    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');
    }

  2. skippy
    Member
    Posted 8 years ago #

    Consider adding this to trac.wordpress.org: better https support is something I've been advocating for some time.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.