Link Library - Version 6.0-Beta12

Version Description

Download this release

Release Info

Developer jackdewey
Plugin Icon 128x128 Link Library
Version 6.0-Beta12
Comparing to
See all releases

Code changes from version 6.0-Beta11 to 6.0-Beta12

Files changed (3) hide show
  1. link-library-admin.php +12 -1
  2. link-library.php +1 -1
  3. readme.txt +3 -0
link-library-admin.php CHANGED
@@ -1231,8 +1231,11 @@ class link_library_plugin_admin {
1231
 
1232
  delete_option( 'LinkLibrary60Update' );
1233
  } elseif ( isset( $_POST['importlinks'] ) ) {
 
 
1234
  wp_suspend_cache_addition( true );
1235
- set_time_limit( 600 );
 
1236
 
1237
  $handle = fopen( $_FILES['linksfile']['tmp_name'], "r" );
1238
 
@@ -1501,8 +1504,14 @@ class link_library_plugin_admin {
1501
  $message = '9';
1502
 
1503
  wp_suspend_cache_addition( false );
 
 
1504
  } elseif ( isset( $_POST['siteimport'] ) ) {
1505
  wp_suspend_cache_addition( true );
 
 
 
 
1506
  set_time_limit( 600 );
1507
 
1508
  $all_content = array();
@@ -1631,6 +1640,8 @@ class link_library_plugin_admin {
1631
  $message = '9';
1632
 
1633
  wp_suspend_cache_addition( false );
 
 
1634
  } elseif ( isset( $_POST['exportalllinks'] ) ) {
1635
  $upload_dir = wp_upload_dir();
1636
 
1231
 
1232
  delete_option( 'LinkLibrary60Update' );
1233
  } elseif ( isset( $_POST['importlinks'] ) ) {
1234
+ wp_defer_term_counting( true );
1235
+ wp_defer_comment_counting( true );
1236
  wp_suspend_cache_addition( true );
1237
+ define( 'WP_IMPORTING', true );
1238
+ set_time_limit( 1800 );
1239
 
1240
  $handle = fopen( $_FILES['linksfile']['tmp_name'], "r" );
1241
 
1504
  $message = '9';
1505
 
1506
  wp_suspend_cache_addition( false );
1507
+ wp_defer_term_counting( false );
1508
+ wp_defer_comment_counting( false );
1509
  } elseif ( isset( $_POST['siteimport'] ) ) {
1510
  wp_suspend_cache_addition( true );
1511
+ wp_defer_term_counting( true );
1512
+ wp_defer_comment_counting( true );
1513
+ define( 'WP_IMPORTING', true );
1514
+
1515
  set_time_limit( 600 );
1516
 
1517
  $all_content = array();
1640
  $message = '9';
1641
 
1642
  wp_suspend_cache_addition( false );
1643
+ wp_defer_term_counting( false );
1644
+ wp_defer_comment_counting( false );
1645
  } elseif ( isset( $_POST['exportalllinks'] ) ) {
1646
  $upload_dir = wp_upload_dir();
1647
 
link-library.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Link Library
4
  Plugin URI: http://wordpress.org/extend/plugins/link-library/
5
  Description: Display links on pages with a variety of options
6
- Version: 6.0 Beta 11
7
  Author: Yannick Lefebvre
8
  Author URI: http://ylefebvre.ca/
9
  Text Domain: link-library
3
  Plugin Name: Link Library
4
  Plugin URI: http://wordpress.org/extend/plugins/link-library/
5
  Description: Display links on pages with a variety of options
6
+ Version: 6.0 Beta 12
7
  Author: Yannick Lefebvre
8
  Author URI: http://ylefebvre.ca/
9
  Text Domain: link-library
readme.txt CHANGED
@@ -59,6 +59,9 @@ Further configuration is available under the Link Library Settings panel.
59
 
60
  == Changelog ==
61
 
 
 
 
62
  = 6.0 Beta 11 =
63
  * Fix in links importer to properly read in data exported by plugin
64
 
59
 
60
  == Changelog ==
61
 
62
+ = 6.0 Beta 12 =
63
+ * Improvements in performance of initial link import to help with websites that have large quantity of links
64
+
65
  = 6.0 Beta 11 =
66
  * Fix in links importer to properly read in data exported by plugin
67