Changeset 2415012
- Timestamp:
- 11/09/2020 08:26:03 AM (5 years ago)
- Location:
- sitetree
- Files:
-
- 10 deleted
- 7 edited
- 32 copied
-
tags/4.5.2 (copied) (copied from sitetree/trunk)
-
tags/4.5.2/admin/admin-controller.class.php (copied) (copied from sitetree/trunk/admin/admin-controller.class.php)
-
tags/4.5.2/admin/meta-box-controller.class.php (copied) (copied from sitetree/trunk/admin/meta-box-controller.class.php) (1 diff)
-
tags/4.5.2/admin/page-controller-classes.php (copied) (copied from sitetree/trunk/admin/page-controller-classes.php) (2 diffs)
-
tags/4.5.2/admin/page-view-delegate-protocols.php (copied) (copied from sitetree/trunk/admin/page-view-delegate-protocols.php)
-
tags/4.5.2/admin/sitetree-field-view.class.php (copied) (copied from sitetree/trunk/admin/sitetree-field-view.class.php)
-
tags/4.5.2/admin/sitetree-page-view.class.php (copied) (copied from sitetree/trunk/admin/sitetree-page-view.class.php)
-
tags/4.5.2/core/builder-core.class.php (deleted)
-
tags/4.5.2/core/builders (copied) (copied from sitetree/trunk/core/builders)
-
tags/4.5.2/core/builders-interfaces.php (deleted)
-
tags/4.5.2/core/builders/builder-core.class.php (copied) (copied from sitetree/trunk/core/builders/builder-core.class.php)
-
tags/4.5.2/core/builders/builders-interfaces.php (copied) (copied from sitetree/trunk/core/builders/builders-interfaces.php)
-
tags/4.5.2/core/builders/site-tree-builder.class.php (copied) (copied from sitetree/trunk/core/builders/site-tree-builder.class.php) (1 diff)
-
tags/4.5.2/core/builders/stylesheet-builder.class.php (copied) (copied from sitetree/trunk/core/builders/stylesheet-builder.class.php)
-
tags/4.5.2/core/db-classes.php (deleted)
-
tags/4.5.2/core/db.class.php (copied) (copied from sitetree/trunk/core/db.class.php)
-
tags/4.5.2/core/filter.class.php (deleted)
-
tags/4.5.2/core/image-element.class.php (deleted)
-
tags/4.5.2/core/ping-controller.class.php (copied) (copied from sitetree/trunk/core/ping-controller.class.php)
-
tags/4.5.2/core/ping-state.class.php (copied) (copied from sitetree/trunk/core/ping-state.class.php)
-
tags/4.5.2/core/shortcode-controller.class.php (copied) (copied from sitetree/trunk/core/shortcode-controller.class.php)
-
tags/4.5.2/core/site-tree-builder.class.php (deleted)
-
tags/4.5.2/core/sitemap-builder.class.php (deleted)
-
tags/4.5.2/core/sitetree-controller.class.php (deleted)
-
tags/4.5.2/core/sitetree-delegate.class.php (copied) (copied from sitetree/trunk/core/sitetree-delegate.class.php)
-
tags/4.5.2/core/sitetree.class.php (copied) (copied from sitetree/trunk/core/sitetree.class.php)
-
tags/4.5.2/core/upgrader.class.php (copied) (copied from sitetree/trunk/core/upgrader.class.php) (2 diffs)
-
tags/4.5.2/data-model/dashboard-page-data.php (copied) (copied from sitetree/trunk/data-model/dashboard-page-data.php)
-
tags/4.5.2/data-model/data-model-classes.php (copied) (copied from sitetree/trunk/data-model/data-model-classes.php)
-
tags/4.5.2/data-model/site_tree-page-data.php (copied) (copied from sitetree/trunk/data-model/site_tree-page-data.php) (3 diffs)
-
tags/4.5.2/data-model/sitemap-page-data.php (copied) (copied from sitetree/trunk/data-model/sitemap-page-data.php)
-
tags/4.5.2/includes (copied) (copied from sitetree/trunk/includes)
-
tags/4.5.2/library/plugin.class.php (copied) (copied from sitetree/trunk/library/plugin.class.php)
-
tags/4.5.2/readme.txt (copied) (copied from sitetree/trunk/readme.txt) (3 diffs)
-
tags/4.5.2/resources/.htaccess (deleted)
-
tags/4.5.2/resources/sitetree-min.css (copied) (copied from sitetree/trunk/resources/sitetree-min.css)
-
tags/4.5.2/resources/sitetree-min.js (copied) (copied from sitetree/trunk/resources/sitetree-min.js)
-
tags/4.5.2/resources/sitetree.css (copied) (copied from sitetree/trunk/resources/sitetree.css)
-
tags/4.5.2/resources/sitetree.js (copied) (copied from sitetree/trunk/resources/sitetree.js)
-
tags/4.5.2/resources/template.xsl (deleted)
-
tags/4.5.2/sitetree.php (copied) (copied from sitetree/trunk/sitetree.php) (2 diffs)
-
tags/4.5.2/uninstall.php (copied) (copied from sitetree/trunk/uninstall.php)
-
trunk/admin/meta-box-controller.class.php (modified) (1 diff)
-
trunk/admin/page-controller-classes.php (modified) (2 diffs)
-
trunk/core/builders/site-tree-builder.class.php (modified) (1 diff)
-
trunk/core/upgrader.class.php (modified) (2 diffs)
-
trunk/data-model/site_tree-page-data.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/sitetree.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sitetree/tags/4.5.2/admin/meta-box-controller.class.php
r2402399 r2415012 112 112 $exclude_section->addField( 113 113 new SiteTreeField( 'exclude_from_shortcode_lists', 'SiteTreeMetaCheckbox', 'bool', '', 114 __( 'Shortcode-generated Lists', 'sitetree -pro' ) )114 __( 'Shortcode-generated Lists', 'sitetree' ) ) 115 115 ); 116 116 -
sitetree/tags/4.5.2/admin/page-controller-classes.php
r2405752 r2415012 506 506 507 507 if ( $server_is_local ) { 508 $node .= __( 'Pinging Disabled', 'sitetree -pro' );508 $node .= __( 'Pinging Disabled', 'sitetree' ); 509 509 } 510 510 else { … … 520 520 521 521 $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' ); 523 523 $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' ); 525 525 $node .= '</div>'; 526 526 -
sitetree/tags/4.5.2/core/builders/site-tree-builder.class.php
r2402399 r2415012 179 179 $limit = $this->getListOption( 'limit' ); 180 180 181 $this->limit = ( ( $limit && ( $limit > 0 ) ) ? $limit : 500 );181 $this->limit = ( ( $limit && ( $limit > 0 ) ) ? min( $limit, 1000 ) : 1000 ); 182 182 $this->output .= '<div class="site-tree-list-container">' . "\n"; 183 183 -
sitetree/tags/4.5.2/core/upgrader.class.php
r2372814 r2415012 139 139 $this->upgradePositionOptions(); 140 140 } 141 142 if ( version_compare( $version_to_upgrade_from, '4.5.2', '<' ) ) { 143 $this->convertLimitOptions(); 144 } 141 145 } 142 146 else { … … 382 386 return true; 383 387 } 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 } 384 403 } -
sitetree/tags/4.5.2/data-model/site_tree-page-data.php
r2402399 r2415012 16 16 'title' => __( 'List title', 'sitetree' ), 17 17 '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 ) 21 27 ); 22 28 … … 116 122 ), 117 123 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 ) 119 125 ) 120 126 )); … … 138 144 139 145 $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 ) 141 147 ); 142 148 -
sitetree/tags/4.5.2/readme.txt
r2405752 r2415012 5 5 Tags: html site map, google sitemap, image sitemap, news sitemap, shortcode 6 6 Requires at least: 5.2 7 Tested up to: 5.5. 17 Tested up to: 5.5.3 8 8 Requires PHP: 5.6.20 9 Stable tag: 4.5. 19 Stable tag: 4.5.2 10 10 License: GPLv3 11 11 License URI: https://opensource.org/licenses/GPL-3.0 … … 112 112 Yes, they are. Although the Google Sitemap and the Google News Sitemap are crawler-oriented sitemaps, they are both human-readable. 113 113 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 116 Yes, 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. 117 117 118 118 = Is SiteTree compatible with the Multisite feature of WordPress? = … … 131 131 == Upgrade Notice == 132 132 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 135 If 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. 136 136 137 137 138 138 == Changelog == 139 140 = 4.5.2 (9 November 2020) = 141 142 Raised to 1k the limit on the amount of items each list composing your Site Tree can contain. 143 139 144 140 145 = 4.5.1 (24 October 2020) = -
sitetree/tags/4.5.2/sitetree.php
r2405752 r2415012 4 4 * Plugin URI: https://luigicavalieri.com/sitetree/ 5 5 * Description: A sitemap maker for WordPress. 6 * Version: 4.5. 16 * Version: 4.5.2 7 7 * Requires: 5.2 8 8 * Author: Luigi Cavalieri … … 13 13 * 14 14 * @package SiteTree 15 * @version 4.5. 115 * @version 4.5.2 16 16 * @copyright Copyright 2020 Luigi Cavalieri. 17 17 * @license https://opensource.org/licenses/GPL-3.0 GPL v3.0 -
sitetree/trunk/admin/meta-box-controller.class.php
r2402399 r2415012 112 112 $exclude_section->addField( 113 113 new SiteTreeField( 'exclude_from_shortcode_lists', 'SiteTreeMetaCheckbox', 'bool', '', 114 __( 'Shortcode-generated Lists', 'sitetree -pro' ) )114 __( 'Shortcode-generated Lists', 'sitetree' ) ) 115 115 ); 116 116 -
sitetree/trunk/admin/page-controller-classes.php
r2405752 r2415012 506 506 507 507 if ( $server_is_local ) { 508 $node .= __( 'Pinging Disabled', 'sitetree -pro' );508 $node .= __( 'Pinging Disabled', 'sitetree' ); 509 509 } 510 510 else { … … 520 520 521 521 $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' ); 523 523 $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' ); 525 525 $node .= '</div>'; 526 526 -
sitetree/trunk/core/builders/site-tree-builder.class.php
r2402399 r2415012 179 179 $limit = $this->getListOption( 'limit' ); 180 180 181 $this->limit = ( ( $limit && ( $limit > 0 ) ) ? $limit : 500 );181 $this->limit = ( ( $limit && ( $limit > 0 ) ) ? min( $limit, 1000 ) : 1000 ); 182 182 $this->output .= '<div class="site-tree-list-container">' . "\n"; 183 183 -
sitetree/trunk/core/upgrader.class.php
r2372814 r2415012 139 139 $this->upgradePositionOptions(); 140 140 } 141 142 if ( version_compare( $version_to_upgrade_from, '4.5.2', '<' ) ) { 143 $this->convertLimitOptions(); 144 } 141 145 } 142 146 else { … … 382 386 return true; 383 387 } 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 } 384 403 } -
sitetree/trunk/data-model/site_tree-page-data.php
r2402399 r2415012 16 16 'title' => __( 'List title', 'sitetree' ), 17 17 '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 ) 21 27 ); 22 28 … … 116 122 ), 117 123 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 ) 119 125 ) 120 126 )); … … 138 144 139 145 $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 ) 141 147 ); 142 148 -
sitetree/trunk/readme.txt
r2405752 r2415012 5 5 Tags: html site map, google sitemap, image sitemap, news sitemap, shortcode 6 6 Requires at least: 5.2 7 Tested up to: 5.5. 17 Tested up to: 5.5.3 8 8 Requires PHP: 5.6.20 9 Stable tag: 4.5. 19 Stable tag: 4.5.2 10 10 License: GPLv3 11 11 License URI: https://opensource.org/licenses/GPL-3.0 … … 112 112 Yes, they are. Although the Google Sitemap and the Google News Sitemap are crawler-oriented sitemaps, they are both human-readable. 113 113 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 116 Yes, 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. 117 117 118 118 = Is SiteTree compatible with the Multisite feature of WordPress? = … … 131 131 == Upgrade Notice == 132 132 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 135 If 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. 136 136 137 137 138 138 == Changelog == 139 140 = 4.5.2 (9 November 2020) = 141 142 Raised to 1k the limit on the amount of items each list composing your Site Tree can contain. 143 139 144 140 145 = 4.5.1 (24 October 2020) = -
sitetree/trunk/sitetree.php
r2405752 r2415012 4 4 * Plugin URI: https://luigicavalieri.com/sitetree/ 5 5 * Description: A sitemap maker for WordPress. 6 * Version: 4.5. 16 * Version: 4.5.2 7 7 * Requires: 5.2 8 8 * Author: Luigi Cavalieri … … 13 13 * 14 14 * @package SiteTree 15 * @version 4.5. 115 * @version 4.5.2 16 16 * @copyright Copyright 2020 Luigi Cavalieri. 17 17 * @license https://opensource.org/licenses/GPL-3.0 GPL v3.0
Note: See TracChangeset
for help on using the changeset viewer.