Skip to content

Conversation

@chiranjitm-cn
Copy link

for #2

@brichards brichards changed the title Issue 2 Introduce setting for controlling thread sort order May 6, 2016
threads.php Outdated

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.

3 participants