Plugin Directory

Changeset 3400009


Ignore:
Timestamp:
11/20/2025 08:00:35 PM (4 months ago)
Author:
dpantazis
Message:

Apply modifications to 6.15.12.2

Location:
the-events-calendar/tags/6.15.12.2
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • the-events-calendar/tags/6.15.12.2/changelog.md

    r3399157 r3400009  
    11# Changelog
     2
     3### [6.15.12.2] 2025-11-20
     4
     5* Fix - Removes the <main /> element as a wrapper in events related pages, avoiding the calendar page rendering issues for many themes. Adds a `role="main"` to the first element printed by The Events Calendar on those pages to maintain accessibility. [TEC-5729]
    26
    37### [6.15.12.1] 2025-11-19
  • the-events-calendar/tags/6.15.12.2/common/vendor/vendor-prefixed/autoload.php

    r3399157 r3400009  
    2020require_once __DIR__ . '/composer/autoload_real.php';
    2121
    22 return ComposerAutoloaderInit58d33586284eeb71701359539ec2a13f::getLoader();
     22return ComposerAutoloaderInita04a5f17980117a8db724fd4a3e52d85::getLoader();
  • the-events-calendar/tags/6.15.12.2/common/vendor/vendor-prefixed/composer/autoload_real.php

    r3399157 r3400009  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit58d33586284eeb71701359539ec2a13f
     5class ComposerAutoloaderInita04a5f17980117a8db724fd4a3e52d85
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit58d33586284eeb71701359539ec2a13f', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInita04a5f17980117a8db724fd4a3e52d85', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \TEC\Common\Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit58d33586284eeb71701359539ec2a13f', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInita04a5f17980117a8db724fd4a3e52d85', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\TEC\Common\Composer\Autoload\ComposerStaticInit58d33586284eeb71701359539ec2a13f::getInitializer($loader));
     32        call_user_func(\TEC\Common\Composer\Autoload\ComposerStaticInita04a5f17980117a8db724fd4a3e52d85::getInitializer($loader));
    3333
    3434        $loader->setClassMapAuthoritative(true);
  • the-events-calendar/tags/6.15.12.2/common/vendor/vendor-prefixed/composer/autoload_static.php

    r3399157 r3400009  
    55namespace TEC\Common\Composer\Autoload;
    66
    7 class ComposerStaticInit58d33586284eeb71701359539ec2a13f
     7class ComposerStaticInita04a5f17980117a8db724fd4a3e52d85
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    585585    {
    586586        return \Closure::bind(function () use ($loader) {
    587             $loader->prefixLengthsPsr4 = ComposerStaticInit58d33586284eeb71701359539ec2a13f::$prefixLengthsPsr4;
    588             $loader->prefixDirsPsr4 = ComposerStaticInit58d33586284eeb71701359539ec2a13f::$prefixDirsPsr4;
    589             $loader->classMap = ComposerStaticInit58d33586284eeb71701359539ec2a13f::$classMap;
     587            $loader->prefixLengthsPsr4 = ComposerStaticInita04a5f17980117a8db724fd4a3e52d85::$prefixLengthsPsr4;
     588            $loader->prefixDirsPsr4 = ComposerStaticInita04a5f17980117a8db724fd4a3e52d85::$prefixDirsPsr4;
     589            $loader->classMap = ComposerStaticInita04a5f17980117a8db724fd4a3e52d85::$classMap;
    590590
    591591        }, null, ClassLoader::class);
  • the-events-calendar/tags/6.15.12.2/readme.txt

    r3399157 r3400009  
    44Tags: events, calendar, event, schedule, organizer
    55Donate link: https://evnt.is/29
    6 Stable tag: 6.15.12.1
     6Stable tag: 6.15.12.2
    77Requires at least: 6.6
    88Tested up to: 6.8
     
    233233== Changelog ==
    234234
     235= [6.15.12.2] 2025-11-20 =
     236
     237* Fix - Removes the <main /> element as a wrapper in events related pages, avoiding the calendar page rendering issues for many themes. Adds a `role="main"` to the first element printed by The Events Calendar on those pages to maintain accessibility. [TEC-5729]
     238
    235239= [6.15.12.1] 2025-11-19 =
    236240
  • the-events-calendar/tags/6.15.12.2/src/Tribe/Main.php

    r3399157 r3400009  
    4141        const VENUE_POST_TYPE     = 'tribe_venue';
    4242        const ORGANIZER_POST_TYPE = 'tribe_organizer';
    43         const VERSION             = '6.15.12.1';
     43        const VERSION             = '6.15.12.2';
    4444
    4545        /**
  • the-events-calendar/tags/6.15.12.2/src/Tribe/Views/V2/Template_Bootstrap.php

    r3398286 r3400009  
    314314        }
    315315
    316 
    317316        /**
    318317         * Filters the HTML for the view before we do any other logic around that.
     
    565564     *
    566565     * @since 6.15.12
     566     * @since 6.15.12.2 Changed the approach to inject the `role` attribute to the first element in the HTML instead of wrapping the entire HTML in a main element.
    567567     *
    568568     * @param string $html The HTML output from the view.
     
    572572    public function maybe_add_main_landmark( $html ) {
    573573        // Don't add a landmark if we're doing an AJAX request or if this is embed content.
    574         if ( wp_doing_ajax() || is_embed() || tribe_context()->doing_ajax() ) {
     574        if ( is_embed() || tribe_context()->doing_ajax() ) {
    575575            return $html;
    576576        }
    577577
    578         // Check if the HTML already contains a main element to avoid double-wrapping.
    579         if ( preg_match( '/<main[^>]*>/', $html ) ) {
     578        $cache = tribe_cache();
     579
     580        if ( ! empty( $cache['tec_events_views_v2_main_landmark_added'] ) ) {
    580581            return $html;
    581582        }
    582583
    583         /**
    584          * Filters the ID attribute for the main content container on TEC pages.
    585          *
    586          * This allows themes to customize the main container ID to match their skip link targets.
    587          * Common values: 'main', 'content', 'primary'.
    588          *
    589          * @since 6.15.12
    590          *
    591          * @param string $main_id The ID attribute for the main content container. Default 'main'.
    592          */
    593         $main_id = apply_filters( 'tec_events_main_container_id', 'main' );
    594 
    595         // Wrap the HTML in a main landmark.
    596         return sprintf(
    597             '<main id="%s" class="tec-events-main-content" tabindex="-1" role="main" aria-label="%s">%s</main>',
    598             esc_attr( $main_id ),
    599             esc_attr__( 'Main content', 'the-events-calendar' ),
    600             $html
    601         );
    602     }
    603 
     584        $cache['tec_events_views_v2_main_landmark_added'] = true;
     585
     586        if ( strstr( $html, 'role="main"' ) ) {
     587            // A main role is already present.
     588            return $html;
     589        }
     590
     591        return preg_replace( '/<(\w+)([^>]*)>/', '<$1$2 role="main">', $html, 1 );
     592    }
    604593}
  • the-events-calendar/tags/6.15.12.2/the-events-calendar.php

    r3399157 r3400009  
    33 * Plugin Name: The Events Calendar
    44 * Description: The Events Calendar is a carefully crafted, extensible plugin that lets you easily share your events. Beautiful. Solid. Awesome.
    5  * Version: 6.15.12.1
     5 * Version: 6.15.12.2
    66 * Requires at least: 6.6
    77 * Requires PHP: 7.4
  • the-events-calendar/tags/6.15.12.2/vendor/composer/installed.php

    r3399157 r3400009  
    22    'root' => array(
    33        'name' => 'the-events-calendar/the-events-calendar',
    4         'pretty_version' => 'dev-release/T25.moonknight.1',
    5         'version' => 'dev-release/T25.moonknight.1',
    6         'reference' => 'a8f7eb2001ed0d21237aa25bddaf920e26acddf0',
     4        'pretty_version' => 'dev-release/T25.moonknight.2',
     5        'version' => 'dev-release/T25.moonknight.2',
     6        'reference' => '6939590d50e69e9ebc00897c5f1d2ec2fc082db5',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'the-events-calendar/the-events-calendar' => array(
    14             'pretty_version' => 'dev-release/T25.moonknight.1',
    15             'version' => 'dev-release/T25.moonknight.1',
    16             'reference' => 'a8f7eb2001ed0d21237aa25bddaf920e26acddf0',
     14            'pretty_version' => 'dev-release/T25.moonknight.2',
     15            'version' => 'dev-release/T25.moonknight.2',
     16            'reference' => '6939590d50e69e9ebc00897c5f1d2ec2fc082db5',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.