Changeset 10200 for trunk/wp-admin/includes/schema.php
- Timestamp:
- 12/12/2008 08:47:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/schema.php
r10150 r10200 352 352 353 353 // Add caps for Administrator role 354 $role = get_role('administrator');354 $role =& get_role('administrator'); 355 355 $role->add_cap('switch_themes'); 356 356 $role->add_cap('edit_themes'); … … 385 385 386 386 // Add caps for Editor role 387 $role = get_role('editor');387 $role =& get_role('editor'); 388 388 $role->add_cap('moderate_comments'); 389 389 $role->add_cap('manage_categories'); … … 407 407 408 408 // Add caps for Author role 409 $role = get_role('author');409 $role =& get_role('author'); 410 410 $role->add_cap('upload_files'); 411 411 $role->add_cap('edit_posts'); … … 418 418 419 419 // Add caps for Contributor role 420 $role = get_role('contributor');420 $role =& get_role('contributor'); 421 421 $role->add_cap('edit_posts'); 422 422 $role->add_cap('read'); … … 425 425 426 426 // Add caps for Subscriber role 427 $role = get_role('subscriber');427 $role =& get_role('subscriber'); 428 428 $role->add_cap('read'); 429 429 $role->add_cap('level_0'); … … 438 438 $roles = array('administrator', 'editor'); 439 439 foreach ($roles as $role) { 440 $role = get_role($role);440 $role =& get_role($role); 441 441 if ( empty($role) ) 442 442 continue; … … 459 459 } 460 460 461 $role = get_role('administrator');461 $role =& get_role('administrator'); 462 462 if ( ! empty($role) ) { 463 463 $role->add_cap('delete_users'); … … 465 465 } 466 466 467 $role = get_role('author');467 $role =& get_role('author'); 468 468 if ( ! empty($role) ) { 469 469 $role->add_cap('delete_posts'); … … 471 471 } 472 472 473 $role = get_role('contributor');473 $role =& get_role('contributor'); 474 474 if ( ! empty($role) ) { 475 475 $role->add_cap('delete_posts'); … … 483 483 */ 484 484 function populate_roles_230() { 485 $role = get_role( 'administrator' );485 $role =& get_role( 'administrator' ); 486 486 487 487 if ( !empty( $role ) ) { … … 496 496 */ 497 497 function populate_roles_250() { 498 $role = get_role( 'administrator' );498 $role =& get_role( 'administrator' ); 499 499 500 500 if ( !empty( $role ) ) { … … 509 509 */ 510 510 function populate_roles_260() { 511 $role = get_role( 'administrator' );511 $role =& get_role( 'administrator' ); 512 512 513 513 if ( !empty( $role ) ) { … … 523 523 */ 524 524 function populate_roles_270() { 525 $role = get_role( 'administrator' );525 $role =& get_role( 'administrator' ); 526 526 527 527 if ( !empty( $role ) ) {
Note: See TracChangeset
for help on using the changeset viewer.