WordPress.org

Plugin Directory

Changeset 1608921


Ignore:
Timestamp:
03/06/17 18:51:35 (3 weeks ago)
Author:
coffee2code
Message:

Release v2.3.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-posts
Files:
6 edited
10 copied

Legend:

Unmodified
Added
Removed
  • linkify-posts/tags/2.3.1/linkify-posts.php

    r1395898 r1608921  
    22/** 
    33 * Plugin Name: Linkify Posts 
    4  * Version:     2.3 
     4 * Version:     2.3.1 
    55 * Plugin URI:  http://coffee2code.com/wp-plugins/linkify-posts/ 
    66 * Author:      Scott Reilly 
     
    1111 * Description: Turn a string, list, or array of post IDs and/or slugs into a list of links to those posts. 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_Posts 
    2020 * @author  Scott Reilly 
    21  * @version 2.3 
     21 * @version 2.3.1 
    2222 */ 
    2323 
    2424/* 
    25     Copyright (c) 2007-2016 by Scott Reilly (aka coffee2code) 
     25    Copyright (c) 2007-2017 by Scott Reilly (aka coffee2code) 
    2626 
    2727    This program is free software; you can redistribute it and/or 
  • linkify-posts/tags/2.3.1/linkify-posts.widget.php

    r1374815 r1608921  
    33 * Linkify Posts 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_Posts_Widget 
  • linkify-posts/tags/2.3.1/readme.txt

    r1395898 r1608921  
    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.3 
    10  
    11 Turn a string, list, or array of post IDs and/or slugs into a list of links to those posts. Includes widget and template tag. 
     8Tested up to: 4.7 
     9Stable tag: 2.3.1 
     10 
     11Turn a string, list, or array of post IDs and/or slugs into a list of links to those posts. Provides a widget and template tag. 
    1212 
    1313 
     
    2323== Installation == 
    2424 
    25 1. Unzip `linkify-posts.zip` inside the `/wp-content/plugins/` directory for your site (or install via the built-in WordPress plugin installer) 
    26 1. Activate the plugin through the 'Plugins' admin menu in WordPress 
    27 1. Insert function call(s) to your templates to display links to posts when post IDs are known 
     251. Install via the built-in WordPress plugin installer. Or download and unzip `linkify-posts.zip` inside the plugins directory for your site (typically `wp-content/plugins/`) 
     262. Activate the plugin through the 'Plugins' admin menu in WordPress 
     273. Optional: Use the `c2c_linkify_posts()` template tag in one of your templates (be sure to pass it at least the first argument indicating what post 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. 
     284. Optional: Use the "Linkify Posts" widget in one of the sidebar provided by your theme. 
    2829 
    2930 
     
    156157 
    157158== Changelog == 
     159 
     160= 2.3.1 (2017-02-26) = 
     161* Fix: Fix unit tests by not declaring test class variable as static 
     162* Change: Update unit test bootstrap 
     163    * Default `WP_TESTS_DIR` to `/tmp/wordpress-tests-lib` rather than erroring out if not defined via environment variable 
     164    * Enable more error output for unit tests 
     165* Change: Note compatibility through WP 4.7+ 
     166* Change: Minor readme.txt content and formatting tweaks 
     167* Change: Update copyright date (2017) 
    158168 
    159169= 2.3 (2016-03-13) = 
     
    262272== Upgrade Notice == 
    263273 
     274= 2.3.1 = 
     275Trivial update: fixed some unit tests, noted compatibility through WP 4.7+, updated copyright date 
     276 
    264277= 2.3 = 
    265278Minor update: minor updates to widget code and unit tests; verified compatibility through WP 4.4; updated copyright date (2016). 
  • linkify-posts/tags/2.3.1/tests/bootstrap.php

    r826484 r1608921  
    11<?php 
     2/** 
     3 * PHPUnit bootstrap file 
     4 * 
     5 * @package Linkify_Posts 
     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-posts.php'; 
     23        require dirname( dirname( __FILE__ ) ) . '/linkify-posts.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-posts/tags/2.3.1/tests/test-linkify-posts.php

    r1374815 r1608921  
    55class Linkify_Posts_Test extends WP_UnitTestCase { 
    66 
    7     private static $post_ids = array(); 
     7    private $post_ids = array(); 
    88 
    99    public function setUp() { 
  • linkify-posts/trunk/linkify-posts.php

    r1395898 r1608921  
    22/** 
    33 * Plugin Name: Linkify Posts 
    4  * Version:     2.3 
     4 * Version:     2.3.1 
    55 * Plugin URI:  http://coffee2code.com/wp-plugins/linkify-posts/ 
    66 * Author:      Scott Reilly 
     
    1111 * Description: Turn a string, list, or array of post IDs and/or slugs into a list of links to those posts. 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_Posts 
    2020 * @author  Scott Reilly 
    21  * @version 2.3 
     21 * @version 2.3.1 
    2222 */ 
    2323 
    2424/* 
    25     Copyright (c) 2007-2016 by Scott Reilly (aka coffee2code) 
     25    Copyright (c) 2007-2017 by Scott Reilly (aka coffee2code) 
    2626 
    2727    This program is free software; you can redistribute it and/or 
  • linkify-posts/trunk/linkify-posts.widget.php

    r1374815 r1608921  
    33 * Linkify Posts 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_Posts_Widget 
  • linkify-posts/trunk/readme.txt

    r1395898 r1608921  
    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.3 
    10  
    11 Turn a string, list, or array of post IDs and/or slugs into a list of links to those posts. Includes widget and template tag. 
     8Tested up to: 4.7 
     9Stable tag: 2.3.1 
     10 
     11Turn a string, list, or array of post IDs and/or slugs into a list of links to those posts. Provides a widget and template tag. 
    1212 
    1313 
     
    2323== Installation == 
    2424 
    25 1. Unzip `linkify-posts.zip` inside the `/wp-content/plugins/` directory for your site (or install via the built-in WordPress plugin installer) 
    26 1. Activate the plugin through the 'Plugins' admin menu in WordPress 
    27 1. Insert function call(s) to your templates to display links to posts when post IDs are known 
     251. Install via the built-in WordPress plugin installer. Or download and unzip `linkify-posts.zip` inside the plugins directory for your site (typically `wp-content/plugins/`) 
     262. Activate the plugin through the 'Plugins' admin menu in WordPress 
     273. Optional: Use the `c2c_linkify_posts()` template tag in one of your templates (be sure to pass it at least the first argument indicating what post 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. 
     284. Optional: Use the "Linkify Posts" widget in one of the sidebar provided by your theme. 
    2829 
    2930 
     
    156157 
    157158== Changelog == 
     159 
     160= 2.3.1 (2017-02-26) = 
     161* Fix: Fix unit tests by not declaring test class variable as static 
     162* Change: Update unit test bootstrap 
     163    * Default `WP_TESTS_DIR` to `/tmp/wordpress-tests-lib` rather than erroring out if not defined via environment variable 
     164    * Enable more error output for unit tests 
     165* Change: Note compatibility through WP 4.7+ 
     166* Change: Minor readme.txt content and formatting tweaks 
     167* Change: Update copyright date (2017) 
    158168 
    159169= 2.3 (2016-03-13) = 
     
    262272== Upgrade Notice == 
    263273 
     274= 2.3.1 = 
     275Trivial update: fixed some unit tests, noted compatibility through WP 4.7+, updated copyright date 
     276 
    264277= 2.3 = 
    265278Minor update: minor updates to widget code and unit tests; verified compatibility through WP 4.4; updated copyright date (2016). 
  • linkify-posts/trunk/tests/bootstrap.php

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

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