updated plgntls :
- renamed PLGNTLS_class -> Plgntls - changed method 'add_to_front()' to static method - moved fetch script as inline script, so the plgntls file is single - improved the way inline script and styles are added
This commit is contained in:
@@ -18,7 +18,7 @@ if (!defined('ABSPATH')) {
|
||||
*
|
||||
*/
|
||||
function randomize_post_output_CIPF($query) {
|
||||
PLGNTLS_class::debug_infos(2);
|
||||
Plgntls::debug_infos(2);
|
||||
$posts_per_page = $query->get('posts_per_page');
|
||||
if (is_null($posts_per_page)) {
|
||||
return;
|
||||
@@ -26,7 +26,7 @@ function randomize_post_output_CIPF($query) {
|
||||
if ($posts_per_page >= -1) {
|
||||
return;
|
||||
}
|
||||
PLGNTLS_class::debug_infos();
|
||||
Plgntls::debug_infos();
|
||||
|
||||
error_log("posts_per_page: " . json_encode($posts_per_page));
|
||||
$query->set('orderby', 'rand');
|
||||
|
||||
Reference in New Issue
Block a user