WP_MS_Themes_List_Table::ajax_user_can() –

You appear to be a bot. Output may be restricted

Description

Usage

$bool = WP_MS_Themes_List_Table::ajax_user_can();

Parameters

Returns

bool

Source

File name: wordpress/wp-admin/includes/class-wp-ms-themes-list-table.php
Lines:

1 to 7 of 7
  public function ajax_user_can() {
    if ( $this->is_site_themes ) {
      return current_user_can( 'manage_sites' );
    } else {
      return current_user_can( 'manage_network_themes' );
    }
  }
 

 View on GitHub View on Trac