Changeset 3101922
- Timestamp:
- 06/12/2024 05:38:16 PM (21 months ago)
- Location:
- companion-sitemap-generator
- Files:
-
- 5 edited
- 2 copied
-
tags/4.5.9.3 (copied) (copied from companion-sitemap-generator/trunk)
-
tags/4.5.9.3/companion_sitemap.php (modified) (3 diffs)
-
tags/4.5.9.3/csg_functions.php (modified) (3 diffs)
-
tags/4.5.9.3/readme.txt (copied) (copied from companion-sitemap-generator/trunk/readme.txt) (2 diffs)
-
trunk/companion_sitemap.php (modified) (3 diffs)
-
trunk/csg_functions.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
companion-sitemap-generator/tags/4.5.9.3/companion_sitemap.php
r3055592 r3101922 2 2 /* 3 3 * Plugin Name: Companion Sitemap Generator 4 * Plugin URI: http ://codeermeneer.nl/portfolio/companion-sitemap-generator/4 * Plugin URI: https://plugins.wijzijnqreative.nl/plugin/companion-sitemap-generator/ 5 5 * Description: Easy to use XML & HTML sitemap generator and robots editor. 6 * Version: 4.5.9. 26 * Version: 4.5.9.3 7 7 * Author: Papin Schipper 8 * Author URI: http ://codeermeneer.nl8 * Author URI: https://plugins.wijzijnqreative.nl/ 9 9 * Contributors: papin 10 10 * License: GPLv2 or later … … 174 174 if( !csg_check_if_exists( 'ping_google' ) ) $wpdb->insert( $table_name, array( 'name' => 'ping_google', 'onoroff' => '' ) ); // Ping Google 175 175 if( !csg_check_if_exists( 'ping_bing' ) ) $wpdb->insert( $table_name, array( 'name' => 'ping_bing', 'onoroff' => '' ) ); // Ping Bing 176 if( !csg_check_if_exists( 'ping_yandex' ) ) $wpdb->insert( $table_name, array( 'name' => 'ping_yandex', 'onoroff' => '' ) ); // Ping Bing176 if( !csg_check_if_exists( 'ping_yandex' ) ) $wpdb->insert( $table_name, array( 'name' => 'ping_yandex', 'onoroff' => '' ) ); // Ping Yandex 177 177 178 178 } … … 206 206 // Update the database 207 207 function csg_update_db_check() { 208 209 208 if ( get_site_option( 'csg_db_version' ) != csg_db_version() ) { 210 209 csg_database_creation(); 211 210 update_option( "csg_db_version", csg_db_version() ); 212 211 } 213 214 212 } 215 213 add_action( 'plugins_loaded', 'csg_update_db_check' ); -
companion-sitemap-generator/tags/4.5.9.3/csg_functions.php
r3043127 r3101922 143 143 // Enable for major updates 144 144 $configs = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$table_name} WHERE name = %s", "additionalpages" ) ); 145 foreach ( $configs as $config ) {146 if( $config->onorof != '') $pages[] = $config->onoroff;145 foreach( $configs as $config ) { 146 if( isset( $config->onoroff ) ) $pages[] = $config->onoroff; 147 147 } 148 148 … … 323 323 if ( !empty( csg_get_additionalpages() ) ) { 324 324 foreach( csg_get_additionalpages() as $additionalpage ) { 325 $csg_sitemap_content .= csg_sitemap_line_additionalpages( sanitize_text_field( $additionalpage ) );325 if( $additionalpage != '' ) $csg_sitemap_content .= csg_sitemap_line_additionalpages( sanitize_text_field( $additionalpage ) ); 326 326 } 327 327 } … … 439 439 if( csg_xml_in_html() ) $additionalpages[] = csg_sitemap_url(); 440 440 441 if ( !empty( $additionalpages ) ) {441 if ( !empty( $additionalpages ) && $additionalpages[0] != '' ) { 442 442 443 443 $additionalpages_label = __( 'Additional pages', 'companion-sitemap-generator' ); -
companion-sitemap-generator/tags/4.5.9.3/readme.txt
r3101671 r3101922 5 5 Requires at least: 5.3.0 6 6 Tested up to: 6.5 7 Stable tag: 4.5.9. 27 Stable tag: 4.5.9.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 67 67 68 68 == Changelog == 69 70 = 4.5.9.3 (June 12, 2024) = 71 * Fixed Additional pages being blank 69 72 70 73 = 4.5.9.2 (March 20, 2024) = -
companion-sitemap-generator/trunk/companion_sitemap.php
r3055592 r3101922 2 2 /* 3 3 * Plugin Name: Companion Sitemap Generator 4 * Plugin URI: http ://codeermeneer.nl/portfolio/companion-sitemap-generator/4 * Plugin URI: https://plugins.wijzijnqreative.nl/plugin/companion-sitemap-generator/ 5 5 * Description: Easy to use XML & HTML sitemap generator and robots editor. 6 * Version: 4.5.9. 26 * Version: 4.5.9.3 7 7 * Author: Papin Schipper 8 * Author URI: http ://codeermeneer.nl8 * Author URI: https://plugins.wijzijnqreative.nl/ 9 9 * Contributors: papin 10 10 * License: GPLv2 or later … … 174 174 if( !csg_check_if_exists( 'ping_google' ) ) $wpdb->insert( $table_name, array( 'name' => 'ping_google', 'onoroff' => '' ) ); // Ping Google 175 175 if( !csg_check_if_exists( 'ping_bing' ) ) $wpdb->insert( $table_name, array( 'name' => 'ping_bing', 'onoroff' => '' ) ); // Ping Bing 176 if( !csg_check_if_exists( 'ping_yandex' ) ) $wpdb->insert( $table_name, array( 'name' => 'ping_yandex', 'onoroff' => '' ) ); // Ping Bing176 if( !csg_check_if_exists( 'ping_yandex' ) ) $wpdb->insert( $table_name, array( 'name' => 'ping_yandex', 'onoroff' => '' ) ); // Ping Yandex 177 177 178 178 } … … 206 206 // Update the database 207 207 function csg_update_db_check() { 208 209 208 if ( get_site_option( 'csg_db_version' ) != csg_db_version() ) { 210 209 csg_database_creation(); 211 210 update_option( "csg_db_version", csg_db_version() ); 212 211 } 213 214 212 } 215 213 add_action( 'plugins_loaded', 'csg_update_db_check' ); -
companion-sitemap-generator/trunk/csg_functions.php
r3043127 r3101922 143 143 // Enable for major updates 144 144 $configs = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$table_name} WHERE name = %s", "additionalpages" ) ); 145 foreach ( $configs as $config ) {146 if( $config->onorof != '') $pages[] = $config->onoroff;145 foreach( $configs as $config ) { 146 if( isset( $config->onoroff ) ) $pages[] = $config->onoroff; 147 147 } 148 148 … … 323 323 if ( !empty( csg_get_additionalpages() ) ) { 324 324 foreach( csg_get_additionalpages() as $additionalpage ) { 325 $csg_sitemap_content .= csg_sitemap_line_additionalpages( sanitize_text_field( $additionalpage ) );325 if( $additionalpage != '' ) $csg_sitemap_content .= csg_sitemap_line_additionalpages( sanitize_text_field( $additionalpage ) ); 326 326 } 327 327 } … … 439 439 if( csg_xml_in_html() ) $additionalpages[] = csg_sitemap_url(); 440 440 441 if ( !empty( $additionalpages ) ) {441 if ( !empty( $additionalpages ) && $additionalpages[0] != '' ) { 442 442 443 443 $additionalpages_label = __( 'Additional pages', 'companion-sitemap-generator' ); -
companion-sitemap-generator/trunk/readme.txt
r3101671 r3101922 5 5 Requires at least: 5.3.0 6 6 Tested up to: 6.5 7 Stable tag: 4.5.9. 27 Stable tag: 4.5.9.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 67 67 68 68 == Changelog == 69 70 = 4.5.9.3 (June 12, 2024) = 71 * Fixed Additional pages being blank 69 72 70 73 = 4.5.9.2 (March 20, 2024) =
Note: See TracChangeset
for help on using the changeset viewer.