@@ -188,10 +183,12 @@ case "other": case "image": $oer_type=oer_get_resource_file_type($url); - if ($oer_type['name']=="PDF") - $resource_template = OER_PATH.'oer_template/single-resource-pdf.php'; - else - $resource_template = OER_PATH.'oer_template/single-resource-website.php'; + if (is_array($oer_type)){ + if ($oer_type['name']=="PDF") + $resource_template = OER_PATH.'oer_template/single-resource-pdf.php'; + else + $resource_template = OER_PATH.'oer_template/single-resource-website.php'; + } break; case "audio": $oer_type=oer_get_resource_file_type($url); diff --git a/open-educational-resources.php b/open-educational-resources.php index 4a12166..43cbf9c 100644 --- a/open-educational-resources.php +++ b/open-educational-resources.php @@ -3,7 +3,7 @@ Plugin Name: WP OER Plugin URI: https://www.wp-oer.com Description: Open Educational Resource management and curation, metadata publishing, and alignment to Common Core State Standards. - Version: 0.9.1 + Version: 0.9.2 Requires at least: 4.4 Requires PHP: 7.0 Author: Navigation North @@ -38,7 +38,7 @@ // Plugin Name and Version define( 'OER_PLUGIN_NAME', 'WP OER Plugin' ); define( 'OER_ADMIN_PLUGIN_NAME', 'WP OER Plugin'); -define( 'OER_VERSION', '0.9.1' ); +define( 'OER_VERSION', '0.9.2' ); define( 'OER_SITE_PATH', ABSPATH ); include_once(OER_PATH.'includes/oer-functions.php'); diff --git a/readme.txt b/readme.txt index b7a663f..34b6ea7 100644 --- a/readme.txt +++ b/readme.txt @@ -2,9 +2,9 @@ Contributors: navigationnorth, joehobson, johnpaulbalagolan, josepheneldas, arobotnamedchris Tags: OER, Open Educational Resources, Education, Teaching, Learning Requires at least: 4.4 -Tested up to: 6.0 +Tested up to: 6.0.2 Requires PHP: 7.0 -Stable tag: 0.9.1 +Stable tag: 0.9.2 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -41,6 +41,12 @@ No frequently asked questions. 3. Display educational resources on your WordPress website! == Changelog == += 0.9.2 = +* Fixed the overlapping text on the settings and import pages including the standard list display +* Fixed the Resource Block display error when the resource has no selected subject areas +* Fixed the front-end issue on Subject Resources block sorting and display count +* Tested up to WP 6.0.2 + = 0.9.1 = * Replaced move_uploaded_file with wp_handle_upload function when importing subject areas and resources * Removed quote around string placeholders used in $wpdb->prepare statements