Changeset 32731 for trunk/src/wp-includes/capabilities.php
- Timestamp:
- 06/12/2015 05:25:28 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/capabilities.php
r32650 r32731 632 632 633 633 /** 634 * Make private/protected methods readable for backwards compatibility. 635 * 636 * @since 4.3.0 637 * @access public 638 * 639 * @param callable $name Method to call. 640 * @param array $arguments Arguments to pass when calling. 641 * @return mixed|false Return value of the callback, false otherwise. 642 */ 643 public function __call( $name, $arguments ) { 644 if ( '_init_caps' === $name ) { 645 return call_user_func_array( array( $this, $name ), $arguments ); 646 } 647 return false; 648 } 649 650 /** 634 651 * Magic method for checking the existence of a certain custom field 635 652 * … … 762 779 * @param string $cap_key Optional capability key 763 780 */ 764 function _init_caps( $cap_key = '' ) {781 protected function _init_caps( $cap_key = '' ) { 765 782 global $wpdb; 766 783
Note: See TracChangeset
for help on using the changeset viewer.