public/wordpress/wp-content/plugins/h5p/admin/class-h5p-content-admin.php
/**
   * Provide data for content results view.
   *
   * @since 1.2.0
   */
Provide data for content results view.
Provide data for content results view .
public function ajax_content_results() {
    $id = filter_input(INPUT_GET, 'id', FILTER_SANITIZE_NUMBER_INT);
    if (!$id) {
      return; 
    }
    $plugin = H5P_Plugin::get_instance();
    $content = $plugin->get_content($id);
    if (is_string($content) || !$this->current_user_can_edit($content)) {
      return; 
    }
    $plugin_admin = H5P_Plugin_Admin::get_instance();
    $plugin_admin->print_results($id);
  }
public function ajax_content_results ( ) { $ id = filter_input ( INPUT_GET , 'id' , FILTER_SANITIZE_NUMBER_INT ) ; if ( ! $ id ) { return ; } $ plugin = H5P_Plugin :: get_instance ( ) ; $ content = $ plugin -> get_content ( $ id ) ; if ( is_string ( $ content ) || ! $ this -> current_user_can_edit ( $ content ) ) { return ; } $ plugin_admin = H5P_Plugin_Admin :: get_instance ( ) ; $ plugin_admin -> print_results ( $ id ) ; }
Provide data for content results view.
Provide data for content results view .
// Missing id // Error loading content or no access