diff --git a/admin/aioseop_module_class.php b/admin/aioseop_module_class.php
index 7b8d59109..305894641 100644
--- a/admin/aioseop_module_class.php
+++ b/admin/aioseop_module_class.php
@@ -2220,8 +2220,10 @@ function get_option_html( $args ) {
$buf .= "";
break;
case 'image':
- $buf .= ''.
- "" .
+ $buf .= '' .
+ "\n";
break;
case 'html':
@@ -2849,6 +2851,12 @@ function get_current_options( $opts = array(), $location = null, $defaults = nul
$get_opts = get_post_meta( $post->ID, '_' . $prefix . $location, true );
}
}
+
+ if ( is_home() && ! is_front_page() ) {
+ // If we're on the non-front page blog page, WP doesn't really know its post meta data so we need to get that manually for social meta.
+ $get_opts = get_post_meta( get_option( 'page_for_posts' ), '_' . $prefix . $location, true );
+ }
+
$defs = $this->default_options( $location, $defaults );
if ( empty( $get_opts ) ) {
$get_opts = $defs;
diff --git a/admin/meta_import.php b/admin/meta_import.php
index 88435b10f..957f71c1a 100644
--- a/admin/meta_import.php
+++ b/admin/meta_import.php
@@ -69,7 +69,8 @@ function aiosp_seometa_settings_init() {
/**
* Intercept POST data from the form submission.
*
- * Use the intercepted data to convert values in the postmeta table from one platform to another.
+ * Use the intercepted data to convert values in the postmeta table from one platform to another and display feedback to the user about compatible conversion
+ * elements and the conversion process.
*/
function aiosp_seometa_action() {
@@ -130,11 +131,6 @@ function aiosp_seometa_action() {
}
-/**
- * This function displays feedback to the user about compatible conversion
- * elements and the conversion process via the admin_alert hook.
- */
-
/**
* The admin page output
*/
diff --git a/aioseop_class.php b/aioseop_class.php
index 38e533efb..a3619b4b4 100644
--- a/aioseop_class.php
+++ b/aioseop_class.php
@@ -91,7 +91,6 @@ function __construct() {
'use_tags_as_keywords' => __( 'Check this if you want your tags for a given post used as the Meta Keywords for this post (in addition to any keywords you specify on the Edit Post screen).', 'all-in-one-seo-pack' ),
'dynamic_postspage_keywords' => __( 'Check this if you want your keywords on your Posts page (set in WordPress under Settings, Reading, Front Page Displays) and your archive pages to be dynamically generated from the keywords of the posts showing on that page. If unchecked, it will use the keywords set in the edit page screen for the posts page.', 'all-in-one-seo-pack' ),
'rewrite_titles' => __( "Note that this is all about the title tag. This is what you see in your browser's window title bar. This is NOT visible on a page, only in the title bar and in the source code. If enabled, all page, post, category, search and archive page titles get rewritten. You can specify the format for most of them. For example: Using the default post title format below, Rewrite Titles will write all post titles as 'Post Title | Blog Name'. If you have manually defined a title using All in One SEO Pack, this will become the title of your post in the format string.", 'all-in-one-seo-pack' ),
- 'cap_titles' => __( 'Check this and Search Page Titles and Tag Page Titles will have the first letter of each word capitalized.', 'all-in-one-seo-pack' ),
'home_page_title_format' =>
__( 'This controls the format of the title tag for your Home Page. The following macros are supported:', 'all-in-one-seo-pack' )
. '
' . __( '%blog_title% - Your blog title', 'all-in-one-seo-pack' ) . '
' .
@@ -111,10 +110,13 @@ function __construct() {
__( "%page_author_nicename% - This page's author' nicename", 'all-in-one-seo-pack' ) . '
' .
__( "%page_author_firstname% - This page's author' first name (capitalized)", 'all-in-one-seo-pack' ) . '
' .
__( "%page_author_lastname% - This page's author' last name (capitalized)", 'all-in-one-seo-pack' ) . '
' .
- __( "%current_date% - The current date (localized)", 'all-in-one-seo-pack' ) . '
',
+ __( "%current_date% - The current date (localized)", 'all-in-one-seo-pack' ) . '
'.
+ __( "%post_date% - The current date (localized)", 'all-in-one-seo-pack' ) . '
' .
+ __( "%post_year% - The current date (localized)", 'all-in-one-seo-pack' ) . '
' .
+ __( "%post_month% - The current date (localized)", 'all-in-one-seo-pack' ) . '
' ,
'post_title_format' =>
__( 'This controls the format of the title tag for Posts. The following macros are supported:', 'all-in-one-seo-pack' )
- . '
' . __( '%blog_title% - Your blog title', 'all-in-one-seo-pack' ) . '
' .
+ . '
' . __( '%blog_title% - Your blog title', 'all-in-one-seo-pack' ) . '
' .
__( '%blog_description% - Your blog description', 'all-in-one-seo-pack' ) . '
' .
__( '%post_title% - The original title of the post', 'all-in-one-seo-pack' ) . '
' .
__( '%category_title% - The (main) category of the post', 'all-in-one-seo-pack' ) . '
' .
@@ -123,7 +125,10 @@ function __construct() {
__( "%post_author_nicename% - This post's author' nicename", 'all-in-one-seo-pack' ) . '
' .
__( "%post_author_firstname% - This post's author' first name (capitalized)", 'all-in-one-seo-pack' ) . '
' .
__( "%post_author_lastname% - This post's author' last name (capitalized)", 'all-in-one-seo-pack' ) . '
' .
- __( "%current_date% - The current date (localized)", 'all-in-one-seo-pack' ) . '
',
+ __( "%current_date% - The current date (localized)", 'all-in-one-seo-pack' ) . '
' .
+ __( "%post_date% - The current date (localized)", 'all-in-one-seo-pack' ) . '
' .
+ __( "%post_year% - The current date (localized)", 'all-in-one-seo-pack' ) . '
' .
+ __( "%post_month% - The current date (localized)", 'all-in-one-seo-pack' ) . '
' ,
'category_title_format' =>
__( 'This controls the format of the title tag for Category Archives. The following macros are supported:', 'all-in-one-seo-pack' ) .
'
' . __( '%blog_title% - Your blog title', 'all-in-one-seo-pack' ) . '
' .
@@ -164,7 +169,10 @@ function __construct() {
__( '%description% - This outputs the description you write for each page/post or the autogenerated description, if you have that option enabled. Auto-generated descriptions are generated from the Post Excerpt, or the first 160 characters of the post content if there is no Post Excerpt.', 'all-in-one-seo-pack' ) . '
' .
__( '%post_title% - The original title of the post', 'all-in-one-seo-pack' ) . '
' .
__( '%wp_title% - The original WordPress title, e.g. post_title for posts', 'all-in-one-seo-pack' ) . '
' .
- __( '%current_date% - The current date (localized)', 'all-in-one-seo-pack' ) . '
',
+ __( '%current_date% - The current date (localized)', 'all-in-one-seo-pack' ) . '
' .
+ __( "%post_date% - The current date (localized)", 'all-in-one-seo-pack' ) . '
' .
+ __( "%post_year% - The current date (localized)", 'all-in-one-seo-pack' ) . '
' .
+ __( "%post_month% - The current date (localized)", 'all-in-one-seo-pack' ) . '
' ,
'404_title_format' => __( 'This controls the format of the title tag for the 404 page. The following macros are supported:', 'all-in-one-seo-pack' ) .
'
' . __( '%blog_title% - Your blog title', 'all-in-one-seo-pack' ) . '
' .
__( '%blog_description% - Your blog description', 'all-in-one-seo-pack' ) . '
' .
__( "%post_author_firstname% - This post's author' first name (capitalized)", 'all-in-one-seo-pack' ) . '
' .
__( "%post_author_lastname% - This post's author' last name (capitalized)", 'all-in-one-seo-pack' ) . '
' .
- __( "%current_date% - The current date (localized)", 'all-in-one-seo-pack' ) . '
' .
+ __( "%current_date% - The current date (localized)", 'all-in-one-seo-pack' ) . '
' .
+ __( "%post_date% - The current date (localized)", 'all-in-one-seo-pack' ) . '
' .
+ __( "%post_year% - The current date (localized)", 'all-in-one-seo-pack' ) . '
' .
+ __( "%post_month% - The current date (localized)", 'all-in-one-seo-pack' ) . '
' .
+ '' .
'';
$this->help_anchors[ $field ] = '#custom-titles';
$this->layout['cpt']['options'][] = $field;
@@ -4036,6 +4012,15 @@ function apply_description_format( $description, $post = null ) {
if ( strpos( $description, '%current_date%' ) !== false ) {
$description = str_replace( '%current_date%', date_i18n( get_option( 'date_format' ) ), $description );
}
+ if ( strpos( $description, "%post_date%" ) !== false ){
+ $description = str_replace( '%post_date%', get_the_date(), $description );
+ }
+ if ( strpos( $description, "%post_year%" ) !== false ){
+ $description = str_replace( '%post_year%', get_the_date( 'Y' ), $description );
+ }
+ if ( strpos( $description, "%post_month%" ) !== false ){
+ $description = str_replace( '%post_month%', get_the_date( 'F' ), $description );
+ }
/*this was intended to make attachment descriptions unique if pulling from the parent... let's remove it and see if there are any problems
*on the roadmap is to have a better hierarchy for attachment description pulling
diff --git a/all_in_one_seo_pack.php b/all_in_one_seo_pack.php
index 6c746c85c..67a8dc6a7 100644
--- a/all_in_one_seo_pack.php
+++ b/all_in_one_seo_pack.php
@@ -3,7 +3,7 @@
Plugin Name: All In One SEO Pack
Plugin URI: https://semperplugins.com/all-in-one-seo-pack-pro-version/
Description: Out-of-the-box SEO for your WordPress blog. Features like XML Sitemaps, SEO for custom post types, SEO for blogs or business sites, SEO for ecommerce sites, and much more. More than 30 million downloads since 2007.
-Version: 2.3.14.2
+Version: 2.3.15
Author: Michael Torbert
Author URI: https://semperplugins.com/all-in-one-seo-pack-pro-version/
Text Domain: all-in-one-seo-pack
@@ -31,14 +31,14 @@
* The original WordPress SEO plugin.
*
* @package All-in-One-SEO-Pack
- * @version 2.3.14.2
+ * @version 2.3.15
*/
if ( ! defined( 'AIOSEOPPRO' ) ) {
define( 'AIOSEOPPRO', false );
}
if ( ! defined( 'AIOSEOP_VERSION' ) ) {
- define( 'AIOSEOP_VERSION', '2.3.14.2' );
+ define( 'AIOSEOP_VERSION', '2.3.15' );
}
global $aioseop_plugin_name;
$aioseop_plugin_name = 'All in One SEO Pack';
diff --git a/inc/sitemap-xsl.php b/inc/sitemap-xsl.php
index 3ca5b8acc..b797ff14f 100644
--- a/inc/sitemap-xsl.php
+++ b/inc/sitemap-xsl.php
@@ -156,15 +156,17 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/aioseop_opengraph.php b/modules/aioseop_opengraph.php
index 8a764d599..f94abe7f1 100644
--- a/modules/aioseop_opengraph.php
+++ b/modules/aioseop_opengraph.php
@@ -13,7 +13,7 @@ class All_in_One_SEO_Pack_Opengraph extends All_in_One_SEO_Pack_Module {
/**
* Module constructor.
*
- * @since 2.4.14 Added display filter.
+ * @since 2.4.14 Added display filter.
*/
function __construct() {
add_action( 'admin_enqueue_scripts', array( $this, 'og_admin_enqueue_scripts' ) );
@@ -81,12 +81,6 @@ function __construct() {
);
parent::__construct();
- $categories = Array(
- 'blog' => __( 'Blog', 'all-in-one-seo-pack' ),
- 'website' => __( 'Website', 'all-in-one-seo-pack' ),
- 'article' => __( 'Article', 'all-in-one-seo-pack' ),
- );
-
$this->help_text = Array(
"setmeta" => __( "Checking this box will use the Home Title and Home Description set in All in One SEO Pack, General Settings as the Open Graph title and description for your home page.", 'all-in-one-seo-pack' ),
"key" => __( "Enter your Facebook Admin ID here. You can enter multiple IDs separated by a comma. You can look up your Facebook ID using this tool http://findmyfbid.com/", 'all-in-one-seo-pack' ),
@@ -97,7 +91,6 @@ function __construct() {
"hometitle" => __( "The Home Title is the Open Graph title for your home page.", 'all-in-one-seo-pack' ),
"description" => __( "The Home Description is the Open Graph description for your home page.", 'all-in-one-seo-pack' ),
"homeimage" => __( "The Home Image is the Open Graph image for your home page.", 'all-in-one-seo-pack' ),
- "hometag" => __( "The Home Tag allows you to add a list of keywords that best describe your home page content.", 'all-in-one-seo-pack' ),
"generate_descriptions" => __( "This option will auto generate your Open Graph descriptions from your post content instead of your post excerpt. WooCommerce users should read the documentation regarding this setting.", 'all-in-one-seo-pack' ),
"defimg" => __( "This option lets you choose which image will be displayed by default for the Open Graph image. You may override this on individual posts.", 'all-in-one-seo-pack' ),
"fallback" => __( "This option lets you fall back to the default image if no image could be found above.", 'all-in-one-seo-pack' ),
@@ -105,7 +98,6 @@ function __construct() {
"dimgwidth" => __( "This option lets you set a default width for your images, where unspecified.", 'all-in-one-seo-pack' ),
"dimgheight" => __( "This option lets you set a default height for your images, where unspecified.", 'all-in-one-seo-pack' ),
"meta_key" => __( "Enter the name of a custom field (or multiple field names separated by commas) to use that field to specify the Open Graph image on Pages or Posts.", 'all-in-one-seo-pack' ),
- "categories" => __( "Set the Open Graph type for your website as either a blog or a website.", 'all-in-one-seo-pack' ),
"image" => __( "This option lets you select the Open Graph image that will be used for this Page or Post, overriding the default settings.", 'all-in-one-seo-pack' ),
"customimg" => __( "This option lets you upload an image to use as the Open Graph image for this Page or Post.", 'all-in-one-seo-pack' ),
"imagewidth" => __( "Enter the width for your Open Graph image in pixels (i.e. 600).", 'all-in-one-seo-pack' ),
@@ -146,7 +138,6 @@ function __construct() {
'hometitle' => '#home-title-and-description',
'description' => '#home-title-and-description',
'homeimage' => '#home-image',
- 'hometag' => '#home-article-tags',
'defimg' => '#select-og-image-source',
'fallback' => '#use-default-if-no-image-found',
'dimg' => '#default-og-image',
@@ -158,7 +149,6 @@ function __construct() {
'social_name' => '#social-profile-links',
'key' => '#facebook-admin-id',
'appid' => '#facebook-app-id',
- 'categories' => '#facebook-object-type',
'gen_tags' => '#automatically-generate-article-tags',
'gen_keywords' => '#use-keywords-in-article-tags',
'gen_categories' => '#use-categories-in-article-tags',
@@ -167,7 +157,6 @@ function __construct() {
'facebook_author' => '#show-facebook-author-on-articles',
'types' => '#enable-facebook-meta-for',
'defcard' => '#default-twitter-card',
- 'setcard' => '#default-twitter-card',
'twitter_site' => '#twitter-site',
'twitter_creator' => '#show-twitter-author',
'twitter_domain' => '#twitter-domain',
@@ -211,15 +200,9 @@ function __construct() {
/**
* Hook called after wordpress has been loaded.
- * @since 2.4.14
+ * @since 2.4.14
*/
public function init() {
- // Prepare re-usable variables
- $categories = array(
- 'blog' => __( 'Blog', 'all-in-one-seo-pack' ),
- 'website' => __( 'Website', 'all-in-one-seo-pack' ),
- 'article' => __( 'Article', 'all-in-one-seo-pack' ),
- );
$count_desc = __( ' characters. Open Graph allows up to a maximum of %s chars for the %s.', 'all-in-one-seo-pack' );
// Create default options
$this->default_options = array(
@@ -281,14 +264,6 @@ public function init() {
'name' => __( 'Home Image', 'all-in-one-seo-pack' ),
'type' => 'image',
),
- 'hometag' => array(
- 'name' => __( 'Home Article Tags', 'all-in-one-seo-pack' ),
- 'type' => 'text',
- 'default' => '',
- 'condshow' => array(
- 'aiosp_opengraph_categories' => 'article'
- ),
- ),
'generate_descriptions' => array(
'name' => __( 'Use Content For Autogenerated OG Descriptions', 'all-in-one-seo-pack' ),
'default' => 0,
@@ -330,12 +305,6 @@ public function init() {
'type' => 'text',
'default' => '',
),
- 'categories' => array(
- 'name' => __( 'Facebook Object Type', 'all-in-one-seo-pack' ),
- 'type' => 'radio',
- 'default' => 'blog',
- 'initial_options' => $categories,
- ),
'image' => array(
'name' => __( 'Image', 'all-in-one-seo-pack' ),
'type' => 'radio',
@@ -541,7 +510,6 @@ public function init() {
'hometitle',
'description',
'homeimage',
- 'hometag',
'generate_descriptions',
'defimg',
'fallback',
@@ -549,7 +517,6 @@ public function init() {
'dimgwidth',
'dimgheight',
'meta_key',
- 'categories',
'defcard',
'profile_links',
'person_or_org',
@@ -595,7 +562,7 @@ public function init() {
'home' => Array(
'name' => __( 'Home Page Settings', 'all-in-one-seo-pack' ),
'help_link' => 'https://semperplugins.com/documentation/social-meta-module/#use-aioseo-title-and-description',
- 'options' => Array( 'setmeta', 'sitename', 'hometitle', 'description', 'homeimage', 'hometag' ),
+ 'options' => Array( 'setmeta', 'sitename', 'hometitle', 'description', 'homeimage' ),
),
'image' => Array(
'name' => __( 'Image Settings', 'all-in-one-seo-pack' ),
@@ -618,7 +585,6 @@ public function init() {
'gen_keywords',
'gen_categories',
'gen_post_tags',
- 'categories',
'facebook_publisher',
'facebook_author',
),
@@ -706,20 +672,6 @@ function force_fb_refresh_update( $post_ID, $post_after ) {
function settings_page_init() {
add_filter( 'aiosp_output_option', Array( $this, 'display_custom_options' ), 10, 2 );
- $cat = $this->options["{$this->prefix}categories"];
- if ( ! empty( $cat ) ) {
- if ( $cat == 'blog' ) {
- $show_on_front = get_option( 'show_on_front' );
- if ( ( $show_on_front == 'page' ) && ( get_option( 'page_on_front' ) ) ) {
- $this->output_error( '
' . __( "Static front page detected, suggested Facebook Object Type is 'website'.", 'all-in-one-seo-pack' ) . '