Make WordPress Core

Changeset 10719


Ignore:
Timestamp:
03/05/2009 08:30:56 PM (16 years ago)
Author:
ryan
Message:

Allow users with edit_posts cap to use ajax tag search. Props yoavf. fixes #8651

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r10681 r10719  
    4444switch ( $action = $_GET['action'] ) :
    4545case 'ajax-tag-search' :
    46     if ( !current_user_can( 'manage_categories' ) )
     46    if ( !current_user_can( 'edit_posts' ) )
    4747        die('-1');
    4848
Note: See TracChangeset for help on using the changeset viewer.