Skip to content

Commit

Permalink
Merge pull request #472 from WPChill/3.1.20
Browse files Browse the repository at this point in the history
3.1.20 fix for fatal errors
  • Loading branch information
TeoAlex authored Sep 2, 2024
2 parents 5620c71 + 2dd3f14 commit 3cc5685
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 9 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
= 3.1.20 - 02.09.2024 -
- Fixed: Fixed fatal errors occurring after applying WPCS.

= 3.1.19 - 02.09.2024 -
- Changed: Removed unnecessary files.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static function instance() {
}

private function include_widgets_files() {
require_once WPMTST_INC . 'elementor/class-strong-testimonials-elementor-widget';
require_once WPMTST_INC . 'elementor/class-strong-testimonials-elementor-widget.php';
}

/**
Expand Down
4 changes: 2 additions & 2 deletions includes/functions-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ function wpmtst_the_title( $tag = '', $wrapper_class = '' ) {

if ( 'none' !== WPMST()->atts( 'title_link' ) && '0' !== WPMST()->atts( 'title_link' ) ) {

if ( ( ! isset( $options['disable_rewrite'] ) || '1' !== $options['disable_rewrite'] ) && ( 'wpmtst_testimonial' === WPMST()->atts( 'title_link' ) || '1' === WPMST()->atts( 'title_link' ) ) ) {
if ( ( ! isset( $options['disable_rewrite'] ) || false === $options['disable_rewrite'] ) && ( 'wpmtst_testimonial' === WPMST()->atts( 'title_link' ) || '1' === WPMST()->atts( 'title_link' ) ) ) {
$before .= '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">';
$after = '</a>' . $after;
} else {
$id = get_the_ID();
$url_field = WPMST()->atts( 'title_link' );
$external_url = get_post_meta( $id, $url_field, true );

if ( '' !== $external_url ) {
if ( '' !== $external_url && ! is_array( $external_url ) ) {
$before .= '<a href="' . esc_url( $external_url ) . '" rel="bookmark" target="_blank">';
$after = '</a>' . $after;
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "strong-testimonials",
"author": "WPChill",
"version": "3.1.19",
"version": "3.1.20",
"license": "GPL v3",
"scripts": {
"build": "NODE_ENV=production wp-scripts build --config webpack.config.js",
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: testimonials, testimonial slider, testimonial form, star ratings
Requires at least: 5.2
Requires PHP: 5.6
Tested up to: 6.6
Stable tag: 3.1.19
Stable tag: 3.1.20
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -199,6 +199,9 @@ No. If you already have testimonials in another plugin or theme, you will have t
8. View editor

== Changelog ==
= 3.1.20 - 02.09.2024 -
- Fixed: Fixed fatal errors occurring after applying WPCS.

= 3.1.19 - 02.09.2024 -
- Changed: Removed unnecessary files.

Expand Down
4 changes: 2 additions & 2 deletions strong-testimonials.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Collect and display your testimonials or reviews.
* Author: WPChill
* Author URI: https://wpchill.com/
* Version: 3.1.19
* Version: 3.1.20
* Text Domain: strong-testimonials
* Domain Path: /languages
* Requires: 4.6 or higher
Expand Down Expand Up @@ -45,7 +45,7 @@
exit;
}

define( 'WPMTST_VERSION', '3.1.19' );
define( 'WPMTST_VERSION', '3.1.20' );

define( 'WPMTST_PLUGIN', plugin_basename( __FILE__ ) ); // strong-testimonials/strong-testimonials.php
define( 'WPMTST', dirname( WPMTST_PLUGIN ) ); // strong-testimonials
Expand Down

0 comments on commit 3cc5685

Please sign in to comment.