Plugin Directory

Changeset 1102262


Ignore:
Timestamp:
03/01/2015 04:02:24 AM (11 years ago)
Author:
dollar_dad
Message:

Add PHP compare function for plugin activation

Location:
autostock/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • autostock/trunk/autostock.php

    r1084838 r1102262  
    44     * Plugin URI: http://kevinphillips.co.nz
    55     * Description: Car dealer stock management plugin for WordPress.
    6      * Version: 1.0.3
     6     * Version: 1.0.4
    77     * Author: Kevin Phillips
    88     * Author URI: http://kevinphillips.co.nz
     
    3939function autostock_activation() {
    4040
    41     if (version_compare(  PHP_MIN_VERSION, PHP_VERSION ) >= 0) {
     41    if (version_compare(   PHP_VERSION, PHP_MIN_VERSION,  '<' ) ) {
    4242        wp_die('Sorry your php version is ' . PHP_VERSION . ' and you need a minimum of ' . PHP_MIN_VERSION );
    4343    }
  • autostock/trunk/readme.txt

    r1084844 r1102262  
    55Requires at least: 4.1
    66Tested up to: 4.1
    7 Stable tag: 1.0.2
     7Stable tag: 1.0.4
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl.html
     
    5858== Changelog ==
    5959
    60 1.0.1. Added settings options and taxonomy for makes and models
    61 1.0.2. Added custom car features to car post types as taxonomy with checkboxes.
    62 1.0.3. Added Vehicle Details and Features category to post type
     60= 1.0.4 =
     61* Added PHP compare to stop plugin being loaded into site with php less than 5.3.6
     62
     63= 1.0.3 =
     64* Added Vehicle Details and Features category to post type
     65
     66= 1.0.2 =
     67* Added custom car features to car post types as taxonomy with checkboxes.
     68
     69= 1.0.1 =
     70* Added settings options and taxonomy for makes and models
     71
     72
    6373
    6474== Upgrade Notice ==
Note: See TracChangeset for help on using the changeset viewer.