Plugin Directory

Changeset 3044540


Ignore:
Timestamp:
03/03/2024 05:18:16 PM (2 years ago)
Author:
dhoppe
Message:

Version 1.7.59

Location:
encyclopedia-lexicon-glossary-wiki-dictionary/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • encyclopedia-lexicon-glossary-wiki-dictionary/trunk/includes/advanced-custom-fields.php

    r3030564 r3044540  
    1515            $cross_linker_priority = Options::get('cross_linker_priority') == 'before_shortcodes' ? 10.5 : 15;
    1616
    17             # For ACF < 5.0.0
    18             add_filter('acf/format_value_for_api/type=wysiwyg', [static::class, 'filterFieldValue'], $cross_linker_priority, 3);
    19             add_filter('acf/format_value_for_api/type=textarea', [static::class, 'filterTextValue'], $cross_linker_priority, 3);
    20             add_filter('acf/format_value_for_api/type=text', [static::class, 'filterTextValue'], $cross_linker_priority, 3);
    21 
    2217            # For ACF >= 5.0.0
    2318            add_filter('acf/format_value/type=wysiwyg', [static::class, 'filterFieldValue'], $cross_linker_priority, 3);
     
    3530
    3631        if (empty($post))
     32            return $content;
     33
     34        # Check if cross linking is deactivated for this field
     35        if (!apply_filters('encyclopedia_link_item_in_acf', true, $field, $post))
     36            return $content;
     37
     38        if (!apply_filters(sprintf('encyclopedia_link_item_in_acf_%s', $field['name']), true, $field, $post))
    3739            return $content;
    3840
  • encyclopedia-lexicon-glossary-wiki-dictionary/trunk/plugin.php

    r3030564 r3044540  
    55Plugin URI: https://dennishoppe.de/en/wordpress-plugins/encyclopedia
    66Description: Encyclopedia enables you to create your own encyclopedia, lexicon, glossary, wiki, dictionary or knowledge base.
    7 Version: 1.7.58
     7Version: 1.7.59
    88Author: Dennis Hoppe
    99Author URI: https://DennisHoppe.de
  • encyclopedia-lexicon-glossary-wiki-dictionary/trunk/readme.txt

    r3030564 r3044540  
    177177== Changelog ==
    178178
     179= 1.7.59 =
     180* Added new ACF filter encyclopedia_link_item_in_acf to disable automatic cross links in ACF fields
     181
    179182= 1.7.58 =
    180183* Added auto cross linking for BuddyPress activities
Note: See TracChangeset for help on using the changeset viewer.