Plugin Directory

Changeset 1745572


Ignore:
Timestamp:
10/12/2017 04:55:17 PM (8 years ago)
Author:
wpsimpleseo
Message:

Adding version 1.0.6

Location:
wp-simple-seo/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-simple-seo/trunk/includes/global/sitemaps.php

    r1639262 r1745572  
    254254                    $entries[] = array(
    255255                        'loc'       => $url . '/sitemap_' . $sitemap_type . '_' . $type . '_' . $i . '.xml',
    256                         'lastmod'   => '',
     256                        'lastmod'   => date( 'Y-m-d' ),
    257257                    );
    258258                }
     
    396396
    397397        // 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 ) ) ) {
    399399            return $entries;
    400400        }
     
    405405        ) );
    406406
     407        // Get Taxonomy Object
     408        $taxonomy_object = get_taxonomy( $taxonomy );
     409
    407410        // Bail if no Terms exist
    408411        if ( is_wp_error( $terms ) || count( $terms ) == 0 ) {
     
    413416        $entries = array();
    414417        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
    415436            $entries[] = array(
    416437                'loc'       => get_term_link( $term ),
    417                 'lastmod'   => '',
    418                 'changefreq'=> 'weekly',
     438                'lastmod'   => date( 'Y-m-d', strtotime( $last_modified_date ) ),
     439                'changefreq'=> 'daily',
    419440                'priority'  => 1,
    420441            );
     
    425446
    426447        // 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 );
    428449
    429450        return $entries;
     
    549570        }
    550571
    551         // For each Term, build the sitemap
     572        // For each Author, build the sitemap
    552573        $entries = array();
    553574
    554575        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
    555588            $entries[] = array(
    556589                'loc'       => get_author_posts_url( $user->ID ),
    557                 'lastmod'   => '',
     590                'lastmod'   => date( 'Y-m-d', strtotime( $last_modified_date ) ),
    558591                'changefreq'=> 'daily',
    559592                'priority'  => 1,
  • wp-simple-seo/trunk/languages/wp-simple-seo.pot

    r1600522 r1745572  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WP Simple SEO 1.0.2\n"
     5"Project-Id-Version: WP Simple SEO 1.0.6\n"
    66"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"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=UTF-8\n"
     
    1717msgstr ""
    1818
    19 #: _modules/licensing/lum.php:294
     19#: _modules/licensing/lum.php:303
    2020msgid "installed"
    2121msgstr ""
    2222
    23 #: _modules/licensing/lum.php:302
     23#: _modules/licensing/lum.php:311
    2424msgid "activated"
    2525msgstr ""
    2626
    27 #: _modules/licensing/lum.php:310
     27#: _modules/licensing/lum.php:319
    2828msgid "deactivated"
    2929msgstr ""
    3030
    31 #: _modules/licensing/lum.php:314
     31#: _modules/licensing/lum.php:323
    3232msgid "Invalid action specified!"
    3333msgstr ""
    3434
    35 #: _modules/licensing/lum.php:323
     35#: _modules/licensing/lum.php:332
    3636msgid "Addon %s successfully"
    3737msgstr ""
    3838
    39 #: _modules/licensing/lum.php:341 _modules/licensing/views/addons.php:5
     39#: _modules/licensing/lum.php:350 _modules/licensing/views/addons.php:5
    4040msgid "Addons"
    4141msgstr ""
    4242
    43 #: _modules/licensing/lum.php:485
     43#: _modules/licensing/lum.php:499
    4444msgid "%s: Could not connect to the licensing server. Please try again later."
    4545msgstr ""
    4646
    47 #: _modules/licensing/lum.php:497
     47#: _modules/licensing/lum.php:511
    4848msgid ""
    4949"%s: Response from the licensing server was invalid. Please try again later."
    5050msgstr ""
    5151
    52 #: _modules/licensing/lum.php:509
     52#: _modules/licensing/lum.php:523
    5353msgid ""
    5454"%s: Response from the licensing server was not in the expected format. "
     
    5656msgstr ""
    5757
    58 #: _modules/licensing/lum.php:656
     58#: _modules/licensing/lum.php:670
    5959msgid "Could not fetch the list of Addons"
    6060msgstr ""
    6161
    62 #: _modules/licensing/lum.php:668
     62#: _modules/licensing/lum.php:682
    6363msgid "Your license does not include this Addon."
    6464msgstr ""
    6565
    66 #: _modules/licensing/lum.php:673
     66#: _modules/licensing/lum.php:687
    6767msgid ""
    6868"Your license includes this Addon, however your license has expired. To "
     
    7070msgstr ""
    7171
    72 #: _modules/licensing/lum.php:679
     72#: _modules/licensing/lum.php:693
    7373msgid ""
    7474"This Addon does not have a file specified to be installed. Please contact "
     
    7676msgstr ""
    7777
    78 #: _modules/licensing/lum.php:694
     78#: _modules/licensing/lum.php:708
    7979msgid "Addon could not be installed. Please try again."
    8080msgstr ""
    8181
    82 #: _modules/licensing/lum.php:702
     82#: _modules/licensing/lum.php:716
    8383msgid "Addon could not be found."
    8484msgstr ""
    8585
    86 #: _modules/licensing/lum.php:786
     86#: _modules/licensing/lum.php:800
    8787msgid "Please keep Addons updated, for best performance and security."
    8888msgstr ""
     
    398398msgstr ""
    399399
    400 #. #-#-#-#-#  wp-simple-seo.pot (WP Simple SEO 1.0.2)  #-#-#-#-#
     400#. #-#-#-#-#  wp-simple-seo.pot (WP Simple SEO 1.0.6)  #-#-#-#-#
    401401#. 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)  #-#-#-#-#
    403403#. Author of the plugin/theme
    404404#: includes/admin/post.php:198 includes/admin/term.php:187
     
    14301430msgstr ""
    14311431
    1432 #. #-#-#-#-#  wp-simple-seo.pot (WP Simple SEO 1.0.2)  #-#-#-#-#
     1432#. #-#-#-#-#  wp-simple-seo.pot (WP Simple SEO 1.0.6)  #-#-#-#-#
    14331433#. 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)  #-#-#-#-#
    14351435#. Author URI of the plugin/theme
    14361436msgid "https://wpsimpleseo.com"
  • wp-simple-seo/trunk/readme.txt

    r1735386 r1745572  
    158158== Changelog ==
    159159
     160= 1.0.6 =
     161* Fix: Invalid <lastmod> date on Taxonomy XML Sitemaps
     162* Fix: Invalid <lastmod> date on Author XML Sitemaps
     163
    160164= 1.0.5 =
    161165* Fix: JS error on preview.js when TinyMCE is not initialised
  • wp-simple-seo/trunk/wp-simple-seo.php

    r1735386 r1745572  
    33* Plugin Name: WP Simple SEO
    44* Plugin URI: https://wpsimpleseo.com
    5 * Version: 1.0.5
     5* Version: 1.0.6
    66* Author: WP Simple SEO
    77* Author URI: https://wpsimpleseo.com
     
    5959        $this->plugin->folder       = plugin_dir_path( __FILE__ );
    6060        $this->plugin->url          = plugin_dir_url( __FILE__ );
    61         $this->plugin->version      = '1.0.5';
     61        $this->plugin->version      = '1.0.6';
    6262        $this->plugin->home_url     = 'https://wpsimpleseo.com';
    6363        $this->plugin->support_url  = 'https://wpsimpleseo.com/documentation/support';
Note: See TracChangeset for help on using the changeset viewer.