From 7f26d2cb4f6aa47e289682e8d3fadcf5b2d4fdf9 Mon Sep 17 00:00:00 2001 From: flowdee Date: Thu, 7 Feb 2019 17:31:21 +0100 Subject: [PATCH 1/8] Added default classes for footer widget column classes In case you increase the number of widget columns to e.g. 5, the current function/filter always throws a "PHP Notice: Undefined variable: classes in /includes/footer.php on line 113" because $classes is not defined --- includes/footer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/footer.php b/includes/footer.php index f3c89de..fed4b2a 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -107,6 +107,8 @@ function themedd_footer_widget_column_classes( $widget_columns ) { case 1: $classes = 'col-xs-12 col-sm-6'; break; + default: + $classes = ''; } From 0617924a21889da92435fdd856a0db75ddcf28f8 Mon Sep 17 00:00:00 2001 From: Robin Cornett Date: Fri, 29 Jan 2021 13:05:56 -0500 Subject: [PATCH 2/8] Use edd_settings_misc hook #246 --- includes/compatibility/edd/filters.php | 38 +++++++++++++------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/includes/compatibility/edd/filters.php b/includes/compatibility/edd/filters.php index 53c69c9..a133b21 100644 --- a/includes/compatibility/edd/filters.php +++ b/includes/compatibility/edd/filters.php @@ -23,18 +23,18 @@ function themedd_edd_download_details_widget_purchase_button( $purchase_link, $d */ function themedd_edd_settings_styles( $settings ) { - // Remove "Style Settings" heading. - unset( $settings['main']['style_settings'] ); - // Remove "Disable Styles" option. Styling is already disabled and controlled via Themedd. unset( $settings['main']['disable_styles'] ); // Remove "Default Button Color" option since Themedd controls all button styling - unset( $settings['main']['checkout_color'] ); + unset( $settings['button_text']['checkout_color'] ); + + // Remove the button style selector. + unset( $settings['button_text']['button_style'] ); return $settings; } -add_filter( 'edd_settings_styles', 'themedd_edd_settings_styles' ); +add_filter( 'edd_settings_misc', 'themedd_edd_settings_styles' ); /** * Filter the purchase link defaults @@ -61,16 +61,16 @@ function themedd_edd_purchase_link_defaults( $defaults ) { * * @since 1.0.0 Filtered the price * @since 1.0.3 Filtered other attributes - * + * * @param array $out The output array of shortcode attributes. * @param array $pairs The supported attributes and their defaults. * @param array $atts The user defined shortcode attributes. * @param string $shortcode The shortcode name. - * + * * @return array $out The output array of shortcode attributes. */ function themedd_edd_shortcode_atts_downloads( $out, $pairs, $atts, $shortcode ) { - + /** * Get the download grid options. */ @@ -78,7 +78,7 @@ function themedd_edd_shortcode_atts_downloads( $out, $pairs, $atts, $shortcode ) /** * Filter the pagination. - * + * * @since 1.0.3 */ if ( false === $download_grid_options['pagination'] ) { @@ -89,28 +89,28 @@ function themedd_edd_shortcode_atts_downloads( $out, $pairs, $atts, $shortcode ) /** * Sets the number of download columns shown. - * + * * @since 1.0.3 */ $out['columns'] = $download_grid_options['columns']; /** * Sets the number of downloads shown. - * + * * @since 1.0.3 */ $out['number'] = $download_grid_options['number']; /** * Sets the "order". - * + * * @since 1.0.3 */ $out['order'] = $download_grid_options['order']; /** * Sets the "orderby" - * + * * @since 1.0.3 */ $out['orderby'] = $download_grid_options['orderby']; @@ -123,7 +123,7 @@ function themedd_edd_shortcode_atts_downloads( $out, $pairs, $atts, $shortcode ) if ( ! isset( $atts['price'] ) && false !== $download_grid_options['price'] ) { $out['price'] = 'yes'; } - + return $out; } @@ -209,7 +209,7 @@ function themedd_edd_download_class( $class, $download_id, $atts, $i ) { case 'after': $classes[] = 'eddDownloadMeta-after'; break; - + } // Implode the $classes array and return it as a string. @@ -274,7 +274,7 @@ function themedd_edd_downloads_shortcode( $display, $atts, $buy_button, $columns } do_action( 'edd_download_before_title' ); - + if ( true === $download_grid_options['title'] ) { edd_get_template_part( 'shortcode', 'content-title' ); } @@ -284,12 +284,12 @@ function themedd_edd_downloads_shortcode( $display, $atts, $buy_button, $columns if ( true === $download_grid_options['excerpt'] && true !== $download_grid_options['full_content'] ) { // Show the excerpt. edd_get_template_part( 'shortcode', 'content-excerpt' ); - + do_action( 'edd_download_after_content' ); } elseif ( true === $download_grid_options['full_content'] ) { // Show the full content. edd_get_template_part( 'shortcode', 'content-full' ); - + do_action( 'edd_download_after_content' ); } @@ -362,4 +362,4 @@ function themedd_edd_downloads_shortcode( $display, $atts, $buy_button, $columns function themedd_edd_schema_microdata( $ret ) { return false; } -add_filter( 'edd_add_schema_microdata', 'themedd_edd_schema_microdata', 10, 1 ); \ No newline at end of file +add_filter( 'edd_add_schema_microdata', 'themedd_edd_schema_microdata', 10, 1 ); From bfbd4d3520ac72312183ec3c6b5d95f15511e5b5 Mon Sep 17 00:00:00 2001 From: Robin Cornett Date: Mon, 1 Feb 2021 10:51:56 -0500 Subject: [PATCH 3/8] Add back compat for EDD 2.x #246 --- includes/compatibility/edd/filters.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/includes/compatibility/edd/filters.php b/includes/compatibility/edd/filters.php index a133b21..d2fe324 100644 --- a/includes/compatibility/edd/filters.php +++ b/includes/compatibility/edd/filters.php @@ -23,11 +23,15 @@ function themedd_edd_download_details_widget_purchase_button( $purchase_link, $d */ function themedd_edd_settings_styles( $settings ) { + // Remove "Style Settings" heading. + unset( $settings['main']['style_settings'] ); + // Remove "Disable Styles" option. Styling is already disabled and controlled via Themedd. unset( $settings['main']['disable_styles'] ); // Remove "Default Button Color" option since Themedd controls all button styling unset( $settings['button_text']['checkout_color'] ); + unset( $settings['main']['checkout_color'] ); // Remove the button style selector. unset( $settings['button_text']['button_style'] ); @@ -36,6 +40,19 @@ function themedd_edd_settings_styles( $settings ) { } add_filter( 'edd_settings_misc', 'themedd_edd_settings_styles' ); +add_action( 'admin_menu', 'themedd_filter_edd_settings' ); +/** + * For EDD 2.x, use the `edd_settings_styles` filter to remove style settings. + * + * @return void + */ +function themedd_filter_edd_settings() { + if ( version_compare( '2.10.999', EDD_VERSION, '>' ) ) { + return; + } + add_filter( 'edd_settings_styles', 'themedd_edd_settings_styles' ); +} + /** * Filter the purchase link defaults * From 152d194a41b776c79e982372b5e52a8c645be6e7 Mon Sep 17 00:00:00 2001 From: Robin Cornett Date: Wed, 3 Feb 2021 09:24:10 -0500 Subject: [PATCH 4/8] Move EDD check outside of hooked function #246 --- includes/compatibility/edd/filters.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/includes/compatibility/edd/filters.php b/includes/compatibility/edd/filters.php index d2fe324..3955816 100644 --- a/includes/compatibility/edd/filters.php +++ b/includes/compatibility/edd/filters.php @@ -40,16 +40,12 @@ function themedd_edd_settings_styles( $settings ) { } add_filter( 'edd_settings_misc', 'themedd_edd_settings_styles' ); -add_action( 'admin_menu', 'themedd_filter_edd_settings' ); /** * For EDD 2.x, use the `edd_settings_styles` filter to remove style settings. * * @return void */ -function themedd_filter_edd_settings() { - if ( version_compare( '2.10.999', EDD_VERSION, '>' ) ) { - return; - } +if ( defined( 'EDD_VERSION' ) && version_compare( '2.10.999', EDD_VERSION, '>' ) ) { add_filter( 'edd_settings_styles', 'themedd_edd_settings_styles' ); } From c69f60a3a9151fa534dafc554c2197b5f27a6445 Mon Sep 17 00:00:00 2001 From: Robin Cornett Date: Wed, 22 Sep 2021 12:06:39 -0400 Subject: [PATCH 5/8] Remove schema markup from cross-sell/upsell output #254 --- includes/compatibility/edd/class-cross-sell-upsell.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/compatibility/edd/class-cross-sell-upsell.php b/includes/compatibility/edd/class-cross-sell-upsell.php index 7389be8..daf8ee5 100644 --- a/includes/compatibility/edd/class-cross-sell-upsell.php +++ b/includes/compatibility/edd/class-cross-sell-upsell.php @@ -61,9 +61,8 @@ public function html( $html, $downloads, $heading, $columns, $class_list ) { have_posts() ) : $downloads->the_post(); ?> - -
class="" id="edd_download_"> +
Date: Thu, 23 Sep 2021 13:29:27 +0100 Subject: [PATCH 6/8] Version bump to 1.0.8 --- functions.php | 2 +- languages/themedd.pot | 260 +++++++++++++++++++----------------------- package.json | 2 +- style.css | 2 +- style.min.css | 2 +- 5 files changed, 123 insertions(+), 145 deletions(-) diff --git a/functions.php b/functions.php index b405888..4a561f0 100644 --- a/functions.php +++ b/functions.php @@ -19,7 +19,7 @@ * @since 1.0.0 */ if ( ! defined( 'THEMEDD_VERSION' ) ) { - define( 'THEMEDD_VERSION', '1.0.7' ); + define( 'THEMEDD_VERSION', '1.0.8' ); } if ( ! defined( 'THEMEDD_AUTHOR' ) ) { diff --git a/languages/themedd.pot b/languages/themedd.pot index e33a38c..96009c2 100644 --- a/languages/themedd.pot +++ b/languages/themedd.pot @@ -1,30 +1,42 @@ -# +# Copyright (C) 2021 Easy Digital Downloads +# This file is distributed under the GNU General Public License. msgid "" msgstr "" -"Project-Id-Version: Themedd 1.0.5\n" -"Report-Msgid-Bugs-To: https://easydigitaldownloads.com\n" -"POT-Creation-Date: 2018-01-09 10:02:25+00:00\n" +"Project-Id-Version: Themedd 1.0.8\n" +"Report-Msgid-Bugs-To: https://easydigitaldownloads.com/support\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n" -"Last-Translator: Easy Digital Downloads\n" -"Language-Team: Easy Digital Downloads\n" -"Language: en_US\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Poedit-Country: United States\n" -"X-Poedit-SourceCharset: UTF-8\n" -"X-Poedit-KeywordsList: " -"__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_" -"attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n" -"X-Poedit-Basepath: ../\n" -"X-Poedit-SearchPath-0: .\n" -"X-Poedit-Bookmarks: \n" -"X-Textdomain-Support: yes\n" -"X-Generator: grunt-wp-i18n1.0.1\n" - -#: 404.php:7 includes/template-tags.php:253 +"POT-Creation-Date: 2021-09-23T12:29:06+00:00\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"X-Generator: WP-CLI 2.5.0\n" +"X-Domain: themedd\n" + +#. Theme Name of the theme +msgid "Themedd" +msgstr "" + +#. Theme URI of the theme +msgid "https://themedd.com" +msgstr "" + +#. Description of the theme +msgid "Themedd is a simple and extensible WordPress theme that provides a solid integration with Easy Digital Downloads and its extensions. It's the perfect theme to sell your digital products." +msgstr "" + +#. Author of the theme +#: includes/customizer.php:702 +msgid "Easy Digital Downloads" +msgstr "" + +#. Author URI of the theme +msgid "https://easydigitaldownloads.com" +msgstr "" + +#: 404.php:7 +#: includes/template-tags.php:253 msgid "Oops! That page can’t be found." msgstr "" @@ -52,6 +64,13 @@ msgstr "" msgid "Log out" msgstr "" +#: comments.php:24 +msgctxt "comments title" +msgid "One comment" +msgid_plural "%1$s comments" +msgstr[0] "" +msgstr[1] "" + #: comments.php:49 msgid "Comments are closed." msgstr "" @@ -69,27 +88,26 @@ msgstr "" msgid "Users who purchased %s, also purchased:" msgstr "" -#: edd_templates/shortcode-content-price.php:10 -#: includes/compatibility/edd/actions.php:26 -msgid "Free" +#: includes/back-compat.php:39 +#: includes/back-compat.php:51 +#: includes/back-compat.php:66 +msgid "Themedd requires at least WordPress version 4.7. You are running version %s. Please upgrade and try again." msgstr "" -#: edd_templates/shortcode-content-price.php:22 -#: includes/compatibility/edd/actions.php:28 -#. translators: Variable price start -msgid "From" +#: includes/class-search.php:128 +msgctxt "placeholder" +msgid "Search products" msgstr "" -#: edd_templates/widget-cart-item.php:6 -#: includes/compatibility/edd/class-points-and-rewards.php:154 -msgid "Remove" +#: includes/class-search.php:132 +msgctxt "label" +msgid "Search products:" msgstr "" -#: includes/back-compat.php:39 includes/back-compat.php:51 -#: includes/back-compat.php:66 -msgid "" -"Themedd requires at least WordPress version 4.7. You are running version " -"%s. Please upgrade and try again." +#: includes/class-search.php:137 +#: searchform.php:16 +msgctxt "submit button" +msgid "Search" msgstr "" #: includes/class-themedd.php:28 @@ -116,12 +134,20 @@ msgstr "" msgid "Add widgets here to appear in footer %d." msgstr "" -#: includes/compatibility/edd/class-cross-sell-upsell.php:93 -#: includes/compatibility/edd/class-cross-sell-upsell.php:107 +#: includes/compatibility/edd/actions.php:26 +msgid "Free" +msgstr "" + +#: includes/compatibility/edd/actions.php:28 +msgid "From" +msgstr "" + +#: includes/compatibility/edd/class-cross-sell-upsell.php:92 +#: includes/compatibility/edd/class-cross-sell-upsell.php:106 msgid "Add to cart" msgstr "" -#: includes/compatibility/edd/class-cross-sell-upsell.php:104 +#: includes/compatibility/edd/class-cross-sell-upsell.php:103 msgid "Added to cart" msgstr "" @@ -145,6 +171,10 @@ msgstr "" msgid "Remove %s Discount" msgstr "" +#: includes/compatibility/edd/class-points-and-rewards.php:154 +msgid "Remove" +msgstr "" + #: includes/compatibility/edd/class-widget-download-author.php:22 msgid "%s Author" msgstr "" @@ -461,9 +491,7 @@ msgid "Restrict Header Search" msgstr "" #: includes/customizer.php:720 -msgid "" -"If enabled, the header search will only search %s. Requires the \"Header " -"Search\" option from Theme Options to be enabled." +msgid "If enabled, the header search will only search %s. Requires the \"Header Search\" option from Theme Options to be enabled." msgstr "" #: includes/customizer.php:731 @@ -471,10 +499,7 @@ msgid "Distraction Free Checkout" msgstr "" #: includes/customizer.php:735 -msgid "" -"Header menus, footer widgets and sidebars will all be removed from " -"checkout, allowing customers to complete their purchase with no " -"distractions." +msgid "Header menus, footer widgets and sidebars will all be removed from checkout, allowing customers to complete their purchase with no distractions." msgstr "" #: includes/customizer.php:749 @@ -494,9 +519,7 @@ msgid "Item Quantity and Cart Total" msgstr "" #: includes/customizer.php:786 -msgid "" -"Display either the item quantity or cart total, both the item quantity and " -"cart total, or nothing at all." +msgid "Display either the item quantity or cart total, both the item quantity and cart total, or nothing at all." msgstr "" #: includes/customizer.php:807 @@ -516,9 +539,7 @@ msgid "Full Width Layout" msgstr "" #: includes/customizer.php:834 -msgid "" -"Display a full width layout. This will be noticeable once colors have been " -"configured." +msgid "Display a full width layout. This will be noticeable once colors have been configured." msgstr "" #: includes/customizer.php:849 @@ -733,13 +754,13 @@ msgstr "" msgid "Mobile Menu" msgstr "" -#: includes/template-tags.php:18 #. translators: %s: post author +#: includes/template-tags.php:18 msgid "by %s" msgstr "" -#: includes/template-tags.php:52 #. translators: %s: post date +#: includes/template-tags.php:52 msgid "Posted on %s" msgstr "" @@ -755,8 +776,8 @@ msgstr "" msgid "Newer Comments" msgstr "" -#: includes/template-tags.php:95 #. translators: used between list items, there is a space after the comma +#: includes/template-tags.php:95 msgid ", " msgstr "" @@ -768,8 +789,8 @@ msgstr "" msgid "Tags: " msgstr "" -#: includes/template-tags.php:146 #. translators: %s: Name of current post +#: includes/template-tags.php:146 msgid "Edit \"%s\"" msgstr "" @@ -794,10 +815,7 @@ msgid "Activate Your %s License Key" msgstr "" #: includes/updater/theme-updater-admin.php:149 -msgid "" -"Your license key grants you access to theme updates and support. If your " -"license key is deactivated or expired, your theme will work properly but " -"you will not receive automatic updates." +msgid "Your license key grants you access to theme updates and support. If your license key is deactivated or expired, your theme will work properly but you will not receive automatic updates." msgstr "" #: includes/updater/theme-updater-admin.php:152 @@ -817,15 +835,18 @@ msgid "Click the new \"Activate License\" button." msgstr "" #: includes/updater/theme-updater-admin.php:157 -msgid "" -"You're done! The status of your license displays below the License Key " -"field." +msgid "You're done! The status of your license displays below the License Key field." msgstr "" #: includes/updater/theme-updater-admin.php:183 msgid "Save License Key Changes" msgstr "" +#: includes/updater/theme-updater.php:29 +msgctxt "part of the WordPress dashboard Themedd menu title" +msgid " License" +msgstr "" + #: includes/updater/theme-updater.php:30 msgid "Enter your theme license key." msgstr "" @@ -846,7 +867,8 @@ msgstr "" msgid "Activate License" msgstr "" -#: includes/updater/theme-updater.php:35 includes/updater/theme-updater.php:48 +#: includes/updater/theme-updater.php:35 +#: includes/updater/theme-updater.php:48 msgid "License status is unknown." msgstr "" @@ -899,16 +921,19 @@ msgid "Site is inactive." msgstr "" #: includes/updater/theme-updater.php:49 -msgid "" -"Updating this theme will lose any customizations you have made. 'Cancel' to " -"stop, 'OK' to update." +msgid "Updating this theme will lose any customizations you have made. 'Cancel' to stop, 'OK' to update." msgstr "" #: includes/updater/theme-updater.php:50 -msgid "" -"%1$s %2$s is available. Check out what's new or update now." +msgid "%1$s %2$s is available. Check out what's new or update now." +msgstr "" + +#. Template Name of the theme +msgid "Full Width" +msgstr "" + +#. Template Name of the theme +msgid "Slim" msgstr "" #: search.php:9 @@ -923,10 +948,25 @@ msgstr "" msgid "You searched for \"%s\"" msgstr "" +#: searchform.php:6 +msgctxt "placeholder" +msgid "Search" +msgstr "" + +#: searchform.php:11 +msgctxt "label" +msgid "Search for:" +msgstr "" + #: sidebar-single-vendor.php:61 msgid "Visit website" msgstr "" +#: single.php:31 +msgctxt "Parent post link" +msgid "Published in%title" +msgstr "" + #: single.php:36 msgid "Next" msgstr "" @@ -952,91 +992,29 @@ msgid "Ready to publish your first post? Get started here." msgstr "" #: template-parts/content-none.php:14 -msgid "" -"Sorry, but nothing matched your search terms. Please try again with some " -"different keywords." +msgid "Sorry, but nothing matched your search terms. Please try again with some different keywords." msgstr "" #: template-parts/content-none.php:19 -msgid "" -"It seems we can’t find what you’re looking for. Perhaps " -"searching can help." +msgid "It seems we can’t find what you’re looking for. Perhaps searching can help." msgstr "" -#: template-parts/content-page.php:19 template-parts/content-single.php:23 +#: template-parts/content-page.php:19 +#: template-parts/content-single.php:23 #: template-parts/content.php:33 msgid "Pages:" msgstr "" -#: template-parts/content-search.php:28 template-parts/content-search.php:43 #. translators: %s: Name of current post +#: template-parts/content-search.php:28 +#: template-parts/content-search.php:43 msgid "Edit %s" msgstr "" #: template-parts/content.php:28 -#. translators: %s: Name of current post msgid "Continue reading %s" msgstr "" #: template-parts/content.php:37 msgid "Page" msgstr "" - -#. Description of the plugin/theme -msgid "" -"Themedd is a simple and extensible WordPress theme that provides a solid " -"integration with Easy Digital Downloads and its extensions. It's the " -"perfect theme to sell your digital products." -msgstr "" - -#. Template Name of the plugin/theme -msgid "Full Width" -msgstr "" - -#. Template Name of the plugin/theme -msgid "Slim" -msgstr "" - -#: comments.php:24 -msgctxt "comments title" -msgid "One comment" -msgid_plural "%1$s comments" -msgstr[0] "" -msgstr[1] "" - -#: includes/class-search.php:128 -msgctxt "placeholder" -msgid "Search products" -msgstr "" - -#: searchform.php:6 -msgctxt "placeholder" -msgid "Search" -msgstr "" - -#: includes/class-search.php:132 -msgctxt "label" -msgid "Search products:" -msgstr "" - -#: searchform.php:11 -msgctxt "label" -msgid "Search for:" -msgstr "" - -#: includes/class-search.php:137 searchform.php:16 -msgctxt "submit button" -msgid "Search" -msgstr "" - -#: includes/updater/theme-updater.php:29 -msgctxt "part of the WordPress dashboard Themedd menu title" -msgid " License" -msgstr "" - -#: single.php:31 -msgctxt "Parent post link" -msgid "" -"Published in%title" -msgstr "" \ No newline at end of file diff --git a/package.json b/package.json index 2ed4d8c..7147fe9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "themedd", "title": "Themedd", - "version": "1.0.7", + "version": "1.0.8", "description": "Themedd is a simple and extensible WordPress theme that provides a solid integration with Easy Digital Downloads and its extensions. It's the perfect theme to sell your digital products.", "author": "Easy Digital Downloads", "theme_uri": "https://themedd.com", diff --git a/style.css b/style.css index 50a1702..6a6427d 100644 --- a/style.css +++ b/style.css @@ -4,7 +4,7 @@ Theme URI: https://themedd.com Author: Easy Digital Downloads Author URI: https://easydigitaldownloads.com Description: Themedd is a simple and extensible WordPress theme that provides a solid integration with Easy Digital Downloads and its extensions. It's the perfect theme to sell your digital products. -Version: 1.0.7 +Version: 1.0.8 License: GNU General Public License License URI: license.txt Text Domain: themedd diff --git a/style.min.css b/style.min.css index 477d135..78656cf 100644 --- a/style.min.css +++ b/style.min.css @@ -4,7 +4,7 @@ Theme URI: https://themedd.com Author: Easy Digital Downloads Author URI: https://easydigitaldownloads.com Description: Themedd is a simple and extensible WordPress theme that provides a solid integration with Easy Digital Downloads and its extensions. It's the perfect theme to sell your digital products. -Version: 1.0.7 +Version: 1.0.8 License: GNU General Public License License URI: license.txt Text Domain: themedd From bc26a42a0a18902800b2341c0fb9e9a133631c4f Mon Sep 17 00:00:00 2001 From: Ashley Gibson Date: Thu, 23 Sep 2021 13:31:32 +0100 Subject: [PATCH 7/8] Use function_exists() check instead of version compare. --- includes/compatibility/edd/filters.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/compatibility/edd/filters.php b/includes/compatibility/edd/filters.php index 3955816..15a37f6 100644 --- a/includes/compatibility/edd/filters.php +++ b/includes/compatibility/edd/filters.php @@ -45,7 +45,7 @@ function themedd_edd_settings_styles( $settings ) { * * @return void */ -if ( defined( 'EDD_VERSION' ) && version_compare( '2.10.999', EDD_VERSION, '>' ) ) { +if ( ! function_exists( 'edd_get_orders' ) ) { add_filter( 'edd_settings_styles', 'themedd_edd_settings_styles' ); } From 00e3bc88c78d9f0b0c4b01b9a99c28d22148f036 Mon Sep 17 00:00:00 2001 From: Ashley Gibson Date: Thu, 23 Sep 2021 13:32:16 +0100 Subject: [PATCH 8/8] Fix spacing. --- includes/footer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/footer.php b/includes/footer.php index fed4b2a..b910d4f 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -108,7 +108,7 @@ function themedd_footer_widget_column_classes( $widget_columns ) { $classes = 'col-xs-12 col-sm-6'; break; default: - $classes = ''; + $classes = ''; }