diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9f8354e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: php - -php: - - 5.5 - - 5.4 - - 5.3 - - 5.2 - -env: - - WP_VERSION=latest WP_MULTISITE=0 - - WP_VERSION=latest WP_MULTISITE=1 - - WP_VERSION=4.0 WP_MULTISITE=0 - - WP_VERSION=4.0 WP_MULTISITE=1 - - WP_VERSION=3.9 WP_MULTISITE=0 - - WP_VERSION=3.9 WP_MULTISITE=1 - - WP_VERSION=3.8 WP_MULTISITE=0 - - WP_VERSION=3.8 WP_MULTISITE=1 - -script: phpunit \ No newline at end of file diff --git a/includes/retired-shortcodes.php b/includes/retired-shortcodes.php deleted file mode 100644 index a87eb5c..0000000 --- a/includes/retired-shortcodes.php +++ /dev/null @@ -1,40 +0,0 @@ - 'tomorrow', // shortcode will not work without a set date - ), - $args - )); - if (strtotime($off) > time()) { - return $content; - } - return ''; -} - -add_shortcode('expires', 'thewanderingbrit_expire_shortcode'); - - -// add showafter shortcode - -function thewanderingbrit_showafter_shortcode($args = array(), $content = '') { - extract(shortcode_atts( - array( - 'on' => 'tomorrow', // shortcode will not work without a set date - ), - $args - )); - if (strtotime($on) < time()) { - return $content; - } - return ''; -} -add_shortcode('showafter', 'thewanderingbrit_showafter_shortcode'); \ No newline at end of file diff --git a/shortcodes-to-show-or-hide-content.php b/shortcodes-to-show-or-hide-content.php index 4a431cf..0ca0723 100644 --- a/shortcodes-to-show-or-hide-content.php +++ b/shortcodes-to-show-or-hide-content.php @@ -3,14 +3,14 @@ * Plugin Name: Shortcodes to show or hide content * Plugin URI: https://github.com/theukedge/shortcodes-to-show-or-hide-content * Description: Set a date/time to show or hide specific parts of a post's content - * Version: 2.4 + * Version: 2.5 * Author: Dave Clements * Author URI: https://www.theukedge.com * License: GPL2 * * @package STSOHC * @author Dave Clements - * @version 2.4 + * @version 2.5 */ /* @@ -50,4 +50,3 @@ */ include( SHOWHIDE_PLUGIN_DIR . 'includes/shortcodes.php' ); // Where the magic happens. -include( SHOWHIDE_PLUGIN_DIR . 'includes/retired-shortcodes.php' ); // Legacy support for original shortcodes.