Plugin Directory

Changeset 772854


Ignore:
Timestamp:
09/15/2013 06:55:42 PM (13 years ago)
Author:
tickerator
Message:

Fixed a couple glaring bugs with new installs

Location:
bugerator/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bugerator/trunk/bugerator.php

    r772451 r772854  
    55  Plugin URI: http://www.tickerator.org/bugerator
    66  Description: A bug tracking / issue tracking plugin
    7   Version: 1.1.2
     7  Version: 1.1.3
    88  Author: David Whipple
    99  Author URI: http://www.tickerator.org
     
    3131 * Globals and other fun set up stuff to be run every time
    3232 */
     33// version info
     34global $bugerator_version;
     35$bugerator_version = "1.1.3";
     36
     37
    3338// Define our table globally so I won't have redundant code
    3439global $wpdb;
     
    5257$bugerator_visits_table = $wpdb->prefix . "bugerator_visits";
    5358
    54 // version info
    55 global $bugerator_version;
    56 $bugerator_version = "1.1.0";
    5759
    5860// add menu option - this is in the admin menu
     
    537539        // the new project sort/hide
    538540        $bugerator_project_display = get_option("bugerator_project_display");
     541        if(false == $bugerator_project_display) {
     542            echo "You have no projects.";
     543            die();
     544        }
    539545       
    540546        $sql = "SELECT * FROM $bugerator_project_table ORDER BY FIELD(id,$bugerator_project_display)";
     
    545551        $output = "";
    546552       
    547         // the new project sort/hide
    548         $bugerator_project_display = get_option("bugerator_project_display");
     553
    549554        // create an array for the sort
    550555        $project_sort = explode(",", $bugerator_project_display);
     
    46894694            $success_msg = "Project succesfully added";
    46904695            $bugerator_project_display = get_option("bugerator_project_display");
    4691             $bugerator_project_display .= "," . $wpdb->insert_id;
     4696            if(false == $bugerator_project_display) {
     4697                $bugerator_project_display = $wpdb->insert_id;
     4698            } else {
     4699                $bugerator_project_display .= "," . $wpdb->insert_id;
     4700            }
    46924701            update_option("bugerator_project_display", $bugerator_project_display);
    46934702        } else
     
    57065715    static function my_get_page_link() {
    57075716        $page = get_permalink();
    5708         if(false === $page)
    5709             $page=$_REQUEST['post_id'];
     5717        if(false === $page) {
     5718            if(isset($_REQUEST['post_id'])) {
     5719                $page=$_REQUEST['post_id'];
     5720            } else {
     5721                return false;
     5722            }
     5723        }
    57105724        if( false === strpos($page,"?"))
    57115725                $page .= "?";
     
    59675981        delete_option('bugerator_options');
    59685982        delete_option('bugerator_types');
     5983        delete_option('bugerator_project_display');
     5984        delete_option('bugerator_status_sort');
     5985        delete_option('bugerator_subscribers_all_email');
     5986       
    59695987        foreach ($css as $option => $value)
    59705988            delete_option($option);
  • bugerator/trunk/readme.txt

    r772451 r772854  
    55Requires at least: 3.4.1
    66Tested up to: 3.6
    7 Stable tag: 1.1.2
     7Stable tag: 1.1.3
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6868== Changelog ==
    6969
     70= 1.1.3 =
     71
     72* Fixed css disappearing bug
     73* Fixed first project sort bug
     74
    7075= 1.1.2 =
    7176
     
    148153== Upgrade Notice ==
    149154
     155= 1.1.3 =
     156
     157Couple large bugs that especially affected new installs.  WARNING - this will override bugerator.css so back it up if you made changes.  If you can't see your brand new project from the last version do this in order: 1) UPGRADE, 2) UNINSTALL, 3) REINSTALL.  Then it will solve the problems. Sorry the old project will be gone (which you couldn't see) but new projects will work.
     158
    150159= 1.1.2 =
    151160
Note: See TracChangeset for help on using the changeset viewer.