WordPress.org

Plugin Directory

Changeset 1608919


Ignore:
Timestamp:
03/06/17 18:48:40 (7 months ago)
Author:
coffee2code
Message:

Release v2.2.1:

  • Fix: Fix unit tests by not declaring test class variable as static
  • 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-categories
Files:
6 edited
10 copied

Legend:

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

    r1395897 r1608919  
    22/** 
    33 * Plugin Name: Linkify Categories 
    4  * Version:     2.2 
     4 * Version:     2.2.1 
    55 * Plugin URI:  http://coffee2code.com/wp-plugins/linkify-categories/ 
    66 * Author:      Scott Reilly 
     
    1111 * Description: Turn a list of category IDs and/or slugs into a list of links to those categories. Includes widget and template tag. 
    1212 * 
    13  * Compatible with WordPress 2.8 through 4.5+. 
     13 * Compatible with WordPress 2.8 through 4.7+. 
    1414 * 
    1515 * =>> Read the accompanying readme.txt file for instructions and documentation. 
     
    1919 * @package Linkify_Categories 
    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-categories/tags/2.2.1/linkify-categories.widget.php

    r1374814 r1608919  
    33 * Linkify Categories 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_Categories_Widget 
  • linkify-categories/tags/2.2.1/readme.txt

    r1395897 r1608919  
    66License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    77Requires at least: 2.8 
    8 Tested up to: 4.5 
    9 Stable tag: 2.2 
    10  
    11 Turn a string, list, or array of category IDs and/or slugs into a list of links to those categories. Includes widget and template tag. 
     8Tested up to: 4.7 
     9Stable tag: 2.2.1 
     10 
     11Turn a string, list, or array of category IDs and/or slugs into a list of links to those categories. Provides a widget and template tag. 
    1212 
    1313== Description == 
     
    2020== Installation == 
    2121 
    22 1. Unzip `linkify-categories.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_categories()` template tag in one of your templates (be sure to pass it at least the first argument indicating what category 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-categories.zip` inside the plugins directory for your site (typically `wp-content/plugins/`) 
     232. Activate the plugin through the 'Plugins' admin menu in WordPress 
     243. Use the `c2c_linkify_categories()` template tag in one of your templates (be sure to pass it at least the first argument indicating what category 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. 
    2525 
    2626 
     
    146146 
    147147== Changelog == 
     148 
     149= 2.2.1 (2017-02-25) = 
     150* Fix: Fix unit tests by not declaring test class variable as static 
     151* Change: Update unit test bootstrap 
     152    * Default `WP_TESTS_DIR` to `/tmp/wordpress-tests-lib` rather than erroring out if not defined via environment variable 
     153    * Enable more error output for unit tests 
     154* Change: Note compatibility through WP 4.7+ 
     155* Change: Minor readme.txt content and formatting tweaks 
     156* Change: Update copyright date (2017) 
    148157 
    149158= 2.2 (2016-03-12) = 
     
    250259== Upgrade Notice == 
    251260 
     261= 2.2.1 = 
     262Trivial update: fixed some unit tests, noted compatibility through WP 4.7+, updated copyright date 
     263 
    252264= 2.2 = 
    253265Minor update: minor updates to widget code and unit tests; verified compatibility through WP 4.4; updated copyright date (2016). 
  • linkify-categories/tags/2.2.1/tests/bootstrap.php

    r826466 r1608919  
    11<?php 
     2/** 
     3 * PHPUnit bootstrap file 
     4 * 
     5 * @package Linkify_Categories 
     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-categories.php'; 
     23        require dirname( dirname( __FILE__ ) ) . '/linkify-categories.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-categories/tags/2.2.1/tests/test-linkify-categories.php

    r1374814 r1608919  
    55class Linkify_Categories_Test extends WP_UnitTestCase { 
    66 
    7     private static $cat_ids = array(); 
     7    private $cat_ids = array(); 
    88 
    99    public function setUp() { 
  • linkify-categories/trunk/linkify-categories.php

    r1395897 r1608919  
    22/** 
    33 * Plugin Name: Linkify Categories 
    4  * Version:     2.2 
     4 * Version:     2.2.1 
    55 * Plugin URI:  http://coffee2code.com/wp-plugins/linkify-categories/ 
    66 * Author:      Scott Reilly 
     
    1111 * Description: Turn a list of category IDs and/or slugs into a list of links to those categories. Includes widget and template tag. 
    1212 * 
    13  * Compatible with WordPress 2.8 through 4.5+. 
     13 * Compatible with WordPress 2.8 through 4.7+. 
    1414 * 
    1515 * =>> Read the accompanying readme.txt file for instructions and documentation. 
     
    1919 * @package Linkify_Categories 
    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-categories/trunk/linkify-categories.widget.php

    r1374814 r1608919  
    33 * Linkify Categories 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_Categories_Widget 
  • linkify-categories/trunk/readme.txt

    r1395897 r1608919  
    66License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    77Requires at least: 2.8 
    8 Tested up to: 4.5 
    9 Stable tag: 2.2 
    10  
    11 Turn a string, list, or array of category IDs and/or slugs into a list of links to those categories. Includes widget and template tag. 
     8Tested up to: 4.7 
     9Stable tag: 2.2.1 
     10 
     11Turn a string, list, or array of category IDs and/or slugs into a list of links to those categories. Provides a widget and template tag. 
    1212 
    1313== Description == 
     
    2020== Installation == 
    2121 
    22 1. Unzip `linkify-categories.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_categories()` template tag in one of your templates (be sure to pass it at least the first argument indicating what category 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-categories.zip` inside the plugins directory for your site (typically `wp-content/plugins/`) 
     232. Activate the plugin through the 'Plugins' admin menu in WordPress 
     243. Use the `c2c_linkify_categories()` template tag in one of your templates (be sure to pass it at least the first argument indicating what category 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. 
    2525 
    2626 
     
    146146 
    147147== Changelog == 
     148 
     149= 2.2.1 (2017-02-25) = 
     150* Fix: Fix unit tests by not declaring test class variable as static 
     151* Change: Update unit test bootstrap 
     152    * Default `WP_TESTS_DIR` to `/tmp/wordpress-tests-lib` rather than erroring out if not defined via environment variable 
     153    * Enable more error output for unit tests 
     154* Change: Note compatibility through WP 4.7+ 
     155* Change: Minor readme.txt content and formatting tweaks 
     156* Change: Update copyright date (2017) 
    148157 
    149158= 2.2 (2016-03-12) = 
     
    250259== Upgrade Notice == 
    251260 
     261= 2.2.1 = 
     262Trivial update: fixed some unit tests, noted compatibility through WP 4.7+, updated copyright date 
     263 
    252264= 2.2 = 
    253265Minor update: minor updates to widget code and unit tests; verified compatibility through WP 4.4; updated copyright date (2016). 
  • linkify-categories/trunk/tests/bootstrap.php

    r826466 r1608919  
    11<?php 
     2/** 
     3 * PHPUnit bootstrap file 
     4 * 
     5 * @package Linkify_Categories 
     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-categories.php'; 
     23        require dirname( dirname( __FILE__ ) ) . '/linkify-categories.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-categories/trunk/tests/test-linkify-categories.php

    r1374814 r1608919  
    55class Linkify_Categories_Test extends WP_UnitTestCase { 
    66 
    7     private static $cat_ids = array(); 
     7    private $cat_ids = array(); 
    88 
    99    public function setUp() { 
Note: See TracChangeset for help on using the changeset viewer.