Version Description
Resolving PHP notice for dirname
Download this release
Release Info
Developer | ronalfy |
Plugin | User Profile Picture |
Version | 2.1.2 |
Comparing to | |
See all releases |
Code changes from version 2.1.1 to 2.1.2
- gutenberg/class-gutenberg.php +13 -11
- languages/metronet-profile-picture.pot +2 -2
- metronet-profile-picture.php +2 -2
- readme.txt +10 -3
gutenberg/class-gutenberg.php
CHANGED
@@ -524,7 +524,7 @@ class Metronet_Profile_Picture_Gutenberg {
|
|
524 |
if ( '' != get_post_type() ) {
|
525 |
// Define SVG sprite file.
|
526 |
$path = '/img/social-logos.svg';
|
527 |
-
$svg_icons = rtrim( dirname( plugin_dir_path(__FILE__)
|
528 |
if ( ! empty( $path ) && is_string( $path) ) {
|
529 |
$svg_icons .= '/' . ltrim( $path, '/' );
|
530 |
}
|
@@ -554,16 +554,18 @@ class Metronet_Profile_Picture_Gutenberg {
|
|
554 |
wp_enqueue_script('mpp_gutenberg', Metronet_Profile_Picture::get_plugin_url('js/gutenberg'.$min_or_not.'.js'), array('wp-blocks', 'wp-element'), METRONET_PROFILE_PICTURE_VERSION, true);
|
555 |
|
556 |
/* For the Gutenberg plugin */
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
|
|
|
|
567 |
|
568 |
// Pass in REST URL
|
569 |
wp_localize_script(
|
524 |
if ( '' != get_post_type() ) {
|
525 |
// Define SVG sprite file.
|
526 |
$path = '/img/social-logos.svg';
|
527 |
+
$svg_icons = rtrim( dirname( plugin_dir_path(__FILE__) ), '/' );
|
528 |
if ( ! empty( $path ) && is_string( $path) ) {
|
529 |
$svg_icons .= '/' . ltrim( $path, '/' );
|
530 |
}
|
554 |
wp_enqueue_script('mpp_gutenberg', Metronet_Profile_Picture::get_plugin_url('js/gutenberg'.$min_or_not.'.js'), array('wp-blocks', 'wp-element'), METRONET_PROFILE_PICTURE_VERSION, true);
|
555 |
|
556 |
/* For the Gutenberg plugin */
|
557 |
+
if (function_exists('wp_set_script_translations')) {
|
558 |
+
wp_set_script_translations('mpp_gutenberg', 'post-type-archive-mapping');
|
559 |
+
} elseif (function_exists('gutenberg_get_jed_locale_data')) {
|
560 |
+
$locale = gutenberg_get_jed_locale_data('post-type-archive-mapping');
|
561 |
+
$content = 'wp.i18n.setLocaleData( ' . json_encode($locale) . ', "post-type-archive-mapping" );';
|
562 |
+
wp_script_add_data('mpp_gutenberg', 'data', $content);
|
563 |
+
} elseif (function_exists('wp_get_jed_locale_data')) {
|
564 |
+
/* for 5.0 */
|
565 |
+
$locale = wp_get_jed_locale_data('post-type-archive-mapping');
|
566 |
+
$content = 'wp.i18n.setLocaleData( ' . json_encode($locale) . ', "post-type-archive-mapping" );';
|
567 |
+
wp_script_add_data('mpp_gutenberg', 'data', $content);
|
568 |
+
}
|
569 |
|
570 |
// Pass in REST URL
|
571 |
wp_localize_script(
|
languages/metronet-profile-picture.pot
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the User Profile Picture package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
@@ -7,7 +7,7 @@ msgstr ""
|
|
7 |
"MIME-Version: 1.0\n"
|
8 |
"Content-Type: text/plain; charset=UTF-8\n"
|
9 |
"Content-Transfer-Encoding: 8bit\n"
|
10 |
-
"PO-Revision-Date:
|
11 |
"Last-Translator: Ronald Huerca <ronald@mediaron.com>\n"
|
12 |
"Language-Team: Ronald Huereca <ronald@mediaron.com\n"
|
13 |
"X-Poedit-Basepath: ..\n"
|
1 |
+
# Copyright (C) 2019 User Profile Picture
|
2 |
# This file is distributed under the same license as the User Profile Picture package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
7 |
"MIME-Version: 1.0\n"
|
8 |
"Content-Type: text/plain; charset=UTF-8\n"
|
9 |
"Content-Transfer-Encoding: 8bit\n"
|
10 |
+
"PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
|
11 |
"Last-Translator: Ronald Huerca <ronald@mediaron.com>\n"
|
12 |
"Language-Team: Ronald Huereca <ronald@mediaron.com\n"
|
13 |
"X-Poedit-Basepath: ..\n"
|
metronet-profile-picture.php
CHANGED
@@ -4,14 +4,14 @@ Plugin Name: User Profile Picture
|
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/metronet-profile-picture/
|
5 |
Description: Use the native WP uploader on your user profile page.
|
6 |
Author: Ronald Huereca
|
7 |
-
Version: 2.1.
|
8 |
Requires at least: 3.5
|
9 |
Author URI: https://www.mediaron.com
|
10 |
Contributors: ronalfy
|
11 |
Text Domain: metronet-profile-picture
|
12 |
Domain Path: /languages
|
13 |
*/
|
14 |
-
define( 'METRONET_PROFILE_PICTURE_VERSION', '2.1.
|
15 |
class Metronet_Profile_Picture {
|
16 |
|
17 |
//private
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/metronet-profile-picture/
|
5 |
Description: Use the native WP uploader on your user profile page.
|
6 |
Author: Ronald Huereca
|
7 |
+
Version: 2.1.2
|
8 |
Requires at least: 3.5
|
9 |
Author URI: https://www.mediaron.com
|
10 |
Contributors: ronalfy
|
11 |
Text Domain: metronet-profile-picture
|
12 |
Domain Path: /languages
|
13 |
*/
|
14 |
+
define( 'METRONET_PROFILE_PICTURE_VERSION', '2.1.2' );
|
15 |
class Metronet_Profile_Picture {
|
16 |
|
17 |
//private
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== User Profile Picture ===
|
2 |
-
Contributors: ronalfy,Alaadiaa
|
3 |
-
Tags: users, user profile, gravatar, avatar, blocks
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 5.0
|
6 |
-
Stable tag: 2.1.
|
7 |
Requires PHP: 5.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -105,6 +105,10 @@ Yes, but you'll have to set a new profile image per site. This is currently a l
|
|
105 |
|
106 |
== Changelog ==
|
107 |
|
|
|
|
|
|
|
|
|
108 |
= 2.1.1 =
|
109 |
* Released 2018-12-20
|
110 |
* Adding white posts theme to the tabbed view block
|
@@ -261,6 +265,9 @@ Yes, but you'll have to set a new profile image per site. This is currently a l
|
|
261 |
|
262 |
== Upgrade Notice ==
|
263 |
|
|
|
|
|
|
|
264 |
= 2.1.1 =
|
265 |
Adding white posts theme to the tabbed view block. Fixing clearing for the tabbed view block.
|
266 |
|
1 |
=== User Profile Picture ===
|
2 |
+
Contributors: ronalfy, Alaadiaa
|
3 |
+
Tags: users, user profile, gravatar, avatar, blocks, block
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 5.0
|
6 |
+
Stable tag: 2.1.2
|
7 |
Requires PHP: 5.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
105 |
|
106 |
== Changelog ==
|
107 |
|
108 |
+
= 2.2.2 =
|
109 |
+
* Released 2019-01-26
|
110 |
+
* Resolving PHP notice for dirname
|
111 |
+
|
112 |
= 2.1.1 =
|
113 |
* Released 2018-12-20
|
114 |
* Adding white posts theme to the tabbed view block
|
265 |
|
266 |
== Upgrade Notice ==
|
267 |
|
268 |
+
= 2.1.2 =
|
269 |
+
Resolving PHP notice for dirname
|
270 |
+
|
271 |
= 2.1.1 =
|
272 |
Adding white posts theme to the tabbed view block. Fixing clearing for the tabbed view block.
|
273 |
|