WordPress.org

Plugin Directory

Changeset 1608922


Ignore:
Timestamp:
03/06/17 18:53:18 (6 months ago)
Author:
coffee2code
Message:

Release v2.2.1:

  • Fix: Bug fixes for unit tests
    • Don't declaring test class variable as static
    • Remove iteration of nonexistent variable
  • Change: Update unit test bootstrap
    • Default WP_TESTS_DIR to /tmp/wordpress-tests-lib rather than erroring out if not defined via environment variable
    • Enable more error output for unit tests
  • Change: Note compatibility through WP 4.7+
  • Change: Minor readme.txt content and formatting tweaks
  • Change: Update copyright date (2017)
Location:
linkify-tags
Files:
6 edited
10 copied

Legend:

Unmodified
Added
Removed
  • linkify-tags/tags/2.2.1/linkify-tags.php

    r1395899 r1608922  
    22/** 
    33 * Plugin Name: Linkify Tags 
    4  * Version:     2.2 
     4 * Version:     2.2.1 
    55 * Plugin URI:  http://coffee2code.com/wp-plugins/linkify-tags/ 
    66 * Author:      Scott Reilly 
     
    1111 * Description: Turn a list of tag IDs and/or slugs into a list of links to those tags. Includes widget and template tag. 
    1212 * 
    13  * Compatible with WordPress 3.3 through 4.5+. 
     13 * Compatible with WordPress 3.3 through 4.7+. 
    1414 * 
    1515 * =>> Read the accompanying readme.txt file for instructions and documentation. 
     
    1919 * @package Linkify_Tags 
    2020 * @author  Scott Reilly 
    21  * @version 2.2 
     21 * @version 2.2.1 
    2222 */ 
    2323 
    2424/* 
    25     Copyright (c) 2009-2016 by Scott Reilly (aka coffee2code) 
     25    Copyright (c) 2009-2017 by Scott Reilly (aka coffee2code) 
    2626 
    2727    This program is free software; you can redistribute it and/or 
  • linkify-tags/tags/2.2.1/linkify-tags.widget.php

    r1374819 r1608922  
    33 * Linkify Tags plugin widget code 
    44 * 
    5  * Copyright (c) 2011-2016 by Scott Reilly (aka coffee2code) 
     5 * Copyright (c) 2011-2017 by Scott Reilly (aka coffee2code) 
    66 * 
    77 * @package Linkify_Tags_Widget 
  • linkify-tags/tags/2.2.1/readme.txt

    r1395899 r1608922  
    66License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    77Requires at least: 3.3 
    8 Tested up to: 4.5 
    9 Stable tag: 2.2 
    10  
    11 Turn a list of tag IDs and/or slugs into a list of links to those tags. Includes widget and template tag. 
     8Tested up to: 4.7 
     9Stable tag: 2.2.1 
     10 
     11Turn a list of tag IDs and/or slugs into a list of links to those tags. Provides a widget and template tag. 
    1212 
    1313== Description == 
     
    2020== Installation == 
    2121 
    22 1. Unzip `linkify-tags.zip` inside the `/wp-content/plugins/` directory for your site (or install via the built-in WordPress plugin installer) 
    23 1. Activate the plugin through the 'Plugins' admin menu in WordPress 
    24 1. Use the c2c_linkify_tags() template tag in one of your templates (be sure to pass it at least the first argument indicating what tag IDs and/or slugs to linkify -- the argument can be an array, a space-separate list, or a comma-separated list). Other optional arguments are available to customize the output. 
     221. Install via the built-in WordPress plugin installer. Or download and unzip `linkify-tags.zip` inside the plugins directory for your site (typically `wp-content/plugins/`) 
     232. Activate the plugin through the 'Plugins' admin menu in WordPress 
     243. Optional: Use the `c2c_linkify_tags()` template tag in one of your templates (be sure to pass it at least the first argument indicating what tag IDs and/or slugs to linkify -- the argument can be an array, a space-separate list, or a comma-separated list). Other optional arguments are available to customize the output. 
     254. Optional: Use the "Linkify Tags" widget in one of the sidebar provided by your theme. 
    2526 
    2627 
     
    147148 
    148149== Changelog == 
     150 
     151= 2.2.1 (2017-02-27) = 
     152* Fix: Bug fixes for unit tests 
     153    * Don't declaring test class variable as static 
     154    * Remove iteration of nonexistent variable 
     155* Change: Update unit test bootstrap 
     156    * Default `WP_TESTS_DIR` to `/tmp/wordpress-tests-lib` rather than erroring out if not defined via environment variable 
     157    * Enable more error output for unit tests 
     158* Change: Note compatibility through WP 4.7+ 
     159* Change: Minor readme.txt content and formatting tweaks 
     160* Change: Update copyright date (2017) 
    149161 
    150162= 2.2 (2016-03-14) = 
     
    252264== Upgrade Notice == 
    253265 
     266= 2.2.1 = 
     267Trivial update: fixed some unit tests, noted compatibility through WP 4.7+, updated copyright date 
     268 
    254269= 2.2 = 
    255270Minor update: minor updates to widget code and unit tests; verified compatibility through WP 4.4; updated copyright date (2016). 
  • linkify-tags/tags/2.2.1/tests/bootstrap.php

    r826467 r1608922  
    11<?php 
     2/** 
     3 * PHPUnit bootstrap file 
     4 * 
     5 * @package Linkify_Tags 
     6 */ 
    27 
    3 require_once getenv( 'WP_TESTS_DIR' ) . '/includes/functions.php'; 
     8ini_set('display_errors','on'); 
     9error_reporting(E_ALL); 
    410 
     11$_tests_dir = getenv( 'WP_TESTS_DIR' ); 
     12if ( ! $_tests_dir ) { 
     13        $_tests_dir = '/tmp/wordpress-tests-lib'; 
     14} 
     15 
     16// Give access to tests_add_filter() function. 
     17require_once $_tests_dir . '/includes/functions.php'; 
     18 
     19/** 
     20 * Manually load the plugin being tested. 
     21 */ 
    522function _manually_load_plugin() { 
    6     require dirname( __FILE__ ) . '/../linkify-tags.php'; 
     23        require dirname( dirname( __FILE__ ) ) . '/linkify-tags.php'; 
    724} 
    825tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' ); 
    926 
    10 require getenv( 'WP_TESTS_DIR' ) . '/includes/bootstrap.php'; 
     27// Start up the WP testing environment. 
     28require $_tests_dir . '/includes/bootstrap.php'; 
  • linkify-tags/tags/2.2.1/tests/test-linkify-tags.php

    r1374819 r1608922  
    55class Linkify_Tags_Test extends WP_UnitTestCase { 
    66 
    7     private static $tag_ids = array(); 
     7    private $tag_ids = array(); 
    88 
    99    public function setUp() { 
     
    4141            $tag = get_term( $this->tag_ids[ $tag_index ] ); 
    4242            $str .= '<a href="http://example.org/?tag=' . $tag->slug . '" title="View all posts in ' . $tag->name . '">' . $tag->name . '</a>'; 
    43             $j++; 
    4443        } 
    4544        return $str; 
  • linkify-tags/trunk/linkify-tags.php

    r1395899 r1608922  
    22/** 
    33 * Plugin Name: Linkify Tags 
    4  * Version:     2.2 
     4 * Version:     2.2.1 
    55 * Plugin URI:  http://coffee2code.com/wp-plugins/linkify-tags/ 
    66 * Author:      Scott Reilly 
     
    1111 * Description: Turn a list of tag IDs and/or slugs into a list of links to those tags. Includes widget and template tag. 
    1212 * 
    13  * Compatible with WordPress 3.3 through 4.5+. 
     13 * Compatible with WordPress 3.3 through 4.7+. 
    1414 * 
    1515 * =>> Read the accompanying readme.txt file for instructions and documentation. 
     
    1919 * @package Linkify_Tags 
    2020 * @author  Scott Reilly 
    21  * @version 2.2 
     21 * @version 2.2.1 
    2222 */ 
    2323 
    2424/* 
    25     Copyright (c) 2009-2016 by Scott Reilly (aka coffee2code) 
     25    Copyright (c) 2009-2017 by Scott Reilly (aka coffee2code) 
    2626 
    2727    This program is free software; you can redistribute it and/or 
  • linkify-tags/trunk/linkify-tags.widget.php

    r1374819 r1608922  
    33 * Linkify Tags plugin widget code 
    44 * 
    5  * Copyright (c) 2011-2016 by Scott Reilly (aka coffee2code) 
     5 * Copyright (c) 2011-2017 by Scott Reilly (aka coffee2code) 
    66 * 
    77 * @package Linkify_Tags_Widget 
  • linkify-tags/trunk/readme.txt

    r1395899 r1608922  
    66License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    77Requires at least: 3.3 
    8 Tested up to: 4.5 
    9 Stable tag: 2.2 
    10  
    11 Turn a list of tag IDs and/or slugs into a list of links to those tags. Includes widget and template tag. 
     8Tested up to: 4.7 
     9Stable tag: 2.2.1 
     10 
     11Turn a list of tag IDs and/or slugs into a list of links to those tags. Provides a widget and template tag. 
    1212 
    1313== Description == 
     
    2020== Installation == 
    2121 
    22 1. Unzip `linkify-tags.zip` inside the `/wp-content/plugins/` directory for your site (or install via the built-in WordPress plugin installer) 
    23 1. Activate the plugin through the 'Plugins' admin menu in WordPress 
    24 1. Use the c2c_linkify_tags() template tag in one of your templates (be sure to pass it at least the first argument indicating what tag IDs and/or slugs to linkify -- the argument can be an array, a space-separate list, or a comma-separated list). Other optional arguments are available to customize the output. 
     221. Install via the built-in WordPress plugin installer. Or download and unzip `linkify-tags.zip` inside the plugins directory for your site (typically `wp-content/plugins/`) 
     232. Activate the plugin through the 'Plugins' admin menu in WordPress 
     243. Optional: Use the `c2c_linkify_tags()` template tag in one of your templates (be sure to pass it at least the first argument indicating what tag IDs and/or slugs to linkify -- the argument can be an array, a space-separate list, or a comma-separated list). Other optional arguments are available to customize the output. 
     254. Optional: Use the "Linkify Tags" widget in one of the sidebar provided by your theme. 
    2526 
    2627 
     
    147148 
    148149== Changelog == 
     150 
     151= 2.2.1 (2017-02-27) = 
     152* Fix: Bug fixes for unit tests 
     153    * Don't declaring test class variable as static 
     154    * Remove iteration of nonexistent variable 
     155* Change: Update unit test bootstrap 
     156    * Default `WP_TESTS_DIR` to `/tmp/wordpress-tests-lib` rather than erroring out if not defined via environment variable 
     157    * Enable more error output for unit tests 
     158* Change: Note compatibility through WP 4.7+ 
     159* Change: Minor readme.txt content and formatting tweaks 
     160* Change: Update copyright date (2017) 
    149161 
    150162= 2.2 (2016-03-14) = 
     
    252264== Upgrade Notice == 
    253265 
     266= 2.2.1 = 
     267Trivial update: fixed some unit tests, noted compatibility through WP 4.7+, updated copyright date 
     268 
    254269= 2.2 = 
    255270Minor update: minor updates to widget code and unit tests; verified compatibility through WP 4.4; updated copyright date (2016). 
  • linkify-tags/trunk/tests/bootstrap.php

    r826467 r1608922  
    11<?php 
     2/** 
     3 * PHPUnit bootstrap file 
     4 * 
     5 * @package Linkify_Tags 
     6 */ 
    27 
    3 require_once getenv( 'WP_TESTS_DIR' ) . '/includes/functions.php'; 
     8ini_set('display_errors','on'); 
     9error_reporting(E_ALL); 
    410 
     11$_tests_dir = getenv( 'WP_TESTS_DIR' ); 
     12if ( ! $_tests_dir ) { 
     13        $_tests_dir = '/tmp/wordpress-tests-lib'; 
     14} 
     15 
     16// Give access to tests_add_filter() function. 
     17require_once $_tests_dir . '/includes/functions.php'; 
     18 
     19/** 
     20 * Manually load the plugin being tested. 
     21 */ 
    522function _manually_load_plugin() { 
    6     require dirname( __FILE__ ) . '/../linkify-tags.php'; 
     23        require dirname( dirname( __FILE__ ) ) . '/linkify-tags.php'; 
    724} 
    825tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' ); 
    926 
    10 require getenv( 'WP_TESTS_DIR' ) . '/includes/bootstrap.php'; 
     27// Start up the WP testing environment. 
     28require $_tests_dir . '/includes/bootstrap.php'; 
  • linkify-tags/trunk/tests/test-linkify-tags.php

    r1374819 r1608922  
    55class Linkify_Tags_Test extends WP_UnitTestCase { 
    66 
    7     private static $tag_ids = array(); 
     7    private $tag_ids = array(); 
    88 
    99    public function setUp() { 
     
    4141            $tag = get_term( $this->tag_ids[ $tag_index ] ); 
    4242            $str .= '<a href="http://example.org/?tag=' . $tag->slug . '" title="View all posts in ' . $tag->name . '">' . $tag->name . '</a>'; 
    43             $j++; 
    4443        } 
    4544        return $str; 
Note: See TracChangeset for help on using the changeset viewer.