Skip to content

Commit

Permalink
Fixes #219, fixes #221, fixes #222. 3.0.1 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
sybrew committed Nov 20, 2017
1 parent a9337e4 commit 435ccef
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 16 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: 3.0.0
* Version: 3.0.1
* 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', '3.0.0' );
define( 'THE_SEO_FRAMEWORK_VERSION', '3.0.1' );

/**
* The plugin Database version.
Expand Down
2 changes: 1 addition & 1 deletion inc/classes/generate-url.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ protected function remove_pagination_from_url( $url, $page = 0, $paged = 0 ) {
}
}
} else {
$url = \remove_query_args( array( 'page', 'paged', 'cpage' ), $url );
$url = \remove_query_arg( array( 'page', 'paged', 'cpage' ), $url );
}

return $url;
Expand Down
2 changes: 1 addition & 1 deletion inc/classes/query.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ public function is_blog_page( $id = 0 ) {
$pfp = (int) \get_option( 'page_for_posts' );

if ( $this->has_page_on_front() ) {
if ( $id === $pfp && false === \is_archive() ) {
if ( $id && $id === $pfp && false === \is_archive() ) {
$is_blog_page = true;
} elseif ( \is_home() ) {
$is_blog_page = true;
Expand Down
20 changes: 14 additions & 6 deletions lib/js/tsf.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,14 @@ window.tsf = {
/**
* Escapes input string.
*
* @since 3.0.1
*
* @source <https://stackoverflow.com/a/4835406>
* @function
* @param {string} str
* @return {string}
*/
escapeSring: function( str ) {
escapeString: function( str ) {

if ( ! str.length )
return '';
Expand Down Expand Up @@ -190,7 +192,7 @@ window.tsf = {

if ( str.length ) {
e = document.createElement( 'span' );
e.innerHTML = tsf.escapeSring( str );
e.innerHTML = tsf.escapeString( str );
length = e.childNodes[0].nodeValue.length;
}
return +length;
Expand Down Expand Up @@ -220,7 +222,7 @@ window.tsf = {
if ( ! bar || ! shadow )
return;

shadow.innerHTML = tsf.escapeSring( text );
shadow.innerHTML = tsf.escapeString( text );

let testWidth = shadow.offsetWidth,
newClass = '',
Expand Down Expand Up @@ -357,7 +359,7 @@ window.tsf = {
}

if ( newValue.length ) {
newValue = tsf.escapeSring( newValue );
newValue = tsf.escapeString( newValue );
switch ( hoverAdditionsPlacement ) {
case 'before' :
newValue = newValue + ' ' + separator + ' ';
Expand Down Expand Up @@ -387,7 +389,7 @@ window.tsf = {
}

if ( newValue.length ) {
newValue = tsf.escapeSring( newValue );
newValue = tsf.escapeString( newValue );
switch ( hoverPrefixPlacement ) {
case 'before' :
newValue = newValue + ' ';
Expand Down Expand Up @@ -583,7 +585,13 @@ window.tsf = {

//= Microsoft be like: "Let's spare 0.000000000073% of our money."
if ( ie11 ) ie11killswitch = true;
$input.prop( 'placeholder', _placeholder );

//= Converts special characters without running scripts.
let phText = document.createElement( 'span' );
phText.innerHTML = _placeholder;

$input.prop( 'placeholder', phText.textContent );

//= Promise.
ie11 && setTimeout( function() {
ie11killswitch = false;
Expand Down
2 changes: 1 addition & 1 deletion lib/js/tsf.min.js

Large diffs are not rendered by default.

21 changes: 16 additions & 5 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: SEO, XML Sitemap, Google, Open Graph, Schema.org, Twitter
Requires at least: 4.4.0
Tested up to: 4.9
Requires PHP: 5.3.0
Stable tag: 3.0.0
Stable tag: 3.0.1
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -224,6 +224,17 @@ Transporting Terms and Taxonomies SEO data isn't supported.

== Changelog ==

= 3.0.1 - Renown =

**Release date:**

* November 20th, 2017

* **Fixed:**
* A fatal error no longer occurs on pages when using plain permalinks.
* On-site search canonical URLs are now correct when no blog page is assigned.
* Title placeholders can now render HTML characters correctly.

= 3.0.0 - Eminence =

**Release date:**
Expand All @@ -244,7 +255,7 @@ Transporting Terms and Taxonomies SEO data isn't supported.
* For improved UX we've added pixel counters, better tooltips, and admin color scheme adherence.
* Oh, you can also select the primary term for each hierarchical post type.

**New Primary terms:**
**New primary terms:**

* *In WordPress, terms are generally known as categories.*
* The primary term influences how canonical URLs are generated for the post, and how breadcrumbs are constructed.
Expand All @@ -253,7 +264,7 @@ Transporting Terms and Taxonomies SEO data isn't supported.
* If no primary term is selected, an assigned term that has been implemented earliest on the site will be used.
* Note that this feature requires JavaScript to be enabled. Authors without JavaScript can't change the primary term.

**Revised Canonical URLs:**
**Revised canonical URLs:**

* The canonical URL generation has been completely rewritten. Most users won't notice anything from this.
* It now uses WordPress' 4.6+ canonical URL generation (backward-compatibility is provided), instead of an in-house "guessing" version.
Expand All @@ -262,7 +273,7 @@ Transporting Terms and Taxonomies SEO data isn't supported.
* Note that if a query isn't registered correctly, the URL will also stay empty. Or, in unlikely cases, it will link to the home page.
* Contact the respective plugin author on such issues. I'd love to help them correct this.

**Finally, Author SEO:**
**Finally, author SEO:**

* On profile pages of users with Author capabilities (or higher), two new settings have been added under heading **"Authorial Info"**.
* Here, authors can set their Facebook profile page and Twitter profile page.
Expand All @@ -273,7 +284,7 @@ Transporting Terms and Taxonomies SEO data isn't supported.

**A better admin experience:**

* This plugin now uses your chosen admin color scheme, subtly. You can see it being used as highlights and tooltips.
* This plugin now uses your chosen admin color scheme, subtly. You can see it being used as highlights and for tooltips.
* About tooltips, they've been completely rewritten:
* They now look for boundaries, so they won't fall off the page or bound box. They can also face down when needed.
* They try to center themselves based on your initial pointer position.
Expand Down

0 comments on commit 435ccef

Please sign in to comment.