Skip to:
Content

bbPress.org

Changeset 4433


Ignore:
Timestamp:
11/18/2012 02:02:48 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Capabilities:

  • Set default param values in all map_meta_cap filters, incase none are passed or type cast correctly.
Location:
trunk/includes
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/admin/admin.php

    r4416 r4433  
    355355     * @return array Actual capabilities for meta capability
    356356     */
    357     public static function map_settings_meta_caps( $caps, $cap, $user_id, $args ) {
     357    public static function map_settings_meta_caps( $caps = array(), $cap = '', $user_id = 0, $args = array() ) {
    358358
    359359        // What capability is being checked?
  • trunk/includes/forums/capabilities.php

    r4419 r4433  
    4444 * @return array Actual capabilities for meta capability
    4545 */
    46 function bbp_map_forum_meta_caps( $caps, $cap, $user_id, $args ) {
     46function bbp_map_forum_meta_caps( $caps = array(), $cap = '', $user_id = 0, $args = array() ) {
    4747
    4848    // What capability is being checked?
  • trunk/includes/replies/capabilities.php

    r4353 r4433  
    4343 * @return array Actual capabilities for meta capability
    4444 */
    45 function bbp_map_reply_meta_caps( $caps, $cap, $user_id, $args ) {
     45function bbp_map_reply_meta_caps( $caps = array(), $cap = '', $user_id = 0, $args = array() ) {
    4646
    4747    // What capability is being checked?
  • trunk/includes/topics/capabilities.php

    r4353 r4433  
    6161 * @return array Actual capabilities for meta capability
    6262 */
    63 function bbp_map_topic_meta_caps( $caps, $cap, $user_id, $args ) {
     63function bbp_map_topic_meta_caps( $caps = array(), $cap = '', $user_id = 0, $args = array() ) {
    6464
    6565    // What capability is being checked?
  • trunk/includes/users/capabilities.php

    r4431 r4433  
    2222 * @return array Actual capabilities for meta capability
    2323 */
    24 function bbp_map_primary_meta_caps( $caps, $cap, $user_id, $args ) {
     24function bbp_map_primary_meta_caps( $caps = array(), $cap = '', $user_id = 0, $args = array() ) {
    2525
    2626    // What capability is being checked?
Note: See TracChangeset for help on using the changeset viewer.