Plugin Directory

Changeset 949889

Timestamp:
07/16/2014 08:51:23 PM (10 years ago)
Author:
pbaylies
Message:

More bugfixes and extra requested hooks; bumped version to 2.2.1.

Location:
all-in-one-seo-pack
Files:
1 added
6 edited
59 copied

Legend:

Unmodified
Added
Removed
  • all-in-one-seo-pack/tags/2.2.1/aioseop_class.php

    r949833 r949889  
    19351935// Thank you, Yoast de Valk, for much of this code.
    19361936
    1937     function aiosp_mrt_get_url( $query ) {
    ��1937    function aiosp_mrt_get_url( $query ) {
    19381938        if ( $query->is_404 || $query->is_search )
    19391939            return false;
     
    19971997        }
    19981998        if ( empty( $link ) || !is_string( $link ) ) return false;
    1999         return $this->get_paged( $link );
     1999        if ( apply_filters( 'aioseop_canonical_url_pagination', $show_page ) )
     2000            $link = $this->get_paged( $link );
     2001        return $link;
    20002002    }
    20012003   
  • all-in-one-seo-pack/tags/2.2.1/aioseop_module.js

    r948965 r949889  
    313313        return false;
    314314    });
    315     jQuery( 'input[name="aiosp_sitemap_posttypes[]"][value="all"]', 'input[name="aiosp_sitemap_taxonomies[]"][value="all"]' ).click(function () {
     315    jQuery( 'input[name="aiosp_sitemap_posttypes[]"][value="all"]input[name="aiosp_sitemap_taxonomies[]"][value="all"]' ).click(function () {
    316316        jQuery(this).parents('div:eq(0)').find(':checkbox').attr('checked', this.checked);
    317317    });
    318     jQuery( 'input[name="aiosp_sitemap_posttypes[]"][value!="all"]', 'input[name="aiosp_sitemap_taxonomies[]"][value!="all"]' ).click(function () {
     318    jQuery( 'input[name="aiosp_sitemap_posttypes[]"][value!="all"]input[name="aiosp_sitemap_taxonomies[]"][value!="all"]' ).click(function () {
    319319        if ( !this.checked )
    320320            jQuery(this).parents('div:eq(0)').find('input[value="all"]:checkbox').attr('checked', this.checked);
  • all-in-one-seo-pack/tags/2.2.1/aioseop_module_class.php

    r949722 r949889  
    14091409                        case 'radio':
    14101410                        case 'select':
    1411                         default:              $this->options[$k] = esc_attr( $this->options[$k] );
     1411                        default:              $this->options[$k] = esc_attr( $this->options[$k] );
    14121412                    }
    14131413                }
  • all-in-one-seo-pack/tags/2.2.1/aioseop_opengraph.php

    r948965 r949889  
    319319                add_filter( 'jetpack_disable_twitter_cards', '__return_false', 100 );
    320320            }
    321             foreach( Array( 'xmlns="http://www.w3.org/1999/xhtml"', 'xmlns:og="http://ogp.me/ns#"', 'xmlns:fb="http://www.facebook.com/2008/fbml"' ) as $xmlns ) {
    322                 if ( strpos( $output, $xmlns ) === false ) {
    323                     $output .= "\n\t$xmlns ";
     321            $attributes = apply_filters( $this->prefix . 'attributes', Array( 'xmlns="http://www.w3.org/1999/xhtml"', 'xmlns:og="http://ogp.me/ns#"', 'xmlns:fb="http://www.facebook.com/2008/fbml"' ) );
     322            foreach( $attributes as $attr ) {
     323                if ( strpos( $output, $attr ) === false ) {
     324                    $output .= "\n\t$attr ";
    324325                }
    325326            }
  • all-in-one-seo-pack/tags/2.2.1/aioseop_sitemap.php

    r933964 r949889  
    355355        /** Handle 'all' option for post types / taxonomies, further sanitization of filename, rewrites on for multisite, setting up addl pages option. **/
    356356        function filter_options( $options ) {
     357
    357358            if ( is_array( $options["{$this->prefix}posttypes"] ) && in_array( 'all', $options["{$this->prefix}posttypes"] ) && is_array( $this->default_options['posttypes' ]['initial_options'] ) )
    358359                $options["{$this->prefix}posttypes"] = array_keys( $this->default_options['posttypes' ]['initial_options'] );
  • all-in-one-seo-pack/tags/2.2.1/all_in_one_seo_pack.php

    r948965 r949889  
    44Plugin URI: http://semperfiwebdesign.com
    55Description: Out-of-the-box SEO for your WordPress blog. <a href="admin.php?page=all-in-one-seo-pack/aioseop_class.php">Options configuration panel</a> | <a href="http://semperplugins.com/plugins/all-in-one-seo-pack-pro-version/?loc=plugins" target="_blank">Upgrade to Pro Version</a> | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mrtorbert%40gmail%2ecom&item_name=All%20In%20One%20SEO%20Pack&item_number=Support%20Open%20Source&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8">Donate</a> | <a href="http://semperplugins.com/support/" >Support</a> |  <a href="https://www.amazon.com/wishlist/1NFQ133FNCOOA/ref=wl_web" target="_blank" title="Amazon Wish List">Amazon Wishlist</a>
    6 Version: 2.2
     6Version: 2.2
    77Author: Michael Torbert
    88Author URI: http://michaeltorbert.com
     
    3131/**
    3232 * @package All-in-One-SEO-Pack
    33  * @version 2.2
     33 * @version 2.2
    3434 */
    3535
    3636if ( ! defined( 'AIOSEOP_VERSION' ) )
    37     define( 'AIOSEOP_VERSION', '2.2' );
     37    define( 'AIOSEOP_VERSION', '2.2' );
    3838
    3939if ( ! defined( 'AIOSEOP_PLUGIN_DIR' ) ) {
  • all-in-one-seo-pack/trunk/aioseop_class.php

    r949833 r949889  
    19351935// Thank you, Yoast de Valk, for much of this code.
    19361936
    1937     function aiosp_mrt_get_url( $query ) {
     1937    function aiosp_mrt_get_url( $query ) {
    19381938        if ( $query->is_404 || $query->is_search )
    19391939            return false;
     
    19971997        }
    19981998        if ( empty( $link ) || !is_string( $link ) ) return false;
    1999         return $this->get_paged( $link );
     1999        if ( apply_filters( 'aioseop_canonical_url_pagination', $show_page ) )
     2000            $link = $this->get_paged( $link );
     2001        return $link;
    20002002    }
    20012003   
  • all-in-one-seo-pack/trunk/aioseop_module.js

    r948965 r949889  
    313313        return false;
    314314    });
    315     jQuery( 'input[name="aiosp_sitemap_posttypes[]"][value="all"]', 'input[name="aiosp_sitemap_taxonomies[]"][value="all"]' ).click(function () {
     315    jQuery( 'input[name="aiosp_sitemap_posttypes[]"][value="all"]input[name="aiosp_sitemap_taxonomies[]"][value="all"]' ).click(function () {
    316316        jQuery(this).parents('div:eq(0)').find(':checkbox').attr('checked', this.checked);
    317317    });
    318     jQuery( 'input[name="aiosp_sitemap_posttypes[]"][value!="all"]', 'input[name="aiosp_sitemap_taxonomies[]"][value!="all"]' ).click(function () {
     318    jQuery( 'input[name="aiosp_sitemap_posttypes[]"][value!="all"]input[name="aiosp_sitemap_taxonomies[]"][value!="all"]' ).click(function () {
    319319        if ( !this.checked )
    320320            jQuery(this).parents('div:eq(0)').find('input[value="all"]:checkbox').attr('checked', this.checked);
  • all-in-one-seo-pack/trunk/aioseop_module_class.php

    r949722 r949889  
    14091409                        case 'radio':
    14101410                        case 'select':
    1411                         default:              $this->options[$k] = esc_attr( $this->options[$k] );
     1411                        default:              $this->options[$k] = esc_attr( $this->options[$k] );
    14121412                    }
    14131413                }
  • all-in-one-seo-pack/trunk/aioseop_opengraph.php

    r948965 r949889  
    319319                add_filter( 'jetpack_disable_twitter_cards', '__return_false', 100 );
    320320            }
    321             foreach( Array( 'xmlns="http://www.w3.org/1999/xhtml"', 'xmlns:og="http://ogp.me/ns#"', 'xmlns:fb="http://www.facebook.com/2008/fbml"' ) as $xmlns ) {
    322                 if ( strpos( $output, $xmlns ) === false ) {
    323                     $output .= "\n\t$xmlns ";
     321            $attributes = apply_filters( $this->prefix . 'attributes', Array( 'xmlns="http://www.w3.org/1999/xhtml"', 'xmlns:og="http://ogp.me/ns#"', 'xmlns:fb="http://www.facebook.com/2008/fbml"' ) );
     322            foreach( $attributes as $attr ) {
     323                if ( strpos( $output, $attr ) === false ) {
     324                    $output .= "\n\t$attr ";
    324325                }
    325326            }
  • all-in-one-seo-pack/trunk/aioseop_sitemap.php

    r933964 r949889  
    355355        /** Handle 'all' option for post types / taxonomies, further sanitization of filename, rewrites on for multisite, setting up addl pages option. **/
    356356        function filter_options( $options ) {
     357
    357358            if ( is_array( $options["{$this->prefix}posttypes"] ) && in_array( 'all', $options["{$this->prefix}posttypes"] ) && is_array( $this->default_options['posttypes' ]['initial_options'] ) )
    358359                $options["{$this->prefix}posttypes"] = array_keys( $this->default_options['posttypes' ]['initial_options'] );
  • all-in-one-seo-pack/trunk/all_in_one_seo_pack.php

    r948965 r949889  
    44Plugin URI: http://semperfiwebdesign.com
    55Description: Out-of-the-box SEO for your WordPress blog. <a href="admin.php?page=all-in-one-seo-pack/aioseop_class.php">Options configuration panel</a> | <a href="http://semperplugins.com/plugins/all-in-one-seo-pack-pro-version/?loc=plugins" target="_blank">Upgrade to Pro Version</a> | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mrtorbert%40gmail%2ecom&item_name=All%20In%20One%20SEO%20Pack&item_number=Support%20Open%20Source&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8">Donate</a> | <a href="http://semperplugins.com/support/" >Support</a> |  <a href="https://www.amazon.com/wishlist/1NFQ133FNCOOA/ref=wl_web" target="_blank" title="Amazon Wish List">Amazon Wishlist</a>
    6 Version: 2.2
     6Version: 2.2
    77Author: Michael Torbert
    88Author URI: http://michaeltorbert.com
     
    3131/**
    3232 * @package All-in-One-SEO-Pack
    33  * @version 2.2
     33 * @version 2.2
    3434 */
    3535
    3636if ( ! defined( 'AIOSEOP_VERSION' ) )
    37     define( 'AIOSEOP_VERSION', '2.2' );
     37    define( 'AIOSEOP_VERSION', '2.2' );
    3838
    3939if ( ! defined( 'AIOSEOP_PLUGIN_DIR' ) ) {
Note: See TracChangeset for help on using the changeset viewer.