Version Description
- (Core) Added
wpglobus_show_title_fields
filter. - (Core/Post Types) Added the
Ultimate Member
plugin post types to the"hidden types"
list.
Download this release
Release Info
Developer | tivnet |
Plugin | WPGlobus – Multilingual Everything! |
Version | 2.6.2 |
Comparing to | |
See all releases |
Code changes from version 2.6.1 to 2.6.2
- data/wpglobus-product-info.json +1 -1
- includes/class-wpglobus-post-types.php +3 -0
- includes/class-wpglobus.php +44 -30
- languages/wpglobus.pot +3 -3
- readme.txt +4 -0
- wpglobus.php +3 -3
data/wpglobus-product-info.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"multilingual-woocommerce-nets-netaxept":{"title":"{:en}Multilingual WooCommerce Nets Netaxept{:}{:ru}\u041c\u0443\u043b\u044c\u0442\u0438\u044f\u0437\u044b\u0447\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f WooCommerce Nets Netaxept{:}","_api_new_version":"1.0.3","_api_tested_up_to":"4.9.8"},"wpglobus-menu-visibility":{"title":"WPGlobus Menu Visibility","_api_new_version":"1.2.0","_api_tested_up_to":"4.9.6"},"wpglobus-multi-currency":{"title":"{:en}Multi-Currency for WooCommerce{:}{:ru}WPGlobus - \u041c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f WooCommerce{:}","_api_new_version":"1.1.1","_api_tested_up_to":"4.9.4"},"wpglobus-
|
1 |
+
{"multilingual-woocommerce-nets-netaxept":{"title":"{:en}Multilingual WooCommerce Nets Netaxept{:}{:ru}\u041c\u0443\u043b\u044c\u0442\u0438\u044f\u0437\u044b\u0447\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f WooCommerce Nets Netaxept{:}","_api_new_version":"1.0.3","_api_tested_up_to":"4.9.8"},"wpglobus-menu-visibility":{"title":"WPGlobus Menu Visibility","_api_new_version":"1.2.0","_api_tested_up_to":"4.9.6"},"wpglobus-multi-currency":{"title":"{:en}Multi-Currency for WooCommerce{:}{:ru}WPGlobus - \u041c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f WooCommerce{:}","_api_new_version":"1.1.1","_api_tested_up_to":"4.9.4"},"wpglobus-mobile-menu":{"title":"{:en}WPGlobus Mobile Menu{:}{:ru}WPGlobus Mobile Menu{:}","_api_new_version":"2.2.0","_api_tested_up_to":"5.6"},"wpglobus-header-images":{"title":"{:en}WPGlobus Header Images{:}{:ru}WPGlobus Header Images{:}","_api_new_version":"2.1.0","_api_tested_up_to":"5.5"},"wpglobus-for-bridge-theme":{"title":"{:en}WPGlobus for the \"Bridge\" theme{:}{:ru}WPGlobus \u0434\u043b\u044f \u0442\u0435\u043c\u044b Bridge{:}","_api_new_version":"2.3.0","_api_tested_up_to":"5.5"},"wpglobus-multilingual-notices":{"title":"{:en}WPGlobus Multilingual Notices{:}{:ru}WPGlobus - \u043c\u043d\u043e\u0433\u043e\u044f\u0437\u044b\u0447\u043d\u044b\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f{:}","_api_new_version":"2.2.0","_api_tested_up_to":"5.5"},"woocommerce-wpglobus":{"title":"{:en}WPGlobus for WooCommerce{:}{:ru}\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 WooCommerce WPGlobus{:}","_api_new_version":"4.2.0","_api_tested_up_to":"5.6"},"wpglobus-plus":{"title":"{:en}WPGlobus Plus multilingual extension{:}{:ru}WPGlobus \u041f\u043b\u044e\u0441{:}","_api_new_version":"1.5.2","_api_tested_up_to":"5.6"},"wpglobus-language-widgets":{"title":"{:en}WPGlobus Language Widgets{:}{:ru}\u042f\u0437\u044b\u043a\u0438 WPGlobus \u0434\u043b\u044f \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432{:}","_api_new_version":"2.0.0","_api_tested_up_to":"5.6.0"}}
|
includes/class-wpglobus-post-types.php
CHANGED
@@ -108,6 +108,9 @@ class WPGlobus_Post_Types {
|
|
108 |
'dflip',
|
109 |
// https://oceanwp.org/ @since 2.5.17
|
110 |
'oceanwp_library',
|
|
|
|
|
|
|
111 |
);
|
112 |
|
113 |
/**
|
108 |
'dflip',
|
109 |
// https://oceanwp.org/ @since 2.5.17
|
110 |
'oceanwp_library',
|
111 |
+
// Ultimate Member – User Profile, User Registration, Login & Membership Plugin: https://wordpress.org/plugins/ultimate-member/ @since 2.6.2
|
112 |
+
'um_form',
|
113 |
+
'um_directory'
|
114 |
);
|
115 |
|
116 |
/**
|
includes/class-wpglobus.php
CHANGED
@@ -3699,42 +3699,56 @@ class WPGlobus {
|
|
3699 |
}
|
3700 |
} else {
|
3701 |
|
3702 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3703 |
|
3704 |
-
|
3705 |
|
3706 |
-
|
3707 |
|
3708 |
-
|
3709 |
-
|
3710 |
-
<div id="titlediv-<?php echo esc_attr( $language ); ?>" class="titlediv-wpglobus">
|
3711 |
-
<div id="titlewrap-<?php echo esc_attr( $language ); ?>" class="titlewrap-wpglobus">
|
3712 |
-
<label class="screen-reader-text"
|
3713 |
-
id="title-prompt-text-<?php echo esc_attr( $language ); ?>"
|
3714 |
-
for="title_<?php echo esc_attr( $language ); ?>"><?php echo esc_html( apply_filters( 'enter_title_here',
|
3715 |
-
esc_html__( 'Enter title here' ), $post ) ); ?></label>
|
3716 |
-
<input type="text" name="post_title_<?php echo esc_attr( $language ); ?>" size="30"
|
3717 |
-
value="<?php echo esc_attr( WPGlobus_Core::text_filter( $post->post_title, $language, self::RETURN_EMPTY ) ); ?>"
|
3718 |
-
id="title_<?php echo esc_attr( $language ); ?>"
|
3719 |
-
class="title_wpglobus"
|
3720 |
-
data-language="<?php echo esc_attr( $language ); ?>"
|
3721 |
-
autocomplete="off"/>
|
3722 |
-
</div> <!-- #titlewrap -->
|
3723 |
-
<?php
|
3724 |
-
$slug_box = '<div class="inside">
|
3725 |
-
<div id="edit-slug-box-' . esc_attr( $language ) . '" class="wpglobus-edit-slug-box hide-if-no-js">
|
3726 |
-
<b></b>
|
3727 |
-
</div>
|
3728 |
-
</div><!-- .inside -->';
|
3729 |
-
// DO NOT ESCAPE THIS: it's HTML, already escaped above.
|
3730 |
-
echo apply_filters( 'wpglobus_edit_slug_box', $slug_box, $language ); // WPCS: XSS ok.
|
3731 |
-
?>
|
3732 |
-
</div> <!-- #titlediv --> <?php
|
3733 |
|
3734 |
-
|
3735 |
|
3736 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3737 |
|
|
|
|
|
|
|
|
|
3738 |
}
|
3739 |
}
|
3740 |
|
3699 |
}
|
3700 |
} else {
|
3701 |
|
3702 |
+
if (
|
3703 |
+
/**
|
3704 |
+
* Filter to show title fields for extra languages in post page.
|
3705 |
+
*
|
3706 |
+
* @since 2.6.2
|
3707 |
+
*
|
3708 |
+
* @param bool true If show title fields.
|
3709 |
+
* @param $post An object WP_Post.
|
3710 |
+
*
|
3711 |
+
* Returning boolean.
|
3712 |
+
*/
|
3713 |
+
apply_filters( 'wpglobus_show_title_fields', true, $post )
|
3714 |
+
) {
|
3715 |
|
3716 |
+
foreach ( self::Config()->open_languages as $language ) :
|
3717 |
|
3718 |
+
if ( $language == self::Config()->default_language ) {
|
3719 |
|
3720 |
+
continue;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3721 |
|
3722 |
+
} else { ?>
|
3723 |
|
3724 |
+
<div id="titlediv-<?php echo esc_attr( $language ); ?>" class="titlediv-wpglobus">
|
3725 |
+
<div id="titlewrap-<?php echo esc_attr( $language ); ?>" class="titlewrap-wpglobus">
|
3726 |
+
<label class="screen-reader-text"
|
3727 |
+
id="title-prompt-text-<?php echo esc_attr( $language ); ?>"
|
3728 |
+
for="title_<?php echo esc_attr( $language ); ?>"><?php echo esc_html( apply_filters( 'enter_title_here',
|
3729 |
+
esc_html__( 'Enter title here' ), $post ) ); ?></label>
|
3730 |
+
<input type="text" name="post_title_<?php echo esc_attr( $language ); ?>" size="30"
|
3731 |
+
value="<?php echo esc_attr( WPGlobus_Core::text_filter( $post->post_title, $language, self::RETURN_EMPTY ) ); ?>"
|
3732 |
+
id="title_<?php echo esc_attr( $language ); ?>"
|
3733 |
+
class="title_wpglobus"
|
3734 |
+
data-language="<?php echo esc_attr( $language ); ?>"
|
3735 |
+
autocomplete="off"/>
|
3736 |
+
</div> <!-- #titlewrap -->
|
3737 |
+
<?php
|
3738 |
+
$slug_box = '<div class="inside">
|
3739 |
+
<div id="edit-slug-box-' . esc_attr( $language ) . '" class="wpglobus-edit-slug-box hide-if-no-js">
|
3740 |
+
<b></b>
|
3741 |
+
</div>
|
3742 |
+
</div><!-- .inside -->';
|
3743 |
+
// DO NOT ESCAPE THIS: it's HTML, already escaped above.
|
3744 |
+
echo apply_filters( 'wpglobus_edit_slug_box', $slug_box, $language ); // WPCS: XSS ok.
|
3745 |
+
?>
|
3746 |
+
</div> <!-- #titlediv --> <?php
|
3747 |
|
3748 |
+
}
|
3749 |
+
|
3750 |
+
endforeach;
|
3751 |
+
}
|
3752 |
}
|
3753 |
}
|
3754 |
|
languages/wpglobus.pot
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
# Copyright (C) 2021 WPGlobus 2.6.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.6.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WPGlobus 2.6.
|
6 |
"MIME-Version: 1.0\n"
|
7 |
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
"Content-Transfer-Encoding: 8bit\n"
|
1 |
+
# Copyright (C) 2021 WPGlobus 2.6.2
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.6.2 package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WPGlobus 2.6.2\n"
|
6 |
"MIME-Version: 1.0\n"
|
7 |
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
"Content-Transfer-Encoding: 8bit\n"
|
readme.txt
CHANGED
@@ -217,6 +217,10 @@ WPGlobus Version 2 supports WordPress 5.x, with Gutenberg.
|
|
217 |
|
218 |
== Changelog ==
|
219 |
|
|
|
|
|
|
|
|
|
220 |
= 2.6.1 =
|
221 |
* (Core/Options) Added handling of actions for the tabs.
|
222 |
* (Core/Controller) Added filter `googlesitekit_canonical_home_url`.
|
217 |
|
218 |
== Changelog ==
|
219 |
|
220 |
+
= 2.6.2 =
|
221 |
+
* (Core) Added `wpglobus_show_title_fields` filter.
|
222 |
+
* (Core/Post Types) Added the `Ultimate Member` plugin post types to the `"hidden types"` list.
|
223 |
+
|
224 |
= 2.6.1 =
|
225 |
* (Core/Options) Added handling of actions for the tabs.
|
226 |
* (Core/Controller) Added filter `googlesitekit_canonical_home_url`.
|
wpglobus.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @package WPGlobus
|
6 |
* @author TIV.NET INC, Alex Gor (alexgff) and Gregory Karpinsky (tivnet)
|
7 |
-
* @copyright 2015-
|
8 |
* @license http://www.gnu.org/licenses/gpl.txt GNU General Public License, version 3
|
9 |
*/
|
10 |
|
@@ -15,7 +15,7 @@
|
|
15 |
* Description: A WordPress Globalization / Multilingual Plugin. Posts, pages, menus, widgets and even custom fields - in multiple languages!
|
16 |
* Text Domain: wpglobus
|
17 |
* Domain Path: /languages/
|
18 |
-
* Version: 2.6.
|
19 |
* Author: WPGlobus
|
20 |
* Author URI: https://wpglobus.com/
|
21 |
* Network: false
|
@@ -44,7 +44,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
44 |
exit;
|
45 |
}
|
46 |
|
47 |
-
define( 'WPGLOBUS_VERSION', '2.6.
|
48 |
define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
49 |
define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
|
50 |
|
4 |
*
|
5 |
* @package WPGlobus
|
6 |
* @author TIV.NET INC, Alex Gor (alexgff) and Gregory Karpinsky (tivnet)
|
7 |
+
* @copyright 2015-2021 TIV.NET INC. / WPGlobus
|
8 |
* @license http://www.gnu.org/licenses/gpl.txt GNU General Public License, version 3
|
9 |
*/
|
10 |
|
15 |
* Description: A WordPress Globalization / Multilingual Plugin. Posts, pages, menus, widgets and even custom fields - in multiple languages!
|
16 |
* Text Domain: wpglobus
|
17 |
* Domain Path: /languages/
|
18 |
+
* Version: 2.6.2
|
19 |
* Author: WPGlobus
|
20 |
* Author URI: https://wpglobus.com/
|
21 |
* Network: false
|
44 |
exit;
|
45 |
}
|
46 |
|
47 |
+
define( 'WPGLOBUS_VERSION', '2.6.2' );
|
48 |
define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
49 |
define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
|
50 |
|