From a2f58f99a6584e9cc0f98e15d88b56683992579c Mon Sep 17 00:00:00 2001 From: Ben Moore Date: Fri, 22 May 2020 14:13:23 -0500 Subject: [PATCH 1/4] fix: circleci version bug --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e21e8ff..e658503 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,7 +18,7 @@ commands: steps: - run: command: | - echo "export VERSION=$(git -C /tmp/src describe --tags --abbrev=0)" >> ${BASH_ENV} + echo "export VERSION=$(grep 'Version:' /tmp/src/genesis-portfolio-pro.php | awk -F: '{print $2}' | sed 's/^\s//')" >> ${BASH_ENV} show_pwd_info: description: "Show information about the current directory" From 945536c39d4e0aae7b80f5c7b3014dc931d5d104 Mon Sep 17 00:00:00 2001 From: Ben Moore Date: Fri, 22 May 2020 14:54:42 -0500 Subject: [PATCH 2/4] fix: get version number from plugin.php --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e658503..1fdd3c3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,7 +18,7 @@ commands: steps: - run: command: | - echo "export VERSION=$(grep 'Version:' /tmp/src/genesis-portfolio-pro.php | awk -F: '{print $2}' | sed 's/^\s//')" >> ${BASH_ENV} + echo "export VERSION=$(grep 'Version:' /tmp/src/plugin.php | awk -F: '{print $2}' | sed 's/^\s//')" >> ${BASH_ENV} show_pwd_info: description: "Show information about the current directory" From a792f5cd026054e30ac5ab8f34bf9684cdc29d4e Mon Sep 17 00:00:00 2001 From: Jen Baumann Date: Wed, 19 Aug 2020 14:43:11 -0400 Subject: [PATCH 3/4] Remove `wp_make_content_images_responsive` (#53) * Update deps * Fix typo * Remove use of `wp_make_content_images_responsive` Images get `srcset` via `wp_calculate_image_srcset` in `wp_get_attachment_image`. --- composer.lock | 13 ++++++------- genesis-portfolio-pro.php | 2 +- lib/views/widget/portfolio.php | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/composer.lock b/composer.lock index 26082c6..d641232 100644 --- a/composer.lock +++ b/composer.lock @@ -617,16 +617,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.5.4", + "version": "3.5.6", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "dceec07328401de6211037abbb18bda423677e26" + "reference": "e97627871a7eab2f70e59166072a6b767d5834e0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/dceec07328401de6211037abbb18bda423677e26", - "reference": "dceec07328401de6211037abbb18bda423677e26", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/e97627871a7eab2f70e59166072a6b767d5834e0", + "reference": "e97627871a7eab2f70e59166072a6b767d5834e0", "shasum": "" }, "require": { @@ -664,7 +664,7 @@ "phpcs", "standards" ], - "time": "2020-01-30T22:20:29+00:00" + "time": "2020-08-10T04:50:15+00:00" }, { "name": "symfony/finder", @@ -988,6 +988,5 @@ }, "platform-dev": { "php": "^5.6 || ^7" - }, - "plugin-api-version": "1.1.0" + } } diff --git a/genesis-portfolio-pro.php b/genesis-portfolio-pro.php index 24f965f..eff430d 100644 --- a/genesis-portfolio-pro.php +++ b/genesis-portfolio-pro.php @@ -138,7 +138,7 @@ function genesis_portfolio_archive_setting_defaults( $defaults = array(), $post_ register_activation_hook( __FILE__, 'genesis_portfolio_rewrite_flush' ); /** - * Activation hook action to flush the rewrit rules for the custom post type and taxonomy + * Activation hook action to flush the rewrite rules for the custom post type and taxonomy * * @since 0.1.0 */ diff --git a/lib/views/widget/portfolio.php b/lib/views/widget/portfolio.php index d9662e1..6af1055 100644 --- a/lib/views/widget/portfolio.php +++ b/lib/views/widget/portfolio.php @@ -77,7 +77,7 @@ if ( $image && $instance['show_image'] ) { $state = empty( $instance['show_title'] ) ? '' : 'aria-hidden="true"'; // phpcs:ignore - printf( '%s', esc_url( get_permalink() ), esc_attr( $instance['image_alignment'] ), $state, wp_make_content_images_responsive( $image ) ); + printf( '%s', esc_url( get_permalink() ), esc_attr( $instance['image_alignment'] ), $state, $image ); } if ( $instance['show_title'] ) { From e41257b4b5e58533f3d96ee73b0332cd4334f876 Mon Sep 17 00:00:00 2001 From: Jen Baumann Date: Thu, 20 Aug 2020 07:32:41 -0400 Subject: [PATCH 4/4] Prepare to release 1.2.3 (#54) * Bump version to 1.2.3 * Add 1.2.3 changelog * Add contributors * Bump tested up to * Add requirements * Update language file --- languages/genesis-portfolio-pro.pot | 4 ++-- package-lock.json | 2 +- package.json | 2 +- plugin.php | 4 +++- readme.txt | 10 +++++++--- 5 files changed, 14 insertions(+), 8 deletions(-) diff --git a/languages/genesis-portfolio-pro.pot b/languages/genesis-portfolio-pro.pot index f5ca199..73ad37d 100644 --- a/languages/genesis-portfolio-pro.pot +++ b/languages/genesis-portfolio-pro.pot @@ -2,14 +2,14 @@ # This file is distributed under the same license as the Genesis Portfolio Pro plugin. msgid "" msgstr "" -"Project-Id-Version: Genesis Portfolio Pro 1.2.2\n" +"Project-Id-Version: Genesis Portfolio Pro 1.2.3\n" "Report-Msgid-Bugs-To: StudioPress \n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2020-04-15T16:59:10+00:00\n" +"POT-Creation-Date: 2020-08-19T19:03:16+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.2.0\n" "X-Domain: genesis-portfolio-pro\n" diff --git a/package-lock.json b/package-lock.json index 385b71f..5245e0f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { "name": "genesis-portfolio-pro", - "version": "1.2.1", + "version": "1.2.3", "lockfileVersion": 1 } diff --git a/package.json b/package.json index 7ba83b5..e3f3c79 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "genesis-portfolio-pro", "main_plugin_file": "plugin", "title": "Genesis Portfolio Pro", - "version": "1.2.2", + "version": "1.2.3", "license": "GPL-2.0-or-later", "licenseuri": "https://www.gnu.org/licenses/gpl-2.0.html", "description": "Plugin that add a new Portfolio post type where you can add portfolio entries with images and galleries to show off your visual content.", diff --git a/plugin.php b/plugin.php index 59b67a6..81cfab4 100644 --- a/plugin.php +++ b/plugin.php @@ -9,9 +9,11 @@ * Plugin Name: Genesis Portfolio Pro * Plugin URI: https://wordpress.org/plugins/genesis-portfolio-pro/ * Description: Adds default portfolio to any Genesis HTML5 theme. - * Version: 1.2.2 + * Version: 1.2.3 * Author: StudioPress * Author URI: https://www.studiopress.com + * Requires at least: 4.4 + * Requires PHP: 5.6 * Text Domain: genesis-portfolio-pro * Domain Path: /languages */ diff --git a/readme.txt b/readme.txt index 325d458..abec6e2 100644 --- a/readme.txt +++ b/readme.txt @@ -1,9 +1,10 @@ === Genesis Portfolio Pro === -Contributors: nathanrice, studiopress, wpmuguru, nick_thegeek, bgardner, marksabbath, modernnerd +Contributors: nathanrice, studiopress, wpmuguru, nick_thegeek, bgardner, marksabbath, modernnerd, dreamwhisper, wpengine Tags: genesis, portfolio, templates Requires at least: 4.4 -Tested up to: 5.4 -Stable tag: 1.2.2 +Tested up to: 5.5 +Requires PHP: 5.6 +Stable tag: 1.2.3 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -30,6 +31,9 @@ Custom templates are supported using the WordPress template hierarchy and the po == Changelog == += 1.2.3 = +* Removed use of `wp_make_content_images_responsive` portfolio widget images; `srcset` is applied via `wp_calculate_image_srcset` in `wp_get_attachment_image` used by `genesis_get_image`. + = 1.2.2 = * REST: Expose the Portfolio post type and Portfolio Type taxonomy to the REST API. * Tooling: Generate language file with WP-CLI instead of Node.js.