Skip to content

Commit

Permalink
Merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Apr 21, 2024
1 parent 68d9a97 commit 690c915
Show file tree
Hide file tree
Showing 19 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The [issue tracker](https://github.com/bordoni/fakerpress/issues) is the preferr
<a name="tracker-labels"></a>
## Labels on issue tracker

There is an idea behind this naming convetion, and we will stick to it because it's faily important to keep thing tidy if we want to move forward fast and clean.
There is an idea behind this naming convention, and we will stick to it because it's faily important to keep thing tidy if we want to move forward fast and clean.

We will split the labels in two pieces, groups of labels and a label name, following the pattern below:

Expand Down
4 changes: 2 additions & 2 deletions languages/fakerpress.pot
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ msgid "https://fakerpress.com"
msgstr ""

#. Description of the plugin
msgid "FakerPress is a clean way to generate fake data to your WordPress instalation, great for developers who need testing"
msgid "FakerPress is a clean way to generate fake data to your WordPress installation, great for developers who need testing"
msgstr ""

#. Author of the plugin
Expand Down Expand Up @@ -1644,7 +1644,7 @@ msgstr ""

#: src/templates/pages/attachments.php:45
#: src/templates/pages/posts.php:76
msgid "What posts can be choosen as Parent to the ones created"
msgid "What posts can be chosen as Parent to the ones created"
msgstr ""

#: src/templates/pages/attachments.php:58
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
FakerPress is a clean way to generate fake and dummy content to your WordPress, great for developers who need testing

**Contributors:** [bordoni](http://profiles.wordpress.org/bordoni)
**Tags:** [generator](http://wordpress.org/plugins/tags/generator), [dummy content](http://wordpress.org/plugins/tags/dummy+content), [dummy data](http://wordpress.org/plugins/tags/dummy+data), [lorem ipsun](http://wordpress.org/plugins/tags/lorem+ipsun), [admin](http://wordpress.org/plugins/tags/admin), [exemples](http://wordpress.org/plugins/tags/exemples), [testing](http://wordpress.org/plugins/tags/testing), [images](http://wordpress.org/plugins/tags/images), [attachments](http://wordpress.org/plugins/tags/attachments), [featured image](http://wordpress.org/plugins/tags/featured+image), [taxonomies](http://wordpress.org/plugins/tags/taxonomies), [users](http://wordpress.org/plugins/tags/users), [post type](http://wordpress.org/plugins/tags/post+type), [faker](http://wordpress.org/plugins/tags/faker), [fake data](http://wordpress.org/plugins/tags/fake+data), [random](http://wordpress.org/plugins/tags/random), [developer](http://wordpress.org/plugins/tags/developer), [dev](http://wordpress.org/plugins/tags/dev), [development](http://wordpress.org/plugins/tags/development), [test](http://wordpress.org/plugins/tags/test), [tests](http://wordpress.org/plugins/tags/tests)
**Tags:** [generator](http://wordpress.org/plugins/tags/generator), [dummy content](http://wordpress.org/plugins/tags/dummy+content), [dummy data](http://wordpress.org/plugins/tags/dummy+data), [lorem ipsun](http://wordpress.org/plugins/tags/lorem+ipsun), [admin](http://wordpress.org/plugins/tags/admin), [examples](http://wordpress.org/plugins/tags/exemples), [testing](http://wordpress.org/plugins/tags/testing), [images](http://wordpress.org/plugins/tags/images), [attachments](http://wordpress.org/plugins/tags/attachments), [featured image](http://wordpress.org/plugins/tags/featured+image), [taxonomies](http://wordpress.org/plugins/tags/taxonomies), [users](http://wordpress.org/plugins/tags/users), [post type](http://wordpress.org/plugins/tags/post+type), [faker](http://wordpress.org/plugins/tags/faker), [fake data](http://wordpress.org/plugins/tags/fake+data), [random](http://wordpress.org/plugins/tags/random), [developer](http://wordpress.org/plugins/tags/developer), [dev](http://wordpress.org/plugins/tags/dev), [development](http://wordpress.org/plugins/tags/development), [test](http://wordpress.org/plugins/tags/test), [tests](http://wordpress.org/plugins/tags/tests)
**Requires at least:** 5.5
**Tested up to:** 6.5.2
**Stable tag:** 0.6.2
Expand Down Expand Up @@ -237,7 +237,7 @@ Thank you for wanting to make FakerPress better for everyone! [We salute you](ht

### 0.3.2 &mdash; 25 of May, 2015 ###
* New: Including LoremPixel as a Image Provider &mdash; Thanks [examinedliving](https://github.com/examinedliving)
* Fix: A few JavaScript/jQuery tweeks for better Select2 Handling on Dates
* Fix: A few JavaScript/jQuery tweaks for better Select2 Handling on Dates
* Fix: Intervals now have a better Handling for non-timed Strings &mdash; Thanks [alfiemx_](https://profiles.wordpress.org/alfiemx_)
* Fix: Better verification of Carbon inclusion &mdash; Thanks [Frankie Jarrett](https://profiles.wordpress.org/fjarrett/)
* Fix: Closures now using self variables better, prevents Fatal Error &mdash; Thanks [fccoelho7](https://profiles.wordpress.org/fccoelho7/)
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ Thank you for wanting to make FakerPress better for everyone! [We salute you](ht
= 0.3.2 &mdash; 25 of May, 2015 =

* New: Including LoremPixel as a Image Provider &mdash; Thanks [examinedliving](https://github.com/examinedliving)
* Fix: A few JavaScript/jQuery tweeks for better Select2 Handling on Dates
* Fix: A few JavaScript/jQuery tweaks for better Select2 Handling on Dates
* Fix: Intervals now have a better Handling for non-timed Strings &mdash; Thanks [alfiemx_](https://profiles.wordpress.org/alfiemx_)
* Fix: Better verification of Carbon inclusion &mdash; Thanks [Frankie Jarrett](https://profiles.wordpress.org/fjarrett/)
* Fix: Closures now using self variables better, prevents Fatal Error &mdash; Thanks [fccoelho7](https://profiles.wordpress.org/fccoelho7/)
Expand Down
4 changes: 2 additions & 2 deletions src/FakerPress/Admin/View/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function parse_current_view_request(): void {
$slug = $view::get_slug();

/**
* Allow third-party hooking ot the admin view request level.
* Allow third-party hooking of the admin view request level.
*
* @since 0.6.0
*
Expand All @@ -141,7 +141,7 @@ public function parse_current_view_request(): void {
do_action( 'fakerpress.admin.view.request', $view );

/**
* Allow third-party hooking ot the admin view request level.
* Allow third-party hooking of the admin view request level.
*
* @since 0.6.0
*
Expand Down
4 changes: 2 additions & 2 deletions src/FakerPress/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ public static function type_taxonomy( $field, $container = null, $output = 'stri
$duplicate->_id[] = 'duplicate';
$duplicate->_name[] = 'duplicate';
$duplicate->type = 'button';
$duplicate->deactive = true;
$duplicate->deactivate = true;
$duplicate->value = '&plus;';
$duplicate->class = [ 'action-duplicate' ];

Expand Down Expand Up @@ -1088,7 +1088,7 @@ public static function type_meta( $field, $container = null, $output = 'string',
$duplicate->_id[] = 'duplicate';
$duplicate->_name[] = 'duplicate';
$duplicate->type = 'button';
$duplicate->deactive = true;
$duplicate->deactivate = true;
$duplicate->value = '&plus;';
$duplicate->class = [ 'action-duplicate' ];

Expand Down
2 changes: 1 addition & 1 deletion src/FakerPress/Fields/Field_Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public function init( array $args = [] ) {
$this->set_parent( $parent );
}

// Mark that this field was initialied.
// Mark that this field was initialized.
$this->set_init_flag( true );

return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/FakerPress/Module/Attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Attachment extends Abstract_Module {
*
* @var string
*/
public static $meta_key_original_url = '_fakerpress_orginal_url';
public static $meta_key_original_url = '_fakerpress_original_url';

protected $dependencies = [
Faker\Provider\Lorem::class,
Expand Down
2 changes: 1 addition & 1 deletion src/FakerPress/Module/Term.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function filter_save_response( $response, array $data, Abstract_Module $m

$flagged = get_option( 'fakerpress.module_flag.' . $this::get_slug(), [] );

// Ensure that this option is an Array by reseting the variable.
// Ensure that this option is an Array by resetting the variable.
if ( ! is_array( $flagged ) ){
$flagged = [];
}
Expand Down
2 changes: 1 addition & 1 deletion src/FakerPress/Provider/Image/LoremPicsum.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class LoremPicsum extends Base {
const ID = 'lorempicsum';

/**
* Generates a URL for Lorem Picsum, previosuly known as Unsplash.it
* Generates a URL for Lorem Picsum, previously known as Unsplash.it
*
* @since 0.4.2
* @since 0.4.9 On this version we started to accept Array or Int in the Second Param
Expand Down
4 changes: 2 additions & 2 deletions src/FakerPress/Provider/WP_Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,15 @@ public function comment_author_url( $author_url = null ) {
}

public function comment_date( $min = 'now', $max = null ) {
// Unfortunatelly there is not such solution to this problem, we need to try and catch with DateTime
// Unfortunately there is not such solution to this problem, we need to try and catch with DateTime
try {
$min = new \FakerPress\ThirdParty\Carbon\Carbon( $min );
} catch ( \Exception $e ) {
return null;
}

if ( ! is_null( $max ) ) {
// Unfortunatelly there is not such solution to this problem, we need to try and catch with DateTime
// Unfortunately there is not such solution to this problem, we need to try and catch with DateTime
try {
$max = new \FakerPress\ThirdParty\Carbon\Carbon( $max );
} catch ( \Exception $e ) {
Expand Down
4 changes: 2 additions & 2 deletions src/FakerPress/Provider/WP_Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function post_date( $interval = 'now' ) {
$format = 'Y-m-d H:i:s';
$interval = (array) $interval;

// Unfortunatelly there is not such solution to this problem, we need to try and catch with DateTime
// Unfortunately there is not such solution to this problem, we need to try and catch with DateTime
try {
$min = new \FakerPress\ThirdParty\Carbon\Carbon( array_shift( $interval ) );
} catch ( \Exception $e ) {
Expand All @@ -50,7 +50,7 @@ public function post_date( $interval = 'now' ) {
}

if ( ! empty( $interval ) ) {
// Unfortunatelly there is not such solution to this problem, we need to try and catch with DateTime
// Unfortunately there is not such solution to this problem, we need to try and catch with DateTime
try {
$max = new \FakerPress\ThirdParty\Carbon\Carbon( array_shift( $interval ) );
} catch ( \Exception $e ) {
Expand Down
2 changes: 1 addition & 1 deletion src/FakerPress/Provider/WP_User.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public function user_registered( $min = 'now', $max = null ) {
}

if ( ! is_null( $max ) ) {
// Unfortunatelly there is not such solution to this problem, we need to try and catch with DateTime
// Unfortunately there is not such solution to this problem, we need to try and catch with DateTime
try {
$max = new \FakerPress\ThirdParty\Carbon\Carbon( $max );
} catch ( \Exception $e ) {
Expand Down
8 changes: 4 additions & 4 deletions src/FakerPress/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Template {
protected $global = [];

/**
* Allow chaing if class will extract data from the local context
* Allow chaining if class will extract data from the local context
*
* @since 0.5.1
*
Expand Down Expand Up @@ -197,7 +197,7 @@ final public function get( $index, $default = null, $is_local = true ) {

/**
* Allows filtering the the getting of Context variables, also short circuiting
* Following the same strucuture as WP Core
* Following the same structure as WP Core
*
* @since 4.6.2
*
Expand Down Expand Up @@ -441,7 +441,7 @@ public function get_template_file( $name ) {
* A more Specific Filter that will include the template name
*
* @since 4.6.2
* @since 4.7.20 The $name param no longers contains the extension
* @since 4.7.20 The $name param no longer contains the extension
*
* @param string $file Complete path to include the PHP File
* @param array $name Template name
Expand Down Expand Up @@ -531,7 +531,7 @@ public function render( $name, $context = [], $echo = true ) {

// Only do this if really needed (by default it wont).
if ( true === $this->template_context_extract && ! empty( $this->context ) ) {
// We don't allow Extrating of a variable called $name
// We don't allow extracting of a variable called $name
if ( isset( $this->context['name'] ) ) {
unset( $this->context['name'] );
}
Expand Down
2 changes: 1 addition & 1 deletion src/data/readme.php

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/resources/js/fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@
} );
},

is_removeable: function() {
is_removable: function() {
if ( 1 === this.$.items.length ){
var $item = this.$.items.eq( 0 );

Expand Down Expand Up @@ -537,7 +537,7 @@

},

is_removeable: function() {
is_removable: function() {
if ( 1 === this.$.items.length ){
var $item = this.$.items.eq( 0 );

Expand Down Expand Up @@ -654,7 +654,7 @@
fieldset.$.items = fieldset.$.wrap.children( fieldset.selector.item );

// If there is just one meta, disable the remove button
if ( fieldset.is_removeable() ) {
if ( fieldset.is_removable() ) {
fieldset.$.items.eq( 0 )
.find( fp.fieldset.selector.remove ).prop( 'disabled', true )
.end().find( fieldset.selector.name ).prop( 'required', false );
Expand Down
2 changes: 1 addition & 1 deletion src/resources/pcss/jquery-ui.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ button.ui-button::-moz-focus-inner {
overflow: hidden;
right: 0;
}
/* more specificity required here to overide default borders */
/* more specificity required here to override default borders */
.ui-spinner a.ui-spinner-button {
border-top: none;
border-bottom: none;
Expand Down
2 changes: 1 addition & 1 deletion src/templates/pages/attachments.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
],
[
'label' => __( 'Parents', 'fakerpress' ),
'description' => __( 'What posts can be choosen as Parent to the ones created', 'fakerpress' ),
'description' => __( 'What posts can be chosen as Parent to the ones created', 'fakerpress' ),
]
);

Expand Down
2 changes: 1 addition & 1 deletion src/templates/pages/posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
],
[
'label' => __( 'Parents', 'fakerpress' ),
'description' => __( 'What posts can be choosen as Parent to the ones created', 'fakerpress' ),
'description' => __( 'What posts can be chosen as Parent to the ones created', 'fakerpress' ),
]
);

Expand Down

0 comments on commit 690c915

Please sign in to comment.