Link Library - Version 7.2.0

Version Description

  • Links can now be sorted by number of hits in admin
Download this release

Release Info

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

Code changes from version 7.1.9 to 7.2.0

link-library-admin.php CHANGED
@@ -8052,6 +8052,7 @@ function general_custom_fields_meta_box( $data ) {
8052
  $columns['link_library_updated'] = 'link_library_updated';
8053
  $columns['link_library_url'] = 'link_library_url';
8054
  $columns['link_library_rating'] = 'link_library_rating';
 
8055
 
8056
  return $columns;
8057
  }
@@ -8073,6 +8074,10 @@ function general_custom_fields_meta_box( $data ) {
8073
  $vars = array_merge( $vars, array(
8074
  'meta_key' => 'link_rating',
8075
  'orderby' => 'meta_value_num' ) );
 
 
 
 
8076
  }
8077
 
8078
  return $vars;
8052
  $columns['link_library_updated'] = 'link_library_updated';
8053
  $columns['link_library_url'] = 'link_library_url';
8054
  $columns['link_library_rating'] = 'link_library_rating';
8055
+ $columns['link_library_visits'] = 'link_library_visits';
8056
 
8057
  return $columns;
8058
  }
8074
  $vars = array_merge( $vars, array(
8075
  'meta_key' => 'link_rating',
8076
  'orderby' => 'meta_value_num' ) );
8077
+ } elseif ( isset( $vars['orderby'] ) && 'link_library_visits' == $vars['orderby'] ) {
8078
+ $vars = array_merge( $vars, array(
8079
+ 'meta_key' => 'link_visits',
8080
+ 'orderby' => 'meta_value_num' ) );
8081
  }
8082
 
8083
  return $vars;
link-library-defaults.php CHANGED
@@ -452,7 +452,7 @@ function ll_reset_options( $settings = 1, $layout = 'list', $setoptions = 'retur
452
  <div class="rss-library-content">[rss_item_content]</div>
453
  </div>';
454
  $options['showupdatedonly'] = false;
455
- $options['updateddays'] = 14;
456
 
457
  if ( 'return_and_set' == $setoptions ) {
458
  $settingsname = 'LinkLibraryPP' . $settings;
452
  <div class="rss-library-content">[rss_item_content]</div>
453
  </div>';
454
  $options['showupdatedonly'] = false;
455
+ $options['updateddays'] = 7;
456
 
457
  if ( 'return_and_set' == $setoptions ) {
458
  $settingsname = 'LinkLibraryPP' . $settings;
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: 7.1.9
7
  Author: Yannick Lefebvre
8
  Author URI: http://ylefebvre.github.io/
9
  Text Domain: link-library
@@ -1063,7 +1063,8 @@ class link_library_plugin {
1063
  $genoptions = get_option( 'LinkLibraryGeneral' );
1064
  $genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) );
1065
 
1066
- if ( !empty( $genoptions['globalsearchresultstitleprefix'] ) ) {
 
1067
  return $genoptions['globalsearchresultstitleprefix'] . $title;
1068
  }
1069
  }
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: 7.2.0
7
  Author: Yannick Lefebvre
8
  Author URI: http://ylefebvre.github.io/
9
  Text Domain: link-library
1063
  $genoptions = get_option( 'LinkLibraryGeneral' );
1064
  $genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) );
1065
 
1066
+ $post = get_post( $id );
1067
+ if ( $post instanceof WP_Post && !empty( $genoptions['globalsearchresultstitleprefix'] ) ) {
1068
  return $genoptions['globalsearchresultstitleprefix'] . $title;
1069
  }
1070
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.1.9
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,9 @@ Further configuration is available under the Link Library Settings panel.
48
 
49
  == Changelog ==
50
 
 
 
 
51
  = 7.1.9 =
52
  * Added new options to only display links that are updated/new and to specify for how many days links should be considered as updated/new
53
 
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.0
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.0 =
52
+ * Links can now be sorted by number of hits in admin
53
+
54
  = 7.1.9 =
55
  * Added new options to only display links that are updated/new and to specify for how many days links should be considered as updated/new
56