WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #17528, comment 11


Ignore:
Timestamp:
06/23/11 17:34:41 (4 years ago)
Author:
kevinB
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17528, comment 11

    v1 v2  
    33{{{ 
    44// Remove "Add New" submenu items if user can only edit existing posts. 
    5 // This executes on the 'admin_init' action. 
     5// This causes permissions failure if executed on the 'admin_menu' action. 
    66foreach ( get_post_types() as $type ) { 
    77   if ( ! plugin_func_user_can_add_posts( $type ) ) {