]> _ Git - couzy.git/commitdiff
wip #7692 @7:30
authorsoufiane <soufiane@cubedesigners.com>
Tue, 19 Aug 2025 09:40:17 +0000 (11:40 +0200)
committersoufiane <soufiane@cubedesigners.com>
Tue, 19 Aug 2025 09:40:17 +0000 (11:40 +0200)
65 files changed:
.idea/couzy.iml
cesaretleonie.fr/wp-config.php
cesaretleonie.fr/wp-content/plugins/cherry-plugin/includes/plugin-assets.php
cesaretleonie.fr/wp-content/plugins/cherry-plugin/includes/plugin-functions.php
cesaretleonie.fr/wp-content/plugins/cherry-plugin/includes/shortcodes/carousel-owl.php
cesaretleonie.fr/wp-content/plugins/cherry-plugin/includes/shortcodes/carousel.php
cesaretleonie.fr/wp-content/plugins/cherry-plugin/includes/widgets/cherry-banner-widget.php
cesaretleonie.fr/wp-content/plugins/cherry-plugin/includes/widgets/cherry-instagram-widget.php
cesaretleonie.fr/wp-content/plugins/cherry-plugin/includes/widgets/cherry-pinterest-embed-widget.php
cesaretleonie.fr/wp-content/plugins/cherry-plugin/includes/widgets/cherry-twitter-embed-widget.php
cesaretleonie.fr/wp-content/plugins/cherry-plugin/includes/widgets/my-banners-widget.php
cesaretleonie.fr/wp-content/plugins/cherry-plugin/includes/widgets/my-comment-widget.php
cesaretleonie.fr/wp-content/plugins/cherry-plugin/includes/widgets/my-flickr-widget.php
cesaretleonie.fr/wp-content/plugins/cherry-plugin/includes/widgets/my-post-cycle-widget.php
cesaretleonie.fr/wp-content/plugins/cherry-plugin/includes/widgets/my-posts-type-widget.php
cesaretleonie.fr/wp-content/plugins/cherry-plugin/includes/widgets/my-recent-posts.php
cesaretleonie.fr/wp-content/plugins/cherry-plugin/includes/widgets/my-social-widget.php
cesaretleonie.fr/wp-content/plugins/cherry-plugin/includes/widgets/my-vcard-widget.php
cesaretleonie.fr/wp-content/plugins/cherry-plugin/includes/widgets/register-widgets.php
cesaretleonie.fr/wp-content/themes/CherryFramework/admin/options-medialibrary-uploader.php
cesaretleonie.fr/wp-content/themes/CherryFramework/functions.php
cesaretleonie.fr/wp-content/themes/CherryFramework/includes/lessc.inc.php
cesaretleonie.fr/wp-content/themes/CherryFramework/includes/theme-scripts.php
mdryvescouzy.com/wp-content/plugins/cherry-plugin/includes/plugin-assets.php
mdryvescouzy.com/wp-content/plugins/cherry-plugin/includes/plugin-functions.php
mdryvescouzy.com/wp-content/plugins/cherry-plugin/includes/shortcodes/carousel-owl.php
mdryvescouzy.com/wp-content/plugins/cherry-plugin/includes/shortcodes/carousel.php
mdryvescouzy.com/wp-content/plugins/cherry-plugin/includes/widgets/cherry-banner-widget.php
mdryvescouzy.com/wp-content/plugins/cherry-plugin/includes/widgets/cherry-instagram-widget.php
mdryvescouzy.com/wp-content/plugins/cherry-plugin/includes/widgets/cherry-pinterest-embed-widget.php
mdryvescouzy.com/wp-content/plugins/cherry-plugin/includes/widgets/cherry-twitter-embed-widget.php
mdryvescouzy.com/wp-content/plugins/cherry-plugin/includes/widgets/my-banners-widget.php
mdryvescouzy.com/wp-content/plugins/cherry-plugin/includes/widgets/my-comment-widget.php
mdryvescouzy.com/wp-content/plugins/cherry-plugin/includes/widgets/my-flickr-widget.php
mdryvescouzy.com/wp-content/plugins/cherry-plugin/includes/widgets/my-post-cycle-widget.php
mdryvescouzy.com/wp-content/plugins/cherry-plugin/includes/widgets/my-posts-type-widget.php
mdryvescouzy.com/wp-content/plugins/cherry-plugin/includes/widgets/my-recent-posts.php
mdryvescouzy.com/wp-content/plugins/cherry-plugin/includes/widgets/my-social-widget.php
mdryvescouzy.com/wp-content/plugins/cherry-plugin/includes/widgets/my-vcard-widget.php
mdryvescouzy.com/wp-content/plugins/cherry-plugin/includes/widgets/register-widgets.php
mdryvescouzy.com/wp-content/themes/CherryFramework/admin/options-medialibrary-uploader.php
mdryvescouzy.com/wp-content/themes/CherryFramework/functions.php
mdryvescouzy.com/wp-content/themes/CherryFramework/includes/lessc.inc.php
pavillonmadeleine.fr/wp-config.php
pavillonmadeleine.fr/wp-content/plugins/cherry-plugin/includes/plugin-assets.php
pavillonmadeleine.fr/wp-content/plugins/cherry-plugin/includes/plugin-functions.php
pavillonmadeleine.fr/wp-content/plugins/cherry-plugin/includes/shortcodes/carousel-owl.php
pavillonmadeleine.fr/wp-content/plugins/cherry-plugin/includes/shortcodes/carousel.php
pavillonmadeleine.fr/wp-content/plugins/cherry-plugin/includes/widgets/cherry-banner-widget.php
pavillonmadeleine.fr/wp-content/plugins/cherry-plugin/includes/widgets/cherry-instagram-widget.php
pavillonmadeleine.fr/wp-content/plugins/cherry-plugin/includes/widgets/cherry-pinterest-embed-widget.php
pavillonmadeleine.fr/wp-content/plugins/cherry-plugin/includes/widgets/cherry-twitter-embed-widget.php
pavillonmadeleine.fr/wp-content/plugins/cherry-plugin/includes/widgets/my-banners-widget.php
pavillonmadeleine.fr/wp-content/plugins/cherry-plugin/includes/widgets/my-comment-widget.php
pavillonmadeleine.fr/wp-content/plugins/cherry-plugin/includes/widgets/my-flickr-widget.php
pavillonmadeleine.fr/wp-content/plugins/cherry-plugin/includes/widgets/my-post-cycle-widget.php
pavillonmadeleine.fr/wp-content/plugins/cherry-plugin/includes/widgets/my-posts-type-widget.php
pavillonmadeleine.fr/wp-content/plugins/cherry-plugin/includes/widgets/my-recent-posts.php
pavillonmadeleine.fr/wp-content/plugins/cherry-plugin/includes/widgets/my-social-widget.php
pavillonmadeleine.fr/wp-content/plugins/cherry-plugin/includes/widgets/my-vcard-widget.php
pavillonmadeleine.fr/wp-content/plugins/cherry-plugin/includes/widgets/register-widgets.php
pavillonmadeleine.fr/wp-content/themes/CherryFramework/admin/options-medialibrary-uploader.php
pavillonmadeleine.fr/wp-content/themes/CherryFramework/functions.php
pavillonmadeleine.fr/wp-content/themes/CherryFramework/includes/lessc.inc.php
pavillonmadeleine.fr/wp-content/themes/CherryFramework/includes/theme-scripts.php

index d6ebd4805981b8400db3e3291c74a743fef9a824..119dab5d824cd91536965ba4d8782bd9a57381a7 100644 (file)
@@ -1,8 +1,15 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<module type="JAVA_MODULE" version="4">
-  <component name="NewModuleRootManager" inherit-compiler-output="true">
-    <exclude-output />
-    <content url="file://$MODULE_DIR$" />
+<module type="WEB_MODULE" version="4">
+  <component name="NewModuleRootManager">
+    <content url="file://$MODULE_DIR$">
+      <sourceFolder url="file://$MODULE_DIR$/cesaretleonie.fr/wp-content/plugins/wp-mail-smtp/src" isTestSource="false" packagePrefix="WPMailSMTP" />
+      <sourceFolder url="file://$MODULE_DIR$/cesaretleonie.fr/wp-includes" isTestSource="false" packagePrefix="PHPMailer" />
+      <sourceFolder url="file://$MODULE_DIR$/mdryvescouzy.com/wp-content/mu-plugins/cube/src" isTestSource="false" packagePrefix="Cube" />
+      <sourceFolder url="file://$MODULE_DIR$/mdryvescouzy.com/wp-content/plugins/wp-mail-smtp/src" isTestSource="false" packagePrefix="WPMailSMTP" />
+      <sourceFolder url="file://$MODULE_DIR$/mdryvescouzy.com/wp-includes" isTestSource="false" packagePrefix="PHPMailer" />
+      <sourceFolder url="file://$MODULE_DIR$/pavillonmadeleine.fr/wp-content/plugins/wp-mail-smtp/src" isTestSource="false" packagePrefix="WPMailSMTP" />
+      <sourceFolder url="file://$MODULE_DIR$/pavillonmadeleine.fr/wp-includes" isTestSource="false" packagePrefix="PHPMailer" />
+    </content>
     <orderEntry type="inheritedJdk" />
     <orderEntry type="sourceFolder" forTests="false" />
   </component>
index a0c346fb1eaff4cc07741a5ced064671cf02952b..2a5b5ea4be6ed72131812bec80caac35e62a379e 100644 (file)
@@ -78,8 +78,6 @@ define('WP_DEBUG', false);
 
 define( 'WP_POST_REVISIONS', 5 );
 
-define( 'AUTOMATIC_UPDATER_DISABLED', true );
-
 /* C'est tout, ne touchez pas Ã  ce qui suit ! Bon blogging ! */
 
 /** Chemin absolu vers le dossier de WordPress. */
index 935b2f7a577eef8595a1665a2ff064ff084ba984..9901eacd985b44ce189d6e1647289182866bb425 100644 (file)
@@ -3,10 +3,10 @@
        include_once (CHERRY_PLUGIN_DIR . 'includes/widgets/register-widgets.php');
 
        // Exclude widget manager for customizer
-       global $wp_customize;
+       /*global $wp_customize;
        if ( !isset( $wp_customize ) ) {
                include_once (CHERRY_PLUGIN_DIR . 'includes/widgets/widgets-manager.php');
-       }
+       }*/
 
 //-----------------------------------------------------------------------------
 // Maintenance Mode
@@ -99,7 +99,7 @@
                        $site_uri = $_SERVER['PHP_SELF'];
                } else {
                        $site_uri = $_SERVER['REQUEST_URI'];
-                       $https = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
+                       $https = empty($_SERVER["HTTPS"]) ? '' : (($_SERVER["HTTPS"] == "on") ? "s" : "");
                        $site_protocol = strtolower($_SERVER["SERVER_PROTOCOL"]);
                        $site_protocol = substr($site_protocol,0,strpos($site_protocol,"/")).$https;
                        $site_port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
index 4a4a9b297f9d1fd2e263ff20a8ee0341e780dd1b..9dfa537040d0bf1b87bd0f7448637401f48eb55c 100644 (file)
@@ -4,8 +4,9 @@
 //------------------------------------------------------
 if ( !function_exists('my_string_limit_words') ) {
        function my_string_limit_words($string, $word_limit) {
-               if ( empty($string{0}) )
-                       return;
+               if ( empty($string[0]) ) {
+            return;
+        }
 
                $words = explode( ' ', $string, ( $word_limit + 1 ) );
                if ( count( $words ) > $word_limit ) {
index 62b5a1999e65f79fa3d4e36aa82a2516713df148..7f96a798f22c64c998da61566a3fbc2ade511df6 100644 (file)
@@ -179,14 +179,14 @@ if ( !function_exists('shortcode_carousel_owl') ) {
                                                        }\r
 \r
                                                        // post title\r
-                                                       if ( !empty($post_title{0}) ) {\r
+                                                       if ( !empty($post_title[0]) ) {\r
                                                                $output .= '<h5><a href="' . $post_permalink . '" title="' . $post_title_attr . '">';\r
                                                                        $output .= $post_title;\r
                                                                $output .= '</a></h5>';\r
                                                        }\r
 \r
                                                        // post excerpt\r
-                                                       if ( !empty($excerpt{0}) ) {\r
+                                                       if ( !empty($excerpt[0]) ) {\r
                                                                $output .= $excerpt_count > 0 ? '<p class="excerpt">' . wp_trim_words( $excerpt, $excerpt_count ) . '</p>' : '';\r
                                                        }\r
 \r
index 60241b0b74ae3d7c1f80d8ae52ab57d4be28081e..1020936d4591b6e360a670890baa3426e9ba37a8 100644 (file)
@@ -48,7 +48,7 @@ if ( !function_exists('shortcode_carousel') ) {
                $itemcount = 0;\r
 \r
                $output = '<div class="carousel-wrap ' . $custom_class . '">';\r
-                       if ( !empty( $title{0} ) ) {\r
+                       if ( !empty( $title[0] ) ) {\r
                                $output .= '<h2>' . esc_html( $title ) . '</h2>';\r
                        }\r
                        $output .= '<div id="carousel-' . $carousel_uniqid . '" class="es-carousel-wrapper">';\r
@@ -172,14 +172,14 @@ if ( !function_exists('shortcode_carousel') ) {
                                                                }\r
 \r
                                                                // post title\r
-                                                               if ( !empty($post_title{0}) ) {\r
+                                                               if ( !empty($post_title[0]) ) {\r
                                                                        $output .= '<h5><a href="' . $post_permalink . '" title="' . $post_title_attr . '">';\r
                                                                                $output .= $post_title;\r
                                                                        $output .= '</a></h5>';\r
                                                                }\r
 \r
                                                                // post excerpt\r
-                                                               if ( !empty($excerpt{0}) ) {\r
+                                                               if ( !empty($excerpt[0]) ) {\r
                                                                        $output .= $excerpt_count > 0 ? '<p class="excerpt">' . wp_trim_words( $excerpt, $excerpt_count ) . '</p>' : '';\r
                                                                }\r
 \r
index 29b214157c2576da0fa853b11cdbe9270c45dc79..ead956f5c5afa01b5b7808e3ac282036211ba2da 100644 (file)
@@ -1,8 +1,8 @@
 <?php
        class Cherry_Banner_Widget extends WP_Widget {
                /* constructor */
-               public function Cherry_Banner_Widget() {
-                       parent::__construct(false, __('Cherry - Banner', CHERRY_PLUGIN_DOMAIN), array('description'=>'Cherry Banner Widget'));
+        public function __construct(){
+                       parent::__construct("cherry-banner-widget", __('Cherry - Banner', CHERRY_PLUGIN_DOMAIN), array('description'=>'Cherry Banner Widget'));
                        add_action('admin_enqueue_scripts', array($this, 'upload_scripts'));
                        add_action('admin_enqueue_styles', array($this, 'upload_styles'));
                }
index 8490fdf6cd13523b008f91be933b60da4c5d13dd..d442a484d730f293088fedcc045447e25506f42c 100644 (file)
@@ -1,8 +1,8 @@
 <?php
        class Cherry_Instagram_Widget extends WP_Widget {
                /* constructor */
-               public function Cherry_Instagram_Widget() {
-                       parent::__construct(false, __('Cherry - Instagram', CHERRY_PLUGIN_DOMAIN), array('description' => __('Widget for popular social network Instagram', CHERRY_PLUGIN_DOMAIN)));
+        public function __construct(){
+                       parent::__construct('cherry-instagram-widget', __('Cherry - Instagram', CHERRY_PLUGIN_DOMAIN), array('description' => __('Widget for popular social network Instagram', CHERRY_PLUGIN_DOMAIN)));
                }
 
                /** @see WP_Widget::widget */
index 662cdae89dc7ff315772fe0200d5f1d07f7b93d2..534df75aa367f70d827b7211d9068535553c78f0 100644 (file)
@@ -3,8 +3,8 @@ $error = array();
        class Cherry_Pinterest_Embed_Widget extends WP_Widget {
 
                /* constructor */
-               public function Cherry_Pinterest_Embed_Widget() {
-                       parent::__construct(false, __('Cherry - Pinterest Embed', CHERRY_PLUGIN_DOMAIN), array('description' => __('Widget for Pinterest embed content', CHERRY_PLUGIN_DOMAIN)));
+        public function __construct(){
+                       parent::__construct('cherry-pinterest-embed-widget', __('Cherry - Pinterest Embed', CHERRY_PLUGIN_DOMAIN), array('description' => __('Widget for Pinterest embed content', CHERRY_PLUGIN_DOMAIN)));
                }
 
                /** @see WP_Widget::widget */
index b2eb35d52f28c6c4451ca08a74d21f10f27caa8c..1d6e048c4f5e061ae59ac58ecba4591c1a9872da 100644 (file)
@@ -3,8 +3,8 @@ $error = array();
        class Cherry_Twitter_Embed_Widget extends WP_Widget {
 
                /* constructor */
-               public function Cherry_Twitter_Embed_Widget() {
-                       parent::__construct(false, __('Cherry - Twitter Embed', CHERRY_PLUGIN_DOMAIN), array('description' => __('Widget for Twitter embed content', CHERRY_PLUGIN_DOMAIN)));
+               public function __construct(){
+                       parent::__construct('cherry-twitter-embed-widget', __('Cherry - Twitter Embed', CHERRY_PLUGIN_DOMAIN), array('description' => __('Widget for Twitter embed content', CHERRY_PLUGIN_DOMAIN)));
                }
 
                /** @see WP_Widget::widget */
index 85f7671b104318a5e211ad68669eb84d4830ac3d..32a5277f786cfa384a962aa5034da1b12facbeb9 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 class Ad_125_125_Widget extends WP_Widget {
 
-       function Ad_125_125_Widget() {
+  public function __construct(){
                $widget_ops = array(
                        'classname'   => 'ad_125_125',
                        'description' => __( 'Add 125x125 ads.', CHERRY_PLUGIN_DOMAIN ),
index 5965413a091e3bfdb7a96879aec5162ffb3368b5..a7081c1f2d0a0d600f5997c52ce29e803350b93a 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 class MY_CommentWidget extends WP_Widget {
 
-       function MY_CommentWidget() {
+  public function __construct(){
                parent::__construct( 'my-recent-comments', $name = __( 'Cherry - Recent Comments', CHERRY_PLUGIN_DOMAIN ) );
        }
 
index 2f736643abcaaeb7b25faf25acf26fb4be307b67..8b4c1b2c88a91d66f92024b8880b8800f179b3ae 100644 (file)
@@ -2,8 +2,8 @@
 // =============================== My Flickr widget  ======================================
 class MY_FlickrWidget extends WP_Widget {
        /* constructor */
-       function MY_FlickrWidget() {
-               parent::__construct( false, $name = __( 'Cherry - Flickr', CHERRY_PLUGIN_DOMAIN ) );
+  public function __construct(){
+               parent::__construct( 'my-flickr-widget', $name = __( 'Cherry - Flickr', CHERRY_PLUGIN_DOMAIN ) );
        }
 
        /** @see WP_Widget::widget */
index 2ab2629d33d0096549461c44560db2d6274dd3ac..2b0233bbc2d594d60e40fd67b51dd05442fe5ea2 100644 (file)
@@ -2,8 +2,8 @@
 // =============================== My Post Cycle widget ======================================
 class MY_CycleWidget extends WP_Widget {
        /* constructor */
-       function MY_CycleWidget() {
-               parent::__construct( false, $name = __( 'Cherry - Post Cycle', CHERRY_PLUGIN_DOMAIN ) );
+  public function __construct(){
+               parent::__construct( 'my-post-cycle-widget', $name = __( 'Cherry - Post Cycle', CHERRY_PLUGIN_DOMAIN ) );
        }
 
        /* @see WP_Widget::widget */
index e885dbed8729bbc53aa0e6bc24e4a4c3280ff062..b101290c25a1746fd30a6874fd416bbbb96e6020 100644 (file)
@@ -3,10 +3,10 @@
 // =============================== My advanced cycle widget ======================================*/
 class MY_PostsTypeWidget extends WP_Widget {
 
-function MY_PostsTypeWidget() {
+public function __construct(){
        $widget_ops = array('classname' => 'my_posts_type_widget', 'description' => __('Show custom posts', CHERRY_PLUGIN_DOMAIN));
        $control_ops = array('width' => 510, 'height' => 350);
-       parent::__construct( false, $name = __( 'Cherry - Advanced Cycle', CHERRY_PLUGIN_DOMAIN ), $widget_ops, $control_ops );
+       parent::__construct( 'my-posts-type-widget', $name = __( 'Cherry - Advanced Cycle', CHERRY_PLUGIN_DOMAIN ), $widget_ops, $control_ops );
 }
 
 /**
index ceef6c186ca77ee1b75b3f200aa05db5367a2167..841fd87c0f76a826b865e0e3c07bfe71ba715529 100644 (file)
@@ -2,9 +2,9 @@
 // =============================== My Recent Posts (News widget) ======================================
 class MY_PostWidget extends WP_Widget {
        /** constructor */
-       function MY_PostWidget() {
-               parent::__construct( false, $name = __( 'Cherry - Recent Posts', CHERRY_PLUGIN_DOMAIN ) );
-       }
+  public function __construct(){
+      parent::__construct( 'my-recent-posts', $name = __( 'Cherry - Recent Posts', CHERRY_PLUGIN_DOMAIN )  );
+  }
 
        /** @see WP_Widget::widget */
        function widget($args, $instance) {
index 509a5c8143e4a1249563427b5ff609957eacc77c..ab407b218ddafd1ae8dcb3913f5e5a579a904583 100644 (file)
@@ -2,9 +2,9 @@
 // =============================== My Social Networks Widget ====================================== //
 class My_SocialNetworksWidget extends WP_Widget {
 
-       function My_SocialNetworksWidget() {
+  public function __construct(){
                $widget_ops = array('classname' => 'social_networks_widget', 'description' => __('Link to your social networks.', CHERRY_PLUGIN_DOMAIN) );
-               parent::__construct( false, $name = __( 'Cherry - Social Networks', CHERRY_PLUGIN_DOMAIN ), $widget_ops );
+               parent::__construct( 'my-social-widget', $name = __( 'Cherry - Social Networks', CHERRY_PLUGIN_DOMAIN ), $widget_ops );
        }
 
        function widget( $args, $instance ) {
index 20c653e281f726c38ce02f3ae12b4afabb857e95..0f9cdc0f24c1f48aba9151c1839e9637cdc6429f 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 class MY_Vcard_Widget extends WP_Widget {
-       function MY_Vcard_Widget() {
+  public function __construct(){
                $widget_ops = array('classname' => 'widget_cherry_vcard', 'description' => __('Use this widget to add a vCard', CHERRY_PLUGIN_DOMAIN));
                parent::__construct( 'widget_cherry_vcard', $name = __( 'Cherry - vCard', CHERRY_PLUGIN_DOMAIN ), $widget_ops );
                $this->alt_option_name = 'widget_cherry_vcard';
index c013681f1b35e4ce2c6282f823cf3228c1c58edc..c2258e3aa8d1ed1a5b2bd8a57f45946bc872bc92 100644 (file)
@@ -27,5 +27,4 @@ function cherry_load_widgets() {
                }\r
        }\r
 }\r
-add_action( 'widgets_init', 'cherry_load_widgets' );\r
-?>
\ No newline at end of file
+add_action( 'widgets_init', 'cherry_load_widgets' );
\ No newline at end of file
index 2cc4139014ea6144771ffeb47a1f075ac2b44773..ab7d28905f1d2ac7be7e290619fac60579f9d621 100644 (file)
@@ -214,7 +214,7 @@ if ( ! function_exists( 'optionsframework_mlu_get_silentpost' ) ) {
                        $_posts = $wpdb->get_row( $query );
                        
                        // If we've got a post, loop through and get it's ID.
-                       if ( count( $_posts ) ) {
+                       if ( count( (array)$_posts ) ) {
                                $_id = $_posts->ID;
                        } else {
                        
index fd70c6d854ead6dcc15ed3f323ff6188c8c3d31c..3e076ea8361687beea7cb03ecd436b7d28e54587 100644 (file)
        }
 
        // removes detailed login error information for security
-       add_filter('login_errors',create_function('$a', "return null;"));
+       add_filter('login_errors',function($a){ return null;});
 
        /*
         * Loads the Options Panel
index 411ca2fab8890b41576a4c46073131c1ace9844c..7b8103739431b6a9597af5688fbca79936c1f521 100644 (file)
@@ -654,7 +654,7 @@ class lessc {
                                        if ($suffix !== null &&
                                                $subProp[0] == "assign" &&
                                                is_string($subProp[1]) &&
-                                               $subProp[1]{0} != $this->vPrefix)
+                                               $subProp[1][0] != $this->vPrefix)
                                        {
                                                $subProp[2] = array(
                                                        'list', ' ',
@@ -1621,7 +1621,7 @@ class lessc {
                $this->pushEnv();
                $parser = new lessc_parser($this, __METHOD__);
                foreach ($args as $name => $strValue) {
-                       if ($name{0} != '@') $name = '@'.$name;
+                       if ($name[0] != '@') $name = '@'.$name;
                        $parser->count = 0;
                        $parser->buffer = (string)$strValue;
                        if (!$parser->propertyValue($value)) {
@@ -2278,7 +2278,7 @@ class lessc_parser {
                                $hidden = true;
                                if (!isset($block->args)) {
                                        foreach ($block->tags as $tag) {
-                                               if (!is_string($tag) || $tag{0} != $this->lessc->mPrefix) {
+                                               if (!is_string($tag) || $tag[0] != $this->lessc->mPrefix) {
                                                        $hidden = false;
                                                        break;
                                                }
@@ -2332,7 +2332,7 @@ class lessc_parser {
        protected function fixTags($tags) {
                // move @ tags out of variable namespace
                foreach ($tags as &$tag) {
-                       if ($tag{0} == $this->lessc->vPrefix)
+                       if ($tag[0] == $this->lessc->vPrefix)
                                $tag[0] = $this->lessc->mPrefix;
                }
                return $tags;
@@ -3062,7 +3062,7 @@ class lessc_parser {
        protected function end() {
                if ($this->literal(';')) {
                        return true;
-               } elseif ($this->count == strlen($this->buffer) || $this->buffer{$this->count} == '}') {
+               } elseif ($this->count == strlen($this->buffer) || $this->buffer[$this->count] == '}') {
                        // if there is end of file or a closing block next then we don't need a ;
                        return true;
                }
index 5b66fd8cad9f0cabb48f13d47501eb0c468978e6..adb10c6b8ef888e095198897034443b89e2ca60e 100644 (file)
@@ -74,7 +74,8 @@ add_action('wp_enqueue_scripts', 'cherry_scripts');
 function cherry_stylesheets() {
        if ( CURRENT_THEME != 'cherry' ) {
                if ( file_exists( CHILD_DIR . '/main-style.css' ) ) {
-                       wp_enqueue_style( CURRENT_THEME, CHILD_URL . '/main-style.css', false, null, 'all' );
+            $cache_buster = filemtime(CHILD_DIR . '/main-style.css');
+                       wp_enqueue_style( CURRENT_THEME, CHILD_URL . '/main-style.css', false, $cache_buster, 'all' );
                }
 
                if ( file_exists( CHILD_DIR . '/includes/widgets/my-flickr-widget.php' ) ) {
@@ -99,4 +100,4 @@ function tz_admin_js($hook) {
        }
 }
 add_action('admin_enqueue_scripts', 'tz_admin_js', 10, 1);
-?>
\ No newline at end of file
+?>
index 935b2f7a577eef8595a1665a2ff064ff084ba984..9901eacd985b44ce189d6e1647289182866bb425 100644 (file)
@@ -3,10 +3,10 @@
        include_once (CHERRY_PLUGIN_DIR . 'includes/widgets/register-widgets.php');
 
        // Exclude widget manager for customizer
-       global $wp_customize;
+       /*global $wp_customize;
        if ( !isset( $wp_customize ) ) {
                include_once (CHERRY_PLUGIN_DIR . 'includes/widgets/widgets-manager.php');
-       }
+       }*/
 
 //-----------------------------------------------------------------------------
 // Maintenance Mode
@@ -99,7 +99,7 @@
                        $site_uri = $_SERVER['PHP_SELF'];
                } else {
                        $site_uri = $_SERVER['REQUEST_URI'];
-                       $https = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
+                       $https = empty($_SERVER["HTTPS"]) ? '' : (($_SERVER["HTTPS"] == "on") ? "s" : "");
                        $site_protocol = strtolower($_SERVER["SERVER_PROTOCOL"]);
                        $site_protocol = substr($site_protocol,0,strpos($site_protocol,"/")).$https;
                        $site_port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
index 4a4a9b297f9d1fd2e263ff20a8ee0341e780dd1b..9dfa537040d0bf1b87bd0f7448637401f48eb55c 100644 (file)
@@ -4,8 +4,9 @@
 //------------------------------------------------------
 if ( !function_exists('my_string_limit_words') ) {
        function my_string_limit_words($string, $word_limit) {
-               if ( empty($string{0}) )
-                       return;
+               if ( empty($string[0]) ) {
+            return;
+        }
 
                $words = explode( ' ', $string, ( $word_limit + 1 ) );
                if ( count( $words ) > $word_limit ) {
index 00ce183a5b9e59c4464c13d4053569a466f83ca9..be168447a653ad0afbda5edff5da33de003cc894 100644 (file)
@@ -179,14 +179,14 @@ if ( !function_exists('shortcode_carousel_owl') ) {
                                                        }
 
                                                        // post title
-                                                       if ( !empty($post_title{0}) ) {
+                                                       if ( !empty($post_title[0]) ) {
                                                                $output .= '<h5><a href="' . $post_permalink . '" title="' . $post_title_attr . '">';
                                                                        $output .= $post_title;
                                                                $output .= '</a></h5>';
                                                        }
 
                                                        // post excerpt
-                                                       if ( !empty($excerpt{0}) ) {
+                                                       if ( !empty($excerpt[0]) ) {
                                                                $output .= $excerpt_count > 0 ? '<p class="excerpt">' . wp_trim_words( $excerpt, $excerpt_count ) . '</p>' : '';
                                                        }
 
index af55333ded7f811803c3299615a0169fe6dff4ff..5585293f479b53e4f8301c6658b297e996d3d9f6 100644 (file)
@@ -48,7 +48,7 @@ if ( !function_exists('shortcode_carousel') ) {
                $itemcount = 0;
 
                $output = '<div class="carousel-wrap ' . $custom_class . '">';
-                       if ( !empty( $title{0} ) ) {
+                       if ( !empty( $title[0] ) ) {
                                $output .= '<h2>' . esc_html( $title ) . '</h2>';
                        }
                        $output .= '<div id="carousel-' . $carousel_uniqid . '" class="es-carousel-wrapper">';
@@ -172,14 +172,14 @@ if ( !function_exists('shortcode_carousel') ) {
                                                                }
 
                                                                // post title
-                                                               if ( !empty($post_title{0}) ) {
+                                                               if ( !empty($post_title[0]) ) {
                                                                        $output .= '<h5><a href="' . $post_permalink . '" title="' . $post_title_attr . '">';
                                                                                $output .= $post_title;
                                                                        $output .= '</a></h5>';
                                                                }
 
                                                                // post excerpt
-                                                               if ( !empty($excerpt{0}) ) {
+                                                               if ( !empty($excerpt[0]) ) {
                                                                        $output .= $excerpt_count > 0 ? '<p class="excerpt">' . wp_trim_words( $excerpt, $excerpt_count ) . '</p>' : '';
                                                                }
 
index 29b214157c2576da0fa853b11cdbe9270c45dc79..ead956f5c5afa01b5b7808e3ac282036211ba2da 100644 (file)
@@ -1,8 +1,8 @@
 <?php
        class Cherry_Banner_Widget extends WP_Widget {
                /* constructor */
-               public function Cherry_Banner_Widget() {
-                       parent::__construct(false, __('Cherry - Banner', CHERRY_PLUGIN_DOMAIN), array('description'=>'Cherry Banner Widget'));
+        public function __construct(){
+                       parent::__construct("cherry-banner-widget", __('Cherry - Banner', CHERRY_PLUGIN_DOMAIN), array('description'=>'Cherry Banner Widget'));
                        add_action('admin_enqueue_scripts', array($this, 'upload_scripts'));
                        add_action('admin_enqueue_styles', array($this, 'upload_styles'));
                }
index 8490fdf6cd13523b008f91be933b60da4c5d13dd..d442a484d730f293088fedcc045447e25506f42c 100644 (file)
@@ -1,8 +1,8 @@
 <?php
        class Cherry_Instagram_Widget extends WP_Widget {
                /* constructor */
-               public function Cherry_Instagram_Widget() {
-                       parent::__construct(false, __('Cherry - Instagram', CHERRY_PLUGIN_DOMAIN), array('description' => __('Widget for popular social network Instagram', CHERRY_PLUGIN_DOMAIN)));
+        public function __construct(){
+                       parent::__construct('cherry-instagram-widget', __('Cherry - Instagram', CHERRY_PLUGIN_DOMAIN), array('description' => __('Widget for popular social network Instagram', CHERRY_PLUGIN_DOMAIN)));
                }
 
                /** @see WP_Widget::widget */
index 662cdae89dc7ff315772fe0200d5f1d07f7b93d2..534df75aa367f70d827b7211d9068535553c78f0 100644 (file)
@@ -3,8 +3,8 @@ $error = array();
        class Cherry_Pinterest_Embed_Widget extends WP_Widget {
 
                /* constructor */
-               public function Cherry_Pinterest_Embed_Widget() {
-                       parent::__construct(false, __('Cherry - Pinterest Embed', CHERRY_PLUGIN_DOMAIN), array('description' => __('Widget for Pinterest embed content', CHERRY_PLUGIN_DOMAIN)));
+        public function __construct(){
+                       parent::__construct('cherry-pinterest-embed-widget', __('Cherry - Pinterest Embed', CHERRY_PLUGIN_DOMAIN), array('description' => __('Widget for Pinterest embed content', CHERRY_PLUGIN_DOMAIN)));
                }
 
                /** @see WP_Widget::widget */
index b2eb35d52f28c6c4451ca08a74d21f10f27caa8c..1d6e048c4f5e061ae59ac58ecba4591c1a9872da 100644 (file)
@@ -3,8 +3,8 @@ $error = array();
        class Cherry_Twitter_Embed_Widget extends WP_Widget {
 
                /* constructor */
-               public function Cherry_Twitter_Embed_Widget() {
-                       parent::__construct(false, __('Cherry - Twitter Embed', CHERRY_PLUGIN_DOMAIN), array('description' => __('Widget for Twitter embed content', CHERRY_PLUGIN_DOMAIN)));
+               public function __construct(){
+                       parent::__construct('cherry-twitter-embed-widget', __('Cherry - Twitter Embed', CHERRY_PLUGIN_DOMAIN), array('description' => __('Widget for Twitter embed content', CHERRY_PLUGIN_DOMAIN)));
                }
 
                /** @see WP_Widget::widget */
index 85f7671b104318a5e211ad68669eb84d4830ac3d..32a5277f786cfa384a962aa5034da1b12facbeb9 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 class Ad_125_125_Widget extends WP_Widget {
 
-       function Ad_125_125_Widget() {
+  public function __construct(){
                $widget_ops = array(
                        'classname'   => 'ad_125_125',
                        'description' => __( 'Add 125x125 ads.', CHERRY_PLUGIN_DOMAIN ),
index 5965413a091e3bfdb7a96879aec5162ffb3368b5..a7081c1f2d0a0d600f5997c52ce29e803350b93a 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 class MY_CommentWidget extends WP_Widget {
 
-       function MY_CommentWidget() {
+  public function __construct(){
                parent::__construct( 'my-recent-comments', $name = __( 'Cherry - Recent Comments', CHERRY_PLUGIN_DOMAIN ) );
        }
 
index 2f736643abcaaeb7b25faf25acf26fb4be307b67..8b4c1b2c88a91d66f92024b8880b8800f179b3ae 100644 (file)
@@ -2,8 +2,8 @@
 // =============================== My Flickr widget  ======================================
 class MY_FlickrWidget extends WP_Widget {
        /* constructor */
-       function MY_FlickrWidget() {
-               parent::__construct( false, $name = __( 'Cherry - Flickr', CHERRY_PLUGIN_DOMAIN ) );
+  public function __construct(){
+               parent::__construct( 'my-flickr-widget', $name = __( 'Cherry - Flickr', CHERRY_PLUGIN_DOMAIN ) );
        }
 
        /** @see WP_Widget::widget */
index 2ab2629d33d0096549461c44560db2d6274dd3ac..2b0233bbc2d594d60e40fd67b51dd05442fe5ea2 100644 (file)
@@ -2,8 +2,8 @@
 // =============================== My Post Cycle widget ======================================
 class MY_CycleWidget extends WP_Widget {
        /* constructor */
-       function MY_CycleWidget() {
-               parent::__construct( false, $name = __( 'Cherry - Post Cycle', CHERRY_PLUGIN_DOMAIN ) );
+  public function __construct(){
+               parent::__construct( 'my-post-cycle-widget', $name = __( 'Cherry - Post Cycle', CHERRY_PLUGIN_DOMAIN ) );
        }
 
        /* @see WP_Widget::widget */
index e885dbed8729bbc53aa0e6bc24e4a4c3280ff062..b101290c25a1746fd30a6874fd416bbbb96e6020 100644 (file)
@@ -3,10 +3,10 @@
 // =============================== My advanced cycle widget ======================================*/
 class MY_PostsTypeWidget extends WP_Widget {
 
-function MY_PostsTypeWidget() {
+public function __construct(){
        $widget_ops = array('classname' => 'my_posts_type_widget', 'description' => __('Show custom posts', CHERRY_PLUGIN_DOMAIN));
        $control_ops = array('width' => 510, 'height' => 350);
-       parent::__construct( false, $name = __( 'Cherry - Advanced Cycle', CHERRY_PLUGIN_DOMAIN ), $widget_ops, $control_ops );
+       parent::__construct( 'my-posts-type-widget', $name = __( 'Cherry - Advanced Cycle', CHERRY_PLUGIN_DOMAIN ), $widget_ops, $control_ops );
 }
 
 /**
index ceef6c186ca77ee1b75b3f200aa05db5367a2167..841fd87c0f76a826b865e0e3c07bfe71ba715529 100644 (file)
@@ -2,9 +2,9 @@
 // =============================== My Recent Posts (News widget) ======================================
 class MY_PostWidget extends WP_Widget {
        /** constructor */
-       function MY_PostWidget() {
-               parent::__construct( false, $name = __( 'Cherry - Recent Posts', CHERRY_PLUGIN_DOMAIN ) );
-       }
+  public function __construct(){
+      parent::__construct( 'my-recent-posts', $name = __( 'Cherry - Recent Posts', CHERRY_PLUGIN_DOMAIN )  );
+  }
 
        /** @see WP_Widget::widget */
        function widget($args, $instance) {
index 509a5c8143e4a1249563427b5ff609957eacc77c..ab407b218ddafd1ae8dcb3913f5e5a579a904583 100644 (file)
@@ -2,9 +2,9 @@
 // =============================== My Social Networks Widget ====================================== //
 class My_SocialNetworksWidget extends WP_Widget {
 
-       function My_SocialNetworksWidget() {
+  public function __construct(){
                $widget_ops = array('classname' => 'social_networks_widget', 'description' => __('Link to your social networks.', CHERRY_PLUGIN_DOMAIN) );
-               parent::__construct( false, $name = __( 'Cherry - Social Networks', CHERRY_PLUGIN_DOMAIN ), $widget_ops );
+               parent::__construct( 'my-social-widget', $name = __( 'Cherry - Social Networks', CHERRY_PLUGIN_DOMAIN ), $widget_ops );
        }
 
        function widget( $args, $instance ) {
index 20c653e281f726c38ce02f3ae12b4afabb857e95..0f9cdc0f24c1f48aba9151c1839e9637cdc6429f 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 class MY_Vcard_Widget extends WP_Widget {
-       function MY_Vcard_Widget() {
+  public function __construct(){
                $widget_ops = array('classname' => 'widget_cherry_vcard', 'description' => __('Use this widget to add a vCard', CHERRY_PLUGIN_DOMAIN));
                parent::__construct( 'widget_cherry_vcard', $name = __( 'Cherry - vCard', CHERRY_PLUGIN_DOMAIN ), $widget_ops );
                $this->alt_option_name = 'widget_cherry_vcard';
index 063a53e865bb3abf761f83248d1fb203a5292f8e..891e42fd536d9ac518ebf90771cda12f9390dd99 100644 (file)
@@ -27,5 +27,4 @@ function cherry_load_widgets() {
                }
        }
 }
-add_action( 'widgets_init', 'cherry_load_widgets' );
-?>
\ No newline at end of file
+add_action( 'widgets_init', 'cherry_load_widgets' );
\ No newline at end of file
index 2cc4139014ea6144771ffeb47a1f075ac2b44773..ab7d28905f1d2ac7be7e290619fac60579f9d621 100644 (file)
@@ -214,7 +214,7 @@ if ( ! function_exists( 'optionsframework_mlu_get_silentpost' ) ) {
                        $_posts = $wpdb->get_row( $query );
                        
                        // If we've got a post, loop through and get it's ID.
-                       if ( count( $_posts ) ) {
+                       if ( count( (array)$_posts ) ) {
                                $_id = $_posts->ID;
                        } else {
                        
index fd70c6d854ead6dcc15ed3f323ff6188c8c3d31c..3e076ea8361687beea7cb03ecd436b7d28e54587 100644 (file)
        }
 
        // removes detailed login error information for security
-       add_filter('login_errors',create_function('$a', "return null;"));
+       add_filter('login_errors',function($a){ return null;});
 
        /*
         * Loads the Options Panel
index 411ca2fab8890b41576a4c46073131c1ace9844c..7b8103739431b6a9597af5688fbca79936c1f521 100644 (file)
@@ -654,7 +654,7 @@ class lessc {
                                        if ($suffix !== null &&
                                                $subProp[0] == "assign" &&
                                                is_string($subProp[1]) &&
-                                               $subProp[1]{0} != $this->vPrefix)
+                                               $subProp[1][0] != $this->vPrefix)
                                        {
                                                $subProp[2] = array(
                                                        'list', ' ',
@@ -1621,7 +1621,7 @@ class lessc {
                $this->pushEnv();
                $parser = new lessc_parser($this, __METHOD__);
                foreach ($args as $name => $strValue) {
-                       if ($name{0} != '@') $name = '@'.$name;
+                       if ($name[0] != '@') $name = '@'.$name;
                        $parser->count = 0;
                        $parser->buffer = (string)$strValue;
                        if (!$parser->propertyValue($value)) {
@@ -2278,7 +2278,7 @@ class lessc_parser {
                                $hidden = true;
                                if (!isset($block->args)) {
                                        foreach ($block->tags as $tag) {
-                                               if (!is_string($tag) || $tag{0} != $this->lessc->mPrefix) {
+                                               if (!is_string($tag) || $tag[0] != $this->lessc->mPrefix) {
                                                        $hidden = false;
                                                        break;
                                                }
@@ -2332,7 +2332,7 @@ class lessc_parser {
        protected function fixTags($tags) {
                // move @ tags out of variable namespace
                foreach ($tags as &$tag) {
-                       if ($tag{0} == $this->lessc->vPrefix)
+                       if ($tag[0] == $this->lessc->vPrefix)
                                $tag[0] = $this->lessc->mPrefix;
                }
                return $tags;
@@ -3062,7 +3062,7 @@ class lessc_parser {
        protected function end() {
                if ($this->literal(';')) {
                        return true;
-               } elseif ($this->count == strlen($this->buffer) || $this->buffer{$this->count} == '}') {
+               } elseif ($this->count == strlen($this->buffer) || $this->buffer[$this->count] == '}') {
                        // if there is end of file or a closing block next then we don't need a ;
                        return true;
                }
index 346a7e0fd59139c99cda4b9dbaa825e44691495c..1a4f83ed7593ff6174fd1c14180e0a2f46bbebb0 100644 (file)
@@ -78,8 +78,6 @@ define('WP_DEBUG', false);
 
 define( 'WP_POST_REVISIONS', 5 );
 
-define( 'AUTOMATIC_UPDATER_DISABLED', true );
-
 /* C'est tout, ne touchez pas Ã  ce qui suit ! Bon blogging ! */
 
 /** Chemin absolu vers le dossier de WordPress. */
index 935b2f7a577eef8595a1665a2ff064ff084ba984..9901eacd985b44ce189d6e1647289182866bb425 100644 (file)
@@ -3,10 +3,10 @@
        include_once (CHERRY_PLUGIN_DIR . 'includes/widgets/register-widgets.php');
 
        // Exclude widget manager for customizer
-       global $wp_customize;
+       /*global $wp_customize;
        if ( !isset( $wp_customize ) ) {
                include_once (CHERRY_PLUGIN_DIR . 'includes/widgets/widgets-manager.php');
-       }
+       }*/
 
 //-----------------------------------------------------------------------------
 // Maintenance Mode
@@ -99,7 +99,7 @@
                        $site_uri = $_SERVER['PHP_SELF'];
                } else {
                        $site_uri = $_SERVER['REQUEST_URI'];
-                       $https = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
+                       $https = empty($_SERVER["HTTPS"]) ? '' : (($_SERVER["HTTPS"] == "on") ? "s" : "");
                        $site_protocol = strtolower($_SERVER["SERVER_PROTOCOL"]);
                        $site_protocol = substr($site_protocol,0,strpos($site_protocol,"/")).$https;
                        $site_port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
index 4a4a9b297f9d1fd2e263ff20a8ee0341e780dd1b..9dfa537040d0bf1b87bd0f7448637401f48eb55c 100644 (file)
@@ -4,8 +4,9 @@
 //------------------------------------------------------
 if ( !function_exists('my_string_limit_words') ) {
        function my_string_limit_words($string, $word_limit) {
-               if ( empty($string{0}) )
-                       return;
+               if ( empty($string[0]) ) {
+            return;
+        }
 
                $words = explode( ' ', $string, ( $word_limit + 1 ) );
                if ( count( $words ) > $word_limit ) {
index 62b5a1999e65f79fa3d4e36aa82a2516713df148..7f96a798f22c64c998da61566a3fbc2ade511df6 100644 (file)
@@ -179,14 +179,14 @@ if ( !function_exists('shortcode_carousel_owl') ) {
                                                        }\r
 \r
                                                        // post title\r
-                                                       if ( !empty($post_title{0}) ) {\r
+                                                       if ( !empty($post_title[0]) ) {\r
                                                                $output .= '<h5><a href="' . $post_permalink . '" title="' . $post_title_attr . '">';\r
                                                                        $output .= $post_title;\r
                                                                $output .= '</a></h5>';\r
                                                        }\r
 \r
                                                        // post excerpt\r
-                                                       if ( !empty($excerpt{0}) ) {\r
+                                                       if ( !empty($excerpt[0]) ) {\r
                                                                $output .= $excerpt_count > 0 ? '<p class="excerpt">' . wp_trim_words( $excerpt, $excerpt_count ) . '</p>' : '';\r
                                                        }\r
 \r
index 60241b0b74ae3d7c1f80d8ae52ab57d4be28081e..1020936d4591b6e360a670890baa3426e9ba37a8 100644 (file)
@@ -48,7 +48,7 @@ if ( !function_exists('shortcode_carousel') ) {
                $itemcount = 0;\r
 \r
                $output = '<div class="carousel-wrap ' . $custom_class . '">';\r
-                       if ( !empty( $title{0} ) ) {\r
+                       if ( !empty( $title[0] ) ) {\r
                                $output .= '<h2>' . esc_html( $title ) . '</h2>';\r
                        }\r
                        $output .= '<div id="carousel-' . $carousel_uniqid . '" class="es-carousel-wrapper">';\r
@@ -172,14 +172,14 @@ if ( !function_exists('shortcode_carousel') ) {
                                                                }\r
 \r
                                                                // post title\r
-                                                               if ( !empty($post_title{0}) ) {\r
+                                                               if ( !empty($post_title[0]) ) {\r
                                                                        $output .= '<h5><a href="' . $post_permalink . '" title="' . $post_title_attr . '">';\r
                                                                                $output .= $post_title;\r
                                                                        $output .= '</a></h5>';\r
                                                                }\r
 \r
                                                                // post excerpt\r
-                                                               if ( !empty($excerpt{0}) ) {\r
+                                                               if ( !empty($excerpt[0]) ) {\r
                                                                        $output .= $excerpt_count > 0 ? '<p class="excerpt">' . wp_trim_words( $excerpt, $excerpt_count ) . '</p>' : '';\r
                                                                }\r
 \r
index 29b214157c2576da0fa853b11cdbe9270c45dc79..ead956f5c5afa01b5b7808e3ac282036211ba2da 100644 (file)
@@ -1,8 +1,8 @@
 <?php
        class Cherry_Banner_Widget extends WP_Widget {
                /* constructor */
-               public function Cherry_Banner_Widget() {
-                       parent::__construct(false, __('Cherry - Banner', CHERRY_PLUGIN_DOMAIN), array('description'=>'Cherry Banner Widget'));
+        public function __construct(){
+                       parent::__construct("cherry-banner-widget", __('Cherry - Banner', CHERRY_PLUGIN_DOMAIN), array('description'=>'Cherry Banner Widget'));
                        add_action('admin_enqueue_scripts', array($this, 'upload_scripts'));
                        add_action('admin_enqueue_styles', array($this, 'upload_styles'));
                }
index 8490fdf6cd13523b008f91be933b60da4c5d13dd..d442a484d730f293088fedcc045447e25506f42c 100644 (file)
@@ -1,8 +1,8 @@
 <?php
        class Cherry_Instagram_Widget extends WP_Widget {
                /* constructor */
-               public function Cherry_Instagram_Widget() {
-                       parent::__construct(false, __('Cherry - Instagram', CHERRY_PLUGIN_DOMAIN), array('description' => __('Widget for popular social network Instagram', CHERRY_PLUGIN_DOMAIN)));
+        public function __construct(){
+                       parent::__construct('cherry-instagram-widget', __('Cherry - Instagram', CHERRY_PLUGIN_DOMAIN), array('description' => __('Widget for popular social network Instagram', CHERRY_PLUGIN_DOMAIN)));
                }
 
                /** @see WP_Widget::widget */
index 662cdae89dc7ff315772fe0200d5f1d07f7b93d2..534df75aa367f70d827b7211d9068535553c78f0 100644 (file)
@@ -3,8 +3,8 @@ $error = array();
        class Cherry_Pinterest_Embed_Widget extends WP_Widget {
 
                /* constructor */
-               public function Cherry_Pinterest_Embed_Widget() {
-                       parent::__construct(false, __('Cherry - Pinterest Embed', CHERRY_PLUGIN_DOMAIN), array('description' => __('Widget for Pinterest embed content', CHERRY_PLUGIN_DOMAIN)));
+        public function __construct(){
+                       parent::__construct('cherry-pinterest-embed-widget', __('Cherry - Pinterest Embed', CHERRY_PLUGIN_DOMAIN), array('description' => __('Widget for Pinterest embed content', CHERRY_PLUGIN_DOMAIN)));
                }
 
                /** @see WP_Widget::widget */
index b2eb35d52f28c6c4451ca08a74d21f10f27caa8c..1d6e048c4f5e061ae59ac58ecba4591c1a9872da 100644 (file)
@@ -3,8 +3,8 @@ $error = array();
        class Cherry_Twitter_Embed_Widget extends WP_Widget {
 
                /* constructor */
-               public function Cherry_Twitter_Embed_Widget() {
-                       parent::__construct(false, __('Cherry - Twitter Embed', CHERRY_PLUGIN_DOMAIN), array('description' => __('Widget for Twitter embed content', CHERRY_PLUGIN_DOMAIN)));
+               public function __construct(){
+                       parent::__construct('cherry-twitter-embed-widget', __('Cherry - Twitter Embed', CHERRY_PLUGIN_DOMAIN), array('description' => __('Widget for Twitter embed content', CHERRY_PLUGIN_DOMAIN)));
                }
 
                /** @see WP_Widget::widget */
index 85f7671b104318a5e211ad68669eb84d4830ac3d..32a5277f786cfa384a962aa5034da1b12facbeb9 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 class Ad_125_125_Widget extends WP_Widget {
 
-       function Ad_125_125_Widget() {
+  public function __construct(){
                $widget_ops = array(
                        'classname'   => 'ad_125_125',
                        'description' => __( 'Add 125x125 ads.', CHERRY_PLUGIN_DOMAIN ),
index 5965413a091e3bfdb7a96879aec5162ffb3368b5..a7081c1f2d0a0d600f5997c52ce29e803350b93a 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 class MY_CommentWidget extends WP_Widget {
 
-       function MY_CommentWidget() {
+  public function __construct(){
                parent::__construct( 'my-recent-comments', $name = __( 'Cherry - Recent Comments', CHERRY_PLUGIN_DOMAIN ) );
        }
 
index 2f736643abcaaeb7b25faf25acf26fb4be307b67..8b4c1b2c88a91d66f92024b8880b8800f179b3ae 100644 (file)
@@ -2,8 +2,8 @@
 // =============================== My Flickr widget  ======================================
 class MY_FlickrWidget extends WP_Widget {
        /* constructor */
-       function MY_FlickrWidget() {
-               parent::__construct( false, $name = __( 'Cherry - Flickr', CHERRY_PLUGIN_DOMAIN ) );
+  public function __construct(){
+               parent::__construct( 'my-flickr-widget', $name = __( 'Cherry - Flickr', CHERRY_PLUGIN_DOMAIN ) );
        }
 
        /** @see WP_Widget::widget */
index 2ab2629d33d0096549461c44560db2d6274dd3ac..2b0233bbc2d594d60e40fd67b51dd05442fe5ea2 100644 (file)
@@ -2,8 +2,8 @@
 // =============================== My Post Cycle widget ======================================
 class MY_CycleWidget extends WP_Widget {
        /* constructor */
-       function MY_CycleWidget() {
-               parent::__construct( false, $name = __( 'Cherry - Post Cycle', CHERRY_PLUGIN_DOMAIN ) );
+  public function __construct(){
+               parent::__construct( 'my-post-cycle-widget', $name = __( 'Cherry - Post Cycle', CHERRY_PLUGIN_DOMAIN ) );
        }
 
        /* @see WP_Widget::widget */
index e885dbed8729bbc53aa0e6bc24e4a4c3280ff062..b101290c25a1746fd30a6874fd416bbbb96e6020 100644 (file)
@@ -3,10 +3,10 @@
 // =============================== My advanced cycle widget ======================================*/
 class MY_PostsTypeWidget extends WP_Widget {
 
-function MY_PostsTypeWidget() {
+public function __construct(){
        $widget_ops = array('classname' => 'my_posts_type_widget', 'description' => __('Show custom posts', CHERRY_PLUGIN_DOMAIN));
        $control_ops = array('width' => 510, 'height' => 350);
-       parent::__construct( false, $name = __( 'Cherry - Advanced Cycle', CHERRY_PLUGIN_DOMAIN ), $widget_ops, $control_ops );
+       parent::__construct( 'my-posts-type-widget', $name = __( 'Cherry - Advanced Cycle', CHERRY_PLUGIN_DOMAIN ), $widget_ops, $control_ops );
 }
 
 /**
index ceef6c186ca77ee1b75b3f200aa05db5367a2167..841fd87c0f76a826b865e0e3c07bfe71ba715529 100644 (file)
@@ -2,9 +2,9 @@
 // =============================== My Recent Posts (News widget) ======================================
 class MY_PostWidget extends WP_Widget {
        /** constructor */
-       function MY_PostWidget() {
-               parent::__construct( false, $name = __( 'Cherry - Recent Posts', CHERRY_PLUGIN_DOMAIN ) );
-       }
+  public function __construct(){
+      parent::__construct( 'my-recent-posts', $name = __( 'Cherry - Recent Posts', CHERRY_PLUGIN_DOMAIN )  );
+  }
 
        /** @see WP_Widget::widget */
        function widget($args, $instance) {
index 509a5c8143e4a1249563427b5ff609957eacc77c..ab407b218ddafd1ae8dcb3913f5e5a579a904583 100644 (file)
@@ -2,9 +2,9 @@
 // =============================== My Social Networks Widget ====================================== //
 class My_SocialNetworksWidget extends WP_Widget {
 
-       function My_SocialNetworksWidget() {
+  public function __construct(){
                $widget_ops = array('classname' => 'social_networks_widget', 'description' => __('Link to your social networks.', CHERRY_PLUGIN_DOMAIN) );
-               parent::__construct( false, $name = __( 'Cherry - Social Networks', CHERRY_PLUGIN_DOMAIN ), $widget_ops );
+               parent::__construct( 'my-social-widget', $name = __( 'Cherry - Social Networks', CHERRY_PLUGIN_DOMAIN ), $widget_ops );
        }
 
        function widget( $args, $instance ) {
index 20c653e281f726c38ce02f3ae12b4afabb857e95..0f9cdc0f24c1f48aba9151c1839e9637cdc6429f 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 class MY_Vcard_Widget extends WP_Widget {
-       function MY_Vcard_Widget() {
+  public function __construct(){
                $widget_ops = array('classname' => 'widget_cherry_vcard', 'description' => __('Use this widget to add a vCard', CHERRY_PLUGIN_DOMAIN));
                parent::__construct( 'widget_cherry_vcard', $name = __( 'Cherry - vCard', CHERRY_PLUGIN_DOMAIN ), $widget_ops );
                $this->alt_option_name = 'widget_cherry_vcard';
index c013681f1b35e4ce2c6282f823cf3228c1c58edc..c2258e3aa8d1ed1a5b2bd8a57f45946bc872bc92 100644 (file)
@@ -27,5 +27,4 @@ function cherry_load_widgets() {
                }\r
        }\r
 }\r
-add_action( 'widgets_init', 'cherry_load_widgets' );\r
-?>
\ No newline at end of file
+add_action( 'widgets_init', 'cherry_load_widgets' );
\ No newline at end of file
index 2cc4139014ea6144771ffeb47a1f075ac2b44773..ab7d28905f1d2ac7be7e290619fac60579f9d621 100644 (file)
@@ -214,7 +214,7 @@ if ( ! function_exists( 'optionsframework_mlu_get_silentpost' ) ) {
                        $_posts = $wpdb->get_row( $query );
                        
                        // If we've got a post, loop through and get it's ID.
-                       if ( count( $_posts ) ) {
+                       if ( count( (array)$_posts ) ) {
                                $_id = $_posts->ID;
                        } else {
                        
index fd70c6d854ead6dcc15ed3f323ff6188c8c3d31c..3e076ea8361687beea7cb03ecd436b7d28e54587 100644 (file)
        }
 
        // removes detailed login error information for security
-       add_filter('login_errors',create_function('$a', "return null;"));
+       add_filter('login_errors',function($a){ return null;});
 
        /*
         * Loads the Options Panel
index 411ca2fab8890b41576a4c46073131c1ace9844c..7b8103739431b6a9597af5688fbca79936c1f521 100644 (file)
@@ -654,7 +654,7 @@ class lessc {
                                        if ($suffix !== null &&
                                                $subProp[0] == "assign" &&
                                                is_string($subProp[1]) &&
-                                               $subProp[1]{0} != $this->vPrefix)
+                                               $subProp[1][0] != $this->vPrefix)
                                        {
                                                $subProp[2] = array(
                                                        'list', ' ',
@@ -1621,7 +1621,7 @@ class lessc {
                $this->pushEnv();
                $parser = new lessc_parser($this, __METHOD__);
                foreach ($args as $name => $strValue) {
-                       if ($name{0} != '@') $name = '@'.$name;
+                       if ($name[0] != '@') $name = '@'.$name;
                        $parser->count = 0;
                        $parser->buffer = (string)$strValue;
                        if (!$parser->propertyValue($value)) {
@@ -2278,7 +2278,7 @@ class lessc_parser {
                                $hidden = true;
                                if (!isset($block->args)) {
                                        foreach ($block->tags as $tag) {
-                                               if (!is_string($tag) || $tag{0} != $this->lessc->mPrefix) {
+                                               if (!is_string($tag) || $tag[0] != $this->lessc->mPrefix) {
                                                        $hidden = false;
                                                        break;
                                                }
@@ -2332,7 +2332,7 @@ class lessc_parser {
        protected function fixTags($tags) {
                // move @ tags out of variable namespace
                foreach ($tags as &$tag) {
-                       if ($tag{0} == $this->lessc->vPrefix)
+                       if ($tag[0] == $this->lessc->vPrefix)
                                $tag[0] = $this->lessc->mPrefix;
                }
                return $tags;
@@ -3062,7 +3062,7 @@ class lessc_parser {
        protected function end() {
                if ($this->literal(';')) {
                        return true;
-               } elseif ($this->count == strlen($this->buffer) || $this->buffer{$this->count} == '}') {
+               } elseif ($this->count == strlen($this->buffer) || $this->buffer[$this->count] == '}') {
                        // if there is end of file or a closing block next then we don't need a ;
                        return true;
                }
index 5b66fd8cad9f0cabb48f13d47501eb0c468978e6..adb10c6b8ef888e095198897034443b89e2ca60e 100644 (file)
@@ -74,7 +74,8 @@ add_action('wp_enqueue_scripts', 'cherry_scripts');
 function cherry_stylesheets() {
        if ( CURRENT_THEME != 'cherry' ) {
                if ( file_exists( CHILD_DIR . '/main-style.css' ) ) {
-                       wp_enqueue_style( CURRENT_THEME, CHILD_URL . '/main-style.css', false, null, 'all' );
+            $cache_buster = filemtime(CHILD_DIR . '/main-style.css');
+                       wp_enqueue_style( CURRENT_THEME, CHILD_URL . '/main-style.css', false, $cache_buster, 'all' );
                }
 
                if ( file_exists( CHILD_DIR . '/includes/widgets/my-flickr-widget.php' ) ) {
@@ -99,4 +100,4 @@ function tz_admin_js($hook) {
        }
 }
 add_action('admin_enqueue_scripts', 'tz_admin_js', 10, 1);
-?>
\ No newline at end of file
+?>