Plugin Directory

Changeset 222577


Ignore:
Timestamp:
03/28/2010 06:03:42 PM (16 years ago)
Author:
frenchsquared
Message:

fixed upgrade error

Location:
comment-emailer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • comment-emailer/trunk/comment-emailer.php

    r222126 r222577  
    33 * @package commented-emailer
    44 * @author Gordon French
    5  * @version 1.0.1
     5 * @version 1.0.2
    66 */
    77/*
    8 Plugin Name: Commented Emailer
     8Plugin Name: Comment Emailer
    99Plugin URI: http://wordpress.gordonfrench.com/
    10 Description: Commented Emailer, allows you to modify the email that is sent to the post author when a new comment has been made. The default wordpress email says from wordpress@ and lacks formating. With Commented Emailer you can pick whaat information gets sent to the author and how that information will look.
     10Description: Comment Emailer, allows you to modify the email that is sent to the post author when a new comment has been made. The default wordpress email says from wordpress@ and lacks formating. With Commented Emailer you can pick whaat information gets sent to the author and how that information will look.
    1111
    1212Author: Gordon French
    13 Version: 1.0.1
     13Version: 1.0.2
    1414Author URI: http://wordpress.gordonfrench.com
    1515*/
    1616
    1717
     18$commentedOptions = get_option("commentedOptions");
     19if ($commentedOptions['enabled'] == 'yes'){
     20    //please commet this line out if having activation problems
     21    //after activation please uncomment this line.
     22    // to comment out this line just add the two // before it.
     23    include 'notify_postauthor.php';
     24}
     25
     26
     27
    1828// add the settings page to the main sidebar under settings
    1929function commented_menu() {
    20    //add_options_page('My Plugin Options', 'My Plugin', 'capability_required', 'your-unique-identifier', 'my_plugin_options');
    2130   add_options_page('commented-emailer', 'Comment Email', '8', 'commented_emailer', 'commented_emailer');
    22    //add_submenu_page('post-new.php',...)
    23    //add_submenu_page('post-new.php', 'RSS to Post', '8', 'RSS-to-Post-Settings', 'my_plugin_options');
     31   commented_admin_warnings();
    2432}
    2533add_action('admin_menu', 'commented_menu');
     34
     35
     36
     37// deletes the options array so that you
     38//do not get an error on reactivation
     39function commented_remove() {
     40    $commentedOptions['enabled'] == 'no';
     41    update_option("commentedOptions", $commentedOptions);
     42   
     43    delete_option("commentedOptions");
     44   
     45}
     46register_deactivation_hook( __FILE__, 'commented_remove' );
    2647
    2748
     
    304325}
    305326
    306 $commentedOptions = get_option("commentedOptions");
    307 if ($commentedOptions['enabled'] == 'yes'){
    308     include 'notify_postauthor.php';
    309 }
    310 
    311327
    312328?>
  • comment-emailer/trunk/readme.txt

    r222126 r222577  
    2424
    2525
     26== Frequently Asked Questions ==
     27
     28= Fatal Error after upgrade =
     29Sorry, this issue has been fixed but if you have an older version please
     30disable the plugin before upgrading. If you have already tried to upgrade
     31and get this error you will need to edit one of the files.
     32
     33Go to plugin - editor and from the upper dropdown select comment-emailer
     34then edit the top file comment-emailer/comment-emailer.php
     35
     36Line 22 says include 'notify_postauthor.php'; please comment this line out
     37activate the plugin then disable the plugin. Once you have diasabled the plugin
     38you can uncomment this line and then reenable the plugin.
     39
    2640
    2741== Installation ==
     
    3145e.g.
    3246
    33 1. Upload `plugin-name.php` to the `/wp-content/plugins/` directory
     471. Upload the complete folder to the `/wp-content/plugins/` directory
    34482. Activate the plugin through the 'Plugins' menu in WordPress
    35493. Enable the plugin on the comment Email tab under settings.
     
    5771* fixed image path
    5872
     73= 1.0.2 =
     74*repaired an update issues
     75
    5976
    6077
Note: See TracChangeset for help on using the changeset viewer.