Passworded gallery don't ask password and galleries open

Bring Your Business to LifeSupportImage StorePassworded gallery don't ask password and galleries open

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #55614
    Xpark Media
    Keymaster

    @kiyama,

    if you are an admin or have the access the galleries will not ask you for a password, all other users will be presented with the login form.

    if you want to disable the behavior add this code in your functions.php file or in a plugin.

    function mytheme_remove_ims_actions(){
    global $ImStore;
    remove_action( 'the_post', array( $ImStore, 'bypass_protected_galleries' ), -1 );
    }
    add_action( 'wp', 'mytheme_remove_ims_actions', 300 );
    
    #56469
    kiyama
    Participant

    if you are an admin or have the access the galleries will not ask you for a password, all other users will be presented with the login form.

    I tried logout, clearing cookies & caches, change the theme to default (twenty twelve). Galleries don’t ask passwords. Login form at “login page” works right. But, when I be there by “direct link” or “typing URL”, Gallery Does not ask a password (the word “Protected” before the page title is displayed).

    if you want to disable the behavior add this code in your functions.php file or in a plugin.

    It’s opposite. I want enable that.
    It used to ask the password. But now, Does not.

    I want galleries to ask the passwords and not to open without login, even if for someone who know the gallery’s URL.

    adding some information.
    I down-date the plugin one by one. I found that “Ver3.4” works right (the galleries ask a password). After 3.4 does not.

    #56474
    Xpark Media
    Keymaster

    @kiyama,

    Looks like it is a but with custom post types in WordPress 3.8, we will to implement a fix on the next release

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.