diff --git a/admin/includes/class-cherry-update/class-cherry-base-update.php b/admin/includes/class-cherry-update/class-cherry-base-update.php index 0eca864..6778a3c 100644 --- a/admin/includes/class-cherry-update/class-cherry-base-update.php +++ b/admin/includes/class-cherry-update/class-cherry-base-update.php @@ -83,13 +83,13 @@ protected function remote_query( $args ) { public function rename_github_folder( $upgrate_dir, $remote_dir, $skin_upgrader ){ $slug = $this->api[ 'slug' ]; - $is_theme = isset($skin_upgrader->skin->theme) ? true : false ; + $is_theme = isset($skin_upgrader->skin->theme) || isset($skin_upgrader->skin->theme_info) ? true : false ; $is_plugin = isset($skin_upgrader->skin->plugin_info) ? true : false ; $domain_plugin = $is_plugin ? $skin_upgrader->skin->plugin_info[ 'TextDomain' ] : '' ; $title_plugin = $is_plugin ? str_replace(' ', '-', strtolower( $skin_upgrader->skin->plugin_info[ 'Title' ] ) ) : '' ; $name_plugin = $is_plugin ? str_replace(' ', '-', strtolower( $skin_upgrader->skin->plugin_info[ 'Name' ] ) ) : '' ; - if( $is_theme && $skin_upgrader->skin->theme === $slug + if( $is_theme && strpos($upgrate_dir, $slug) !== false || $is_plugin && $domain_plugin === $slug || $is_plugin && $title_plugin === $slug || $is_plugin && $name_plugin === $slug diff --git a/admin/views/facebook-like-box-admin.php b/admin/views/facebook-like-box-admin.php index 29d7737..c276010 100644 --- a/admin/views/facebook-like-box-admin.php +++ b/admin/views/facebook-like-box-admin.php @@ -32,12 +32,12 @@
> - +
> - +
diff --git a/admin/views/instagram-admin.php b/admin/views/instagram-admin.php
index 38a9020..8872913 100644
--- a/admin/views/instagram-admin.php
+++ b/admin/views/instagram-admin.php
@@ -43,7 +43,7 @@
link", 'cherry-social' ), esc_url( 'https://instagram.com/developer/clients/manage/' ) ); ?>
-
+
diff --git a/admin/views/twitter-timeline-admin.php b/admin/views/twitter-timeline-admin.php
index a480fd0..fc6f88d 100644
--- a/admin/views/twitter-timeline-admin.php
+++ b/admin/views/twitter-timeline-admin.php
@@ -22,7 +22,7 @@
page", 'cherry-social' ), esc_url( 'https://twitter.com/settings/widgets/new' ) ); ?>
-
+
diff --git a/cherry-social.php b/cherry-social.php
index a59ec8f..e69508f 100644
--- a/cherry-social.php
+++ b/cherry-social.php
@@ -3,12 +3,12 @@
* Plugin Name: Cherry Social
* Plugin URI: http://www.cherryframework.com/
* Description: A social plugin for WordPress.
- * Version: 1.0.1
+ * Version: 1.0.2-beta
* Author: Cherry Team
* Author URI: http://www.cherryframework.com/
* Text Domain: cherry-social
- * License: GPL-2.0+
- * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
+ * License: GPL-3.0+
+ * License URI: http://www.gnu.org/licenses/gpl-3.0.txt
* Domain Path: /languages
*/
@@ -102,7 +102,7 @@ private function __construct() {
* @since 1.0.0
*/
public function constants() {
- define( 'CHERRY_SOCIAL_VERSION', '1.0.1' );
+ define( 'CHERRY_SOCIAL_VERSION', '1.0.2-beta' );
define( 'CHERRY_SOCIAL_SLUG', basename( dirname( __FILE__ ) ) );
define( 'CHERRY_SOCIAL_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );
define( 'CHERRY_SOCIAL_URI', trailingslashit( plugin_dir_url( __FILE__ ) ) );
@@ -426,13 +426,7 @@ public function share_buttons( $networks, $echo = true, $custom_class = '' ) {
public function register_static() {
$static_file = apply_filters( 'cherry_social_static_file', 'social-follow.php' );
- if ( defined( 'CHILD_DIR' ) ) {
- $child_dir = CHILD_DIR;
- } else {
- $child_dir = get_stylesheet_directory();
- }
-
- $abspath = preg_replace( '#/+#', '/', trailingslashit( $child_dir ) . $static_file );
+ $abspath = preg_replace( '#/+#', '/', trailingslashit( get_stylesheet_directory() ) . $static_file );
// If file found in child theme - include it and break function.
if ( file_exists( $abspath ) ) {
@@ -477,9 +471,9 @@ public function get_follows( $networks, $echo = true, $custom_class = '' ) {
if ( -1 != $networks ) {
foreach ( $follows as $id => $follow ) {
- if ( ! empty( $follow['link-label'] )
- && ( in_array( sanitize_key( $follow['link-label'] ), $networks ) )
- ) {
+ if ( ( ! empty( $follow['link-label'] ) && ( in_array( sanitize_key( $follow['link-label'] ), $networks ) ) )
+ ||
+ ( ! empty( $follow['network-id'] ) && ( in_array( sanitize_key( $follow['network-id'] ), $networks ) ) ) ) {
continue;
}
@@ -730,7 +724,7 @@ public function add_cherry_options( $sections ) {
$social_options['follow-title'] = array(
'type' => 'text',
'title' => __( 'Follow Us title', 'cherry-social' ),
- 'decsription' => __( 'This title are using in `Follow Us` static.', 'cherry-social' ),
+ 'decsription' => __( 'This title is used in `Follow Us` static.', 'cherry-social' ),
'value' => __( 'Follow Us', 'cherry-social' ),
);
$social_options['follow-items'] = array(
diff --git a/languages/cherry-social-blank.pot b/languages/cherry-social-blank.pot
index 7a21bde..281f7ad 100644
--- a/languages/cherry-social-blank.pot
+++ b/languages/cherry-social-blank.pot
@@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: blank\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-07-20 17:27+0300\n"
+"POT-Creation-Date: 2015-07-30 16:59+0300\n"
"PO-Revision-Date: 2015-04-06 06:14+0300\n"
"Last-Translator: Vladimir Anokhin