Changeset 1745572
- Timestamp:
- 10/12/2017 04:55:17 PM (8 years ago)
- Location:
- wp-simple-seo/trunk
- Files:
-
- 4 edited
-
includes/global/sitemaps.php (modified) (6 diffs)
-
languages/wp-simple-seo.pot (modified) (7 diffs)
-
readme.txt (modified) (1 diff)
-
wp-simple-seo.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-simple-seo/trunk/includes/global/sitemaps.php
r1639262 r1745572 254 254 $entries[] = array( 255 255 'loc' => $url . '/sitemap_' . $sitemap_type . '_' . $type . '_' . $i . '.xml', 256 'lastmod' => '',256 'lastmod' => date( 'Y-m-d' ), 257 257 ); 258 258 } … … 396 396 397 397 // If caching is enabled, and we have data in our transient, return the data 398 if ( false !== ( $entries = WP_Simple_SEO_Cache::get_instance()->get( 'sitemap_taxonomies_' . $taxonomy . '_' . $page) ) ) {398 if ( false !== ( $entries = WP_Simple_SEO_Cache::get_instance()->get( 'sitemap_taxonomies_' . $taxonomy ) ) ) { 399 399 return $entries; 400 400 } … … 405 405 ) ); 406 406 407 // Get Taxonomy Object 408 $taxonomy_object = get_taxonomy( $taxonomy ); 409 407 410 // Bail if no Terms exist 408 411 if ( is_wp_error( $terms ) || count( $terms ) == 0 ) { … … 413 416 $entries = array(); 414 417 foreach ( $terms as $term ) { 418 // Fetch the most recently published or updated Post belonging to this Term, to establish 419 // the lastmod date. 420 $query = new WP_Query( array( 421 'post_type' => $taxonomy_object->object_type, 422 'tax_query' => array( 423 array( 424 'taxonomy' => $taxonomy, 425 'terms' => $term, 426 ), 427 ), 428 'orderby' => 'modified', 429 'order' => 'DESC', 430 'posts_per_page' => 1, 431 ) ); 432 433 $last_modified_date = ( ( count( $query->posts ) == 1 ) ? $query->posts[0]->post_modified_gmt : 0 ); 434 435 // Add entry 415 436 $entries[] = array( 416 437 'loc' => get_term_link( $term ), 417 'lastmod' => '',418 'changefreq'=> ' weekly',438 'lastmod' => date( 'Y-m-d', strtotime( $last_modified_date ) ), 439 'changefreq'=> 'daily', 419 440 'priority' => 1, 420 441 ); … … 425 446 426 447 // Cache entries for future use, if caching is enabled 427 WP_Simple_SEO_Cache::get_instance()->set( 'sitemap_taxonomies_' . $taxonomy . '_' . $page, $entries );448 WP_Simple_SEO_Cache::get_instance()->set( 'sitemap_taxonomies_' . $taxonomy, $entries ); 428 449 429 450 return $entries; … … 549 570 } 550 571 551 // For each Term, build the sitemap572 // For each Author, build the sitemap 552 573 $entries = array(); 553 574 554 575 foreach ( $users as $user ) { 576 // Fetch the most recently published or updated Post belonging to this Author, to establish 577 // the lastmod date. 578 $query = new WP_Query( array( 579 'post_type' => 'any', 580 'author' => $user->ID, 581 'orderby' => 'modified', 582 'order' => 'DESC', 583 'posts_per_page' => 1, 584 ) ); 585 586 $last_modified_date = ( ( count( $query->posts ) == 1 ) ? $query->posts[0]->post_modified_gmt : 0 ); 587 555 588 $entries[] = array( 556 589 'loc' => get_author_posts_url( $user->ID ), 557 'lastmod' => '',590 'lastmod' => date( 'Y-m-d', strtotime( $last_modified_date ) ), 558 591 'changefreq'=> 'daily', 559 592 'priority' => 1, -
wp-simple-seo/trunk/languages/wp-simple-seo.pot
r1600522 r1745572 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WP Simple SEO 1.0. 2\n"5 "Project-Id-Version: WP Simple SEO 1.0.6\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-simple-seo\n" 7 "POT-Creation-Date: 2017- 02-21 11:09:51+00:00\n"7 "POT-Creation-Date: 2017-10-12 16:52:25+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=UTF-8\n" … … 17 17 msgstr "" 18 18 19 #: _modules/licensing/lum.php: 29419 #: _modules/licensing/lum.php:303 20 20 msgid "installed" 21 21 msgstr "" 22 22 23 #: _modules/licensing/lum.php:3 0223 #: _modules/licensing/lum.php:311 24 24 msgid "activated" 25 25 msgstr "" 26 26 27 #: _modules/licensing/lum.php:31 027 #: _modules/licensing/lum.php:319 28 28 msgid "deactivated" 29 29 msgstr "" 30 30 31 #: _modules/licensing/lum.php:3 1431 #: _modules/licensing/lum.php:323 32 32 msgid "Invalid action specified!" 33 33 msgstr "" 34 34 35 #: _modules/licensing/lum.php:3 2335 #: _modules/licensing/lum.php:332 36 36 msgid "Addon %s successfully" 37 37 msgstr "" 38 38 39 #: _modules/licensing/lum.php:3 41_modules/licensing/views/addons.php:539 #: _modules/licensing/lum.php:350 _modules/licensing/views/addons.php:5 40 40 msgid "Addons" 41 41 msgstr "" 42 42 43 #: _modules/licensing/lum.php:4 8543 #: _modules/licensing/lum.php:499 44 44 msgid "%s: Could not connect to the licensing server. Please try again later." 45 45 msgstr "" 46 46 47 #: _modules/licensing/lum.php: 49747 #: _modules/licensing/lum.php:511 48 48 msgid "" 49 49 "%s: Response from the licensing server was invalid. Please try again later." 50 50 msgstr "" 51 51 52 #: _modules/licensing/lum.php:5 0952 #: _modules/licensing/lum.php:523 53 53 msgid "" 54 54 "%s: Response from the licensing server was not in the expected format. " … … 56 56 msgstr "" 57 57 58 #: _modules/licensing/lum.php:6 5658 #: _modules/licensing/lum.php:670 59 59 msgid "Could not fetch the list of Addons" 60 60 msgstr "" 61 61 62 #: _modules/licensing/lum.php:6 6862 #: _modules/licensing/lum.php:682 63 63 msgid "Your license does not include this Addon." 64 64 msgstr "" 65 65 66 #: _modules/licensing/lum.php:6 7366 #: _modules/licensing/lum.php:687 67 67 msgid "" 68 68 "Your license includes this Addon, however your license has expired. To " … … 70 70 msgstr "" 71 71 72 #: _modules/licensing/lum.php:6 7972 #: _modules/licensing/lum.php:693 73 73 msgid "" 74 74 "This Addon does not have a file specified to be installed. Please contact " … … 76 76 msgstr "" 77 77 78 #: _modules/licensing/lum.php: 69478 #: _modules/licensing/lum.php:708 79 79 msgid "Addon could not be installed. Please try again." 80 80 msgstr "" 81 81 82 #: _modules/licensing/lum.php:7 0282 #: _modules/licensing/lum.php:716 83 83 msgid "Addon could not be found." 84 84 msgstr "" 85 85 86 #: _modules/licensing/lum.php: 78686 #: _modules/licensing/lum.php:800 87 87 msgid "Please keep Addons updated, for best performance and security." 88 88 msgstr "" … … 398 398 msgstr "" 399 399 400 #. #-#-#-#-# wp-simple-seo.pot (WP Simple SEO 1.0. 2) #-#-#-#-#400 #. #-#-#-#-# wp-simple-seo.pot (WP Simple SEO 1.0.6) #-#-#-#-# 401 401 #. Plugin Name of the plugin/theme 402 #. #-#-#-#-# wp-simple-seo.pot (WP Simple SEO 1.0. 2) #-#-#-#-#402 #. #-#-#-#-# wp-simple-seo.pot (WP Simple SEO 1.0.6) #-#-#-#-# 403 403 #. Author of the plugin/theme 404 404 #: includes/admin/post.php:198 includes/admin/term.php:187 … … 1430 1430 msgstr "" 1431 1431 1432 #. #-#-#-#-# wp-simple-seo.pot (WP Simple SEO 1.0. 2) #-#-#-#-#1432 #. #-#-#-#-# wp-simple-seo.pot (WP Simple SEO 1.0.6) #-#-#-#-# 1433 1433 #. Plugin URI of the plugin/theme 1434 #. #-#-#-#-# wp-simple-seo.pot (WP Simple SEO 1.0. 2) #-#-#-#-#1434 #. #-#-#-#-# wp-simple-seo.pot (WP Simple SEO 1.0.6) #-#-#-#-# 1435 1435 #. Author URI of the plugin/theme 1436 1436 msgid "https://wpsimpleseo.com" -
wp-simple-seo/trunk/readme.txt
r1735386 r1745572 158 158 == Changelog == 159 159 160 = 1.0.6 = 161 * Fix: Invalid <lastmod> date on Taxonomy XML Sitemaps 162 * Fix: Invalid <lastmod> date on Author XML Sitemaps 163 160 164 = 1.0.5 = 161 165 * Fix: JS error on preview.js when TinyMCE is not initialised -
wp-simple-seo/trunk/wp-simple-seo.php
r1735386 r1745572 3 3 * Plugin Name: WP Simple SEO 4 4 * Plugin URI: https://wpsimpleseo.com 5 * Version: 1.0. 55 * Version: 1.0.6 6 6 * Author: WP Simple SEO 7 7 * Author URI: https://wpsimpleseo.com … … 59 59 $this->plugin->folder = plugin_dir_path( __FILE__ ); 60 60 $this->plugin->url = plugin_dir_url( __FILE__ ); 61 $this->plugin->version = '1.0. 5';61 $this->plugin->version = '1.0.6'; 62 62 $this->plugin->home_url = 'https://wpsimpleseo.com'; 63 63 $this->plugin->support_url = 'https://wpsimpleseo.com/documentation/support';
Note: See TracChangeset
for help on using the changeset viewer.