Version Description
- Added new option in search section to look for results in all categories even if library is configured to display from a subset of categories
- Fix block_categories editor warnings for deprecated filters
Download this release
Release Info
Developer | jackdewey |
Plugin | Link Library |
Version | 7.2.4 |
Comparing to | |
See all releases |
Code changes from version 7.2.3 to 7.2.4
- link-library-admin.php +9 -1
- link-library-defaults.php +1 -0
- link-library.php +2 -2
- readme.txt +5 -1
- render-link-library-sc.php +5 -5
link-library-admin.php
CHANGED
@@ -2815,7 +2815,7 @@ wp_editor( $post->post_content, 'content', $editor_config );
|
|
2815 |
'suppress_custom_text_1_if_empty', 'suppress_custom_text_2_if_empty', 'suppress_custom_text_3_if_empty',
|
2816 |
'suppress_custom_text_4_if_empty', 'suppress_custom_text_5_if_empty', 'suppress_custom_list_1_if_empty', 'suppress_custom_list_2_if_empty',
|
2817 |
'suppress_custom_list_3_if_empty', 'suppress_custom_list_4_if_empty', 'suppress_custom_list_5_if_empty', 'catnamelink', 'hideemptycats',
|
2818 |
-
'rsslibrarypagination', 'showupdatedonly'
|
2819 |
)
|
2820 |
as $option_name
|
2821 |
) {
|
@@ -6428,6 +6428,14 @@ function general_custom_fields_meta_box( $data ) {
|
|
6428 |
<input type="checkbox" id="searchtextinsearchbox" name="searchtextinsearchbox" <?php checked( $options['searchtextinsearchbox'] ); ?>/>
|
6429 |
</td>
|
6430 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6431 |
</table>
|
6432 |
</div>
|
6433 |
<?php
|
2815 |
'suppress_custom_text_1_if_empty', 'suppress_custom_text_2_if_empty', 'suppress_custom_text_3_if_empty',
|
2816 |
'suppress_custom_text_4_if_empty', 'suppress_custom_text_5_if_empty', 'suppress_custom_list_1_if_empty', 'suppress_custom_list_2_if_empty',
|
2817 |
'suppress_custom_list_3_if_empty', 'suppress_custom_list_4_if_empty', 'suppress_custom_list_5_if_empty', 'catnamelink', 'hideemptycats',
|
2818 |
+
'rsslibrarypagination', 'showupdatedonly', 'searchfromallcats'
|
2819 |
)
|
2820 |
as $option_name
|
2821 |
) {
|
6428 |
<input type="checkbox" id="searchtextinsearchbox" name="searchtextinsearchbox" <?php checked( $options['searchtextinsearchbox'] ); ?>/>
|
6429 |
</td>
|
6430 |
</tr>
|
6431 |
+
<tr>
|
6432 |
+
<td>
|
6433 |
+
<?php _e( 'Search in all Link Library categories', 'link-library' ); ?>
|
6434 |
+
</td>
|
6435 |
+
<td style='width:75px;padding-right:20px'>
|
6436 |
+
<input type="checkbox" id="searchfromallcats" name="searchfromallcats" <?php checked( $options['searchfromallcats'] ); ?>/>
|
6437 |
+
</td>
|
6438 |
+
</tr>
|
6439 |
</table>
|
6440 |
</div>
|
6441 |
<?php
|
link-library-defaults.php
CHANGED
@@ -453,6 +453,7 @@ function ll_reset_options( $settings = 1, $layout = 'list', $setoptions = 'retur
|
|
453 |
</div>';
|
454 |
$options['showupdatedonly'] = false;
|
455 |
$options['updateddays'] = 7;
|
|
|
456 |
|
457 |
if ( 'return_and_set' == $setoptions ) {
|
458 |
$settingsname = 'LinkLibraryPP' . $settings;
|
453 |
</div>';
|
454 |
$options['showupdatedonly'] = false;
|
455 |
$options['updateddays'] = 7;
|
456 |
+
$options['searchfromallcats'] = false;
|
457 |
|
458 |
if ( 'return_and_set' == $setoptions ) {
|
459 |
$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.2.
|
7 |
Author: Yannick Lefebvre
|
8 |
Author URI: http://ylefebvre.github.io/
|
9 |
Text Domain: link-library
|
@@ -294,7 +294,7 @@ class link_library_plugin {
|
|
294 |
add_filter( 'post_type_link', array( $this, 'll_get_permalink' ), 10, 4 );
|
295 |
add_filter( 'the_title', array( $this, 'll_get_title' ), 10, 2 );
|
296 |
|
297 |
-
add_filter( '
|
298 |
add_action( 'rest_api_init', array( $this, 'll_rest_api_init' ) );
|
299 |
|
300 |
|
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.4
|
7 |
Author: Yannick Lefebvre
|
8 |
Author URI: http://ylefebvre.github.io/
|
9 |
Text Domain: link-library
|
294 |
add_filter( 'post_type_link', array( $this, 'll_get_permalink' ), 10, 4 );
|
295 |
add_filter( 'the_title', array( $this, 'll_get_title' ), 10, 2 );
|
296 |
|
297 |
+
add_filter( 'block_categories_all', array( $this, 'll_block_categories' ), 10, 2 );
|
298 |
add_action( 'rest_api_init', array( $this, 'll_rest_api_init' ) );
|
299 |
|
300 |
|
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.8
|
7 |
-
Stable tag: 7.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,6 +48,10 @@ Further configuration is available under the Link Library Settings panel.
|
|
48 |
|
49 |
== Changelog ==
|
50 |
|
|
|
|
|
|
|
|
|
51 |
= 7.2.3 =
|
52 |
* Fixed issue with displaying library count for library other than #1
|
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.8
|
7 |
+
Stable tag: 7.2.4
|
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.4 =
|
52 |
+
* Added new option in search section to look for results in all categories even if library is configured to display from a subset of categories
|
53 |
+
* Fix block_categories editor warnings for deprecated filters
|
54 |
+
|
55 |
= 7.2.3 =
|
56 |
* Fixed issue with displaying library count for library other than #1
|
57 |
|
render-link-library-sc.php
CHANGED
@@ -556,15 +556,15 @@ function RenderLinkLibrary( $LLPluginClass, $generaloptions, $libraryoptions, $s
|
|
556 |
add_filter( 'get_terms', 'link_library_get_terms_filter_publish_draft_pending', 10, 3 );
|
557 |
}
|
558 |
|
559 |
-
if ( ( !empty( $categorylist_cpt ) || isset( $_GET['cat_id'] ) ) && empty( $singlelinkid ) && ( $level == 0 || ( $level > 0 && !empty( $categorylist_cpt ) ) ) ) {
|
560 |
$link_categories_query_args['include'] = explode( ',', $categorylist_cpt );
|
561 |
}
|
562 |
|
563 |
-
if ( !empty( $excludecategorylist_cpt ) && empty( $singlelinkid ) ) {
|
564 |
$link_categories_query_args['exclude'] = explode( ',', $excludecategorylist_cpt );
|
565 |
}
|
566 |
|
567 |
-
if ( ( !empty( $categorysluglist ) || isset( $_GET['catslug'] ) ) && empty( $singlelinkid ) ) {
|
568 |
if ( !empty( $categorysluglist ) ) {
|
569 |
$link_categories_query_args['slug'] = explode( ',', $categorysluglist );
|
570 |
} elseif ( isset( $_GET['catslug'] ) ) {
|
@@ -574,11 +574,11 @@ function RenderLinkLibrary( $LLPluginClass, $generaloptions, $libraryoptions, $s
|
|
574 |
$link_categories_query_args['exclude'] = array();
|
575 |
}
|
576 |
|
577 |
-
if ( isset( $categoryname ) && !empty( $categoryname ) && 'HTMLGETPERM' == $showonecatmode && empty( $singlelinkid ) ) {
|
578 |
$link_categories_query_args['slug'] = $categoryname;
|
579 |
}
|
580 |
|
581 |
-
if ( ( !empty( $categorynamelist ) || isset( $_GET['catname'] ) ) && empty( $singlelinkid ) ) {
|
582 |
$link_categories_query_args['name'] = explode( ',', urldecode( $categorynamelist ) );
|
583 |
}
|
584 |
|
556 |
add_filter( 'get_terms', 'link_library_get_terms_filter_publish_draft_pending', 10, 3 );
|
557 |
}
|
558 |
|
559 |
+
if ( ( !empty( $categorylist_cpt ) || isset( $_GET['cat_id'] ) ) && empty( $singlelinkid ) && ( 'search' != $mode || false == $searchfromallcats ) && ( $level == 0 || ( $level > 0 && !empty( $categorylist_cpt ) ) ) ) {
|
560 |
$link_categories_query_args['include'] = explode( ',', $categorylist_cpt );
|
561 |
}
|
562 |
|
563 |
+
if ( !empty( $excludecategorylist_cpt ) && empty( $singlelinkid ) && ( 'search' != $mode || false == $searchfromallcats ) ) {
|
564 |
$link_categories_query_args['exclude'] = explode( ',', $excludecategorylist_cpt );
|
565 |
}
|
566 |
|
567 |
+
if ( ( !empty( $categorysluglist ) || isset( $_GET['catslug'] ) ) && empty( $singlelinkid ) && ( 'search' != $mode || false == $searchfromallcats ) ) {
|
568 |
if ( !empty( $categorysluglist ) ) {
|
569 |
$link_categories_query_args['slug'] = explode( ',', $categorysluglist );
|
570 |
} elseif ( isset( $_GET['catslug'] ) ) {
|
574 |
$link_categories_query_args['exclude'] = array();
|
575 |
}
|
576 |
|
577 |
+
if ( isset( $categoryname ) && !empty( $categoryname ) && 'HTMLGETPERM' == $showonecatmode && empty( $singlelinkid ) && ( 'search' != $mode || false == $searchfromallcats ) ) {
|
578 |
$link_categories_query_args['slug'] = $categoryname;
|
579 |
}
|
580 |
|
581 |
+
if ( ( !empty( $categorynamelist ) || isset( $_GET['catname'] ) ) && empty( $singlelinkid ) && ( 'search' != $mode || false == $searchfromallcats ) ) {
|
582 |
$link_categories_query_args['name'] = explode( ',', urldecode( $categorynamelist ) );
|
583 |
}
|
584 |
|