WordPress.org

Make WordPress Core

Ticket #8651: ajax-tag-search.patch

File ajax-tag-search.patch, 440 bytes (added by yoavf, 7 years ago)
  • admin-ajax.php

     
    4040if ( isset( $_GET['action'] ) ) : 
    4141switch ( $action = $_GET['action'] ) : 
    4242case 'ajax-tag-search' : 
    43         if ( !current_user_can( 'manage_categories' ) ) 
     43        if ( !current_user_can( 'edit_posts' ) ) 
    4444                die('-1'); 
    4545 
    4646        $s = $_GET['q']; // is this slashed already?