Plugin Directory

Changeset 1362872

Timestamp:
03/02/2016 07:52:52 PM (8 years ago)
Author:
dougal
Message:

HOTFIX: Check role object before adding capability.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • all-in-one-seo-pack/trunk/aioseop_class.php

    r1362113 r1362872  
    820820                add_action( "output_option", Array( $this, 'custom_output_option' ), 10, 2 );
    821821                add_action('all_admin_notices', array( $this, 'visibility_warning'));
     822
     823
    822824                        }
    823825                        if(AIOSEOPPRO){
     
    16951697       
    16961698        $role = get_role( 'administrator' );
    1697         $role->add_cap( 'aiosp_manage_seo' );
     1699        $role->add_cap( 'aiosp_manage_seo' );
    16981700       
    16991701        aioseop_update_settings_check();
     
    19021904      }elseif( '1' == get_option('blog_public') && !empty( $aioseop_visibility_notice_dismissed ) ){
    19031905            delete_user_meta( get_current_user_id(), 'aioseop_visibility_notice_dismissed' );
     1906
     1907
     1908
     1909
     1910
     1911
     1912
     1913
     1914
     1915
     1916
     1917
     1918
     1919
     1920
     1921
     1922
     1923
     1924
     1925
     1926
     1927
    19041928            }
    19051929    }
Note: See TracChangeset for help on using the changeset viewer.