Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Security Settings

  1. #1
    Thread Starter
    Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    884
    Thanks
    310
    Thanked 57 Times in 51 Posts

    Post Security Settings

    Adding to this: If logged in as a user (default role set to contributor) and I type http://www.domain.com/wp-admin/ I can actually access the WP panel despite setting the Back-Office to Administrator level only under the Security settings.

    Remedy / Temp fix for this issue:

    File: theme-functions.php
    Add the following code:

    // block WP admin access
    function prevent_admin_access() {
    if (strpos(strtolower($_SERVER['REQUEST_URI']), '/wp-admin') !== false && !current_user_can('administrator')) {
    wp_redirect(get_option('siteurl'));
    }
    }

    add_action('init', 'prevent_admin_access', 0);
    // End of code

    Was the code redone from scratch for 3.1? Cause this was working fine before.

    Again, my install is on a FRESH new WP 3.1.4 (French)

  2. The Following User Says Thank You to Fanatic For This Useful Post:

    quim (July 10th, 2011)

  3. #2
    Member altor25's Avatar
    Join Date
    Jun 2011
    Location
    Canada
    Posts
    56
    Thanks
    10
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #3
    Thread Starter
    Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    884
    Thanks
    310
    Thanked 57 Times in 51 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #4
    pepsi's Avatar
    Join Date
    Mar 2009
    Location
    New Zealand
    Posts
    14,887
    Thanks
    91
    Thanked 807 Times in 721 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #5
    Thread Starter
    Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    884
    Thanks
    310
    Thanked 57 Times in 51 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #6
    Member itsme's Avatar
    Join Date
    Jun 2011
    Posts
    62
    Thanks
    10
    Thanked 13 Times in 6 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Attached Images Attached Images

  8. #7
    Thread Starter
    Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    884
    Thanks
    310
    Thanked 57 Times in 51 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  9. #8
    Thread Starter
    Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    884
    Thanks
    310
    Thanked 57 Times in 51 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  10. #9
    Thread Starter
    Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    884
    Thanks
    310
    Thanked 57 Times in 51 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  11. #10
    Thread Starter
    Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    884
    Thanks
    310
    Thanked 57 Times in 51 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Wordpress 3.1.3 Security Update
    By tinygiantstudios in forum Report JobRoller Bugs
    Replies: 3
    Last Post: May 28th, 2011, 06:58 AM
  2. Site Security
    By russbaugh in forum Report JobRoller Bugs
    Replies: 2
    Last Post: March 26th, 2011, 07:15 PM
  3. Security concerns
    By doctorcilantro in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: February 20th, 2011, 10:07 PM