Skip to content

Commit

Permalink
Push to version 0.4.10
Browse files Browse the repository at this point in the history
  • Loading branch information
bordoni committed Feb 11, 2018
1 parent 2da9e49 commit 65080aa
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions fakerpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: FakerPress
* Plugin URI: https://fakerpress.com
* Description: FakerPress is a clean way to generate fake data to your WordPress instalation, great for developers who need testing
* Version: 0.4.9
* Version: 0.4.10
* Author: Gustavo Bordoni
* Author URI: http://bordoni.me
* Text Domain: fakerpress
Expand All @@ -14,7 +14,7 @@
*/

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ){
if ( ! defined( 'WPINC' ) ) {
die;
}

Expand Down
12 changes: 6 additions & 6 deletions inc/class-fp-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace FakerPress;

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ){
if ( ! defined( 'WPINC' ) ) {
die;
}

Expand All @@ -13,7 +13,7 @@ class Plugin {
* @since 0.1.0
* @var string
*/
const version = '0.4.9';
const version = '0.4.10';

/**
* A static variable that holds a dinamic instance of the class
Expand Down Expand Up @@ -157,7 +157,7 @@ public static function get( $name, $default = false ) {
$options = self::all();
$value = Variable::search( $options, $name );

if ( is_null( $value ) ){
if ( is_null( $value ) ) {
return $default;
}

Expand All @@ -169,15 +169,15 @@ public static function update( $name = null, $value = false ) {
$opts = array();

foreach ( (array) $name as $k => $index ) {
if ( 0 === $k ){
if ( 0 === $k ) {
$opts[ -1 ] = &$options;
}

if ( count( $name ) - 1 !== $k && ! isset( $opts[ $k - 1 ][ $index ] ) ){
if ( count( $name ) - 1 !== $k && ! isset( $opts[ $k - 1 ][ $index ] ) ) {
$opts[ $k - 1 ][ $index ] = array();
}

if ( isset( $opts[ $k - 1 ][ $index ] ) ){
if ( isset( $opts[ $k - 1 ][ $index ] ) ) {
$opts[ $k ] = &$opts[ $k - 1 ][ $index ];
} else {
$opts[ $k - 1 ][ $index ] = $value;
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Thank you for wanting to make FakerPress better for everyone! [We salute you](ht

## Changelog ##

### 0.4.10 — ?? of February, 2018 ###
### 0.4.10 — 11 of February, 2018 ###
* Feature: Added size control to Post Content, Comment Content and User Description
* Fix: On image and attachment download we try one more time using `file_get_contents` — Thanks [@lazlo-toth](https://wordpress.org/support/topic/most-of-the-featured-image-links-appear-to-be-invalid/)
* Fix: Resolve Quantity Min and Max fields weird interaction — Thanks [@rahmantanvir](https://github.com/bordoni/fakerpress/issues/124)
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Thank you for wanting to make FakerPress better for everyone! [We salute you](ht

== Changelog ==

= 0.4.10 — ?? of February, 2018 =
= 0.4.10 — 11 of February, 2018 =

* Feature: Added size control to Post Content, Comment Content and User Description
* Fix: On image and attachment download we try one more time using `file_get_contents` — Thanks [@lazlo-toth](https://wordpress.org/support/topic/most-of-the-featured-image-links-appear-to-be-invalid/)
Expand Down

0 comments on commit 65080aa

Please sign in to comment.