Google XML Sitemaps - Version 4.1.3

Version Description

(2022-05-31) = * Added backward compatibility settings * Changed Google Tracking ID field to optional * Fixed PHP warnings

Download this release

Release Info

Developer auctollo
Plugin Icon 128x128 Google XML Sitemaps
Version 4.1.3
Comparing to
See all releases

Code changes from version 4.1.2 to 4.1.3

Files changed (83) hide show
  1. class-googlesitemapgeneratorloader.php +0 -0
  2. class-googlesitemapgeneratorstandardbuilder.php +0 -0
  3. class-googlesitemapgeneratorstatus.php +0 -0
  4. class-googlesitemapgeneratorui.php +94 -59
  5. documentation.txt +1 -0
  6. google-sitemap-generator-prio-provider-base.php +0 -0
  7. img/icon-amazon.gif +0 -0
  8. img/icon-arne.gif +0 -0
  9. img/icon-bing.gif +0 -0
  10. img/icon-donate.gif +0 -0
  11. img/icon-email.gif +0 -0
  12. img/icon-google.gif +0 -0
  13. img/icon-help.png +0 -0
  14. img/icon-paypal.gif +0 -0
  15. img/icon-trac.gif +0 -0
  16. img/icon-wordpress.gif +0 -0
  17. img/icon-yahoo.gif +0 -0
  18. img/sitemap.js +0 -0
  19. lang/sitemap-ar.mo +0 -0
  20. lang/sitemap-ar.po +0 -0
  21. lang/sitemap-bg_BG.mo +0 -0
  22. lang/sitemap-bg_BG.po +0 -0
  23. lang/sitemap-by_BY.mo +0 -0
  24. lang/sitemap-by_BY.po +0 -0
  25. lang/sitemap-cs_CZ.mo +0 -0
  26. lang/sitemap-cs_CZ.po +0 -0
  27. lang/sitemap-da_DK.mo +0 -0
  28. lang/sitemap-da_DK.po +0 -0
  29. lang/sitemap-de_DE.mo +0 -0
  30. lang/sitemap-de_DE.po +0 -0
  31. lang/sitemap-es_ES.mo +0 -0
  32. lang/sitemap-es_ES.po +0 -0
  33. lang/sitemap-fi_FI.mo +0 -0
  34. lang/sitemap-fi_FI.po +0 -0
  35. lang/sitemap-fr_FR.mo +0 -0
  36. lang/sitemap-fr_FR.po +0 -0
  37. lang/sitemap-hi_IN.mo +0 -0
  38. lang/sitemap-hi_IN.po +0 -0
  39. lang/sitemap-hu_HU.mo +0 -0
  40. lang/sitemap-hu_HU.po +0 -0
  41. lang/sitemap-it_IT.mo +0 -0
  42. lang/sitemap-it_IT.po +0 -0
  43. lang/sitemap-ja.mo +0 -0
  44. lang/sitemap-ja.po +0 -0
  45. lang/sitemap-ja_EUC.mo +0 -0
  46. lang/sitemap-ja_EUC.po +0 -0
  47. lang/sitemap-ja_SJIS.mo +0 -0
  48. lang/sitemap-ja_SJIS.po +0 -0
  49. lang/sitemap-ja_UTF.mo +0 -0
  50. lang/sitemap-ja_UTF.po +0 -0
  51. lang/sitemap-ko_KR.mo +0 -0
  52. lang/sitemap-ko_KR.po +0 -0
  53. lang/sitemap-nl_NL.mo +0 -0
  54. lang/sitemap-nl_NL.po +0 -0
  55. lang/sitemap-pl_PL.mo +0 -0
  56. lang/sitemap-pl_PL.po +0 -0
  57. lang/sitemap-pt_BR.mo +0 -0
  58. lang/sitemap-pt_BR.po +0 -0
  59. lang/sitemap-pt_PT.mo +0 -0
  60. lang/sitemap-pt_PT.po +0 -0
  61. lang/sitemap-ru_RU.mo +0 -0
  62. lang/sitemap-ru_RU.po +0 -0
  63. lang/sitemap-sl_SI.mo +0 -0
  64. lang/sitemap-sl_SI.po +0 -0
  65. lang/sitemap-sr_RS.mo +0 -0
  66. lang/sitemap-sr_RS.po +0 -0
  67. lang/sitemap-sv_SE.mo +0 -0
  68. lang/sitemap-sv_SE.po +0 -0
  69. lang/sitemap-tr_TR.mo +0 -0
  70. lang/sitemap-tr_TR.po +0 -0
  71. lang/sitemap-uk_UA.mo +0 -0
  72. lang/sitemap-uk_UA.po +0 -0
  73. lang/sitemap-zh_CN.mo +0 -0
  74. lang/sitemap-zh_CN.po +0 -0
  75. lang/sitemap-zh_TW.mo +0 -0
  76. lang/sitemap-zh_TW.po +0 -0
  77. lang/sitemap.pot +0 -0
  78. license.txt +0 -0
  79. readme.txt +17 -12
  80. sitemap-core.php +8 -18
  81. sitemap-wpmu.php +0 -0
  82. sitemap.php +1 -1
  83. sitemap.xsl +0 -0
class-googlesitemapgeneratorloader.php CHANGED
File without changes
class-googlesitemapgeneratorstandardbuilder.php CHANGED
File without changes
class-googlesitemapgeneratorstatus.php CHANGED
File without changes
class-googlesitemapgeneratorui.php CHANGED
@@ -17,7 +17,12 @@ class GoogleSitemapGeneratorUI {
17
  * @var GoogleSitemapGenerator
18
  */
19
  private $sg = null;
20
-
 
 
 
 
 
21
  /**
22
  * Constructor function.
23
  *
@@ -115,7 +120,17 @@ class GoogleSitemapGeneratorUI {
115
  return '';
116
  }
117
  }
118
-
 
 
 
 
 
 
 
 
 
 
119
  /**
120
  * Returns an formatted attribute. If the value is NULL, the name will be used.
121
  *
@@ -218,6 +233,7 @@ class GoogleSitemapGeneratorUI {
218
  * @author Arne Brachhold
219
  */
220
  public function html_show_options_page() {
 
221
  global $wp_version;
222
  $snl = false; // SNL.
223
 
@@ -448,8 +464,8 @@ class GoogleSitemapGeneratorUI {
448
  if ( 'sm_in_tax' === $k ) {
449
 
450
  $enabled_taxonomies = array();
451
-
452
- foreach ( array_keys( (array) array_map( 'sanitize_text_field', ( wp_unslash( $_POST[ $k ] ) ) ) ) as $tax_name ) {
453
  if ( empty( $tax_name ) || ! taxonomy_exists( $tax_name ) ) {
454
  continue;
455
  }
@@ -461,8 +477,8 @@ class GoogleSitemapGeneratorUI {
461
  } elseif ( 'sm_in_customtypes' === $k ) {
462
 
463
  $enabled_post_types = array();
464
-
465
- foreach ( array_keys( (array) array_map( 'sanitize_text_field', wp_unslash( $_POST[ $k ] ) ) ) as $post_type_name ) {
466
  if ( empty( $post_type_name ) || ! post_type_exists( $post_type_name ) ) {
467
  continue;
468
  }
@@ -591,17 +607,34 @@ class GoogleSitemapGeneratorUI {
591
  <?php
592
  exit;
593
  } elseif ( ! empty( $_GET['sm_ping_main'] ) ) {
 
 
594
 
595
- check_admin_referer( 'sitemap' );
 
 
 
 
596
 
597
- // Check again, just for the case that something went wrong before.
598
- if ( ! current_user_can( 'administrator' ) ) {
599
- echo '<p>Please log in as admin</p>';
600
- return;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
601
  }
602
-
603
- $this->sg->send_ping();
604
- $message = __( 'Ping was executed, please see below for the result.', 'sitemap' );
605
  }
606
 
607
  // Print out the message to the user, if any.
@@ -830,8 +863,8 @@ class GoogleSitemapGeneratorUI {
830
  ?>
831
  </h2>
832
  <?php
833
-
834
- if ( get_option( 'blog_public' ) !== 1 ) {
835
  ?>
836
  <div class='error'>
837
  <p>
@@ -1080,24 +1113,6 @@ class GoogleSitemapGeneratorUI {
1080
  ?>
1081
  </small>
1082
  </li>
1083
- <li>
1084
- <input type='checkbox' id='sm_b_pingmsn' name='sm_b_pingmsn' <?php echo ( $this->sg->get_option( 'b_pingmsn' ) === true ? 'checked=\'checked\'' : '' ); ?> />
1085
- <label for='sm_b_pingmsn'><?php esc_html_e( 'Notify Bing (formerly MSN Live Search) about updates of your site', 'sitemap' ); ?></label><br />
1086
- <small>
1087
- <?php
1088
- $arr = array(
1089
- 'br' => array(),
1090
- 'p' => array(),
1091
- 'a' => array(
1092
- 'href' => array(),
1093
- ),
1094
- 'strong' => array(),
1095
- );
1096
- /* translators: %s: search term */
1097
- echo wp_kses( str_replace( '%s', $this->sg->get_redirect_link( 'redir/sitemap-lwt' ), __( 'No registration required, but you can join the <a href=\'%s\'>Bing Webmaster Tools</a> to check crawling statistics.', 'sitemap' ) ), $arr );
1098
- ?>
1099
- </small>
1100
- </li>
1101
  <li>
1102
  <label for='sm_b_robots'>
1103
  <input type='checkbox' id='sm_b_robots' name='sm_b_robots' <?php echo ( $this->sg->get_option( 'b_robots' ) === true ? 'checked=\'checked\'' : '' ); ?> />
@@ -1144,7 +1159,7 @@ class GoogleSitemapGeneratorUI {
1144
  <small><?php esc_html_e( 'Use this if you want to change the sitemap file name', 'sitemap' ); ?> <a href='<?php echo esc_url( $this->sg->get_redirect_link( 'sitemap-help-options-adv-baseurl' ) ); ?>'><?php esc_html_e( 'Learn more', 'sitemap' ); ?></a></small>
1145
  </li>
1146
  <li>
1147
- <label for='sm_i_tid'><?php esc_html_e( ' Add Google Analytics TID:', 'sitemap' ); ?> <input type='text' name='sm_i_tid' id='sm_i_tid' required value='<?php echo esc_attr( $this->sg->get_option( 'i_tid' ) ); ?>' /></label><br />
1148
  </li>
1149
  <li>
1150
  <label for='sm_b_html'>
@@ -1230,7 +1245,8 @@ class GoogleSitemapGeneratorUI {
1230
  } else {
1231
  $fd = true;
1232
  }
1233
- echo '{url:"' . esc_url( $page->get_url() ) . '", priority:' . esc_html( number_format( $page->get_priority(), 1, '.', '' ) ) . ', changeFreq:\'' . esc_html( $page->get_change_freq() ) . '\', lastChanged:"' . esc_html( ( $page->get_last_mod() > 0 ? gmdate( 'Y-m-d', $page->get_last_mod() ) : '' ) ) . '"}';
 
1234
  }
1235
  }
1236
  ?>
@@ -1268,14 +1284,16 @@ class GoogleSitemapGeneratorUI {
1268
 
1269
  <p><?php esc_html_e( 'Please select how the priority of each post should be calculated:', 'sitemap' ); ?></p>
1270
  <ul>
1271
- <li>
1272
- <p><input type='radio' name='sm_b_prio_provider' id='sm_b_prio_provider__0' value='' <?php esc_attr( $this->html_get_checked( $this->sg->get_option( 'b_prio_provider' ), '' ) ); ?> /> <label for='sm_b_prio_provider__0'><?php esc_html_e( 'Do not use automatic priority calculation', 'sitemap' ); ?></label><br /><?php esc_html_e( 'All posts will have the same priority which is defined in &quot;Priorities&quot;', 'sitemap' ); ?></p>
1273
- </li>
1274
  <?php
1275
  $provs = $this->sg->get_prio_providers();
1276
- $len = count( $provs );
 
1277
  for ( $i = 0; $i < $len; $i++ ) {
1278
- echo '<li><p><input type=\'radio\' id=\'sm_b_prio_provider_$i\' name=\'sm_b_prio_provider\' value=\'' . esc_attr( $provs[ $i ] ) . '\' ' . esc_attr( $this->html_get_checked( $this->sg->get_option( 'b_prio_provider' ), $provs[ $i ] ) ) . ' /> <label for=\'sm_b_prio_provider_$i\'>' . esc_html( call_user_func( array( $provs[ $i ], 'get_name' ) ) ) . '</label><br />' . esc_html( call_user_func( array( $provs[ $i ], 'get_description' ) ) ) . '</p></li>';
 
 
 
 
1279
  }
1280
  ?>
1281
  </ul>
@@ -1457,15 +1475,24 @@ class GoogleSitemapGeneratorUI {
1457
  </ul>
1458
  <ul>
1459
  <?php
1460
- $defaults = array(
1461
- 'descendants_and_self' => 0,
1462
- 'selected_cats' => $this->sg->get_option( 'b_exclude_cats' ),
1463
- 'popular_cats' => false,
1464
- 'walker' => null,
1465
- 'taxonomy' => 'product_cat',
1466
- 'checked_ontop' => true,
1467
- 'echo' => true,
1468
- );
 
 
 
 
 
 
 
 
 
1469
  wp_terms_checklist( 0, $defaults );
1470
  ?>
1471
  </ul>
@@ -1475,15 +1502,23 @@ class GoogleSitemapGeneratorUI {
1475
  ?>
1476
  <ul>
1477
  <?php
1478
- $defaults = array(
1479
- 'descendants_and_self' => 0,
1480
- 'selected_cats' => $this->sg->get_option( 'b_exclude_cats' ),
1481
- 'popular_cats' => false,
1482
- 'walker' => null,
1483
- 'taxonomy' => $taxonomy,
1484
- 'checked_ontop' => true,
1485
- 'echo' => true,
1486
- );
 
 
 
 
 
 
 
 
1487
  wp_terms_checklist( 0, $defaults );
1488
  ?>
1489
  </ul>
17
  * @var GoogleSitemapGenerator
18
  */
19
  private $sg = null;
20
+ /**
21
+ * Check if woo commerce is active or not .
22
+ *
23
+ * @var boolean
24
+ */
25
+ private $has_woo_commerce = false;
26
  /**
27
  * Constructor function.
28
  *
120
  return '';
121
  }
122
  }
123
+ /**
124
+ * Active Sitemap listing .
125
+ */
126
+ public function active_plugins() {
127
+ $plugins = get_plugins();
128
+ foreach ( $plugins as $key => $val ) {
129
+ if ( 'WooCommerce' === $val['Name'] && is_plugin_active( $key ) ) {
130
+ $this->has_woo_commerce = true;
131
+ }
132
+ }
133
+ }
134
  /**
135
  * Returns an formatted attribute. If the value is NULL, the name will be used.
136
  *
233
  * @author Arne Brachhold
234
  */
235
  public function html_show_options_page() {
236
+ $this->active_plugins();
237
  global $wp_version;
238
  $snl = false; // SNL.
239
 
464
  if ( 'sm_in_tax' === $k ) {
465
 
466
  $enabled_taxonomies = array();
467
+ $sm_in_tax = isset( $_POST[ $k ] ) ? (array) array_map( 'sanitize_text_field', ( wp_unslash( is_array( $_POST[ $k ] ) ? $_POST[ $k ] : array() ) ) ) : array();
468
+ foreach ( array_keys( (array) $sm_in_tax ) as $tax_name ) {
469
  if ( empty( $tax_name ) || ! taxonomy_exists( $tax_name ) ) {
470
  continue;
471
  }
477
  } elseif ( 'sm_in_customtypes' === $k ) {
478
 
479
  $enabled_post_types = array();
480
+ $sm_in_customtype = isset( $_POST[ $k ] ) ? (array) array_map( 'sanitize_text_field', wp_unslash( is_array( $_POST[ $k ] ) ? $_POST[ $k ] : array() ) ) : array();
481
+ foreach ( array_keys( (array) $sm_in_customtype ) as $post_type_name ) {
482
  if ( empty( $post_type_name ) || ! post_type_exists( $post_type_name ) ) {
483
  continue;
484
  }
607
  <?php
608
  exit;
609
  } elseif ( ! empty( $_GET['sm_ping_main'] ) ) {
610
+ if ( null !== $this->sg->get_option( 'i_tid' ) && '' !== $this->sg->get_option( 'i_tid' ) ) {
611
+ check_admin_referer( 'sitemap' );
612
 
613
+ // Check again, just for the case that something went wrong before.
614
+ if ( ! current_user_can( 'administrator' ) ) {
615
+ echo '<p>Please log in as admin</p>';
616
+ return;
617
+ }
618
 
619
+ $this->sg->send_ping();
620
+ $message = __( 'Ping was executed, please see below for the result.', 'sitemap' );
621
+ } else {
622
+ ?>
623
+ <div class='error'>
624
+ <p>
625
+ <?php
626
+ $arr = array(
627
+ 'br' => array(),
628
+ 'p' => array(),
629
+ 'strong' => array(),
630
+ );
631
+ /* translators: %s: search term */
632
+ echo wp_kses( __( 'Please add Google analytics tid in order to notify Google bots.', 'sitemap' ), $arr );
633
+ ?>
634
+ </p>
635
+ </div>
636
+ <?php
637
  }
 
 
 
638
  }
639
 
640
  // Print out the message to the user, if any.
863
  ?>
864
  </h2>
865
  <?php
866
+ $blog_public = (int) get_option( 'blog_public' );
867
+ if ( 1 !== $blog_public ) {
868
  ?>
869
  <div class='error'>
870
  <p>
1113
  ?>
1114
  </small>
1115
  </li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1116
  <li>
1117
  <label for='sm_b_robots'>
1118
  <input type='checkbox' id='sm_b_robots' name='sm_b_robots' <?php echo ( $this->sg->get_option( 'b_robots' ) === true ? 'checked=\'checked\'' : '' ); ?> />
1159
  <small><?php esc_html_e( 'Use this if you want to change the sitemap file name', 'sitemap' ); ?> <a href='<?php echo esc_url( $this->sg->get_redirect_link( 'sitemap-help-options-adv-baseurl' ) ); ?>'><?php esc_html_e( 'Learn more', 'sitemap' ); ?></a></small>
1160
  </li>
1161
  <li>
1162
+ <label for='sm_i_tid'><?php esc_html_e( ' Add Google Analytics TID:', 'sitemap' ); ?> <input type='text' name='sm_i_tid' id='sm_i_tid' value='<?php echo esc_attr( $this->sg->get_option( 'i_tid' ) ); ?>' /></label><br />
1163
  </li>
1164
  <li>
1165
  <label for='sm_b_html'>
1245
  } else {
1246
  $fd = true;
1247
  }
1248
+ $last_mod_date = ! empty( $page->_lastMod ) ? $page->_lastMod : $page->last_mod;
1249
+ echo '{url:"' . esc_url( ! empty( $page->_url ) ? $page->_url : $page->url ) . '", priority:' . esc_html( number_format( ! empty( $page->_priority ) ? $page->_priority : $page->priority, 1, '.', '' ) ) . ', changeFreq:\'' . esc_html( ! empty( $page->_changeFreq ) ? $page->_changeFreq : $page->change_freq ) . '\', lastChanged:"' . esc_html( ( $last_mod_date > 0 ? gmdate( 'Y-m-d', $last_mod_date ) : '' ) ) . '"}';
1250
  }
1251
  }
1252
  ?>
1284
 
1285
  <p><?php esc_html_e( 'Please select how the priority of each post should be calculated:', 'sitemap' ); ?></p>
1286
  <ul>
 
 
 
1287
  <?php
1288
  $provs = $this->sg->get_prio_providers();
1289
+ array_unshift( $provs, '' );
1290
+ $len = count( $provs );
1291
  for ( $i = 0; $i < $len; $i++ ) {
1292
+ if ( 0 === $i ) {
1293
+ echo '<li><p><input type=\'radio\' id=\'sm_b_prio_provider_' . esc_html( $i ) . '\' name=\'sm_b_prio_provider\' value=\'' . esc_attr( $provs[ $i ] ) . '\' ' . esc_attr( $this->html_get_checked( $this->sg->get_option( 'b_prio_provider' ), $provs[ $i ] ) ) . ' /> <label for=\'sm_b_prio_provider_' . esc_html( $i ) . '\'>' . esc_html( 'Do not use automatic priority calculation' ) . '</label><br />' . esc_html( 'All posts will have the same priority which is defined in &quot;Priorities&quot;' ) . '</p></li>';
1294
+ } else {
1295
+ echo '<li><p><input type=\'radio\' id=\'sm_b_prio_provider_' . esc_html( $i ) . '\' name=\'sm_b_prio_provider\' value=\'' . esc_attr( $provs[ $i ] ) . '\' ' . esc_attr( $this->html_get_checked( $this->sg->get_option( 'b_prio_provider' ), $provs[ $i ] ) ) . ' /> <label for=\'sm_b_prio_provider_' . esc_html( $i ) . '\'>' . esc_html( call_user_func( array( $provs[ $i ], 'get_name' ) ) ) . '</label><br />' . esc_html( call_user_func( array( $provs[ $i ], 'get_description' ) ) ) . '</p></li>';
1296
+ }
1297
  }
1298
  ?>
1299
  </ul>
1475
  </ul>
1476
  <ul>
1477
  <?php
1478
+ $defaults = array();
1479
+ if ( $this->has_woo_commerce ) {
1480
+ $defaults = array(
1481
+ 'descendants_and_self' => 0,
1482
+ 'selected_cats' => $this->sg->get_option( 'b_exclude_cats' ),
1483
+ 'popular_cats' => false,
1484
+ 'walker' => null,
1485
+ 'taxonomy' => 'product_cat',
1486
+ 'checked_ontop' => true,
1487
+ 'echo' => true,
1488
+ );
1489
+ } else {
1490
+ $defaults = array(
1491
+ 'selected_cats' => $this->sg->get_option( 'b_exclude_cats' ),
1492
+ 'echo' => true,
1493
+ );
1494
+ }
1495
+
1496
  wp_terms_checklist( 0, $defaults );
1497
  ?>
1498
  </ul>
1502
  ?>
1503
  <ul>
1504
  <?php
1505
+ $defaults = array();
1506
+ if ( $this->has_woo_commerce ) {
1507
+ $defaults = array(
1508
+ 'descendants_and_self' => 0,
1509
+ 'selected_cats' => $this->sg->get_option( 'b_exclude_cats' ),
1510
+ 'popular_cats' => false,
1511
+ 'walker' => null,
1512
+ 'taxonomy' => $taxonomy,
1513
+ 'checked_ontop' => true,
1514
+ 'echo' => true,
1515
+ );
1516
+ } else {
1517
+ $defaults = array(
1518
+ 'selected_cats' => $this->sg->get_option( 'b_exclude_cats' ),
1519
+ 'echo' => true,
1520
+ );
1521
+ }
1522
  wp_terms_checklist( 0, $defaults );
1523
  ?>
1524
  </ul>
documentation.txt CHANGED
@@ -313,6 +313,7 @@ Release History:
313
  2018-12-18 4.1.0 Fixed security issues related to forms and external URLs
314
  2022-04-07 4.1.1 Fixed security issues and added support for WooCommerce based sitemap
315
  2022-04-07 4.1.2 Fixed security issues and features like support for WooCommerce based sitemap
 
316
 
317
 
318
 
313
  2018-12-18 4.1.0 Fixed security issues related to forms and external URLs
314
  2022-04-07 4.1.1 Fixed security issues and added support for WooCommerce based sitemap
315
  2022-04-07 4.1.2 Fixed security issues and features like support for WooCommerce based sitemap
316
+ 2022-05-31 4.1.3 Added backward compatibility settings, changed Google Tracking ID field to optional, fixed PHP warnings
317
 
318
 
319
 
google-sitemap-generator-prio-provider-base.php CHANGED
File without changes
img/icon-amazon.gif CHANGED
File without changes
img/icon-arne.gif CHANGED
File without changes
img/icon-bing.gif CHANGED
File without changes
img/icon-donate.gif CHANGED
File without changes
img/icon-email.gif CHANGED
File without changes
img/icon-google.gif CHANGED
File without changes
img/icon-help.png CHANGED
File without changes
img/icon-paypal.gif CHANGED
File without changes
img/icon-trac.gif CHANGED
File without changes
img/icon-wordpress.gif CHANGED
File without changes
img/icon-yahoo.gif CHANGED
File without changes
img/sitemap.js CHANGED
File without changes
lang/sitemap-ar.mo CHANGED
File without changes
lang/sitemap-ar.po CHANGED
File without changes
lang/sitemap-bg_BG.mo CHANGED
File without changes
lang/sitemap-bg_BG.po CHANGED
File without changes
lang/sitemap-by_BY.mo CHANGED
File without changes
lang/sitemap-by_BY.po CHANGED
File without changes
lang/sitemap-cs_CZ.mo CHANGED
File without changes
lang/sitemap-cs_CZ.po CHANGED
File without changes
lang/sitemap-da_DK.mo CHANGED
File without changes
lang/sitemap-da_DK.po CHANGED
File without changes
lang/sitemap-de_DE.mo CHANGED
File without changes
lang/sitemap-de_DE.po CHANGED
File without changes
lang/sitemap-es_ES.mo CHANGED
File without changes
lang/sitemap-es_ES.po CHANGED
File without changes
lang/sitemap-fi_FI.mo CHANGED
File without changes
lang/sitemap-fi_FI.po CHANGED
File without changes
lang/sitemap-fr_FR.mo CHANGED
File without changes
lang/sitemap-fr_FR.po CHANGED
File without changes
lang/sitemap-hi_IN.mo CHANGED
File without changes
lang/sitemap-hi_IN.po CHANGED
File without changes
lang/sitemap-hu_HU.mo CHANGED
File without changes
lang/sitemap-hu_HU.po CHANGED
File without changes
lang/sitemap-it_IT.mo CHANGED
File without changes
lang/sitemap-it_IT.po CHANGED
File without changes
lang/sitemap-ja.mo CHANGED
File without changes
lang/sitemap-ja.po CHANGED
File without changes
lang/sitemap-ja_EUC.mo CHANGED
File without changes
lang/sitemap-ja_EUC.po CHANGED
File without changes
lang/sitemap-ja_SJIS.mo CHANGED
File without changes
lang/sitemap-ja_SJIS.po CHANGED
File without changes
lang/sitemap-ja_UTF.mo CHANGED
File without changes
lang/sitemap-ja_UTF.po CHANGED
File without changes
lang/sitemap-ko_KR.mo CHANGED
File without changes
lang/sitemap-ko_KR.po CHANGED
File without changes
lang/sitemap-nl_NL.mo CHANGED
File without changes
lang/sitemap-nl_NL.po CHANGED
File without changes
lang/sitemap-pl_PL.mo CHANGED
File without changes
lang/sitemap-pl_PL.po CHANGED
File without changes
lang/sitemap-pt_BR.mo CHANGED
File without changes
lang/sitemap-pt_BR.po CHANGED
File without changes
lang/sitemap-pt_PT.mo CHANGED
File without changes
lang/sitemap-pt_PT.po CHANGED
File without changes
lang/sitemap-ru_RU.mo CHANGED
File without changes
lang/sitemap-ru_RU.po CHANGED
File without changes
lang/sitemap-sl_SI.mo CHANGED
File without changes
lang/sitemap-sl_SI.po CHANGED
File without changes
lang/sitemap-sr_RS.mo CHANGED
File without changes
lang/sitemap-sr_RS.po CHANGED
File without changes
lang/sitemap-sv_SE.mo CHANGED
File without changes
lang/sitemap-sv_SE.po CHANGED
File without changes
lang/sitemap-tr_TR.mo CHANGED
File without changes
lang/sitemap-tr_TR.po CHANGED
File without changes
lang/sitemap-uk_UA.mo CHANGED
File without changes
lang/sitemap-uk_UA.po CHANGED
File without changes
lang/sitemap-zh_CN.mo CHANGED
File without changes
lang/sitemap-zh_CN.po CHANGED
File without changes
lang/sitemap-zh_TW.mo CHANGED
File without changes
lang/sitemap-zh_TW.po CHANGED
File without changes
lang/sitemap.pot CHANGED
File without changes
license.txt CHANGED
File without changes
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === XML Sitemaps ===
2
- Contributors: arnee
3
  Tags: seo, google, bing, yahoo, msn, ask, live, sitemaps, google sitemaps, xml sitemap, xml
4
  Requires at least: 3.3
5
  Tested up to: 5.9.3
6
- Stable tag: 4.1.2
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -77,6 +77,11 @@ The WordPress.org repository is just another place to download this plugin. I do
77
 
78
  == Changelog ==
79
 
 
 
 
 
 
80
  = 4.1.2 (2022-04-15) =
81
  * Fixed security issue related to Cross-Site Scripting attacks on debug page
82
  * Fixed HTTP error while generating sitemap (because of conflict of www and now www site)
@@ -89,16 +94,16 @@ The WordPress.org repository is just another place to download this plugin. I do
89
  * Added option to list custom post in the archive sitemap
90
 
91
  = 4.1.1 (2022-04-07) =
92
- * fix security issue related to Cross-Site Scripting attacks on debug page
93
- * fix HTTP error while generating sitemap (because of conflict of www and now www site)
94
- * fix handles the removal of Wordpress native sitemap entry from robots.txt
95
- * added option for flush database rewrite on deactivate plugin
96
- * added options for split the custom categories into multiple sitemap by custom taxonomy
97
- * added options to omit the posts which added in robots.txt to disallow
98
- * added option to set links per page for tags and categories
99
- * added option for provide the custom name for the sitemap.xml file
100
- * added option for custom post type's list into the archive sitemap
101
- * added support of manage priorities and frequencies for products category
102
 
103
  = 4.1.0 (2018-12-18) =
104
  * Fixed security issue related to escaping external URLs
1
  === XML Sitemaps ===
2
+ Contributors: auctollo
3
  Tags: seo, google, bing, yahoo, msn, ask, live, sitemaps, google sitemaps, xml sitemap, xml
4
  Requires at least: 3.3
5
  Tested up to: 5.9.3
6
+ Stable tag: 4.1.3
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
77
 
78
  == Changelog ==
79
 
80
+ = 4.1.3 (2022-05-31) =
81
+ * Added backward compatibility settings
82
+ * Changed Google Tracking ID field to optional
83
+ * Fixed PHP warnings
84
+
85
  = 4.1.2 (2022-04-15) =
86
  * Fixed security issue related to Cross-Site Scripting attacks on debug page
87
  * Fixed HTTP error while generating sitemap (because of conflict of www and now www site)
94
  * Added option to list custom post in the archive sitemap
95
 
96
  = 4.1.1 (2022-04-07) =
97
+ * Fix security issue related to Cross-Site Scripting attacks on debug page
98
+ * Fix HTTP error while generating sitemap (because of conflict of www and now www site)
99
+ * Fix handles the removal of Wordpress native sitemap entry from robots.txt
100
+ * Added option for flush database rewrite on deactivate plugin
101
+ * Added options for split the custom categories into multiple sitemap by custom taxonomy
102
+ * Added options to omit the posts which added in robots.txt to disallow
103
+ * Added option to set links per page for tags and categories
104
+ * Added option for provide the custom name for the sitemap.xml file
105
+ * Added option for custom post type's list into the archive sitemap
106
+ * Added support of manage priorities and frequencies for products category
107
 
108
  = 4.1.0 (2018-12-18) =
109
  * Fixed security issue related to escaping external URLs
sitemap-core.php CHANGED
@@ -385,18 +385,18 @@ class GoogleSitemapGeneratorPage {
385
  }
386
 
387
  $r = '';
388
- $r .= '\\t<url>\\n';
389
- $r .= '\\t\\t<loc>' . $this->escape_xml( esc_url_raw( $this->url ) ) . '</loc>\\n';
390
  if ( $this->last_mod > 0 ) {
391
- $r .= '\\t\\t<lastmod>' . gmdate( 'Y-m-d\TH:i:s+00:00', $this->last_mod ) . '</lastmod>\\n';
392
  }
393
  if ( ! empty( $this->change_freq ) ) {
394
- $r .= '\\t\\t<changefreq>' . $this->change_freq . '</changefreq>\\n';
395
  }
396
  if ( false !== $this->priority && '' !== $this->priority ) {
397
- $r .= '\\t\\t<priority>' . number_format( $this->priority, 1 ) . '</priority>\\n';
398
  }
399
- $r .= '\\t</url>\\n';
400
  return $r;
401
  }
402
 
@@ -869,7 +869,7 @@ final class GoogleSitemapGenerator {
869
  *
870
  * @since 4.0
871
  */
872
- private function __construct() {
873
  }
874
 
875
  /**
@@ -1353,7 +1353,7 @@ final class GoogleSitemapGenerator {
1353
  $this->options['sm_in_pages'] = true; // Include static pages .
1354
  $this->options['sm_in_cats'] = false; // Include categories .
1355
  $this->options['sm_product_tags'] = true; // Hide product tags in sitemap .
1356
- $this->options['sm_in_product_cat'] = false; // Include product categories .
1357
  $this->options['sm_in_arch'] = false; // Include archives .
1358
  $this->options['sm_in_auth'] = false; // Include author pages .
1359
  $this->options['sm_in_tags'] = false; // Include tag pages .
@@ -1508,7 +1508,6 @@ final class GoogleSitemapGenerator {
1508
  global $wpdb;
1509
 
1510
  $needs_update = false;
1511
-
1512
  $pages_string = $wpdb->get_var( "SELECT option_value FROM $wpdb->options WHERE option_name = 'sm_cpages'" ); // db call ok; no-cache ok.
1513
 
1514
  // Class sm_page was renamed with 3.0 -> rename it in serialized value for compatibility .
@@ -2304,15 +2303,6 @@ final class GoogleSitemapGenerator {
2304
  );
2305
  }
2306
 
2307
- if ( $this->get_option( 'b_pingmsn' ) ) {
2308
- $pings['bing'] = array(
2309
- 'name' => 'Bing',
2310
- 'url' => 'http://www.bing.com/webmaster/ping.aspx?siteMap=%s',
2311
- 'check' => ' ',
2312
- // No way to check, response is IP-language-based :-( .
2313
- );
2314
- }
2315
-
2316
  foreach ( $pings as $service_id => $service ) {
2317
  $url = str_replace( '%s', rawurlencode( $ping_url ), $service['url'] );
2318
  $status->start_ping( $service_id, $url, $service['name'] );
385
  }
386
 
387
  $r = '';
388
+ $r .= "\t<url>\n";
389
+ $r .= "\t\t<loc>" . $this->escape_xml( esc_url_raw( $this->url ) ) . "</loc>\n";
390
  if ( $this->last_mod > 0 ) {
391
+ $r .= "\t\t<lastmod>" . gmdate( 'Y-m-d\TH:i:s+00:00', $this->last_mod ) . "</lastmod>\n";
392
  }
393
  if ( ! empty( $this->change_freq ) ) {
394
+ $r .= "\t\t<changefreq>" . $this->change_freq . "</changefreq>\n";
395
  }
396
  if ( false !== $this->priority && '' !== $this->priority ) {
397
+ $r .= "\t\t<priority>" . number_format( $this->priority, 1 ) . "</priority>\n";
398
  }
399
+ $r .= "\t</url>\n";
400
  return $r;
401
  }
402
 
869
  *
870
  * @since 4.0
871
  */
872
+ public function __construct() {
873
  }
874
 
875
  /**
1353
  $this->options['sm_in_pages'] = true; // Include static pages .
1354
  $this->options['sm_in_cats'] = false; // Include categories .
1355
  $this->options['sm_product_tags'] = true; // Hide product tags in sitemap .
1356
+ $this->options['sm_in_product_cat'] = true; // Include product categories .
1357
  $this->options['sm_in_arch'] = false; // Include archives .
1358
  $this->options['sm_in_auth'] = false; // Include author pages .
1359
  $this->options['sm_in_tags'] = false; // Include tag pages .
1508
  global $wpdb;
1509
 
1510
  $needs_update = false;
 
1511
  $pages_string = $wpdb->get_var( "SELECT option_value FROM $wpdb->options WHERE option_name = 'sm_cpages'" ); // db call ok; no-cache ok.
1512
 
1513
  // Class sm_page was renamed with 3.0 -> rename it in serialized value for compatibility .
2303
  );
2304
  }
2305
 
 
 
 
 
 
 
 
 
 
2306
  foreach ( $pings as $service_id => $service ) {
2307
  $url = str_replace( '%s', rawurlencode( $ping_url ), $service['url'] );
2308
  $status->start_ping( $service_id, $url, $service['name'] );
sitemap-wpmu.php CHANGED
File without changes
sitemap.php CHANGED
@@ -18,7 +18,7 @@
18
  * Plugin URI: http://www.arnebrachhold.de/redir/sitemap-home/
19
  * Description: This plugin improves SEO using sitemaps for best indexation by search engines like Google, Bing, Yahoo and others.
20
  * Version: 4.1.3
21
- * Author: Arne Brachhold
22
  * Author URI: http://www.arnebrachhold.de/
23
  * Text Domain: sitemap
24
  * Domain Path: /lang
18
  * Plugin URI: http://www.arnebrachhold.de/redir/sitemap-home/
19
  * Description: This plugin improves SEO using sitemaps for best indexation by search engines like Google, Bing, Yahoo and others.
20
  * Version: 4.1.3
21
+ * Author: Auctollo
22
  * Author URI: http://www.arnebrachhold.de/
23
  * Text Domain: sitemap
24
  * Domain Path: /lang
sitemap.xsl CHANGED
File without changes