Plugin Directory

Changeset 3028192


Ignore:
Timestamp:
01/29/2024 12:07:30 PM (2 years ago)
Author:
crowdaa
Message:

Added hotfix patch (1.8.1)

Location:
crowdaa-sync
Files:
4 edited
75 copied

Legend:

Unmodified
Added
Removed
  • crowdaa-sync/tags/1.8.1/CHANGELOG

    r3028189 r3028192  
    66
    77## [Unreleased]
     8
     9## [1.8.1] - 2024-01-29
     10
     11### Changed
     12
     13- Fixed an invalid text added to all articles contents...
    814
    915## [1.8.0] - 2024-01-29
  • crowdaa-sync/tags/1.8.1/README.txt

    r3028189 r3028192  
    66Requires PHP: 7.3
    77Tested up to: 5.9
    8 Stable tag: 1.8.0
     8Stable tag: 1.8.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • crowdaa-sync/tags/1.8.1/admin/class-crowdaa-sync-wp-hooks.php

    r3028189 r3028192  
    3333    add_action('created_category', [$this, 'on_category_saved'], 10, 2);
    3434    add_action('edited_category', [$this, 'on_category_saved'], 10, 2);
    35     add_filter('the_content', [$this, 'add_event_fields']);
     35    // add_filter('the_content', [$this, 'add_event_fields']);
    3636  }
    3737
     
    216216   * @return string
    217217   */
    218   public function add_event_fields($content)
    219   {
    220     if (is_singular() && in_the_loop() && is_main_query()) {
    221       $post_id = the_ID();
    222       $terms = wp_get_post_terms($post_id, 'category');
    223       $is_event = false;
    224       foreach ($terms as $term) {
    225         if (get_term_meta($term->term_id, 'crowdaa_is_event', true) === 'yes') {
    226           $is_event = true;
    227           break;
    228         }
    229       }
    230 
    231       if ($is_event) {
    232       }
    233 
    234       return ($content . esc_html__('I’m filtering the content inside the main loop', 'wporg'));
    235     }
    236 
    237     return ($content);
    238   }
     218  // public function add_event_fields($content)
     219  // {
     220  //   if (is_singular() && in_the_loop() && is_main_query()) {
     221  //     $post_id = the_ID();
     222  //     $terms = wp_get_post_terms($post_id, 'category');
     223  //     $is_event = false;
     224  //     foreach ($terms as $term) {
     225  //       if (get_term_meta($term->term_id, 'crowdaa_is_event', true) === 'yes') {
     226  //         $is_event = true;
     227  //         break;
     228  //       }
     229  //     }
     230
     231  //     if ($is_event) {
     232  //     }
     233
     234  //     return ($content . esc_html__('I’m filtering the content inside the main loop', 'wporg'));
     235  //   }
     236
     237  //   return ($content);
     238  // }
    239239}
  • crowdaa-sync/tags/1.8.1/crowdaa-sync.php

    r3028189 r3028192  
    1414 * Plugin URI:       
    1515 * Description:       Plugin for synchronizing WordPress site and Crowdaa CMS
    16  * Version:           1.8.0
     16 * Version:           1.8.1
    1717 * Requires at least: 5.5
    1818 * Requires PHP:      7.2
     
    3434 * Uses SemVer - https://semver.org
    3535 */
    36 define('CROWDAA_SYNC_VERSION', '1.8.0');
     36define('CROWDAA_SYNC_VERSION', '1.8.1');
    3737define('CROWDAA_SYNC_PLUGIN_DIR', __DIR__);
    3838define('CROWDAA_SYNC_PLUGIN_NAME', 'crowdaa-sync');
  • crowdaa-sync/trunk/CHANGELOG

    r3028189 r3028192  
    66
    77## [Unreleased]
     8
     9## [1.8.1] - 2024-01-29
     10
     11### Changed
     12
     13- Fixed an invalid text added to all articles contents...
    814
    915## [1.8.0] - 2024-01-29
  • crowdaa-sync/trunk/README.txt

    r3028189 r3028192  
    66Requires PHP: 7.3
    77Tested up to: 5.9
    8 Stable tag: 1.8.0
     8Stable tag: 1.8.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • crowdaa-sync/trunk/admin/class-crowdaa-sync-wp-hooks.php

    r3028189 r3028192  
    3333    add_action('created_category', [$this, 'on_category_saved'], 10, 2);
    3434    add_action('edited_category', [$this, 'on_category_saved'], 10, 2);
    35     add_filter('the_content', [$this, 'add_event_fields']);
     35    // add_filter('the_content', [$this, 'add_event_fields']);
    3636  }
    3737
     
    216216   * @return string
    217217   */
    218   public function add_event_fields($content)
    219   {
    220     if (is_singular() && in_the_loop() && is_main_query()) {
    221       $post_id = the_ID();
    222       $terms = wp_get_post_terms($post_id, 'category');
    223       $is_event = false;
    224       foreach ($terms as $term) {
    225         if (get_term_meta($term->term_id, 'crowdaa_is_event', true) === 'yes') {
    226           $is_event = true;
    227           break;
    228         }
    229       }
    230 
    231       if ($is_event) {
    232       }
    233 
    234       return ($content . esc_html__('I’m filtering the content inside the main loop', 'wporg'));
    235     }
    236 
    237     return ($content);
    238   }
     218  // public function add_event_fields($content)
     219  // {
     220  //   if (is_singular() && in_the_loop() && is_main_query()) {
     221  //     $post_id = the_ID();
     222  //     $terms = wp_get_post_terms($post_id, 'category');
     223  //     $is_event = false;
     224  //     foreach ($terms as $term) {
     225  //       if (get_term_meta($term->term_id, 'crowdaa_is_event', true) === 'yes') {
     226  //         $is_event = true;
     227  //         break;
     228  //       }
     229  //     }
     230
     231  //     if ($is_event) {
     232  //     }
     233
     234  //     return ($content . esc_html__('I’m filtering the content inside the main loop', 'wporg'));
     235  //   }
     236
     237  //   return ($content);
     238  // }
    239239}
  • crowdaa-sync/trunk/crowdaa-sync.php

    r3028189 r3028192  
    1414 * Plugin URI:       
    1515 * Description:       Plugin for synchronizing WordPress site and Crowdaa CMS
    16  * Version:           1.8.0
     16 * Version:           1.8.1
    1717 * Requires at least: 5.5
    1818 * Requires PHP:      7.2
     
    3434 * Uses SemVer - https://semver.org
    3535 */
    36 define('CROWDAA_SYNC_VERSION', '1.8.0');
     36define('CROWDAA_SYNC_VERSION', '1.8.1');
    3737define('CROWDAA_SYNC_PLUGIN_DIR', __DIR__);
    3838define('CROWDAA_SYNC_PLUGIN_NAME', 'crowdaa-sync');
Note: See TracChangeset for help on using the changeset viewer.