Plugin Directory

Changeset 1307603


Ignore:
Timestamp:
12/14/2015 12:47:52 AM (9 years ago)
Author:
janosver
Message:

v1.7

  • Fix a compatibility issue with WP 4.4 when it was not possible to add / rename or delete a Reading Group
Location:
wp-jv-post-reading-groups/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • wp-jv-post-reading-groups/trunk/Readme.txt

    r1307471 r1307603  
    55Requires at least: 3.9.2
    66Tested up to: 4.4
    7 Stable tag: 1.6
     7Stable tag: 1.7
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6060== Changelog ==
    6161
     62= 1.7 =
     63Release date: December 14, 2015
     64
     65* Fix a compatibility issue with WP 4.4 when it was not possible to add / rename or delete a Reading Group
     66
    6267= 1.6 =
    6368Release date: December 13, 2015
     
    7176
    7277= 1.5 =
    73 Release date: August 1, 2015
    74 
    7578* Comments for private posts are now visible in Recent Comments widget (or any other similar) if the user is eligible
    7679* Performance improvement by using minified js code
     
    7881
    7982= 1.4 =
    80 Release date: February 2, 2015
    81 
    8283* Fix issue: post preview resulted in HTTP 404
    8384* Fix issue: list of post reading groups was missing on add new user screen
     
    8586
    8687= 1.3 =
    87 Release date: January 29, 2015
    88 
    8988* Fix issue: when user clicked on a URL of a private post multiple posts were shown
    9089* Fix issue: private posts can't be distinguished on all posts admin screens
     
    9493
    9594= 1.2 =
    96 Release date: September 8, 2014
    97 
    9895* Fix issue: WP DB prefix to run on any instance
    9996
    10097= 1.1 =
    101 Release date: September 7, 2014
    102 
    10398* Fix issue: click on a private post resulted in HTTP 404
    10499* Fix issue: private posts where not included in recent posts widget
     
    106101
    107102= 1.0 =
    108 Release date: August 16, 2014
    109 
    110103* Initial release.
    111104
     
    147140= 1.5 =
    148141Release date: August 1, 2015
    149 
    150142* Comments for private posts are now visible in Recent Comments widget (or any other similar) if the user is eligible
    151143* Performance improvement by using minified js code
     
    161153 * Private pages can be associated with Reading Groups
    162154 * Users who have access to Reading Group are able to see the associated private pages as well
     155 
     156= 1.7 =
     157Release date: December 14, 2015
     158
     159* Fix a compatibility issue with WP 4.4 when it was not possible to add / rename or delete a Reading Group
  • wp-jv-post-reading-groups/trunk/uninstall.php

    r1307463 r1307603  
    44 *
    55 * WP JV Post Reading Groups Settings Uninstaller
    6  * @version 1.6
     6 * @version 1.7
    77 */
    88
  • wp-jv-post-reading-groups/trunk/wp-jv-post-reading-groups.css

    r1307463 r1307603  
    11/*
    22// CSS for WP JV Post Reading Groups
    3 // @version: 1.6
     3// @version: 1.7
    44*/
    55
  • wp-jv-post-reading-groups/trunk/wp-jv-post-reading-groups.js

    r1307463 r1307603  
    11/*
    22// Scripts for WP JV Post Reading Groups
    3 // @version: 1.6
     3// @version: 1.7
    44*/
    55
  • wp-jv-post-reading-groups/trunk/wp-jv-post-reading-groups.min.js

    r1307463 r1307603  
    11/*
    22// Scripts for WP JV Post Reading Groups
    3 // @version: 1.6
     3// @version: 1.7
    44*/
    55jQuery(document).ready(function(t){function e(){data={action:"wp_jv_prg_refresh_rg_list",url:ajaxurl,type:"POST"},t.post(ajaxurl,data,function(e){var e=t.parseJSON(e);e.rows.length&&t("#the-list").html(e.rows)})}t("#btnAddNewRG").click(function(){t("#btnAddNewRG").attr("disabled",!0),t("#spnAddRG").show();var a=document.getElementById("jv-new-reading-group-text").value;data={action:"wp_jv_prg_add_new_rg_to_db",url:ajaxurl,type:"POST",dataType:"text",newrg:a,wp_jv_rg_nonce:wp_jv_prg_obj.wp_jv_rg_nonce},t.post(ajaxurl,data,function(t){t.error?alert(t.error_msg+"\n\n[Error: "+t.error_code+"]"):e()}),t("#spnAddRG").hide(),t("#btnAddNewRG").attr("disabled",!1),document.getElementById("jv-new-reading-group-text").value=""}),t(".lnkEdit").live("click",function(a){a.preventDefault(),t.ajaxSetup({async:!1}),e(),t.ajaxSetup({async:!0});var r=t(this).attr("data-RG");t(".RenameDiv-"+r).html('<input type="text" id="renamed-reading-group-text" style="width:100%" value="'+t("div.ItemDiv-"+r).text()+'"><br><button class="btnCancel button-secondary">Cancel</button><button style="float:right" class="btnSave button-primary" data-rename-RG="'+r+'">Save</button>')}),t(".btnCancel").live("click",function(t){t.preventDefault(),e()}),t(".btnSave").live("click",function(a){a.preventDefault(),t(".btnSave").attr("disabled",!0);var r=document.getElementById("renamed-reading-group-text").value,n=t(this).attr("data-rename-RG");data={action:"wp_jv_prg_save_renamed_rg_to_db",url:ajaxurl,type:"POST",dataType:"text",RGToRename:n,NewRGName:r},t.post(ajaxurl,data,function(t){t.error?alert(t.error_msg+"\n\n[Error: "+t.error_code+"]"):e()}),t(".btnSave").attr("disabled",!1)}),t(".lnkDelete").live("click",function(a){a.preventDefault();var r=jQuery(this).attr("href");data={action:"wp_jv_prg_delete_rg",url:ajaxurl,type:"POST",delurl:r},t.post(ajaxurl,data,function(t){t.error?alert(t.error_msg+"\n\n[Error: "+t.error_code+"]"):e()})})});
  • wp-jv-post-reading-groups/trunk/wp-jv-post-reading-groups.php

    r1307463 r1307603  
    44 * Plugin URI: http://janosver.com/projects/wordpress/wp-jv-post-reading-groups
    55 * Description: Grant read-only permission for selected users (with no administrator role) on selected private posts
    6  * Version: 1.6
     6 * Version: 1.7
    77 * Author: Janos Ver
    88 * Author URI: http://janosver.com
     
    100100if( ! class_exists( 'WP_List_Table' ) ) {
    101101    require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
     102    require_once( ABSPATH . 'wp-admin/includes/class-wp-screen.php' );
     103    require_once( ABSPATH . 'wp-admin/includes/screen.php' );
    102104}
    103105
     
    109111            'singular'  => __( 'Reading Group','wp-jv-post-reading-groups'),     //singular name of the listed records
    110112            'plural'    => __( 'Reading Groups','wp-jv-post-reading-groups' ),   //plural name of the listed records
    111             'ajax'      => false
     113            'ajax'      => false,
     114            'screen' => null
    112115            ));         
    113116    }
     
    420423    echo '<div class="jv-right">';     
    421424    $wp_jv_prg_reading_groups_table = new WP_JV_PRG_List_Table();   
    422     $wp_jv_prg_reading_groups_table->prepare_items();   
     425    $wp_jv_prg_reading_groups_table->screen=convert_to_screen( null );
     426    $wp_jv_prg_reading_groups_table->prepare_items();       
    423427    $wp_jv_prg_reading_groups_table->display();             
    424428    echo '</div>'; //jv-right end
Note: See TracChangeset for help on using the changeset viewer.