The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Support for HTTPS of Admin Page (2 posts)

  1. hilary
    Posted 11 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.'));

  2. skippy
    Posted 11 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


No tags yet.