Genesis Connect for WooCommerce - Version 1.1.1

Version Description

  • Removed use of wp_make_content_images_responsive featured product widget images; srcset is applied via wp_calculate_image_srcset in wp_get_attachment_image used by genesis_get_image.
Download this release

Release Info

Developer studiopress
Plugin Icon 128x128 Genesis Connect for WooCommerce
Version 1.1.1
Comparing to
See all releases

Code changes from version 1.1.0 to 1.1.1

.circleci/config.yml CHANGED
@@ -1,28 +1,141 @@
1
- version: 2
2
 
3
- jobs:
4
- test:
5
- docker:
6
- - image: circleci/php:7.3-stretch
 
 
 
 
7
  steps:
8
- - checkout
9
- - restore_cache:
10
- keys:
11
- - v1-dependencies-{{ checksum "composer.json" }}
12
- - v1-dependencies-
13
  - run:
14
- name: "Install composer dependencies."
15
- command: composer install --no-interaction --prefer-dist --no-suggest
16
- - save_cache:
17
- key: composer-v1-{{ checksum "composer.lock" }}
18
- paths:
19
- - vendor
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  - run:
21
- name: "Run PHPCS"
22
- command: composer sniff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
  workflows:
25
  version: 2
26
- check-wp-cs:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  jobs:
28
- - test
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: 2.1
2
 
3
+ commands:
4
+ install_dependencies:
5
+ description: "Install development dependencies."
6
+ steps:
7
+ - run: composer install
8
+
9
+ mkdir_artifacts:
10
+ description: "Make Artifacts directory"
11
  steps:
 
 
 
 
 
12
  - run:
13
+ command: |
14
+ [ ! -d "/tmp/artifacts" ] && mkdir /tmp/artifacts &>/dev/null
15
+
16
+ set_verision_variable:
17
+ description: "Set the VERSION environment variable"
18
+ steps:
19
+ - run:
20
+ command: |
21
+ echo "export VERSION=$(grep 'Version:' /tmp/src/genesis-connect-woocommerce.php | awk -F: '{print $2}' | sed 's/^\s//')" >> ${BASH_ENV}
22
+
23
+ show_pwd_info:
24
+ description: "Show information about the current directory"
25
+ steps:
26
+ - run: pwd
27
+ - run: ls -lash
28
+
29
+ svn_setup:
30
+ description: "Setup SVN"
31
+ steps:
32
+ - run: echo "export SLUG=genesis-connect-woocommerce" >> ${BASH_ENV}
33
+ - run: svn co https://plugins.svn.wordpress.org/${SLUG} --depth=empty .
34
+ - run: svn up trunk
35
+ - run: svn up tags --depth=empty
36
+ - run: find ./trunk -not -path "./trunk" -delete
37
+ - run: cp -r /tmp/src/. ./trunk
38
+ - run: svn propset svn:ignore -F ./trunk/.svnignore ./trunk
39
+
40
+ svn_add_changes:
41
+ description: "Add changes to SVN"
42
+ steps:
43
  - run:
44
+ command: if [[ ! -z $(svn st | grep ^\!) ]]; then svn st | grep ^! | awk '{print " --force "$2}' | xargs -0r svn rm; fi
45
+ - run: svn add --force .
46
+
47
+ svn_create_tag:
48
+ description: "Create a SVN tag"
49
+ steps:
50
+ - set_verision_variable
51
+ - run: svn cp trunk tags/${VERSION}
52
+
53
+ svn_commit:
54
+ description: "Commit changes to SVN"
55
+ steps:
56
+ - set_verision_variable
57
+ - run: svn ci -m "Tagging ${VERSION} from Github" --no-auth-cache --non-interactive --username "${SVN_USERNAME}" --password "${SVN_PASSWORD}"
58
+
59
+ executors:
60
+ base:
61
+ docker:
62
+ - image: circleci/buildpack-deps:latest
63
+ working_directory: /tmp
64
+ php_node:
65
+ docker:
66
+ - image: circleci/php:7.3.3-stretch-node-browsers
67
+ working_directory: /tmp/src
68
+
69
+ jobs:
70
+ checkout:
71
+ executor: base
72
+ steps:
73
+ - mkdir_artifacts
74
+ - checkout:
75
+ path: src
76
+ - persist_to_workspace:
77
+ root: /tmp
78
+ paths:
79
+ - src
80
+
81
+ checks:
82
+ executor: php_node
83
+ steps:
84
+ - attach_workspace:
85
+ at: /tmp
86
+ - install_dependencies
87
+ - run: composer phpcs
88
+
89
+ deploy_svn_tag:
90
+ executor: base
91
+ working_directory: /tmp/artifacts
92
+ steps:
93
+ - attach_workspace:
94
+ at: /tmp
95
+ - svn_setup
96
+ - svn_create_tag
97
+ - svn_add_changes
98
+ - svn_commit
99
 
100
  workflows:
101
  version: 2
102
+ checks:
103
+ jobs:
104
+ - checkout:
105
+ filters:
106
+ branches:
107
+ ignore:
108
+ - master
109
+ - checks:
110
+ requires:
111
+ - checkout
112
+ filters:
113
+ branches:
114
+ ignore:
115
+ - master
116
+
117
+ tag_deploy:
118
  jobs:
119
+ - checkout:
120
+ filters:
121
+ tags:
122
+ only: /^\d+\.\d+\.\d+$/
123
+ branches:
124
+ ignore: /.*/
125
+ - checks:
126
+ requires:
127
+ - checkout
128
+ filters:
129
+ tags:
130
+ only: /^\d+\.\d+\.\d+$/
131
+ branches:
132
+ ignore: /.*/
133
+ - deploy_svn_tag:
134
+ context: genesis-svn
135
+ requires:
136
+ - checks
137
+ filters:
138
+ tags:
139
+ only: /^\d+\.\d+\.\d+$/
140
+ branches:
141
+ ignore: /.*/
genesis-connect-woocommerce.php CHANGED
@@ -2,16 +2,18 @@
2
  /**
3
  * Plugin Name: Genesis Connect for WooCommerce
4
  * Plugin URI: https://wordpress.org/plugins/genesis-connect-woocommerce/
5
- * Version: 1.1.0
6
  * Author: StudioPress
7
  * Author URI: https://www.studiopress.com/
8
  * Description: Allows you to seamlessly integrate WooCommerce with the Genesis Framework and Genesis child themes.
9
  * Text Domain: gencwooc
10
  * License: GNU General Public License v2.0 (or later)
11
  * License URI: http://www.opensource.org/licenses/gpl-license.php
 
 
12
  *
13
  * WC requires at least: 3.3.0
14
- * WC tested up to: 3.6.4
15
  *
16
  * @package Genesis_Connect_WooCommerce
17
  *
2
  /**
3
  * Plugin Name: Genesis Connect for WooCommerce
4
  * Plugin URI: https://wordpress.org/plugins/genesis-connect-woocommerce/
5
+ * Version: 1.1.1
6
  * Author: StudioPress
7
  * Author URI: https://www.studiopress.com/
8
  * Description: Allows you to seamlessly integrate WooCommerce with the Genesis Framework and Genesis child themes.
9
  * Text Domain: gencwooc
10
  * License: GNU General Public License v2.0 (or later)
11
  * License URI: http://www.opensource.org/licenses/gpl-license.php
12
+ * Requires PHP: 5.6
13
+ * Requires at least: 4.7
14
  *
15
  * WC requires at least: 3.3.0
16
+ * WC tested up to: 4.4.0
17
  *
18
  * @package Genesis_Connect_WooCommerce
19
  *
languages/genesis-connect-woocommerce.pot CHANGED
@@ -1,17 +1,17 @@
1
- # Copyright (C) 2019 StudioPress
2
  # This file is distributed under the same license as the Genesis Connect for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Genesis Connect for WooCommerce 1.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/genesis-connect-woocommerce\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2019-07-10T15:02:37+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
- "X-Generator: WP-CLI 2.1.0\n"
15
  "X-Domain: gencwooc\n"
16
 
17
  #. Plugin Name of the plugin
@@ -42,14 +42,6 @@ msgstr ""
42
  msgid "Genesis Connect for WooCommerce requires WooCommerce. Please activate WooCommerce or disable Genesis Connect."
43
  msgstr ""
44
 
45
- #: lib/template-loader.php:178
46
- msgid "Search Results:"
47
- msgstr ""
48
-
49
- #: lib/template-loader.php:181
50
- msgid "Page"
51
- msgstr ""
52
-
53
  #: lib/breadcrumb.php:67
54
  msgid "Search results for &ldquo;"
55
  msgstr ""
@@ -76,6 +68,14 @@ msgstr ""
76
  msgid "This setting determines how many products show up on archive pages and may be overridden by filters used in themes and plugins."
77
  msgstr ""
78
 
 
 
 
 
 
 
 
 
79
  #: widgets/class-gencwooc-featured-products.php:54
80
  msgid "More Products from this Category"
81
  msgstr ""
1
+ # Copyright (C) 2020 StudioPress
2
  # This file is distributed under the same license as the Genesis Connect for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Genesis Connect for WooCommerce 1.1.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/genesis-connect-woocommerce\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2020-08-20T15:06:02+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
+ "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: gencwooc\n"
16
 
17
  #. Plugin Name of the plugin
42
  msgid "Genesis Connect for WooCommerce requires WooCommerce. Please activate WooCommerce or disable Genesis Connect."
43
  msgstr ""
44
 
 
 
 
 
 
 
 
 
45
  #: lib/breadcrumb.php:67
46
  msgid "Search results for &ldquo;"
47
  msgstr ""
68
  msgid "This setting determines how many products show up on archive pages and may be overridden by filters used in themes and plugins."
69
  msgstr ""
70
 
71
+ #: lib/template-loader.php:178
72
+ msgid "Search Results:"
73
+ msgstr ""
74
+
75
+ #: lib/template-loader.php:181
76
+ msgid "Page"
77
+ msgstr ""
78
+
79
  #: widgets/class-gencwooc-featured-products.php:54
80
  msgid "More Products from this Category"
81
  msgstr ""
package-lock.json ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ {
2
+ "lockfileVersion": 1
3
+ }
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Plugin Name ===
2
- Contributors: nathanrice, studiopress, studiograsshopper, modernnerd, marksabbath, calvinkoepke, curtismchale
3
  Tags: genesis, genesiswp, studiopress, woocommerce
4
- Requires at least: 3.3
5
- Tested up to: 5.2.2
6
- Stable tag: 1.1.0
7
 
8
  This plugin allows you to seamlessly integrate WooCommerce with the Genesis Framework and Genesis child themes.
9
 
@@ -131,6 +131,9 @@ For the benefit of theme developers and customizers, here is a summary of possib
131
 
132
  == Changelog ==
133
 
 
 
 
134
  = 1.1.0 =
135
  * Added php codesniffer via composer package for WordPress code standards.
136
  * Fixed spacing and syntax issues for WordPress code standards.
@@ -155,8 +158,8 @@ For the benefit of theme developers and customizers, here is a summary of possib
155
  * Allow network activation on WordPress multisite networks.
156
 
157
  = 0.9.10 =
158
- * Update theme templates for WooCommerce 3.3
159
- * Add Featured Products Widget
160
 
161
  = 0.9.9 =
162
  * Released 12 January 2017
@@ -167,7 +170,7 @@ For the benefit of theme developers and customizers, here is a summary of possib
167
 
168
  = 0.9.8 =
169
  * Released 9 July 2014
170
- * Updates genesiswooc_content_product() to reflect WooCommerce 2.1+ templates and correct handling of WooCommerce page title filter function
171
 
172
  = 0.9.7 =
173
  * Released 22 December 2013
@@ -179,24 +182,24 @@ For the benefit of theme developers and customizers, here is a summary of possib
179
 
180
  = 0.9.5 =
181
  * Released 14 March 2013
182
- * add_theme_support( 'woocommerce' ) added to ensure compatibility with WooCommerce 2.0+
183
 
184
  = 0.9.4 =
185
  * Released 19 July 2012
186
- * Tweaked archive-product.php and taxonomy.php loop functions to provide compatibility with WooCommerce 1.6.0
187
 
188
  = 0.9.3 =
189
  * Released 14 May 2012
190
- * taxonomy.php and archive-product.php now use woocommerce_get_template_part() instead of gencwooc_get_template_part()
191
  * gencwooc_get_template_part() updated to reflect latest version of woocommerce_get_template_part(). Note: gencwooc_get_template_part() will be deprecated in a future version and is only retained for backwards compatibility.
192
 
193
  = 0.9.2 =
194
  * Released 15 March 2012
195
- * single-product.php - Single product title template file now hooked in as per WooCommerce 1.5.2
196
 
197
  = 0.9.1 =
198
  * Released 6 March 2012
199
- * Fixes call to undefined function error in sp-plugins-integration/genesis-simple-sidebars.php
200
 
201
  = 0.9.0 =
202
- * Initial Release
1
  === Plugin Name ===
2
+ Contributors: nathanrice, studiopress, studiograsshopper, modernnerd, marksabbath, calvinkoepke, curtismchale, wpengine, dreamwhisper
3
  Tags: genesis, genesiswp, studiopress, woocommerce
4
+ Requires at least: 4.7
5
+ Tested up to: 6.1
6
+ Stable tag: 1.1.1
7
 
8
  This plugin allows you to seamlessly integrate WooCommerce with the Genesis Framework and Genesis child themes.
9
 
131
 
132
  == Changelog ==
133
 
134
+ = 1.1.1 =
135
+ * Removed use of `wp_make_content_images_responsive` featured product widget images; srcset is applied via `wp_calculate_image_srcset` in `wp_get_attachment_image` used by `genesis_get_image`.
136
+
137
  = 1.1.0 =
138
  * Added php codesniffer via composer package for WordPress code standards.
139
  * Fixed spacing and syntax issues for WordPress code standards.
158
  * Allow network activation on WordPress multisite networks.
159
 
160
  = 0.9.10 =
161
+ * Update theme templates for WooCommerce 3.3.
162
+ * Add Featured Products Widget.
163
 
164
  = 0.9.9 =
165
  * Released 12 January 2017
170
 
171
  = 0.9.8 =
172
  * Released 9 July 2014
173
+ * Updates genesiswooc_content_product() to reflect WooCommerce 2.1+ templates and correct handling of WooCommerce page title filter function.
174
 
175
  = 0.9.7 =
176
  * Released 22 December 2013
182
 
183
  = 0.9.5 =
184
  * Released 14 March 2013
185
+ * add_theme_support( 'woocommerce' ) added to ensure compatibility with WooCommerce 2.0+.
186
 
187
  = 0.9.4 =
188
  * Released 19 July 2012
189
+ * Tweaked archive-product.php and taxonomy.php loop functions to provide compatibility with WooCommerce 1.6.0.
190
 
191
  = 0.9.3 =
192
  * Released 14 May 2012
193
+ * taxonomy.php and archive-product.php now use woocommerce_get_template_part() instead of gencwooc_get_template_part().
194
  * gencwooc_get_template_part() updated to reflect latest version of woocommerce_get_template_part(). Note: gencwooc_get_template_part() will be deprecated in a future version and is only retained for backwards compatibility.
195
 
196
  = 0.9.2 =
197
  * Released 15 March 2012
198
+ * single-product.php - Single product title template file now hooked in as per WooCommerce 1.5.2.
199
 
200
  = 0.9.1 =
201
  * Released 6 March 2012
202
+ * Fixes call to undefined function error in sp-plugins-integration/genesis-simple-sidebars.php.
203
 
204
  = 0.9.0 =
205
+ * Initial Release.
widgets/class-gencwooc-featured-products.php CHANGED
@@ -185,7 +185,7 @@ class Gencwooc_Featured_Products extends WC_Widget {
185
  }
186
 
187
  /**
188
- * Function to retrieve the actual product categories as an assosiative array. Used to output
189
  * a dropdown in the widget settings.
190
  *
191
  * @return array Associative array of product categories.
@@ -211,7 +211,7 @@ class Gencwooc_Featured_Products extends WC_Widget {
211
  * Function to retrieve an associative array containing all possible featured image sizes to
212
  * be used.
213
  *
214
- * @return array Associative array containg possible image sizes and dimensions.
215
  */
216
  public function get_featured_image_sizes() {
217
 
@@ -231,7 +231,7 @@ class Gencwooc_Featured_Products extends WC_Widget {
231
  * Main function to retrieve a WP_Query object with appropriate arguments passed in from
232
  * the instance.
233
  *
234
- * @param array $args Widgdet instance arguments.
235
  * @param array $instance Instance arguments to be used in the query.
236
  *
237
  * @return object New WP_Query object to be looped through.
@@ -391,12 +391,12 @@ class Gencwooc_Featured_Products extends WC_Widget {
391
  printf(
392
  '<a href="%s" class="entry-image-wrap">%s</a>',
393
  esc_url( get_permalink() ),
394
- wp_make_content_images_responsive( $image ) // phpcs:ignore WordPress.Security.EscapeOutput
395
  );
396
  } else {
397
  printf(
398
  '<div class="entry-image-wrap">%s</div>',
399
- wp_make_content_images_responsive( $image ) // phpcs:ignore WordPress.Security.EscapeOutput
400
  );
401
  }
402
  }
185
  }
186
 
187
  /**
188
+ * Function to retrieve the actual product categories as an associative array. Used to output
189
  * a dropdown in the widget settings.
190
  *
191
  * @return array Associative array of product categories.
211
  * Function to retrieve an associative array containing all possible featured image sizes to
212
  * be used.
213
  *
214
+ * @return array Associative array containing possible image sizes and dimensions.
215
  */
216
  public function get_featured_image_sizes() {
217
 
231
  * Main function to retrieve a WP_Query object with appropriate arguments passed in from
232
  * the instance.
233
  *
234
+ * @param array $args Widget instance arguments.
235
  * @param array $instance Instance arguments to be used in the query.
236
  *
237
  * @return object New WP_Query object to be looped through.
391
  printf(
392
  '<a href="%s" class="entry-image-wrap">%s</a>',
393
  esc_url( get_permalink() ),
394
+ $image // phpcs:ignore WordPress.Security.EscapeOutput
395
  );
396
  } else {
397
  printf(
398
  '<div class="entry-image-wrap">%s</div>',
399
+ $image // phpcs:ignore WordPress.Security.EscapeOutput
400
  );
401
  }
402
  }