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

Commit

Permalink
Prevent LSBs from loading on all pages by default
Browse files Browse the repository at this point in the history
  • Loading branch information
funkjedi committed Jan 31, 2017
1 parent 5745268 commit 4e10ee2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion acf-qtranslate.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Advanced Custom Fields: qTranslate
Plugin URI: http://github.com/funkjedi/acf-qtranslate
Description: Provides multilingual versions of the text, text area, and wysiwyg fields.
Version: 1.7.21
Version: 1.7.22
Author: funkjedi
Author URI: http://funkjedi.com
License: GPLv2 or later
Expand Down
7 changes: 5 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.7.2
Version: 1.7.21
Stable tag: 1.7.21
Version: 1.7.22
Stable tag: 1.7.22
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

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

== Changelog ==

= 1.7.22 =
* Bug Fix: Prevent LSBs from loading on all pages by default

= 1.7.21 =
* Bug Fix: Make compatible with older versions of ACF5 by checking for `acf_connect_attachment_to_post`

Expand Down
5 changes: 4 additions & 1 deletion src/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ public function qtranslate_load_admin_page_config($config)
);

foreach (explode("\n", $this->get_plugin_setting('show_on_pages')) as $page) {
$pages[$page] = '';
$page = trim($page);
if ($page) {
$pages[$page] = '';
}
}

$config['acf-display-nodes'] = array(
Expand Down

0 comments on commit 4e10ee2

Please sign in to comment.