Skip to content

Added option to display comment author's full name in reply link. - #237

Merged
raamdev merged 5 commits into
raamdev:masterfrom
vskjefst:feature/full-name-in-reply-link
Jul 19, 2016
Merged

Added option to display comment author's full name in reply link.#237
raamdev merged 5 commits into
raamdev:masterfrom
vskjefst:feature/full-name-in-reply-link

Conversation

@vskjefst

Copy link
Copy Markdown
Contributor

Not sure how you usually handle new strings that needs to be translated?

Comment thread functions.php Outdated

// If the user provided more than a first name, use only first name
if ( strpos( $author, ' ' ) ) {
$independent_publisher_general_options = get_option( 'independent_publisher_general_options' );

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This line can be removed; $independent_publisher_general_options is not used here.

Comment thread inc/customizer.php Outdated

// Show comment author's full name in reply-link
$wp_customize->add_setting(
'independent_publisher_general_options[show_comment_authors_full_name_in_reply_link]', array(

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I suggest changing the option key to show_full_name_comment_reply_to (this will need to be updated anywhere this key is used).

@raamdev

raamdev commented Jul 16, 2016

Copy link
Copy Markdown
Owner

@vskjefst Thanks so much for the Pull Request! I tested this out and it works great. :-) I left you a few comments above with a few change requests.

Not sure how you usually handle new strings that needs to be translated?

There's no need to worry about that—I'll regenerate the translation POT file right before I do the next release.

@vskjefst

Copy link
Copy Markdown
Contributor Author

@raamdev The necessary changes are now pushed to the PR branch.

Comment thread functions.php Outdated
}
}

if ( ! function_exists( 'independent_publisher_show_comment_authors_full_name_in_reply_link' ) ):

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

@vskjefst Could you also rename this function to independent_publisher_show_full_name_comment_reply_to?

@vskjefst

Copy link
Copy Markdown
Contributor Author

@raamdev yup, done.

@raamdev
raamdev merged commit ef37fab into raamdev:master Jul 19, 2016
@raamdev

raamdev commented Jul 19, 2016

Copy link
Copy Markdown
Owner

Woohoo! Merged. Thank you! 😄

@raamdev

raamdev commented Jul 19, 2016

Copy link
Copy Markdown
Owner

Posting a screenshot of this new option for future reference:

2016-07-16_14-24-37

@vskjefst
vskjefst deleted the feature/full-name-in-reply-link branch July 19, 2016 06:06
@raamdev raamdev added this to the Next Release milestone Jul 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants