Viewing 1 replies (of 1 total)
  • Thread Starter Hrohh

    (@hrohh)

    $returnurl = admin_url("post.php?post={$_POST["ID"]}&action=edit&message=1");
    
    	// Execute hook actions - thanks rubious for the suggestion!
    	if (isset($new_guid)) { do_action("enable-media-replace-upload-done", ($new_guid ? $new_guid : $current_guid)); }
    
    } else {
    	//TODO Better error handling when no file is selected.
    	//For now just go back to media management
    	$returnurl = admin_url("upload.php");
    }
    /*
    if (FORCE_SSL_ADMIN) {
    	$returnurl = str_replace("http:", "https:", $returnurl);
    }
    */
    //save redirection
    wp_redirect($returnurl);
Viewing 1 replies (of 1 total)
  • The topic ‘issue with changed admin url’ is closed to new replies.