diff --git a/core/modules/rdf/lib/Drupal/rdf/Tests/UserAttributesTest.php b/core/modules/rdf/lib/Drupal/rdf/Tests/UserAttributesTest.php index baa55b8..55df929 100644 --- a/core/modules/rdf/lib/Drupal/rdf/Tests/UserAttributesTest.php +++ b/core/modules/rdf/lib/Drupal/rdf/Tests/UserAttributesTest.php @@ -50,7 +50,7 @@ public function setUp() { function testUserAttributesInMarkup() { // Creates users that should and should not be truncated // by template_preprocess_username (20 characters) - // one of these users tests right on the cusp (20) + // one of these users tests right on the cusp (20). $user1 = $this->drupalCreateUser(array('access user profiles')); $authors = array( @@ -90,7 +90,7 @@ function testUserAttributesInMarkup() { $node = $this->drupalCreateNode(array('type' => 'article', 'promote' => 1)); $this->drupalLogin($user1); - // Parses the node created by the user + // Parses the node created by the user. $parser = new \EasyRdf_Parser_Rdfa(); $graph = new \EasyRdf_Graph(); $base_uri = url('', array('absolute' => TRUE)); diff --git a/core/modules/rdf/rdf.module b/core/modules/rdf/rdf.module index 75270ce..8231625 100644 --- a/core/modules/rdf/rdf.module +++ b/core/modules/rdf/rdf.module @@ -410,7 +410,7 @@ function rdf_preprocess_username(&$variables) { $attributes['rel'] = $homepage_mapping['properties']; } // Long usernames are truncated by template_preprocess_username(). - // In these cases, store the full username in the 'content' attribute. + // Assert the full name in the content attribute so it can be extracted in RDFa. if ($variables['truncated']) { $attributes['content'] = check_plain($variables['name_raw']); }