Skip to content

Commit 5c1d276

Browse files
committed
Product version bump update
1 parent 5486eb4 commit 5c1d276

12 files changed

Lines changed: 44 additions & 44 deletions

README.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: woocommerce, pinterest, advertise
44
Requires at least: 5.6
55
Tested up to: 5.8
66
Requires PHP: 7.3
7-
Stable tag: 1.0.9
7+
Stable tag: 1.0.10
88
License: GPLv3
99
License URI: https://www.gnu.org/licenses/gpl-3.0.html
1010

@@ -87,7 +87,7 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](hhttps:
8787

8888
== Changelog ==
8989

90-
= 1.0.10 - 2022-xx-xx =
90+
= 1.0.10 - 2022-03-31 =
9191
* Update - Feed Refactor with Action Scheduler Framework. ( [#368](https://github.com/woocommerce/pinterest-for-woocommerce/pull/368) )
9292

9393
= 1.0.9 - 2022-03-29 =

changelog.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
*** Pinterest for WooCommerce Changelog ***
22

3-
= 1.0.10 - 2022-xx-xx =
3+
= 1.0.10 - 2022-03-31 =
44
* Update - Feed Refactor with Action Scheduler Framework. ( [#368](https://github.com/woocommerce/pinterest-for-woocommerce/pull/368) )
55

66
= 1.0.9 - 2022-03-29 =

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "pinterest-for-woocommerce",
33
"title": "Pinterest for WooCommerce",
44
"description": "Pinterest for WooCommerce",
5-
"version": "1.0.9",
5+
"version": "1.0.10",
66
"main": "gulpfile.js",
77
"repository": {
88
"type": "git",

pinterest-for-woocommerce.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Plugin Name: Pinterest for WooCommerce
1414
* Plugin URI: https://woocommerce.com/products/pinterest-for-woocommerce/
1515
* Description: Grow your business on Pinterest! Use this official plugin to allow shoppers to Pin products while browsing your store, track conversions, and advertise on Pinterest.
16-
* Version: 1.0.9
16+
* Version: 1.0.10
1717
* Author: WooCommerce
1818
* Author URI: https://woocommerce.com
1919
* License: GPL-2.0+
@@ -44,7 +44,7 @@
4444
}
4545

4646
define( 'PINTEREST_FOR_WOOCOMMERCE_PLUGIN_FILE', __FILE__ );
47-
define( 'PINTEREST_FOR_WOOCOMMERCE_VERSION', '1.0.9' ); // WRCS: DEFINED_VERSION.
47+
define( 'PINTEREST_FOR_WOOCOMMERCE_VERSION', '1.0.10' ); // WRCS: DEFINED_VERSION.
4848

4949
/**
5050
* Autoload packages.

src/FeedGenerator.php

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Pinterest for WooCommerce Feed Files Generator
44
*
55
* @package Pinterest_For_WooCommerce/Classes/
6-
* @since x.x.x
6+
* @since 1.0.10
77
*/
88

99
namespace Automattic\WooCommerce\Pinterest;
@@ -54,7 +54,7 @@ class FeedGenerator extends AbstractChainedJob {
5454
/**
5555
* FeedGenerator initialization.
5656
*
57-
* @since x.x.x
57+
* @since 1.0.10
5858
* @param ActionSchedulerInterface $action_scheduler Action Scheduler proxy.
5959
* @param LocalFeedConfigs $local_feeds_configurations Locations configuration class.
6060
*/
@@ -66,7 +66,7 @@ public function __construct( ActionSchedulerInterface $action_scheduler, $local_
6666
/**
6767
* Initialize FeedGenerator actions and Action Scheduler hooks.
6868
*
69-
* @since x.x.x
69+
* @since 1.0.10
7070
*/
7171
public function init() {
7272
// Initialize the action handlers.
@@ -87,7 +87,7 @@ function () {
8787
/**
8888
* Reschedule the next feed generator start.
8989
*
90-
* @since x.x.x
90+
* @since 1.0.10
9191
* @param integer $timestamp Next feed generator timestamp.
9292
*/
9393
public function schedule_next_generator_start( $timestamp ) {
@@ -107,7 +107,7 @@ public static function cancel_jobs() {
107107
/**
108108
* Start the queue processing.
109109
*
110-
* @since x.x.x
110+
* @since 1.0.10
111111
*/
112112
private function start_generation() {
113113
if ( $this->is_running() ) {
@@ -122,7 +122,7 @@ private function start_generation() {
122122
/**
123123
* Runs as the first step of the generation process.
124124
*
125-
* @since x.x.x
125+
* @since 1.0.10
126126
*
127127
* @throws Throwable Related to issues possible when creating an empty feed temp file and populating the header.
128128
*/
@@ -146,7 +146,7 @@ protected function handle_start() {
146146
* Runs as the last step of the job.
147147
* Add XML footer to the feed files and copy the move the files from tmp to the final destination.
148148
*
149-
* @since x.x.x
149+
* @since 1.0.10
150150
*
151151
* @throws Throwable Related to issues possible when adding the footer or renaming the files.
152152
*/
@@ -210,7 +210,7 @@ protected function get_items_for_batch( int $batch_number, array $args ): array
210210
* Processes a batch of items. The middle part of the generation process.
211211
* Can run multiple times depending on the catalog size.
212212
*
213-
* @since x.x.x
213+
* @since 1.0.10
214214
*
215215
* @param array $items The items of the current batch.
216216
* @param array $args The args for the job.
@@ -229,7 +229,7 @@ protected function process_items( array $items, array $args ) {
229229
/**
230230
* Filter excluded product types.
231231
*
232-
* @since x.x.x
232+
* @since 1.0.10
233233
* @param array Array of excluded product types.
234234
*/
235235
$excluded_product_types = apply_filters(
@@ -312,7 +312,7 @@ public function get_plugin_name(): string {
312312
/**
313313
* Marks feed as dirty.
314314
*
315-
* @since x.x.x
315+
* @since 1.0.10
316316
*/
317317
public function mark_feed_dirty(): void {
318318
Pinterest_For_Woocommerce()::save_data( 'feed_dirty', true );
@@ -330,7 +330,7 @@ public function mark_feed_dirty(): void {
330330
/**
331331
* Marks feed as clean.
332332
*
333-
* @since x.x.x
333+
* @since 1.0.10
334334
*/
335335
public function mark_feed_clean(): void {
336336
Pinterest_For_Woocommerce()::save_data( 'feed_dirty', false );
@@ -339,7 +339,7 @@ public function mark_feed_clean(): void {
339339
/**
340340
* Check if feed is dirty.
341341
*
342-
* @since x.x.x
342+
* @since 1.0.10
343343
* @return bool Indicates if feed is dirty or not.
344344
*/
345345
public function feed_is_dirty(): bool {
@@ -350,7 +350,7 @@ public function feed_is_dirty(): bool {
350350
* Prepare a fresh temporary file for each local configuration.
351351
* Files is populated with the XML headers.
352352
*
353-
* @since x.x.x
353+
* @since 1.0.10
354354
*/
355355
private function prepare_temporary_files(): void {
356356
foreach ( $this->configurations->get_configurations() as $config ) {
@@ -366,7 +366,7 @@ private function prepare_temporary_files(): void {
366366
/**
367367
* Add XML footer to all of the temporary feed files.
368368
*
369-
* @since x.x.x
369+
* @since 1.0.10
370370
*/
371371
private function add_footer_to_temporary_feed_files(): void {
372372
foreach ( $this->configurations->get_configurations() as $config ) {
@@ -384,7 +384,7 @@ private function add_footer_to_temporary_feed_files(): void {
384384
* Checks the status of the file write operation and throws if issues are found.
385385
* Utility function for functions using file_put_contents.
386386
*
387-
* @since x.x.x
387+
* @since 1.0.10
388388
* @param integer $bytes_written How much data was written to the file.
389389
* @param string $file File location.
390390
*
@@ -416,7 +416,7 @@ private function check_write_for_io_errors( $bytes_written, $file ): void {
416416
/**
417417
* React to errors during feed files generation process.
418418
*
419-
* @since x.x.x
419+
* @since 1.0.10
420420
* @param Throwable $th Exception handled.
421421
*/
422422
private function handle_error( $th ) {
@@ -435,7 +435,7 @@ private function handle_error( $th ) {
435435
* Rename temporary feed files to final name.
436436
* This is the last step of the feed file generation process.
437437
*
438-
* @since x.x.x
438+
* @since 1.0.10
439439
* @throws \Exception Renaming not possible.
440440
*/
441441
private function rename_temporary_feed_files_to_final(): void {
@@ -458,7 +458,7 @@ private function rename_temporary_feed_files_to_final(): void {
458458
* Remove feed files and cancel pending actions.
459459
* Part of the cleanup procedure.
460460
*
461-
* @since x.x.x
461+
* @since 1.0.10
462462
*/
463463
public static function deregister(): void {
464464
foreach ( LocalFeedConfigs::get_instance()->get_configurations() as $config ) {
@@ -476,7 +476,7 @@ public static function deregister(): void {
476476
/**
477477
* Write pre-populated buffers to feed files.
478478
*
479-
* @since x.x.x
479+
* @since 1.0.10
480480
*/
481481
private function write_buffers_to_temp_files(): void {
482482
foreach ( $this->configurations->get_configurations() as $location => $config ) {
@@ -493,7 +493,7 @@ private function write_buffers_to_temp_files(): void {
493493
/**
494494
* Check if we have a feed file on the disk.
495495
*
496-
* @since x.x.x
496+
* @since 1.0.10
497497
*/
498498
public function check_if_feed_file_exists() {
499499
$configs = $this->configurations->get_configurations();
@@ -507,7 +507,7 @@ public function check_if_feed_file_exists() {
507507
/**
508508
* Create empty string buffers for
509509
*
510-
* @since x.x.x
510+
* @since 1.0.10
511511
*/
512512
private function prepare_feed_buffers(): void {
513513
foreach ( $this->get_locations() as $location ) {
@@ -518,7 +518,7 @@ private function prepare_feed_buffers(): void {
518518
/**
519519
* Fetch supported locations.
520520
*
521-
* @since x.x.x
521+
* @since 1.0.10
522522
*/
523523
private function get_locations(): array {
524524
return array_keys( $this->configurations->get_configurations() );

src/FeedRegistration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Pinterest for WooCommerce Feed Registration.
44
*
55
* @package Pinterest_For_WooCommerce/Classes/
6-
* @version x.x.x
6+
* @version 1.0.10
77
*/
88

99
namespace Automattic\WooCommerce\Pinterest;
@@ -42,7 +42,7 @@ class FeedRegistration {
4242
/**
4343
* Feed Registration.
4444
*
45-
* @since x.x.x
45+
* @since 1.0.10
4646
* @param LocalFeedConfigs $local_feeds_configurations Locations configuration class.
4747
* @param FeedGenerator $feed_generator Feed generator class.
4848
*/
@@ -54,7 +54,7 @@ public function __construct( $local_feeds_configurations, $feed_generator ) {
5454
/**
5555
* Initialize FeedRegistration actions and Action Scheduler hooks.
5656
*
57-
* @since x.x.x
57+
* @since 1.0.10
5858
*/
5959
public function init() {
6060
add_action( self::ACTION_HANDLE_FEED_REGISTRATION, array( $this, 'handle_feed_registration' ) );

src/LocalFeedConfigs.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Class responsible for managing local feed configurations.
44
*
55
* @package Pinterest_For_WooCommerce/Classes/
6-
* @version x.x.x
6+
* @version 1.0.10
77
*/
88
namespace Automattic\WooCommerce\Pinterest;
99

@@ -30,15 +30,15 @@ class LocalFeedConfigs {
3030
/**
3131
* The Singleton's instance.
3232
*
33-
* @since x.x.x
33+
* @since 1.0.10
3434
* @var null|LocalFeedConfigs Instance object.
3535
*/
3636
private static $instance = null;
3737

3838
/**
3939
* Singleton initialization and instance fetching method.
4040
*
41-
* @since x.x.x
41+
* @since 1.0.10
4242
* @return LocalFeedConfigs Singleton instance.
4343
*/
4444
public static function get_instance(): LocalFeedConfigs {
@@ -52,7 +52,7 @@ public static function get_instance(): LocalFeedConfigs {
5252
/**
5353
* Class responsible for local feed configurations and handling.
5454
*
55-
* @since x.x.x
55+
* @since 1.0.10
5656
*/
5757
protected function __construct() {
5858
$locations = array( Pinterest_For_Woocommerce()::get_base_country() ?? 'US' ); // Replace with multiple countries array for multiple feed config.
@@ -62,7 +62,7 @@ protected function __construct() {
6262
/**
6363
* Prepare feed configurations.
6464
*
65-
* @since x.x.x
65+
* @since 1.0.10
6666
* @param array $locations Array of location to generate the feed files for.
6767
*/
6868
private function initialize_local_feeds_config( $locations ) {

src/PluginUpdate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function update_plugin_update_version_option(): void {
9898
/**
9999
* List of update procedures
100100
*
101-
* @since x.x.x
101+
* @since 1.0.10
102102
* @return array List of update procedures names.
103103
*/
104104
private function update_procedures() {
@@ -148,7 +148,7 @@ public function maybe_update(): void {
148148
* Perform update procedure.
149149
*
150150
* @since 1.0.9
151-
* @since x.x.x Accepts procedure name as parameter.
151+
* @since 1.0.10 Accepts procedure name as parameter.
152152
* @param string $update_procedure Name of the migration procedure.
153153
* @throws Throwable Update procedure failures.
154154
* @return void

src/ProductSync.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function () {
8181
/**
8282
* Observe Pinterest option change and decide if we need to deregister.
8383
*
84-
* @since x.x.x
84+
* @since 1.0.10
8585
*
8686
* @param array $old_value Option old value.
8787
* @param array $value Option new value.
@@ -101,7 +101,7 @@ public static function maybe_deregister( $old_value, $value ) {
101101
/**
102102
* Initialize components of the synchronization process.
103103
*
104-
* @since x.x.x
104+
* @since 1.0.10
105105
*/
106106
private static function initialize_feed_components() {
107107
$action_scheduler = new ActionSchedulerProxy();

0 commit comments

Comments
 (0)