Changeset 24381
- Timestamp:
- 05/28/2013 05:06:39 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/schema.php (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/schema.php
r23902 r24381 587 587 588 588 // Add caps for Administrator role 589 $role = &get_role('administrator');589 $role = get_role('administrator'); 590 590 $role->add_cap('switch_themes'); 591 591 $role->add_cap('edit_themes'); … … 620 620 621 621 // Add caps for Editor role 622 $role = &get_role('editor');622 $role = get_role('editor'); 623 623 $role->add_cap('moderate_comments'); 624 624 $role->add_cap('manage_categories'); … … 642 642 643 643 // Add caps for Author role 644 $role = &get_role('author');644 $role = get_role('author'); 645 645 $role->add_cap('upload_files'); 646 646 $role->add_cap('edit_posts'); … … 653 653 654 654 // Add caps for Contributor role 655 $role = &get_role('contributor');655 $role = get_role('contributor'); 656 656 $role->add_cap('edit_posts'); 657 657 $role->add_cap('read'); … … 660 660 661 661 // Add caps for Subscriber role 662 $role = &get_role('subscriber');662 $role = get_role('subscriber'); 663 663 $role->add_cap('read'); 664 664 $role->add_cap('level_0'); … … 673 673 $roles = array('administrator', 'editor'); 674 674 foreach ($roles as $role) { 675 $role = &get_role($role);675 $role = get_role($role); 676 676 if ( empty($role) ) 677 677 continue; … … 694 694 } 695 695 696 $role = &get_role('administrator');696 $role = get_role('administrator'); 697 697 if ( ! empty($role) ) { 698 698 $role->add_cap('delete_users'); … … 700 700 } 701 701 702 $role = &get_role('author');702 $role = get_role('author'); 703 703 if ( ! empty($role) ) { 704 704 $role->add_cap('delete_posts'); … … 706 706 } 707 707 708 $role = &get_role('contributor');708 $role = get_role('contributor'); 709 709 if ( ! empty($role) ) { 710 710 $role->add_cap('delete_posts'); … … 718 718 */ 719 719 function populate_roles_230() { 720 $role = &get_role( 'administrator' );720 $role = get_role( 'administrator' ); 721 721 722 722 if ( !empty( $role ) ) { … … 731 731 */ 732 732 function populate_roles_250() { 733 $role = &get_role( 'administrator' );733 $role = get_role( 'administrator' ); 734 734 735 735 if ( !empty( $role ) ) { … … 744 744 */ 745 745 function populate_roles_260() { 746 $role = &get_role( 'administrator' );746 $role = get_role( 'administrator' ); 747 747 748 748 if ( !empty( $role ) ) { … … 758 758 */ 759 759 function populate_roles_270() { 760 $role = &get_role( 'administrator' );760 $role = get_role( 'administrator' ); 761 761 762 762 if ( !empty( $role ) ) { … … 772 772 */ 773 773 function populate_roles_280() { 774 $role = &get_role( 'administrator' );774 $role = get_role( 'administrator' ); 775 775 776 776 if ( !empty( $role ) ) { … … 785 785 */ 786 786 function populate_roles_300() { 787 $role = &get_role( 'administrator' );787 $role = get_role( 'administrator' ); 788 788 789 789 if ( !empty( $role ) ) {
Note: See TracChangeset
for help on using the changeset viewer.