Skip to content

Instantly share code, notes, and snippets.

@drewblas
Created July 15, 2010 14:55
Show Gist options
  • Save drewblas/477051 to your computer and use it in GitHub Desktop.
Save drewblas/477051 to your computer and use it in GitHub Desktop.
// From: http://drewblas.com/2010/07/15/an-analysis-of-gpled-code-in-thesis
// PARTIAL RESULTS of comparison of Wordpress 2.0 & Thesis 1.7
//-- Match from <wordpress/wp-includes/comment-template.php>:1428 to <thesis_17/lib/classes/comments.php>:182 --
$r['per_page'] = get_query_var('comments_per_page');
//-- Match from <wordpress/wp-includes/comment-template.php>:1430 to <thesis_17/lib/classes/comments.php>:183 --
if (empty($r['per_page'])) {
//-- Match from <wordpress/wp-includes/comment.php>:724 to <thesis_17/lib/classes/comments.php>:189 --
if (get_option('thread_comments'))
//-- Match from <wordpress/wp-includes/comment-template.php>:1437 to <thesis_17/lib/classes/comments.php>:190 --
$r['max_depth'] = get_option('thread_comments_depth');
//-- Match from <wordpress/wp-includes/comment-template.php>:1443 to <thesis_17/lib/classes/comments.php>:195 --
if (empty($overridden_cpage)) {
//-- Match from <wordpress/wp-includes/comment-template.php>:1444 to <thesis_17/lib/classes/comments.php>:196 --
$r['page'] = get_query_var('cpage');
//-- Match from <wordpress/wp-includes/comment-template.php>:1447 to <thesis_17/lib/classes/comments.php>:199 --
$r['page'] = ('newest' == get_option('default_comments_page')) ? get_comment_pages_count($_comments, $r['per_page'], $threaded) : 1;
//-- Match from <wordpress/wp-includes/comment-template.php>:1448 to <thesis_17/lib/classes/comments.php>:200 --
set_query_var('cpage', $r['page']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment