Version Description
Download this release
Release Info
Developer | jackdewey |
Plugin | Link Library |
Version | 6.0-Beta10 |
Comparing to | |
See all releases |
Code changes from version 6.0-Beta9 to 6.0-Beta10
- link-library.php +3 -3
- readme.txt +3 -0
- render-link-library-sc.php +5 -2
- usersubmission.php +1 -0
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 |
Author: Yannick Lefebvre
|
8 |
Author URI: http://ylefebvre.ca/
|
9 |
Text Domain: link-library
|
@@ -40,6 +40,7 @@ I, Yannick Lefebvre, can be contacted via e-mail at ylefebvre@gmail.com
|
|
40 |
require_once(ABSPATH . '/wp-admin/includes/bookmark.php');
|
41 |
require_once plugin_dir_path( __FILE__ ) . 'link-library-defaults.php';
|
42 |
require_once plugin_dir_path( __FILE__ ) . 'rssfeed.php';
|
|
|
43 |
|
44 |
global $my_link_library_plugin;
|
45 |
global $my_link_library_plugin_admin;
|
@@ -817,8 +818,7 @@ class link_library_plugin {
|
|
817 |
|
818 |
/********************************************** Function to Process [link-library] shortcode *********************************************/
|
819 |
|
820 |
-
function link_library_func( $atts ) {
|
821 |
-
|
822 |
if ( isset( $_POST['ajaxupdate'] ) ) {
|
823 |
check_ajax_referer( 'link_library_ajax_refresh' );
|
824 |
}
|
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 10
|
7 |
Author: Yannick Lefebvre
|
8 |
Author URI: http://ylefebvre.ca/
|
9 |
Text Domain: link-library
|
40 |
require_once(ABSPATH . '/wp-admin/includes/bookmark.php');
|
41 |
require_once plugin_dir_path( __FILE__ ) . 'link-library-defaults.php';
|
42 |
require_once plugin_dir_path( __FILE__ ) . 'rssfeed.php';
|
43 |
+
//require_once plugin_dir_path( __FILE__ ) . 'blocks/link-library-main.php';
|
44 |
|
45 |
global $my_link_library_plugin;
|
46 |
global $my_link_library_plugin_admin;
|
818 |
|
819 |
/********************************************** Function to Process [link-library] shortcode *********************************************/
|
820 |
|
821 |
+
function link_library_func( $atts = '' ) {
|
|
|
822 |
if ( isset( $_POST['ajaxupdate'] ) ) {
|
823 |
check_ajax_referer( 'link_library_ajax_refresh' );
|
824 |
}
|
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 9 =
|
63 |
* Added shortcode parameters to the Usage tab under Library Configuration
|
64 |
* Modified All Links page filter to show all categories instead of only showing categories containing links. Also made category list hierarchical.
|
59 |
|
60 |
== Changelog ==
|
61 |
|
62 |
+
= 6.0 Beta 10 =
|
63 |
+
* Fix to display child categories when using shortcode category override options
|
64 |
+
|
65 |
= 6.0 Beta 9 =
|
66 |
* Added shortcode parameters to the Usage tab under Library Configuration
|
67 |
* Modified All Links page filter to show all categories instead of only showing categories containing links. Also made category list hierarchical.
|
render-link-library-sc.php
CHANGED
@@ -350,6 +350,9 @@ function RenderLinkLibrary( $LLPluginClass, $generaloptions, $libraryoptions, $s
|
|
350 |
}
|
351 |
|
352 |
$currentcategory = 1;
|
|
|
|
|
|
|
353 |
$categoryname = '';
|
354 |
$mode = 'normal';
|
355 |
|
@@ -498,7 +501,7 @@ function RenderLinkLibrary( $LLPluginClass, $generaloptions, $libraryoptions, $s
|
|
498 |
|
499 |
$link_count = wp_count_posts( 'link_library_links' );
|
500 |
|
501 |
-
if ( $link_count->publish > 0 || ( $showinvisible && $link_count->private > 0 ) || ( $showuserlinks && $link_count->pending ) ) {
|
502 |
$currentcatletter = '';
|
503 |
|
504 |
if ( $level == 0 && $cat_letter_filter != 'no' ) {
|
@@ -530,7 +533,7 @@ function RenderLinkLibrary( $LLPluginClass, $generaloptions, $libraryoptions, $s
|
|
530 |
add_filter( 'get_terms', 'link_library_get_terms_filter_publish_draft_pending', 10, 3 );
|
531 |
}
|
532 |
|
533 |
-
if ( ( !empty( $categorylist_cpt ) || isset( $_GET['cat_id'] ) ) && empty( $singlelinkid ) ) {
|
534 |
$link_categories_query_args['include'] = explode( ',', $categorylist_cpt );
|
535 |
}
|
536 |
|
350 |
}
|
351 |
|
352 |
$currentcategory = 1;
|
353 |
+
$pagenumber = 1;
|
354 |
+
$currentcatletter = '';
|
355 |
+
$number_of_pages = 1;
|
356 |
$categoryname = '';
|
357 |
$mode = 'normal';
|
358 |
|
501 |
|
502 |
$link_count = wp_count_posts( 'link_library_links' );
|
503 |
|
504 |
+
if ( isset( $link_count ) && !empty( (array) $link_count ) && ( $link_count->publish > 0 || ( $showinvisible && $link_count->private > 0 ) || ( $showuserlinks && $link_count->pending ) ) ) {
|
505 |
$currentcatletter = '';
|
506 |
|
507 |
if ( $level == 0 && $cat_letter_filter != 'no' ) {
|
533 |
add_filter( 'get_terms', 'link_library_get_terms_filter_publish_draft_pending', 10, 3 );
|
534 |
}
|
535 |
|
536 |
+
if ( ( !empty( $categorylist_cpt ) || isset( $_GET['cat_id'] ) ) && empty( $singlelinkid ) && $level == 0 ) {
|
537 |
$link_categories_query_args['include'] = explode( ',', $categorylist_cpt );
|
538 |
}
|
539 |
|
usersubmission.php
CHANGED
@@ -269,6 +269,7 @@ function link_library_process_user_submission( $my_link_library_plugin ) {
|
|
269 |
update_post_meta( $new_link_ID, 'link_email', $captureddata['ll_email'] );
|
270 |
|
271 |
update_post_meta( $new_link_ID, 'link_visits', 0 );
|
|
|
272 |
|
273 |
update_post_meta( $new_link_ID, 'link_reciprocal', $captureddata['ll_reciprocal'] );
|
274 |
update_post_meta( $new_link_ID, 'link_submitter', ( isset( $username ) ? $username : null ) );
|
269 |
update_post_meta( $new_link_ID, 'link_email', $captureddata['ll_email'] );
|
270 |
|
271 |
update_post_meta( $new_link_ID, 'link_visits', 0 );
|
272 |
+
update_post_meta( $new_link_ID, 'link_rating', 0 );
|
273 |
|
274 |
update_post_meta( $new_link_ID, 'link_reciprocal', $captureddata['ll_reciprocal'] );
|
275 |
update_post_meta( $new_link_ID, 'link_submitter', ( isset( $username ) ? $username : null ) );
|