BuddyBoss Home – Web Support Forums Plugins BuddyBoss Wall URL Preview (internal url) captures login page instead

Viewing 3 posts - 1 through 3 (of 3 total)
  • Question

    #55039
    @adminzenoed

    When writing URL (in same wordpress installation) in the activity wall, the wordpress wp-login.php is shown instead. How to allow url preview to work (I am using WP Require Auth).

    Answers

    #55072

    Anonymous
    @

    Hi @adminzenoed, Preview will not work if url will not be a public url
    You can use your developer to create custom patch for WP Require Auth.
    Regards
    Varun Dubey

    #55081
    @adminzenoed

    I’m trying to create something like this which you gave for RBE… any idea how to do this for the url preview ?

    
    /*
    Plugin Name: WP Require Auth Plugin Fix for RBE
    Description: Fix Private Plugin Conflict With RBE Plugin
    Version: 1.1
    Author: BB
    Author URI: #
    */
    
    defined('ABSPATH') or exit;
    
    function rbe_fix_wp_require_auth()
    {
        global $pagenow,$_SERVER;
        
        if(defined( 'DOING_AJAX' ) && DOING_AJAX) {
            
           if($pagenow == "admin-ajax.php" AND isset($_GET["action"]) AND $_GET["action"] == "cloudmailin_incoming_service") {
                      $_SERVER["PHP_SELF"] = "wp-login.php"; // by pass site private.
           }
        }
    }
    
    add_action('init', 'rbe_fix_wp_require_auth',1);
    
Viewing 3 posts - 1 through 3 (of 3 total)
  • The question ‘URL Preview (internal url) captures login page instead’ is closed to new replies.