Link Library - Version 6.0-Beta8

Version Description

Download this release

Release Info

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

Code changes from version 6.0-Beta7 to 6.0-Beta8

Files changed (3) hide show
  1. link-library-admin.php +11 -3
  2. link-library.php +3 -3
  3. readme.txt +5 -0
link-library-admin.php CHANGED
@@ -2507,7 +2507,7 @@ class link_library_plugin_admin {
2507
  }
2508
 
2509
  function general_meta_bookmarklet_box( $data ) {
2510
- $bookmarkletcode = 'javascript:void(linkmanpopup=window.open(\'' . get_bloginfo( 'wpurl' ) . '/wp-admin/link-add.php?action=popup&linkurl=\'+escape(location.href)+\'&name=\'+(document.title),\'LinkManager\',\'scrollbars=yes,width=900px,height=600px,left=15,top=15,status=yes,resizable=yes\'));linkmanpopup.focus();window.focus();linkmanpopup.focus();';
2511
  ?>
2512
  <div style='padding-top:15px' id="ll-bookmarklet" class="content-section">
2513
  <p><?php _e( 'Add new links to your site with this bookmarklet.', 'link-library' ); ?></p>
@@ -2904,10 +2904,13 @@ class link_library_plugin_admin {
2904
  function render_category_list( $categories, $select_name, $depth, $selected_items, $order ) {
2905
 
2906
  $output = '';
2907
-
2908
  if ( !empty( $categories ) ) {
2909
  if ( 0 == $depth ) {
2910
- $output .= '<select style="width:100%" id="' . $select_name . '" name="' . $select_name . '[]" multiple ' . disabled( empty( $options['categorylist_cpt'] ), true, false ) . '>';
 
 
 
 
2911
  }
2912
 
2913
  foreach ( $categories as $category ) {
@@ -4909,6 +4912,11 @@ class link_library_plugin_admin {
4909
 
4910
  function ll_link_basic_info( $link ) {
4911
  $link_url = get_post_meta( $link->ID, 'link_url', true );
 
 
 
 
 
4912
  $link_description = get_post_meta( $link->ID, 'link_description', true );
4913
  $link_textfield = get_post_meta( $link->ID, 'link_textfield', true );
4914
  $link_target = get_post_meta( $link->ID, 'link_target', true );
2507
  }
2508
 
2509
  function general_meta_bookmarklet_box( $data ) {
2510
+ $bookmarkletcode = 'javascript:void(linkmanpopup=window.open(\'' . get_bloginfo( 'wpurl' ) . '/wp-admin/post-new.php?post_type=link_library_links&action=popup&linkurl=\'+escape(location.href)+\'&post_title=\'+(document.title),\'LinkManager\',\'scrollbars=yes,width=900px,height=600px,left=15,top=15,status=yes,resizable=yes\'));linkmanpopup.focus();window.focus();linkmanpopup.focus();';
2511
  ?>
2512
  <div style='padding-top:15px' id="ll-bookmarklet" class="content-section">
2513
  <p><?php _e( 'Add new links to your site with this bookmarklet.', 'link-library' ); ?></p>
2904
  function render_category_list( $categories, $select_name, $depth, $selected_items, $order ) {
2905
 
2906
  $output = '';
 
2907
  if ( !empty( $categories ) ) {
2908
  if ( 0 == $depth ) {
2909
+ $output .= '<select style="width:100%" id="' . $select_name . '" name="' . $select_name . '[]" multiple ';
2910
+ if ( 1 == count( $selected_items ) && empty( $selected_items[0] ) ) {
2911
+ $output .= 'disabled';
2912
+ }
2913
+ $output .= '>';
2914
  }
2915
 
2916
  foreach ( $categories as $category ) {
4912
 
4913
  function ll_link_basic_info( $link ) {
4914
  $link_url = get_post_meta( $link->ID, 'link_url', true );
4915
+
4916
+ if ( empty( $link_url ) && isset( $_GET['linkurl'] ) ) {
4917
+ $link_url = esc_url( urldecode( $_GET['linkurl'] ) );
4918
+ }
4919
+
4920
  $link_description = get_post_meta( $link->ID, 'link_description', true );
4921
  $link_textfield = get_post_meta( $link->ID, 'link_textfield', true );
4922
  $link_target = get_post_meta( $link->ID, 'link_target', true );
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 7
7
  Author: Yannick Lefebvre
8
  Author URI: http://ylefebvre.ca/
9
  Text Domain: link-library
@@ -869,11 +869,11 @@ class link_library_plugin {
869
  }
870
 
871
  if ( !empty( $categorylistoverride ) ) {
872
- $options['categorylist'] = $categorylistoverride;
873
  }
874
 
875
  if ( !empty( $excludecategoryoverride ) ) {
876
- $options['excludecategorylist'] = $excludecategoryoverride;
877
  }
878
 
879
  if ( !empty( $singlelinkid ) ) {
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 8
7
  Author: Yannick Lefebvre
8
  Author URI: http://ylefebvre.ca/
9
  Text Domain: link-library
869
  }
870
 
871
  if ( !empty( $categorylistoverride ) ) {
872
+ $options['categorylist_cpt'] = $categorylistoverride;
873
  }
874
 
875
  if ( !empty( $excludecategoryoverride ) ) {
876
+ $options['excludecategorylist_cpt'] = $excludecategoryoverride;
877
  }
878
 
879
  if ( !empty( $singlelinkid ) ) {
readme.txt CHANGED
@@ -59,6 +59,11 @@ Further configuration is available under the Link Library Settings panel.
59
 
60
  == Changelog ==
61
 
 
 
 
 
 
62
  = 6.0 Beta 7 =
63
  * Resolved undefined variable warning linkeditoruser
64
  * Fix importer and exporter field order to accept imports from version 5.9 and be more flexible towards changes
59
 
60
  == Changelog ==
61
 
62
+ = 6.0 Beta 8 =
63
+ * Updated bookmarket to work with new link custom post types (need to re-create bookmarklet from General Options to work)
64
+ * Fixed problem selecting categories in Common tab of library configuration
65
+ * Fix for shortcode category overrides not working (categorylistoverride, excludecategoryoverride)
66
+
67
  = 6.0 Beta 7 =
68
  * Resolved undefined variable warning linkeditoruser
69
  * Fix importer and exporter field order to accept imports from version 5.9 and be more flexible towards changes