diff --git a/assets/css/wampum-protected-media.css b/assets/css/wampum-protected-media.css index 58bf69e..6faee0c 100644 --- a/assets/css/wampum-protected-media.css +++ b/assets/css/wampum-protected-media.css @@ -19,6 +19,7 @@ --------------------------------------------- */ #wpm-list { + clear: both; border: 1px solid rgba(0,0,0,0.05); border-radius: 4px; overflow: hidden; diff --git a/wampum-protected-media.php b/wampum-protected-media.php index 105462f..d089f64 100644 --- a/wampum-protected-media.php +++ b/wampum-protected-media.php @@ -3,7 +3,7 @@ * Plugin Name: Wampum - Protected Media * Plugin URI: https://bizbudding.com * Description: Attach PDFs to pages/posts/cpts that can only be viewed from the pages they are attached to (via PDF.js). Requires Genesis for file display and ACF Pro for the files metabox. - * Version: 1.1.1 + * Version: 1.1.2 * * Author: Mike Hemberger, BizBudding * Author URI: https://bizbudding.com @@ -98,7 +98,7 @@ private function setup_constants() { // Plugin version. if ( ! defined( 'WAMPUM_PROTECTED_MEDIA_VERSION' ) ) { - define( 'WAMPUM_PROTECTED_MEDIA_VERSION', '1.1.1' ); + define( 'WAMPUM_PROTECTED_MEDIA_VERSION', '1.1.2' ); } // Plugin Folder Path. @@ -160,17 +160,19 @@ public function filters() { } public function updater() { - /** - * Setup the updater. - * - * @uses https://github.com/YahnisElsts/plugin-update-checker/ - * - * @return void - */ - if ( ! class_exists( 'Puc_v4_Factory' ) ) { - require_once MAI_FAVORITES_PLUGIN_DIR . 'plugin-update-checker/plugin-update-checker.php'; + if ( is_admin() ) { + /** + * Setup the updater. + * + * @uses https://github.com/YahnisElsts/plugin-update-checker/ + * + * @return void + */ + if ( ! class_exists( 'Puc_v4_Factory' ) ) { + require_once MAI_FAVORITES_PLUGIN_DIR . 'plugin-update-checker/plugin-update-checker.php'; + } + $updater = Puc_v4_Factory::buildUpdateChecker( 'https://github.com/bizbudding/wampum-protected-media/', __FILE__, 'wampum-protected-media' ); } - $updater = Puc_v4_Factory::buildUpdateChecker( 'https://github.com/bizbudding/wampum-protected-media/', __FILE__, 'wampum-protected-media' ); } /**