Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cristirusu committed Apr 21, 2015
1 parent 405f02e commit b74c170
Show file tree
Hide file tree
Showing 37 changed files with 48 additions and 73 deletions.
4 changes: 2 additions & 2 deletions admin/class-admin-init.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct() {

$this->pagenow = $GLOBALS['pagenow'];

$this->redirect_to_about_page();
add_action( 'admin_init', array( $this, 'redirect_to_about_page' ), 15 );
$this->load_meta_boxes();
$this->load_taxonomy_class();
$this->load_admin_page_class();
Expand All @@ -45,7 +45,7 @@ public function __construct() {
/**
* Redirect first time or just upgraded users to the about screen.
*/
private function redirect_to_about_page() {
public function redirect_to_about_page() {
if ( ! current_user_can( 'manage_options' ) ) {
return;
}
Expand Down
8 changes: 5 additions & 3 deletions frontend/class-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -1910,10 +1910,12 @@ protected function output( $context ) {
*/
$this->data = apply_filters( 'wpseo_json_ld_output', $this->data, $context );

if ( ! is_array( $this->data ) || empty( $this->data ) ) {
return;
if ( is_array( $this->data ) && ! empty( $this->data ) ) {
echo "<script type='application/ld+json'>", json_encode( $this->data ), '</script>', "\n";
}
echo "<script type='application/ld+json'>", json_encode( $this->data ), '</script>', "\n";

// Empty the $data array so we don't output it twice.
$this->data = array();
}

/**
Expand Down
24 changes: 20 additions & 4 deletions frontend/class-opengraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -466,15 +466,26 @@ public function type( $echo = true ) {

/**
* Create new WPSEO_OpenGraph_Image class and get the images to set the og:image
*
* @param mixed $image
*/
public function image() {
$opengraph_images = new WPSEO_OpenGraph_Image( $this->options );
public function image( $image = false ) {
$opengraph_images = new WPSEO_OpenGraph_Image( $this->options, $image );

foreach ( $opengraph_images->get_images() as $img ) {
$this->og_tag( 'og:image', esc_url( $img ) );
}
}

/**
* Fallback method for plugins using image_output
*
* @param string $image
*/
public function image_output( $image ) {
$this->image( $image );
}

/**
* Output the OpenGraph description, specific OG description first, if not, grab the meta description.
*
Expand Down Expand Up @@ -660,11 +671,16 @@ class WPSEO_OpenGraph_Image {
/**
* Constructor
*
* @param array $options
* @param array $options
* @param bool|mixed $image
*/
public function __construct( $options ) {
public function __construct( $options, $image = false ) {
$this->options = $options;
$this->set_images();

if ( ! empty( $image ) ) {
$this->add_image( $image );
}
}

/**
Expand Down
11 changes: 10 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ License URI: http://www.gnu.org/licenses/gpl.html
Tags: seo, SEO, Yoast SEO, google, meta, meta description, search engine optimization, xml sitemap, xml sitemaps, google sitemap, sitemap, sitemaps, robots meta, rss, rss footer, yahoo, bing, news sitemaps, XML News Sitemaps, WordPress SEO, WordPress SEO by Yoast, yoast, multisite, canonical, nofollow, noindex, keywords, meta keywords, description, webmaster tools, google webmaster tools, seo pack
Requires at least: 3.9
Tested up to: 4.2
Stable tag: 2.1
Stable tag: 2.1.1

Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using Yoast's WordPress SEO plugin.

Expand Down Expand Up @@ -120,6 +120,15 @@ You'll find the [FAQ on Yoast.com](https://yoast.com/wordpress/plugins/seo/faq/)

== Changelog ==

= 2.1.1 =

Release Date: April 21st, 2015

* Bugfixes:
* Fixes a bug where the JSON+LD output was outputted twice when company or person info wasn't set.
* Fixes a compatibility issue with Video SEO and WooCommerce SEO add-ons causing WSOD on the frontend for video's and WooCommerce products.
* Fixes a compatibility issue with BBPress caused by hooking `current_user_can` too early.

= 2.1 =

Release Date: April 20th, 2015
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

require_once __DIR__ . '/composer' . '/autoload_real.php';

return ComposerAutoloaderInit2e4780b73f9b3c06fa5f7f8f10bb4d3e::getLoader();
return ComposerAutoloaderInit100d0d22a84dba6758b63403c72ccead::getLoader();
2 changes: 1 addition & 1 deletion vendor/autoload_52.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';

return ComposerAutoloaderInit4aa4bf1f8ecc76764e32a62a639d7034::getLoader();
return ComposerAutoloaderInitaba00416c8823961fe1bbc5399d21ab1::getLoader();
8 changes: 4 additions & 4 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInit2e4780b73f9b3c06fa5f7f8f10bb4d3e
class ComposerAutoloaderInit100d0d22a84dba6758b63403c72ccead
{
private static $loader;

Expand All @@ -19,9 +19,9 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInit2e4780b73f9b3c06fa5f7f8f10bb4d3e', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit100d0d22a84dba6758b63403c72ccead', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInit2e4780b73f9b3c06fa5f7f8f10bb4d3e', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit100d0d22a84dba6758b63403c72ccead', 'loadClassLoader'));

$map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) {
Expand All @@ -44,7 +44,7 @@ public static function getLoader()
}
}

function composerRequire2e4780b73f9b3c06fa5f7f8f10bb4d3e($file)
function composerRequire100d0d22a84dba6758b63403c72ccead($file)
{
require $file;
}
6 changes: 3 additions & 3 deletions vendor/composer/autoload_real_52.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real_52.php generated by xrstf/composer-php52

class ComposerAutoloaderInit4aa4bf1f8ecc76764e32a62a639d7034 {
class ComposerAutoloaderInitaba00416c8823961fe1bbc5399d21ab1 {
private static $loader;

public static function loadClassLoader($class) {
Expand All @@ -19,9 +19,9 @@ public static function getLoader() {
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInit4aa4bf1f8ecc76764e32a62a639d7034', 'loadClassLoader'), true /*, true */);
spl_autoload_register(array('ComposerAutoloaderInitaba00416c8823961fe1bbc5399d21ab1', 'loadClassLoader'), true /*, true */);
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInit4aa4bf1f8ecc76764e32a62a639d7034', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitaba00416c8823961fe1bbc5399d21ab1', 'loadClassLoader'));

$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
Expand Down
Binary file removed vendor/xrstf/composer-php52/.hg/00changelog.i
Binary file not shown.
1 change: 0 additions & 1 deletion vendor/xrstf/composer-php52/.hg/branch

This file was deleted.

4 changes: 0 additions & 4 deletions vendor/xrstf/composer-php52/.hg/cache/branch2-served

This file was deleted.

Binary file removed vendor/xrstf/composer-php52/.hg/cache/rbc-names-v1
Binary file not shown.
Binary file removed vendor/xrstf/composer-php52/.hg/cache/rbc-revs-v1
Binary file not shown.
Binary file removed vendor/xrstf/composer-php52/.hg/dirstate
Binary file not shown.
14 changes: 0 additions & 14 deletions vendor/xrstf/composer-php52/.hg/hgrc

This file was deleted.

4 changes: 0 additions & 4 deletions vendor/xrstf/composer-php52/.hg/requires

This file was deleted.

Binary file removed vendor/xrstf/composer-php52/.hg/store/00changelog.i
Binary file not shown.
Binary file removed vendor/xrstf/composer-php52/.hg/store/00manifest.i
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 0 additions & 7 deletions vendor/xrstf/composer-php52/.hg/store/fncache

This file was deleted.

Empty file.
Binary file removed vendor/xrstf/composer-php52/.hg/store/undo
Binary file not shown.
Binary file removed vendor/xrstf/composer-php52/.hg/store/undo.backupfiles
Binary file not shown.
Empty file.
Empty file.
1 change: 0 additions & 1 deletion vendor/xrstf/composer-php52/.hg/undo.branch

This file was deleted.

3 changes: 0 additions & 3 deletions vendor/xrstf/composer-php52/.hg/undo.desc

This file was deleted.

Empty file.
18 changes: 0 additions & 18 deletions vendor/xrstf/composer-php52/.hgtags

This file was deleted.

2 changes: 1 addition & 1 deletion wp-seo-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @internal Nobody should be able to overrule the real version number as this can cause serious issues
* with the options, so no if ( ! defined() )
*/
define( 'WPSEO_VERSION', '2.1' );
define( 'WPSEO_VERSION', '2.1.1' );

if ( ! defined( 'WPSEO_PATH' ) ) {
define( 'WPSEO_PATH', plugin_dir_path( WPSEO_FILE ) );
Expand Down
2 changes: 1 addition & 1 deletion wp-seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

/**
* Plugin Name: WordPress SEO
* Version: 2.1
* Version: 2.1.1
* Plugin URI: https://yoast.com/wordpress/plugins/seo/#utm_source=wpadmin&utm_medium=plugin&utm_campaign=wpseoplugin
* Description: The first true all-in-one SEO solution for WordPress, including on-page content analysis, XML sitemaps and much more.
* Author: Team Yoast
Expand Down

0 comments on commit b74c170

Please sign in to comment.