Ticket #8663: custom_capabilities_prefix.diff
File custom_capabilities_prefix.diff, 585 bytes (added by , 16 years ago) |
---|
-
capabilities.php
501 501 */ 502 502 function _init_caps() { 503 503 global $wpdb; 504 $this->cap_key = $wpdb->prefix . 'capabilities'; 504 if ( defined('CUSTOM_CAPABILITIES_PREFIX') ) { 505 $this->cap_key = CUSTOM_CAPABILITIES_PREFIX . 'capabilities'; 506 } else { 507 $this->cap_key = $wpdb->prefix . 'capabilities'; 508 } 505 509 $this->caps = &$this->{$this->cap_key}; 506 510 if ( ! is_array( $this->caps ) ) 507 511 $this->caps = array();