Skip to content

Commit

Permalink
2.9.4 release
Browse files Browse the repository at this point in the history
  • Loading branch information
sybrew committed Aug 30, 2017
1 parent c263aea commit 8b01c99
Show file tree
Hide file tree
Showing 4 changed files with 288 additions and 291 deletions.
4 changes: 2 additions & 2 deletions autodescription.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: The SEO Framework
* Plugin URI: https://theseoframework.com/
* Description: An automated, advanced, accessible, unbranded and extremely fast SEO solution for any WordPress website.
* Version: 2.9.4-dev-2017.08.28.4
* Version: 2.9.4
* Author: Sybre Waaijer
* Author URI: https://theseoframework.com/
* License: GPLv3
Expand Down Expand Up @@ -51,7 +51,7 @@
*
* @since 1.0.0
*/
define( 'THE_SEO_FRAMEWORK_VERSION', '2.9.3' );
define( 'THE_SEO_FRAMEWORK_VERSION', '2.9.4' );

/**
* The plugin Database version.
Expand Down
10 changes: 8 additions & 2 deletions inc/classes/generate-url.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -778,15 +778,21 @@ public function get_shortlink( $post_id = 0 ) {

$additions = '';
if ( ! empty( $query ) ) {

if ( false !== strpos( $query, '&' ) ) {
//= This can fail on malformed URLs
$query = explode( '&', $query );
} else {
$query = array( $query );
}

foreach ( $query as $arg ) {
if ( false === strpos( $path, $arg ) )
/**
* @since 2.9.4 Added $args availability check.
* This is a band-aid, not a fix.
* @TODO inspect prior explode().
* @link https://wordpress.org/support/topic/error-when-previewing-a-draft-of-knowledge-base-article/#post-9452791
*/
if ( $arg && false === strpos( $path, $arg ) )
$additions .= '&' . $arg;
}
}
Expand Down
Loading

1 comment on commit 8b01c99

@earcos
Copy link

@earcos earcos commented on 8b01c99 Aug 31, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wanted to make sure you know that folder and plugin file names are "autodescription" 😄

Not sure if this is intentional. But it is also happening on production.

Please sign in to comment.