Skip to content

Commit 9fbfaa5

Browse files
committed
removing an old method that's no longer used
1 parent f730693 commit 9fbfaa5

File tree

2 files changed

+3
-40
lines changed

2 files changed

+3
-40
lines changed

author.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* have an archive and a bio for the author
55
*
66
* @link http://codex.wordpress.org/Template_Hierarchy
7-
* @package multiloquent
7+
* @package multiloquent
88
*/
99

1010
/**

multiloquent-base.php

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -491,43 +491,6 @@ function multiloquent_breadcrumbs() {
491491
return $return;
492492
}
493493

494-
/**
495-
* renders the pagination on the page
496-
* @api
497-
* @todo make this return rather than echo
498-
*/
499-
function multiloquent_render_pagingation() {
500-
global $wp_query;
501-
$total_pages = $wp_query->max_num_pages;
502-
// check if search result
503-
if (get_query_var('paged')) {
504-
$paged = get_query_var('paged');
505-
} elseif (get_query_var('page')) {
506-
$paged = get_query_var('page');
507-
} else {
508-
$paged = 1;
509-
}
510-
if ($total_pages > 1) {
511-
$current_page = max(1, get_query_var('paged'));
512-
echo paginate_links(array(
513-
'base' => get_pagenum_link(1) . '%_%',
514-
'current' => $current_page,
515-
'total' => $total_pages,
516-
'posts_per_page' => - 1,
517-
'orderby' => 'date',
518-
'order' => 'asc',
519-
'paged' => $paged,
520-
'tax_query' => array(
521-
array(
522-
'taxonomy' => 'categorias',
523-
'field' => 'slug'
524-
)
525-
)
526-
));
527-
}
528-
echo paginate_links();
529-
}
530-
531494
/**
532495
* returns a random class from the list
533496
* @api
@@ -955,8 +918,8 @@ function multiloquent_get_avatar($avatar) {
955918
function multiloquent_render_the_archive($colour) {
956919
// set it to blank so that it doesnt get the previous one..
957920
global $post;
958-
$id = get_the_ID();
959-
$slider_image = wp_get_attachment_image_src(get_post_thumbnail_id($id), 'single-post-thumbnail');
921+
$thumbnail_id = get_the_ID();
922+
$slider_image = wp_get_attachment_image_src(get_post_thumbnail_id($thumbnail_id), 'single-post-thumbnail');
960923
if ( ! empty($slider_image)) {
961924
$the_image = $slider_image[0];
962925
// $width = $slider_image[1];

0 commit comments

Comments
 (0)