All in One SEO Pack - Version 2.2.7.1

Version Description

Download this release

Release Info

Developer pbaylies
Plugin Icon 128x128 All in One SEO Pack
Version 2.2.7.1
Comparing to
See all releases

Code changes from version 2.2.7 to 2.2.7.1

aioseop_class.php CHANGED
@@ -2348,7 +2348,7 @@ EOF;
2348
  "@type": "SearchAction",
2349
  "target": "{$home_url}/?s={search_term}",
2350
  "query-input": "required name=search_term"
2351
- }
2352
  EOF;
2353
  }
2354
 
@@ -2357,11 +2357,11 @@ EOF;
2357
  {
2358
  "@context": "http://schema.org",
2359
  "@type": "WebSite",
2360
- "url": "{$home_url}/",
2361
  EOF;
2362
  if ( !empty( $name_block ) ) $search_box .= $name_block;
2363
  if ( !empty( $search_block ) ) $search_box .= $search_block;
2364
  $search_box.=<<<EOF
 
2365
  }
2366
  </script>
2367
  EOF;
2348
  "@type": "SearchAction",
2349
  "target": "{$home_url}/?s={search_term}",
2350
  "query-input": "required name=search_term"
2351
+ },
2352
  EOF;
2353
  }
2354
 
2357
  {
2358
  "@context": "http://schema.org",
2359
  "@type": "WebSite",
 
2360
  EOF;
2361
  if ( !empty( $name_block ) ) $search_box .= $name_block;
2362
  if ( !empty( $search_block ) ) $search_box .= $search_block;
2363
  $search_box.=<<<EOF
2364
+ "url": "{$home_url}/"
2365
  }
2366
  </script>
2367
  EOF;
aioseop_module_class.php CHANGED
@@ -571,8 +571,9 @@ if ( !class_exists( 'All_in_One_SEO_Pack_Module' ) ) {
571
 
572
  function is_bad_referer() {
573
  $referlist = $this->default_bad_referers();
574
- $referlist = apply_filters( $this->prefix . "badreferlist", $botlist );
575
- if ( !empty( $referlist ) ) {
 
576
  $ref = $_SERVER['HTTP_REFERER'];
577
  $regex = $this->quote_list_for_regex( $referlist );
578
  if ( preg_match( '/' . $regex . '/i', $ref ) ) {
571
 
572
  function is_bad_referer() {
573
  $referlist = $this->default_bad_referers();
574
+ $referlist = apply_filters( $this->prefix . "badreferlist", $referlist );
575
+
576
+ if ( !empty( $referlist ) && !empty( $_SERVER ) && !empty( $_SERVER['HTTP_REFERER'] ) ) {
577
  $ref = $_SERVER['HTTP_REFERER'];
578
  $regex = $this->quote_list_for_regex( $referlist );
579
  if ( preg_match( '/' . $regex . '/i', $ref ) ) {
aioseop_opengraph.php CHANGED
@@ -786,6 +786,7 @@ if ( !class_exists( 'All_in_One_SEO_Pack_Opengraph' ) ) {
786
  }
787
  }
788
  }
 
789
  if ( !empty( $social_links ) ) {
790
  $home_url = esc_url( get_home_url() );
791
  $social_links = explode( "\n", $social_links );
786
  }
787
  }
788
  }
789
+ $social_link_schema = '';
790
  if ( !empty( $social_links ) ) {
791
  $home_url = esc_url( get_home_url() );
792
  $social_links = explode( "\n", $social_links );
aioseop_sitemap.php CHANGED
@@ -80,7 +80,12 @@ if ( !class_exists( 'All_in_One_SEO_Pack_Sitemap' ) ) {
80
  'default' => 'sitemap', 'type' => 'text', 'sanitize' => 'filename' ),
81
  'google' => Array( 'name' => __( 'Notify Google', 'all_in_one_seo_pack') ),
82
  'bing' => Array( 'name' => __( 'Notify Bing', 'all_in_one_seo_pack') ),
83
- 'daily_cron'=> Array( 'name' => __( 'Schedule Daily Updates', 'all_in_one_seo_pack' ) ),
 
 
 
 
 
84
  'indexes' => Array( 'name' => __( 'Enable Sitemap Indexes', 'all_in_one_seo_pack' ) ),
85
  'paginate' => Array( 'name' => __( 'Paginate Sitemap Indexes', 'all_in_one_seo_pack' ),
86
  'condshow' => Array( "{$this->prefix}indexes" => 'on' ) ),
@@ -205,9 +210,24 @@ if ( !class_exists( 'All_in_One_SEO_Pack_Sitemap' ) ) {
205
  add_action( $this->prefix . 'daily_update_cron', Array( $this, 'daily_update' ) );
206
  }
207
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
208
  function cron_update() {
 
209
  if ( !wp_next_scheduled( $this->prefix . 'daily_update_cron' ) )
210
- wp_schedule_event( time(), 'daily', $this->prefix . 'daily_update_cron' );
211
  }
212
 
213
  function daily_update() {
80
  'default' => 'sitemap', 'type' => 'text', 'sanitize' => 'filename' ),
81
  'google' => Array( 'name' => __( 'Notify Google', 'all_in_one_seo_pack') ),
82
  'bing' => Array( 'name' => __( 'Notify Bing', 'all_in_one_seo_pack') ),
83
+ 'daily_cron'=> Array( 'name' => __( 'Schedule Updates', 'all_in_one_seo_pack' ), 'type' => 'select',
84
+ 'initial_options' => Array( 0 => __( 'No Schedule', 'all_in_one_seo_pack' ),
85
+ 'daily' => __( 'Daily', 'all_in_one_seo_pack' ),
86
+ 'weekly' => __( 'Weekly', 'all_in_one_seo_pack' ),
87
+ 'monthly'=> __( 'Monthly', 'all_in_one_seo_pack' ) ),
88
+ 'default' => 0 ),
89
  'indexes' => Array( 'name' => __( 'Enable Sitemap Indexes', 'all_in_one_seo_pack' ) ),
90
  'paginate' => Array( 'name' => __( 'Paginate Sitemap Indexes', 'all_in_one_seo_pack' ),
91
  'condshow' => Array( "{$this->prefix}indexes" => 'on' ) ),
210
  add_action( $this->prefix . 'daily_update_cron', Array( $this, 'daily_update' ) );
211
  }
212
 
213
+ // Add new intervals of a week and a month
214
+ // See http://codex.wordpress.org/Plugin_API/Filter_Reference/cron_schedules
215
+ function add_cron_schedules( $schedules ) {
216
+ $schedules['weekly'] = array(
217
+ 'interval' => 604800, // 1 week in seconds
218
+ 'display' => __( 'Once Weekly', 'all_in_one_seo_pack' )
219
+ );
220
+ $schedules['monthly'] = array(
221
+ 'interval' => 2629740, // 1 month in seconds
222
+ 'display' => __( 'Once Monthly', 'all_in_one_seo_pack' )
223
+ );
224
+ return $schedules;
225
+ }
226
+
227
  function cron_update() {
228
+ add_filter( 'cron_schedules', Array( $this, 'add_cron_schedules' ) );
229
  if ( !wp_next_scheduled( $this->prefix . 'daily_update_cron' ) )
230
+ wp_schedule_event( time(), $this->options[$this->prefix . 'daily_cron'], $this->prefix . 'daily_update_cron' );
231
  }
232
 
233
  function daily_update() {
all_in_one_seo_pack.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: All In One SEO Pack
4
  Plugin URI: http://semperfiwebdesign.com
5
  Description: 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.7
7
  Author: Michael Torbert
8
  Author URI: http://michaeltorbert.com
9
  */
@@ -30,7 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
30
 
31
  /**
32
  * @package All-in-One-SEO-Pack
33
- * @version 2.2.7
34
  */
35
 
36
  if ( ! defined( 'ABSPATH' ) ) return;
@@ -41,7 +41,7 @@ if ( ! defined( 'AIOSEOP_PLUGIN_NAME' ) )
41
  define( 'AIOSEOP_PLUGIN_NAME', $aioseop_plugin_name );
42
 
43
  if ( ! defined( 'AIOSEOP_VERSION' ) )
44
- define( 'AIOSEOP_VERSION', '2.2.7' );
45
 
46
  if ( ! defined( 'AIOSEOP_PLUGIN_DIR' ) ) {
47
  define( 'AIOSEOP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
3
  Plugin Name: All In One SEO Pack
4
  Plugin URI: http://semperfiwebdesign.com
5
  Description: 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.7.1
7
  Author: Michael Torbert
8
  Author URI: http://michaeltorbert.com
9
  */
30
 
31
  /**
32
  * @package All-in-One-SEO-Pack
33
+ * @version 2.2.7.1
34
  */
35
 
36
  if ( ! defined( 'ABSPATH' ) ) return;
41
  define( 'AIOSEOP_PLUGIN_NAME', $aioseop_plugin_name );
42
 
43
  if ( ! defined( 'AIOSEOP_VERSION' ) )
44
+ define( 'AIOSEOP_VERSION', '2.2.7.1' );
45
 
46
  if ( ! defined( 'AIOSEOP_PLUGIN_DIR' ) ) {
47
  define( 'AIOSEOP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
images/inmotion.gif CHANGED
Binary file