Plugin Directory

Changeset 1241754


Ignore:
Timestamp:
09/09/2015 04:57:40 PM (10 years ago)
Author:
VortexThemes
Message:

1.6 release fix widgets not working after 1.5 update

Location:
rating-system
Files:
79 added
4 edited

Legend:

Unmodified
Added
Removed
  • rating-system/trunk/Changelog.md

    r1241666 r1241754  
     1## [1.6]
     2### Fix widgets not working after 1.5 update.
    13## [1.5]
    24### Fix options panel not working.Huge thanks to [AzzePis](https://wordpress.org/support/profile/azzepis) for letting me test on his/her website.
  • rating-system/trunk/admin/vortexlikedislike.php

    r1241666 r1241754  
    1717        'display_name'         => 'Rating System',
    1818        // Name that appears at the top of your panel
    19         'display_version'      => '1.5',
     19        'display_version'      => '1.6',
    2020        // Version that appears at the top of your panel
    2121        'menu_type'            => 'menu',
  • rating-system/trunk/rating-system.php

    r1241666 r1241754  
    44* Plugin URI: http://github.com/VortexThemes/rating-system
    55* Description: The simple way to add like or dislike buttons.
    6 * Version: 1.5
     6* Version: 1.6
    77* Author: VortexThemes
    88* Author URI: https://github.com/VortexThemes
     
    143143           
    144144            global $vortex_like_dislike;
    145             require_once( plugin_dir_path( __FILE__ ).'/widget/widget.php' );
    146             require_once( plugin_dir_path( __FILE__ ).'/widget/dashboard-widget.php' );
    147            
     145
    148146            if($vortex_like_dislike['v-switch-posts'] && isset($vortex_like_dislike['v-switch-posts'])){
    149147                require_once(plugin_dir_path( __FILE__ ).'posts-pages.php');
     
    194192
    195193add_action('wp_loaded','vortex_systen_main_function');
     194
     195function rating_system_load_widgets(){
     196    $widget = plugin_dir_path( __FILE__ ).'widget/widget.php';
     197    $dashboardwidget = plugin_dir_path( __FILE__ ).'widget/dashboard-widget.php';
     198    if(file_exists($widget) && file_exists($dashboardwidget)){
     199        require_once( $widget );
     200        require_once( $dashboardwidget );
     201    }
     202}
     203add_action('plugins_loaded','rating_system_load_widgets');
  • rating-system/trunk/readme.txt

    r1241666 r1241754  
    55Requires at least: 4.1
    66Tested up to: 4.3
    7 Stable tag: 1.5
     7Stable tag: 1.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6969== Changelog ==
    7070
     71= 1.6 =
     72* Fix widgets not working after 1.5 update.
     73
    7174= 1.5 =
    7275* Fix options panel not working.Huge thanks to [AzzePis](https://wordpress.org/support/profile/azzepis) for letting me test on his/her website.
Note: See TracChangeset for help on using the changeset viewer.