Plugin Directory

Changeset 1153280


Ignore:
Timestamp:
05/04/2015 08:06:54 PM (11 years ago)
Author:
lassebunk
Message:

Bump version,
Check for PhantomJS constant before finding,
Update readme

Location:
screenshot-generator/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • screenshot-generator/trunk/readme.txt

    r1153270 r1153280  
    44Requires at least: 4.0.0
    55Tested up to: 4.1.1
    6 Stable tag: 0.1.4
     6Stable tag: 0.1.5
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4848
    4949     `
    50      brew install phantomjs
     50     $ brew install phantomjs
    5151     `
    5252
  • screenshot-generator/trunk/screenshot-generator.php

    r1153270 r1153280  
    44 * Plugin URI: https://github.com/lassebunk/screenshot-generator
    55 * Description: Take automatic screenshots of posts when they are updated.
    6  * Version: 0.1.4
     6 * Version: 0.1.5
    77 * Author: Lasse Bunk
    88 * Author URI: https://github.com/lassebunk
     
    111111  $path = exec('which phantomjs');
    112112
    113   if (!empty($path)) {
     113  if (defined('PHANTOMJS')) {
     114    return PHANTOMJS;
     115  } elseif (!empty($path)) {
    114116    return $path;
    115   } elseif (defined('PHANTOMJS')) {
    116     return PHANTOMJS;
    117117  }
    118118}
Note: See TracChangeset for help on using the changeset viewer.