Skip to content

Commit df00252

Browse files
committed
Version bump and changelog to 0.7.2
1 parent e2e27b8 commit df00252

7 files changed

Lines changed: 18 additions & 11 deletions

File tree

fakerpress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: FakerPress
44
* Plugin URI: https://fakerpress.com
55
* Description: FakerPress is a clean way to generate fake data to your WordPress installation, great for developers who need testing
6-
* Version: 0.7.1
6+
* Version: 0.7.2
77
* Author: Gustavo Bordoni
88
* Author URI: https://bordoni.me
99
* Text Domain: fakerpress

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fakerpress",
33
"title": "FakerPress",
4-
"version": "0.7.1",
4+
"version": "0.7.2",
55
"homepage": "https://fakerpress.com/",
66
"repository": {
77
"type": "git",

readme.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: generator, dummy content, lorem ipsun, testing, developer
44
Requires at least: 5.5
55
Tested up to: 6.8.1
66
Requires PHP: 7.4
7-
Stable tag: 0.7.1
7+
Stable tag: 0.7.2
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010
Donate link: https://fakerpress.com/r/sponsor
@@ -99,6 +99,11 @@ Thank you for wanting to make FakerPress better for everyone! [We salute you](ht
9999

100100
== Changelog ==
101101

102+
= 0.7.2 — 18 of May 2025 =
103+
104+
* Fix - Resolve all fatals related to compatibility with version of Faker `1.24+`.
105+
* Fix - Resolve some incompatibilities with WP Script build tools.
106+
102107
= 0.7.1 — 18 of May 2025 =
103108

104109
* Fix - Move the registration of the menus to avoid problems with `_load_textdomain_just_in_time()` notices

src/FakerPress/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Plugin {
1010
*
1111
* @var string
1212
*/
13-
public const VERSION = '0.7.1';
13+
public const VERSION = '0.7.2';
1414

1515
/**
1616
* @since 0.6.0

src/FakerPress/Provider/HTML.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private function html_element_img( $element, $sources = [ Placeholder::ID, Lorem
177177
}
178178

179179
if ( ! isset( $element->attr['alt'] ) ) {
180-
$element->attr['alt'] = rtrim( $this->generator->optional( 0.7, null )->sentence( Base::randomDigitNotNull() ), '.' );
180+
$element->attr['alt'] = rtrim( $this->generator->optional( 0.7, '' )->sentence( Base::randomDigitNotNull() ), '.' );
181181
}
182182

183183
if ( ! isset( $element->attr['src'] ) ) {

src/FakerPress/Utils.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace FakerPress;
44

55
use FakerPress\ThirdParty\Faker;
6+
use FakerPress\ThirdParty\Faker\Provider\Base;
67

78
class Utils {
89
/**
@@ -129,7 +130,7 @@ public function get_qty_from_range( $range, $total = null ) {
129130

130131
// Now we treat the Range and select a random number
131132
if ( ! isset( $qty ) ) {
132-
$qty = FakerPress\ThirdParty\Faker\Provider\Base::numberBetween( $min, $max );
133+
$qty = Base::numberBetween( $min, $max );
133134
}
134135

135136
// If an array for the total was provided, turn it to a integer

src/resources/js/module.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
window.fakerpress = window.fakerpress || {};
2-
3-
( function( $, _, fp ){
1+
( function( $, _ ){
42
'use strict';
53

4+
const fp = {};
5+
66
fp.selectors = {
77
moduleGenerator: '.fp-module-generator',
88
};
@@ -36,7 +36,7 @@ window.fakerpress = window.fakerpress || {};
3636

3737
fp.moduleGenerate = ( $form, _POST ) => {
3838
if ( 'undefined' === typeof _POST ){
39-
_POST = Qs.parse( $form.serialize() );
39+
_POST = window.fakerpress.qs.parse( $form.serialize() );
4040
}
4141

4242
// Always Hard set the Action
@@ -98,9 +98,10 @@ window.fakerpress = window.fakerpress || {};
9898
$form.on( 'submit', function ( event ) {
9999
fp.moduleGenerate( $form );
100100

101+
console.log( 'Form', $form );
101102
event.preventDefault();
102103
return;
103104
} );
104105
} );
105106
} );
106-
}( jQuery, _, window.fakerpress ) );
107+
}( jQuery, _ ) );

0 commit comments

Comments
 (0)