Link Library - Version 7.2.2

Version Description

  • Fix for list of categories in user-submission form when using hierarchical categories
  • Fix for PHP warning when displaying link count
Download this release

Release Info

Developer jackdewey
Plugin Icon 128x128 Link Library
Version 7.2.2
Comparing to
See all releases

Code changes from version 7.2.1 to 7.2.2

link-library.php CHANGED
@@ -1481,6 +1481,9 @@ class link_library_plugin {
1481
  'settings' => ''
1482
  ), $atts ) );
1483
 
 
 
 
1484
  if ( empty( $settings ) ) {
1485
  $settings = 1;
1486
  } else if ( isset( $_POST['settings'] ) ) {
1481
  'settings' => ''
1482
  ), $atts ) );
1483
 
1484
+ $genoptions = get_option( 'LinkLibraryGeneral' );
1485
+ $genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) );
1486
+
1487
  if ( empty( $settings ) ) {
1488
  $settings = 1;
1489
  } else if ( isset( $_POST['settings'] ) ) {
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: jackdewey
3
  Donate link: https://ylefebvre.github.io/wordpress-plugins/link-library/
4
  Tags: link, list, directory, page, library, AJAX, RSS, feeds, inline, search, paging, add, submit, import, batch, pop-up
5
  Requires at least: 4.4
6
- Tested up to: 5.7.2
7
- Stable tag: 7.2.1
8
 
9
  The purpose of this plugin is to add the ability to output a list of link categories and a complete list of links with notes and descriptions.
10
 
@@ -48,6 +48,10 @@ Further configuration is available under the Link Library Settings panel.
48
 
49
  == Changelog ==
50
 
 
 
 
 
51
  = 7.2.1 =
52
  * Add support for WordPress mshots thumbnail generator
53
 
3
  Donate link: https://ylefebvre.github.io/wordpress-plugins/link-library/
4
  Tags: link, list, directory, page, library, AJAX, RSS, feeds, inline, search, paging, add, submit, import, batch, pop-up
5
  Requires at least: 4.4
6
+ Tested up to: 5.8
7
+ Stable tag: 7.2.2
8
 
9
  The purpose of this plugin is to add the ability to output a list of link categories and a complete list of links with notes and descriptions.
10
 
48
 
49
  == Changelog ==
50
 
51
+ = 7.2.2 =
52
+ * Fix for list of categories in user-submission form when using hierarchical categories
53
+ * Fix for PHP warning when displaying link count
54
+
55
  = 7.2.1 =
56
  * Add support for WordPress mshots thumbnail generator
57
 
render-link-library-addlink-sc.php CHANGED
@@ -5,18 +5,6 @@ if ( ! defined( 'ABSPATH' ) ) {
5
 
6
  require_once plugin_dir_path( __FILE__ ) . 'link-library-defaults.php';
7
 
8
- /**
9
- *
10
- * Render the output of the link-library-search shortcode
11
- *
12
- * @param $LLPluginClass Link Library main plugin class
13
- * @param $generaloptions General Plugin Settings
14
- * @param $libraryoptions Selected library settings array
15
- * @param $settings Settings ID
16
- * @param $code Shortcode used in text that called this function
17
- * @return List of categories output for browser
18
- */
19
-
20
  function addlink_render_category_list( $categories, $select_name, $depth, $order, $libraryoptions, $captureddata ) {
21
 
22
  $output = '';
@@ -382,7 +370,7 @@ function RenderLinkLibraryAddLinkForm( $LLPluginClass, $generaloptions, $library
382
  }
383
  break;
384
  case 5: //------------------ Link Categories --------------------
385
- $include_links_array = array();
386
  if ( !empty( $categorylist_cpt ) ) {
387
  $include_links_array = explode( ',', $categorylist_cpt );
388
  }
@@ -392,6 +380,9 @@ function RenderLinkLibraryAddLinkForm( $LLPluginClass, $generaloptions, $library
392
  }
393
 
394
  $link_categories_query_args = array( 'hide_empty' => false );
 
 
 
395
  if ( !empty( $include_links_array ) ) {
396
  $link_categories_query_args['include'] = $include_links_array;
397
  }
5
 
6
  require_once plugin_dir_path( __FILE__ ) . 'link-library-defaults.php';
7
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  function addlink_render_category_list( $categories, $select_name, $depth, $order, $libraryoptions, $captureddata ) {
9
 
10
  $output = '';
370
  }
371
  break;
372
  case 5: //------------------ Link Categories --------------------
373
+ $include_links_array = array( );
374
  if ( !empty( $categorylist_cpt ) ) {
375
  $include_links_array = explode( ',', $categorylist_cpt );
376
  }
380
  }
381
 
382
  $link_categories_query_args = array( 'hide_empty' => false );
383
+ if ( empty( $categorylist_cpt ) && empty( $excludecategorylist_cpt ) ) {
384
+ $link_categories_query_args['parent'] = 0;
385
+ }
386
  if ( !empty( $include_links_array ) ) {
387
  $link_categories_query_args['include'] = $include_links_array;
388
  }