Plugin Directory

Changeset 2475321


Ignore:
Timestamp:
02/16/2021 07:27:59 AM (5 years ago)
Author:
workshopbutlers
Message:

Update to version 2.13.6 from GitHub

Location:
workshop-butler
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • workshop-butler/tags/2.13.6/includes/class-wsb-integration.php

    r2357023 r2475321  
    201201            $this->loader->add_action( 'init', $plugin_public, 'init' );
    202202            $this->loader->add_filter( 'pre_get_document_title', $plugin_public, 'set_document_title', 99 );
    203             $this->loader->add_filter( 'the_title', $plugin_public, 'set_title', 10, 2 );
     203            $this->loader->add_filter( 'the_title', $plugin_public, 'set_title', 10 );
    204204            // Yoast SEO hooks
    205205            $this->loader->add_filter( 'wpseo_frontend_presenter_classes', $plugin_public, 'wpseo_frontend_presenters', 10, 1 );
  • workshop-butler/tags/2.13.6/public/class-wsb-integration-public.php

    r2357023 r2475321  
    142142     *
    143143     * @param string $title Current page title.
    144      * @param int    $id ID of the page.
    145144     *
    146145     * @return string
    147146     * @since 2.0.0
    148147     */
    149     public function set_title( $title, $id ) {
     148    public function set_title( $title ) {
    150149        $options      = new WSB_Options();
    151150        $reserved_ids = array(
     
    155154        );
    156155
    157         if ( in_array( $id, $reserved_ids, true ) ) {
     156        $id = get_the_ID();
     157        if ( is_int( $id ) && in_array( $id, $reserved_ids, true ) ) {
    158158            return $this->get_title( $title );
    159159        } else {
  • workshop-butler/tags/2.13.6/readme.txt

    r2463103 r2475321  
    6969
    7070== Changelog ==
     71= 2.13.6 =
     72* Fixes a fatal error happening on some pages when Buddyboss is installed
     73
    7174= 2.13.5 =
    7275* Fixes translations and support for Macedonian, Hungarian and Hebrew languages
  • workshop-butler/tags/2.13.6/workshop-butler.php

    r2463103 r2475321  
    1212 * Description:       This plugin integrates Workshop Butler Events, Trainers and Testimonials to your WordPress
    1313 *     website.
    14  * Version:           2.13.5
     14 * Version:           2.13.6
    1515 * Author:            Workshop Butler
    1616 * Author URI:        https://workshopbutler.com/
     
    2929 * Currently plugin version.
    3030 */
    31 define( 'WSB_INTEGRATION_VERSION', '2.13.5' );
     31define( 'WSB_INTEGRATION_VERSION', '2.13.6' );
    3232
    3333/**
  • workshop-butler/trunk/includes/class-wsb-integration.php

    r2357023 r2475321  
    201201            $this->loader->add_action( 'init', $plugin_public, 'init' );
    202202            $this->loader->add_filter( 'pre_get_document_title', $plugin_public, 'set_document_title', 99 );
    203             $this->loader->add_filter( 'the_title', $plugin_public, 'set_title', 10, 2 );
     203            $this->loader->add_filter( 'the_title', $plugin_public, 'set_title', 10 );
    204204            // Yoast SEO hooks
    205205            $this->loader->add_filter( 'wpseo_frontend_presenter_classes', $plugin_public, 'wpseo_frontend_presenters', 10, 1 );
  • workshop-butler/trunk/public/class-wsb-integration-public.php

    r2357023 r2475321  
    142142     *
    143143     * @param string $title Current page title.
    144      * @param int    $id ID of the page.
    145144     *
    146145     * @return string
    147146     * @since 2.0.0
    148147     */
    149     public function set_title( $title, $id ) {
     148    public function set_title( $title ) {
    150149        $options      = new WSB_Options();
    151150        $reserved_ids = array(
     
    155154        );
    156155
    157         if ( in_array( $id, $reserved_ids, true ) ) {
     156        $id = get_the_ID();
     157        if ( is_int( $id ) && in_array( $id, $reserved_ids, true ) ) {
    158158            return $this->get_title( $title );
    159159        } else {
  • workshop-butler/trunk/readme.txt

    r2463103 r2475321  
    6969
    7070== Changelog ==
     71= 2.13.6 =
     72* Fixes a fatal error happening on some pages when Buddyboss is installed
     73
    7174= 2.13.5 =
    7275* Fixes translations and support for Macedonian, Hungarian and Hebrew languages
  • workshop-butler/trunk/workshop-butler.php

    r2463103 r2475321  
    1212 * Description:       This plugin integrates Workshop Butler Events, Trainers and Testimonials to your WordPress
    1313 *     website.
    14  * Version:           2.13.5
     14 * Version:           2.13.6
    1515 * Author:            Workshop Butler
    1616 * Author URI:        https://workshopbutler.com/
     
    2929 * Currently plugin version.
    3030 */
    31 define( 'WSB_INTEGRATION_VERSION', '2.13.5' );
     31define( 'WSB_INTEGRATION_VERSION', '2.13.6' );
    3232
    3333/**
Note: See TracChangeset for help on using the changeset viewer.