Plugin Directory

Changeset 2415012


Ignore:
Timestamp:
11/09/2020 08:26:03 AM (5 years ago)
Author:
_luigi
Message:

Publishing version 4.5.2

Location:
sitetree
Files:
10 deleted
7 edited
32 copied

Legend:

Unmodified
Added
Removed
  • sitetree/tags/4.5.2/admin/meta-box-controller.class.php

    r2402399 r2415012  
    112112        $exclude_section->addField(
    113113            new SiteTreeField( 'exclude_from_shortcode_lists', 'SiteTreeMetaCheckbox', 'bool', '',
    114                                __( 'Shortcode-generated Lists', 'sitetree-pro' ) )
     114                               __( 'Shortcode-generated Lists', 'sitetree' ) )
    115115        );
    116116       
  • sitetree/tags/4.5.2/admin/page-controller-classes.php

    r2405752 r2415012  
    506506
    507507        if ( $server_is_local ) {
    508             $node .= __( 'Pinging Disabled', 'sitetree-pro' );
     508            $node .= __( 'Pinging Disabled', 'sitetree' );
    509509        }
    510510        else {
     
    520520
    521521            $node .= '<div class="sitetree-ap-on-status-msg' . $hidden_on_status_msg . '">';
    522             $node .= __( 'Automatic Pinging ON', 'sitetree-pro' );
     522            $node .= __( 'Automatic Pinging ON', 'sitetree' );
    523523            $node .= '</div><div class="sitetree-ap-off-status-msg' . $hidden_off_status_msg . '">';
    524             $node .= __( 'Automatic Pinging OFF', 'sitetree-pro' );
     524            $node .= __( 'Automatic Pinging OFF', 'sitetree' );
    525525            $node .= '</div>';
    526526
  • sitetree/tags/4.5.2/core/builders/site-tree-builder.class.php

    r2402399 r2415012  
    179179        $limit       = $this->getListOption( 'limit' );
    180180
    181         $this->limit   = ( ( $limit && ( $limit > 0 ) ) ? $limit : 500 );
     181        $this->limit   = ( ( $limit && ( $limit > 0 ) ) ? min( $limit, 1000 ) : 1000 );
    182182        $this->output .= '<div class="site-tree-list-container">' . "\n";
    183183           
  • sitetree/tags/4.5.2/core/upgrader.class.php

    r2372814 r2415012  
    139139                $this->upgradePositionOptions();
    140140            }
     141
     142            if ( version_compare( $version_to_upgrade_from, '4.5.2', '<' ) ) {
     143                $this->convertLimitOptions();
     144            }
    141145        }
    142146        else {
     
    382386        return true;
    383387    }
     388
     389    /**
     390     * @since 4.5.2
     391     */
     392    private function convertLimitOptions() {
     393        $post_types = get_post_types( array( 'public' => true ) );
     394       
     395        foreach ( $post_types as $post_type ) {
     396            $limit = $this->db->getOption( 'limit', false, $post_type, 'site_tree' );
     397
     398            if ( $limit && ( $limit < 0 )  ) {
     399                $this->db->setOption( 'limit', 1000, $post_type, 'site_tree' );
     400            }
     401        }
     402    }
    384403}
  • sitetree/tags/4.5.2/data-model/site_tree-page-data.php

    r2402399 r2415012  
    1616    'title'      => __( 'List title', 'sitetree' ),
    1717    'show_count' => __( 'Posts count', 'sitetree' ),
    18     'exclude'    => array( __( 'Exclude', 'sitetree' ), __( 'Comma-separated list of IDs.', 'sitetree' ) ),
    19     'order_by'   => __( 'Order by', 'sitetree' ),
    20     'limit'      => array( __( 'Max. number of items', 'sitetree' ), __( 'Set to -1 to list all the items.', 'sitetree' ) )
     18    'exclude'    => array(
     19        __( 'Exclude', 'sitetree' ),
     20        __( 'Comma-separated list of IDs.', 'sitetree' )
     21    ),
     22    'order_by' => __( 'Order by', 'sitetree' ),
     23    'limit'    => array(
     24        __( 'Max. number of items', 'sitetree' ),
     25        __( 'Tip: to better the user experience try to not exceed 100 items.', 'sitetree' )
     26    )
    2127);
    2228
     
    116122        ),
    117123        new SiteTreeField( 'limit', 'SiteTreeNumberField', 'positive_number', $common_l10n['limit'][0],
    118                            $common_l10n['limit'][1], -1, array( 'min_value' => -1, 'max_value' => 500 )
     124                           $common_l10n['limit'][1], 100, array( 'min_value' => 10, 'max_value' => 1000 )
    119125        )     
    120126    ));
     
    138144
    139145        $fields[] = new SiteTreeField( 'limit', 'SiteTreeNumberField', 'positive_number', $common_l10n['limit'][0],
    140                                        $common_l10n['limit'][1], -1, array( 'min_value' => -1, 'max_value' => 500 )
     146                                       $common_l10n['limit'][1], 100, array( 'min_value' => 10, 'max_value' => 1000 )
    141147        );
    142148
  • sitetree/tags/4.5.2/readme.txt

    r2405752 r2415012  
    55Tags: html site map, google sitemap, image sitemap, news sitemap, shortcode
    66Requires at least: 5.2
    7 Tested up to: 5.5.1
     7Tested up to: 5.5.3
    88Requires PHP: 5.6.20
    9 Stable tag: 4.5.1
     9Stable tag: 4.5.2
    1010License: GPLv3
    1111License URI: https://opensource.org/licenses/GPL-3.0
     
    112112Yes, they are. Although the Google Sitemap and the Google News Sitemap are crawler-oriented sitemaps, they are both human-readable.
    113113
    114 = Are there limitations on how many permalinks the Google Sitemap and the News Sitemap can include? =
    115 
    116 Yes, there are. Currently the Google Sitemap has a capacity of 10k permalinks, while the Google News Sitemap can contain at most 1k permalinks.
     114= Are there limitations on the capacity of the sitemaps? =
     115
     116Yes, there are. For performance reasons the Google Sitemap has a maximum capacity of 10k permalinks, while the Google News Sitemap can contain at most 1k permalinks, as per specifications. The Site Tree's capacity is also limited, but in this case the reason is linked to usability and so, user experience. SiteTree can build an HTML Site Map composed of up to 1k items per included Content Type.
    117117
    118118= Is SiteTree compatible with the Multisite feature of WordPress? =
     
    131131== Upgrade Notice ==
    132132
    133 = 4.5.1 =
    134 
    135 If you are upgrading from SiteTree 1.5.3 your preferences about whether or not to exclude a post or page from the sitemaps will be automatically upgraded, but your general settings will be reset instead. The Change Frequency and Priority metadata are not used any more, nonetheless they will be deleted from the database with a future update.
     133= 4.5.2 =
     134
     135If you are upgrading from SiteTree 1.5.3 your preferences about whether to exclude a Post or Page from the sitemaps will be automatically upgraded, but your general settings will be reset instead. The Change Frequency and Priority metadata are not used any more, nonetheless they will be deleted from the database with a future update.
    136136
    137137
    138138== Changelog ==
     139
     140= 4.5.2 (9 November 2020) =
     141
     142Raised to 1k the limit on the amount of items each list composing your Site Tree can contain.
     143
    139144
    140145= 4.5.1 (24 October 2020) =
  • sitetree/tags/4.5.2/sitetree.php

    r2405752 r2415012  
    44 * Plugin URI: https://luigicavalieri.com/sitetree/
    55 * Description: A sitemap maker for WordPress.
    6  * Version: 4.5.1
     6 * Version: 4.5.2
    77 * Requires: 5.2
    88 * Author: Luigi Cavalieri
     
    1313 *
    1414 * @package SiteTree
    15  * @version 4.5.1
     15 * @version 4.5.2
    1616 * @copyright Copyright 2020 Luigi Cavalieri.
    1717 * @license https://opensource.org/licenses/GPL-3.0 GPL v3.0
  • sitetree/trunk/admin/meta-box-controller.class.php

    r2402399 r2415012  
    112112        $exclude_section->addField(
    113113            new SiteTreeField( 'exclude_from_shortcode_lists', 'SiteTreeMetaCheckbox', 'bool', '',
    114                                __( 'Shortcode-generated Lists', 'sitetree-pro' ) )
     114                               __( 'Shortcode-generated Lists', 'sitetree' ) )
    115115        );
    116116       
  • sitetree/trunk/admin/page-controller-classes.php

    r2405752 r2415012  
    506506
    507507        if ( $server_is_local ) {
    508             $node .= __( 'Pinging Disabled', 'sitetree-pro' );
     508            $node .= __( 'Pinging Disabled', 'sitetree' );
    509509        }
    510510        else {
     
    520520
    521521            $node .= '<div class="sitetree-ap-on-status-msg' . $hidden_on_status_msg . '">';
    522             $node .= __( 'Automatic Pinging ON', 'sitetree-pro' );
     522            $node .= __( 'Automatic Pinging ON', 'sitetree' );
    523523            $node .= '</div><div class="sitetree-ap-off-status-msg' . $hidden_off_status_msg . '">';
    524             $node .= __( 'Automatic Pinging OFF', 'sitetree-pro' );
     524            $node .= __( 'Automatic Pinging OFF', 'sitetree' );
    525525            $node .= '</div>';
    526526
  • sitetree/trunk/core/builders/site-tree-builder.class.php

    r2402399 r2415012  
    179179        $limit       = $this->getListOption( 'limit' );
    180180
    181         $this->limit   = ( ( $limit && ( $limit > 0 ) ) ? $limit : 500 );
     181        $this->limit   = ( ( $limit && ( $limit > 0 ) ) ? min( $limit, 1000 ) : 1000 );
    182182        $this->output .= '<div class="site-tree-list-container">' . "\n";
    183183           
  • sitetree/trunk/core/upgrader.class.php

    r2372814 r2415012  
    139139                $this->upgradePositionOptions();
    140140            }
     141
     142            if ( version_compare( $version_to_upgrade_from, '4.5.2', '<' ) ) {
     143                $this->convertLimitOptions();
     144            }
    141145        }
    142146        else {
     
    382386        return true;
    383387    }
     388
     389    /**
     390     * @since 4.5.2
     391     */
     392    private function convertLimitOptions() {
     393        $post_types = get_post_types( array( 'public' => true ) );
     394       
     395        foreach ( $post_types as $post_type ) {
     396            $limit = $this->db->getOption( 'limit', false, $post_type, 'site_tree' );
     397
     398            if ( $limit && ( $limit < 0 )  ) {
     399                $this->db->setOption( 'limit', 1000, $post_type, 'site_tree' );
     400            }
     401        }
     402    }
    384403}
  • sitetree/trunk/data-model/site_tree-page-data.php

    r2402399 r2415012  
    1616    'title'      => __( 'List title', 'sitetree' ),
    1717    'show_count' => __( 'Posts count', 'sitetree' ),
    18     'exclude'    => array( __( 'Exclude', 'sitetree' ), __( 'Comma-separated list of IDs.', 'sitetree' ) ),
    19     'order_by'   => __( 'Order by', 'sitetree' ),
    20     'limit'      => array( __( 'Max. number of items', 'sitetree' ), __( 'Set to -1 to list all the items.', 'sitetree' ) )
     18    'exclude'    => array(
     19        __( 'Exclude', 'sitetree' ),
     20        __( 'Comma-separated list of IDs.', 'sitetree' )
     21    ),
     22    'order_by' => __( 'Order by', 'sitetree' ),
     23    'limit'    => array(
     24        __( 'Max. number of items', 'sitetree' ),
     25        __( 'Tip: to better the user experience try to not exceed 100 items.', 'sitetree' )
     26    )
    2127);
    2228
     
    116122        ),
    117123        new SiteTreeField( 'limit', 'SiteTreeNumberField', 'positive_number', $common_l10n['limit'][0],
    118                            $common_l10n['limit'][1], -1, array( 'min_value' => -1, 'max_value' => 500 )
     124                           $common_l10n['limit'][1], 100, array( 'min_value' => 10, 'max_value' => 1000 )
    119125        )     
    120126    ));
     
    138144
    139145        $fields[] = new SiteTreeField( 'limit', 'SiteTreeNumberField', 'positive_number', $common_l10n['limit'][0],
    140                                        $common_l10n['limit'][1], -1, array( 'min_value' => -1, 'max_value' => 500 )
     146                                       $common_l10n['limit'][1], 100, array( 'min_value' => 10, 'max_value' => 1000 )
    141147        );
    142148
  • sitetree/trunk/readme.txt

    r2405752 r2415012  
    55Tags: html site map, google sitemap, image sitemap, news sitemap, shortcode
    66Requires at least: 5.2
    7 Tested up to: 5.5.1
     7Tested up to: 5.5.3
    88Requires PHP: 5.6.20
    9 Stable tag: 4.5.1
     9Stable tag: 4.5.2
    1010License: GPLv3
    1111License URI: https://opensource.org/licenses/GPL-3.0
     
    112112Yes, they are. Although the Google Sitemap and the Google News Sitemap are crawler-oriented sitemaps, they are both human-readable.
    113113
    114 = Are there limitations on how many permalinks the Google Sitemap and the News Sitemap can include? =
    115 
    116 Yes, there are. Currently the Google Sitemap has a capacity of 10k permalinks, while the Google News Sitemap can contain at most 1k permalinks.
     114= Are there limitations on the capacity of the sitemaps? =
     115
     116Yes, there are. For performance reasons the Google Sitemap has a maximum capacity of 10k permalinks, while the Google News Sitemap can contain at most 1k permalinks, as per specifications. The Site Tree's capacity is also limited, but in this case the reason is linked to usability and so, user experience. SiteTree can build an HTML Site Map composed of up to 1k items per included Content Type.
    117117
    118118= Is SiteTree compatible with the Multisite feature of WordPress? =
     
    131131== Upgrade Notice ==
    132132
    133 = 4.5.1 =
    134 
    135 If you are upgrading from SiteTree 1.5.3 your preferences about whether or not to exclude a post or page from the sitemaps will be automatically upgraded, but your general settings will be reset instead. The Change Frequency and Priority metadata are not used any more, nonetheless they will be deleted from the database with a future update.
     133= 4.5.2 =
     134
     135If you are upgrading from SiteTree 1.5.3 your preferences about whether to exclude a Post or Page from the sitemaps will be automatically upgraded, but your general settings will be reset instead. The Change Frequency and Priority metadata are not used any more, nonetheless they will be deleted from the database with a future update.
    136136
    137137
    138138== Changelog ==
     139
     140= 4.5.2 (9 November 2020) =
     141
     142Raised to 1k the limit on the amount of items each list composing your Site Tree can contain.
     143
    139144
    140145= 4.5.1 (24 October 2020) =
  • sitetree/trunk/sitetree.php

    r2405752 r2415012  
    44 * Plugin URI: https://luigicavalieri.com/sitetree/
    55 * Description: A sitemap maker for WordPress.
    6  * Version: 4.5.1
     6 * Version: 4.5.2
    77 * Requires: 5.2
    88 * Author: Luigi Cavalieri
     
    1313 *
    1414 * @package SiteTree
    15  * @version 4.5.1
     15 * @version 4.5.2
    1616 * @copyright Copyright 2020 Luigi Cavalieri.
    1717 * @license https://opensource.org/licenses/GPL-3.0 GPL v3.0
Note: See TracChangeset for help on using the changeset viewer.