Problem/Motivation

The following comment added #1425280: No contextual links in node lists after a node without contextual links in is a little confusing and contains unecessarily gendered language

+++ b/modules/contextual/contextual.testundefined
@@ -0,0 +1,47 @@
+    // Promote nodes to the front page. One article node the user can edit, one
+    // page node he can not edit and another article node he can edit.

Proposed resolution

Reword the comment to be a little clearer and refer to "the user" instead of "he" in all cases. Making "The user" the subject of the sentence should help clear it up a bit, as might a list of the three nodes.

Comments

chertzog’s picture

Status: Active » Needs review
StatusFileSize
new963 bytes

I think this patch should clarify the comment.

**** YAY! My first patch for Core! +1 for the Novice tag! ******

xjm’s picture

Yay! Thanks @chertzog. The patch follows all our coding standards, and I think the comment is a lot more clear now.

I talked to NiklasFiekas, who worked on the original patch a bit, and he said the order of the nodes is important in this case, which I didn't realize at first. So to clarify that, maybe we could do something like:

// Create three nodes in the following order:
// - An article, which should be user-editable.
// - A page, which should not be user-editable.
// - A second article, which should also be user-editable.

Would that work? (Also note the hyphen in "user-editable.")

Niklas Fiekas’s picture

That looks good. Thanks @chertzog for touching this.

chertzog’s picture

StatusFileSize
new1.01 KB

Sure. Here is a re-rolled patch.

Niklas Fiekas’s picture

Status: Needs review » Reviewed & tested by the community

Excellent.

(RTBC, given that the tests pass - which they definitely should.)

jhodgdon’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x and 7.x. Thanks!

webchick’s picture

Congrats on your first core patch, chertzog!! :D Hope to see many more. :)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.