Plugin Directory

Changeset 3101922


Ignore:
Timestamp:
06/12/2024 05:38:16 PM (21 months ago)
Author:
Papin
Message:

Tagging version 4.5.9.3

Location:
companion-sitemap-generator
Files:
5 edited
2 copied

Legend:

Unmodified
Added
Removed
  • companion-sitemap-generator/tags/4.5.9.3/companion_sitemap.php

    r3055592 r3101922  
    22/*
    33 * 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/
    55 * Description: Easy to use XML & HTML sitemap generator and robots editor.
    6  * Version: 4.5.9.2
     6 * Version: 4.5.9.3
    77 * Author: Papin Schipper
    8  * Author URI: http://codeermeneer.nl
     8 * Author URI: https://plugins.wijzijnqreative.nl/
    99 * Contributors: papin
    1010 * License: GPLv2 or later
     
    174174    if( !csg_check_if_exists( 'ping_google' ) )             $wpdb->insert( $table_name, array( 'name' => 'ping_google', 'onoroff' => '' ) ); // Ping Google
    175175    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 Bing
     176    if( !csg_check_if_exists( 'ping_yandex' ) )             $wpdb->insert( $table_name, array( 'name' => 'ping_yandex', 'onoroff' => '' ) ); // Ping Yandex
    177177
    178178}
     
    206206// Update the database
    207207function csg_update_db_check() {
    208 
    209208    if ( get_site_option( 'csg_db_version' ) != csg_db_version() ) {
    210209        csg_database_creation();
    211210        update_option( "csg_db_version", csg_db_version() );
    212211    }
    213 
    214212}
    215213add_action( 'plugins_loaded', 'csg_update_db_check' );
  • companion-sitemap-generator/tags/4.5.9.3/csg_functions.php

    r3043127 r3101922  
    143143    // Enable for major updates
    144144    $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;
    147147    }
    148148
     
    323323    if ( !empty( csg_get_additionalpages() ) ) {
    324324        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 ) );
    326326        }
    327327    }
     
    439439    if( csg_xml_in_html() ) $additionalpages[] = csg_sitemap_url();
    440440
    441     if ( !empty( $additionalpages ) ) {
     441    if ( !empty( $additionalpages ) && $additionalpages[0] != '' ) {
    442442
    443443        $additionalpages_label = __( 'Additional pages', 'companion-sitemap-generator' );
  • companion-sitemap-generator/tags/4.5.9.3/readme.txt

    r3101671 r3101922  
    55Requires at least: 5.3.0
    66Tested up to: 6.5
    7 Stable tag: 4.5.9.2
     7Stable tag: 4.5.9.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6767
    6868== Changelog ==
     69
     70= 4.5.9.3 (June 12, 2024) =
     71* Fixed Additional pages being blank
    6972
    7073= 4.5.9.2 (March 20, 2024) =
  • companion-sitemap-generator/trunk/companion_sitemap.php

    r3055592 r3101922  
    22/*
    33 * 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/
    55 * Description: Easy to use XML & HTML sitemap generator and robots editor.
    6  * Version: 4.5.9.2
     6 * Version: 4.5.9.3
    77 * Author: Papin Schipper
    8  * Author URI: http://codeermeneer.nl
     8 * Author URI: https://plugins.wijzijnqreative.nl/
    99 * Contributors: papin
    1010 * License: GPLv2 or later
     
    174174    if( !csg_check_if_exists( 'ping_google' ) )             $wpdb->insert( $table_name, array( 'name' => 'ping_google', 'onoroff' => '' ) ); // Ping Google
    175175    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 Bing
     176    if( !csg_check_if_exists( 'ping_yandex' ) )             $wpdb->insert( $table_name, array( 'name' => 'ping_yandex', 'onoroff' => '' ) ); // Ping Yandex
    177177
    178178}
     
    206206// Update the database
    207207function csg_update_db_check() {
    208 
    209208    if ( get_site_option( 'csg_db_version' ) != csg_db_version() ) {
    210209        csg_database_creation();
    211210        update_option( "csg_db_version", csg_db_version() );
    212211    }
    213 
    214212}
    215213add_action( 'plugins_loaded', 'csg_update_db_check' );
  • companion-sitemap-generator/trunk/csg_functions.php

    r3043127 r3101922  
    143143    // Enable for major updates
    144144    $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;
    147147    }
    148148
     
    323323    if ( !empty( csg_get_additionalpages() ) ) {
    324324        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 ) );
    326326        }
    327327    }
     
    439439    if( csg_xml_in_html() ) $additionalpages[] = csg_sitemap_url();
    440440
    441     if ( !empty( $additionalpages ) ) {
     441    if ( !empty( $additionalpages ) && $additionalpages[0] != '' ) {
    442442
    443443        $additionalpages_label = __( 'Additional pages', 'companion-sitemap-generator' );
  • companion-sitemap-generator/trunk/readme.txt

    r3101671 r3101922  
    55Requires at least: 5.3.0
    66Tested up to: 6.5
    7 Stable tag: 4.5.9.2
     7Stable tag: 4.5.9.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6767
    6868== Changelog ==
     69
     70= 4.5.9.3 (June 12, 2024) =
     71* Fixed Additional pages being blank
    6972
    7073= 4.5.9.2 (March 20, 2024) =
Note: See TracChangeset for help on using the changeset viewer.