WordPress.org

Make WordPress Core

Changeset 11477


Ignore:
Timestamp:
05/28/2009 08:35:09 PM (12 years ago)
Author:
ryan
Message:

Fix notice. Props wnorris. fixes #8433

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/user-edit.php

    r11447 r11477  
    4040}
    4141
    42 $all_post_types = apply_filters('all_post_types', array('post', 'page'));
     42$all_post_caps = array('posts', 'pages');
    4343$user_can_edit = false;
    44 foreach ( $all_post_types as $post_type )
    45     $user_can_edit |= current_user_can("edit_$post_type");
     44foreach ( $all_post_caps as $post_cap )
     45    $user_can_edit |= current_user_can("edit_$post_cap");
    4646
    4747/**
Note: See TracChangeset for help on using the changeset viewer.