Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
Updated ACF5 qTranslate File field to match recent ACF update
Browse files Browse the repository at this point in the history
  • Loading branch information
funkjedi committed Jan 18, 2017
1 parent 513c282 commit 02aa5ad
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: funkjedi
Tags: acf, advanced custom fields, qtranslate, add-on, admin
Requires at least: 3.5.0
Tested up to: 4.6.1
Version: 1.7.17
Stable tag: 1.7.17
Version: 1.7.18
Stable tag: 1.7.18
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -54,6 +54,10 @@ The plugin is based on code samples posted to the ACF support forums by taeo bac

== Changelog ==

= 1.7.18 =
* Core: Prevent error on older versions of ACF5
* Bug Fix: Updated ACF5 qTranslate File field to match recent ACF update

= 1.7.17 =
* Core: Initialize on either `plugins_loaded` or `after_setup_theme`
* Core: Drop support for qTranslate Plus, mqTranslate, and zTranslate
Expand Down
1 change: 0 additions & 1 deletion src/acf_5/fields/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ function __construct($plugin) {

// filters
add_filter('get_media_item_args', array($this, 'get_media_item_args'));
add_filter('wp_prepare_attachment_for_js', array($this, 'wp_prepare_attachment_for_js'), 10, 3);

acf_field::__construct();
}
Expand Down
6 changes: 4 additions & 2 deletions src/acf_5/fields/wysiwyg.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ function __construct($plugin) {
'default_value' => '',
);

// add acf_the_content filters
$this->add_filters();
// add acf_the_content filters
if (method_exists($this, 'add_filters')) {
$this->add_filters();
}

// actions
add_action('acf/input/admin_footer', array($this, 'input_admin_footer'));
Expand Down

0 comments on commit 02aa5ad

Please sign in to comment.