Version Description
- Fixed problem with featured links not longer appearing ahead of other link when ordering by title and having specified articles to be ignored
Download this release
Release Info
Developer | jackdewey |
Plugin | Link Library |
Version | 7.3.3 |
Comparing to | |
See all releases |
Code changes from version 7.3.2 to 7.3.3
- link-library.php +1 -1
- readme.txt +4 -1
- render-link-library-sc.php +16 -3
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.3.
|
7 |
Author: Yannick Lefebvre
|
8 |
Author URI: http://ylefebvre.github.io/
|
9 |
Text Domain: link-library
|
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.3.3
|
7 |
Author: Yannick Lefebvre
|
8 |
Author URI: http://ylefebvre.github.io/
|
9 |
Text Domain: link-library
|
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.9
|
7 |
-
Stable tag: 7.3.
|
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.3.2 =
|
52 |
* Fixed problems with new option to ignore specific articles introduced in version 7.3 beta 2
|
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.9
|
7 |
+
Stable tag: 7.3.3
|
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.3.3 =
|
52 |
+
* Fixed problem with featured links not longer appearing ahead of other link when ordering by title and having specified articles to be ignored
|
53 |
+
|
54 |
= 7.3.2 =
|
55 |
* Fixed problems with new option to ignore specific articles introduced in version 7.3 beta 2
|
56 |
|
render-link-library-sc.php
CHANGED
@@ -3,6 +3,8 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
3 |
|
4 |
require_once plugin_dir_path( __FILE__ ) . 'link-library-defaults.php';
|
5 |
|
|
|
|
|
6 |
/* Support functions to render output of link-library shortcode */
|
7 |
|
8 |
function link_library_add_http( $url ) {
|
@@ -42,9 +44,17 @@ function ll_create_temp_column( $fields ) {
|
|
42 |
return $fields;
|
43 |
}
|
44 |
|
45 |
-
function ll_sort_by_temp_column ($orderby) {
|
46 |
-
$custom_orderby =
|
47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
$orderby = $custom_orderby;
|
49 |
}
|
50 |
return $orderby;
|
@@ -313,6 +323,9 @@ function RenderLinkLibrary( $LLPluginClass, $generaloptions, $libraryoptions, $s
|
|
313 |
$libraryoptions = wp_parse_args( $libraryoptions, ll_reset_options( 1, 'list', 'return' ) );
|
314 |
extract( $libraryoptions );
|
315 |
|
|
|
|
|
|
|
316 |
remove_filter('posts_request', 'relevanssi_prevent_default_request');
|
317 |
remove_filter('the_posts', 'relevanssi_query', 99);
|
318 |
|
3 |
|
4 |
require_once plugin_dir_path( __FILE__ ) . 'link-library-defaults.php';
|
5 |
|
6 |
+
$globallibraryoptions = array();
|
7 |
+
|
8 |
/* Support functions to render output of link-library shortcode */
|
9 |
|
10 |
function link_library_add_http( $url ) {
|
44 |
return $fields;
|
45 |
}
|
46 |
|
47 |
+
function ll_sort_by_temp_column ( $orderby ) {
|
48 |
+
$custom_orderby = '';
|
49 |
+
|
50 |
+
global $globallibraryoptions;
|
51 |
+
|
52 |
+
if ( $globallibraryoptions['featuredfirst'] && 'random' != $globallibraryoptions['linkorder'] ) {
|
53 |
+
$custom_orderby = 'wp_postmeta.meta_value+0 DESC, ';
|
54 |
+
}
|
55 |
+
|
56 |
+
$custom_orderby .= " UPPER(title2) ASC";
|
57 |
+
if ( $custom_orderby ) {
|
58 |
$orderby = $custom_orderby;
|
59 |
}
|
60 |
return $orderby;
|
323 |
$libraryoptions = wp_parse_args( $libraryoptions, ll_reset_options( 1, 'list', 'return' ) );
|
324 |
extract( $libraryoptions );
|
325 |
|
326 |
+
global $globallibraryoptions;
|
327 |
+
$globallibraryoptions = $libraryoptions;
|
328 |
+
|
329 |
remove_filter('posts_request', 'relevanssi_prevent_default_request');
|
330 |
remove_filter('the_posts', 'relevanssi_query', 99);
|
331 |
|