Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce setting for controlling thread sort order #3

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

chiranjitm-cn
Copy link

for #2

@brichards brichards changed the title Issue 2 Introduce setting for controlling thread sort order May 6, 2016
@@ -135,12 +135,14 @@ function cfth_thread_notice($posts, $query) {

function cfth_timeline_posts($term_id) {
$term = get_term_by('id', $term_id, 'threads');
$term_meta = get_term_meta( $term_id, 'threads_meta', true );

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function was introduced as of 4.4.0. Using it here means that the plugin's required minimum WP version will be 4.4.0. That means an update to the README and the plugin's heading docblock.

We should also, for good measure, confirm this function exists using if ( function_exists( 'get_term_meta' ) ) simply because it is so new

@brichards
Copy link

Other general feedback:

The new functions are missing PHP DocBlocks. Please add these in and follow the WP coding standards for documentation: https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/php/

@brichards brichards assigned chiranjitm-cn and unassigned brichards May 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants