WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Mobile Pack
WP-Polls incompatibility (2 posts)

  1. xotihcan
    Member
    Posted 1 year ago #

    A post on my blog has a poll, created with WP-Polls. When voting, the login page appears.
    Here are the headers:

    http://m.abajarcolesterol.com/wp-admin/admin-ajax.php
    
    POST /wp-admin/admin-ajax.php HTTP/1.1
    Host: m.abajarcolesterol.com
    Content-Type: application/x-www-form-urlencoded; charset=UTF-8
    X-Requested-With: XMLHttpRequest
    Referer: http://m.abajarcolesterol.com/que-es-el-colesterol-vldl/
    
    HTTP/1.1 302 Moved Temporarily
    Location: http://m.abajarcolesterol.com/wp-login.php?redirect_to=http%3A%2F%2Fm.abajarcolesterol.com%2Fwp-admin%2F

    What can I do to fix the problem ?

    http://wordpress.org/extend/plugins/wordpress-mobile-pack/

  2. xotihcan
    Member
    Posted 1 year ago #

    Fixed it.
    On plugins/wpmp_switcher.php.
    Before:
    if (is_admin() || strtolower(substr($_SERVER['REQUEST_URI'], -9))=='/wp-admin') {
    After:
    if ((is_admin() || strtolower(substr($_SERVER['REQUEST_URI'], -9))=='/wp-admin') && empty($_REQUEST['action'])) {

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic