Plugin Directory

Changeset 859239


Ignore:
Timestamp:
02/17/2014 10:02:42 AM (12 years ago)
Author:
bulini
Message:

disable revisions and autosave

Location:
sendit/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sendit/trunk/libs/actions.php

    r487303 r859239  
    143143        global $wpdb;
    144144        $table_email = SENDIT_EMAIL_TABLE;
    145         $subscribers=$wpdb->get_results("select * from $table_email where id_lista = $id_lista and accepted='y'"); 
     145        $subscribers=$wpdb->get_results("select * from $table_email where id_lista = '".$id_lista."' and accepted='y'");   
    146146        return $subscribers;
    147147    }
     
    222222        global $wpdb;
    223223        $table_liste = SENDIT_LIST_TABLE;
    224         $lista=$wpdb->get_row("select * from $table_liste where id_lista = $id_lista");
     224        $lista=$wpdb->get_row("select * from $table_liste where id_lista = '".$id_lista."'");   
    225225        return $lista;
    226226    }
  • sendit/trunk/libs/extensions-handler.php

    r859005 r859239  
    4545}
    4646
     47
     48add_action('admin_init', 'disable_revisions');
     49function disable_revisions(){
     50    remove_post_type_support('newsletter', 'revisions');
     51}
     52
     53add_action('admin_print_scripts', 'disable_autosave');
     54function disable_autosave(){
     55    global $post;
     56    if(get_post_type($post->ID) === 'newsletter'){
     57        wp_deregister_script('autosave');
     58    }
     59}
     60
     61
     62
    4763add_filter('post_updated_messages', 'newsletter_updated_messages');
    4864function newsletter_updated_messages( $messages ) {
     
    143159    $footer=$list_detail->footer;
    144160    $css='';
    145    
     161    include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
    146162    if(is_plugin_active('sendit-pro-template-manager/sendit-pro-template-manager.php')):
    147163        //custom post type template
  • sendit/trunk/readme.txt

    r859005 r859239  
    55Requires at least: 3.0.1
    66Tested up to: 3.8.1
    7 Stable tag: 2.2.6
     7Stable tag: 2.2.7
    88
    99Sendit is a friendly and easy newsletter and mailing lists plugin for Wordpress, born to make newsletter delivery management a great experience.
     
    3232= Changelog =
    3333
     34* 2.2.7 Fixes some error on log disable autosave and revisions for newsletters
    3435* 2.2.6 Fixes some warning and better interface with the new wp-admin
    3536* 2.2.5 Fixes unsubscribe link duplication
  • sendit/trunk/sendit.php

    r859005 r859239  
    44Plugin URI: http://www.giuseppesurace.com/sendit-wp-newsletter-mailing-list/
    55Description: Wordpress newsletter plugin. Sendit is a friendly and easy newsletter and mailing lists plugin for WordPress, born to make newsletter delivery management a great experience.
    6 Version: 2.2.6
     6Version: 2.2.7
    77Author: Giuseppe Surace
    88Author URI: http://sendit.wordpressplanet.org
Note: See TracChangeset for help on using the changeset viewer.