Plugin Directory

Changeset 3341901


Ignore:
Timestamp:
08/09/2025 06:32:38 AM (8 months ago)
Author:
wijnbergdevelopments
Message:

Fixed a bug where the {{post_title}} variable was not correctly handled on taxonomy and archive page

Location:
tab-return-notifier
Files:
53 added
3 edited

Legend:

Unmodified
Added
Removed
  • tab-return-notifier/trunk/README.txt

    r3334365 r3341901  
    44Requires at least: 5.0
    55Tested up to: 6.8
    6 Stable tag: 1.2.1
     6Stable tag: 1.2.2
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    6464== Changelog ==
    6565
     66= 1.2.2 =
     67* Fixed a bug where the {{post_title}} variable was not correctly handled on taxonomy and archive page
     68
    6669= 1.2.1 =
    6770* Improved check if WooCommerce is active
     
    7982== Additional Information ==
    8083
     84This plugin is fully open source. You can find the source code here: https://github.com/Paulsky/tab-notifier
     85
    8186For more information and other WordPress plugins, visit [Wijnberg Developments](https://products.wijnberg.dev/product-category/wordpress/plugins/).
    8287
  • tab-return-notifier/trunk/includes/class-wdevs-tab-notifier-variables.php

    r3334365 r3341901  
    7777     */
    7878    protected static function get_post_title() {
     79        if ( is_singular() ) {
     80            return html_entity_decode( get_the_title() ) ?: null;
     81        } elseif ( is_category() || is_tag() || is_tax() ) {
     82            $queried_object = get_queried_object();
     83            if ( $queried_object instanceof WP_Term ) {
     84                return html_entity_decode( $queried_object->name ) ?: null;
     85            }
     86        } elseif ( is_post_type_archive() ) {
     87            $queried_object = get_queried_object();
     88            if ( $queried_object && isset( $queried_object->labels->name ) ) {
     89                return html_entity_decode( $queried_object->labels->name ) ?: null;
     90            }
     91        }
     92
    7993        return html_entity_decode( get_the_title() ) ?: null;
    8094    }
  • tab-return-notifier/trunk/wdevs-tab-notifier.php

    r3334365 r3341901  
    1717 * Plugin URI:        https://products.wijnberg.dev
    1818 * Description:       Bring visitors back to your site with animated tab notifications triggered when they switch to another browser tab.
    19  * Version:           1.2.1
     19 * Version:           1.2.2
    2020 * Author:            Wijnberg Developments
    2121 * Author URI:        https://wijnberg.dev/
     
    3939 * Rename this for your plugin and update it as you release new versions.
    4040 */
    41 define( 'WDEVS_TAB_NOTIFIER_VERSION', '1.2.1' );
     41define( 'WDEVS_TAB_NOTIFIER_VERSION', '1.2.2' );
    4242
    4343/**
Note: See TracChangeset for help on using the changeset viewer.