Skip to content

Commit

Permalink
Updated Schema.org from http:// to https:// (PR Getbeans#290)
Browse files Browse the repository at this point in the history
Part of Getbeans#288
  • Loading branch information
ibes authored and hellofromtonya committed Jun 25, 2018
1 parent 6a9e530 commit d9cdd9f
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion lib/templates/fragments/comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function beans_comment_author() {
'class' => 'uk-comment-title',
'itemprop' => 'author',
'itemscope' => 'itemscope',
'itemtype' => 'http://schema.org/Person',
'itemtype' => 'https://schema.org/Person',
)
);

Expand Down
2 changes: 1 addition & 1 deletion lib/templates/fragments/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function beans_primary_menu() {
'id' => 'beans-primary-navigation',
'role' => 'navigation',
'itemscope' => 'itemscope',
'itemtype' => 'http://schema.org/SiteNavigationElement',
'itemtype' => 'https://schema.org/SiteNavigationElement',
'aria-label' => esc_attr__( 'Primary Navigation Menu', 'tm-beans' ),
'tabindex' => '-1',
)
Expand Down
2 changes: 1 addition & 1 deletion lib/templates/fragments/post-shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function beans_post_meta_author_shortcode() {
'rel' => 'author',
'itemprop' => 'author',
'itemscope' => '',
'itemtype' => 'http://schema.org/Person',
'itemtype' => 'https://schema.org/Person',
)
);

Expand Down
2 changes: 1 addition & 1 deletion lib/templates/structure/comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'class' => 'uk-comment',
'itemprop' => 'comment',
'itemscope' => 'itemscope',
'itemtype' => 'http://schema.org/Comment',
'itemtype' => 'https://schema.org/Comment',
)
);

Expand Down
4 changes: 2 additions & 2 deletions lib/templates/structure/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
if ( is_home() || is_page_template( 'page_blog.php' ) || is_singular( 'post' ) || is_archive() ) {

$content_attributes['itemscope'] = 'itemscope'; // Automatically escaped.
$content_attributes['itemtype'] = 'http://schema.org/Blog'; // Automatically escaped.
$content_attributes['itemtype'] = 'https://schema.org/Blog'; // Automatically escaped.

}

// Blog specific attributes.
if ( is_search() ) {

$content_attributes['itemscope'] = 'itemscope'; // Automatically escaped.
$content_attributes['itemtype'] = 'http://schema.org/SearchResultsPage'; // Automatically escaped.
$content_attributes['itemtype'] = 'https://schema.org/SearchResultsPage'; // Automatically escaped.

}
// phpcs:enable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
Expand Down
2 changes: 1 addition & 1 deletion lib/templates/structure/footer-partial.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'class' => 'tm-footer uk-block',
'role' => 'contentinfo',
'itemscope' => 'itemscope',
'itemtype' => 'http://schema.org/WPFooter',
'itemtype' => 'https://schema.org/WPFooter',
)
);

Expand Down
2 changes: 1 addition & 1 deletion lib/templates/structure/header-partial.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'class' => 'tm-header uk-block',
'role' => 'banner',
'itemscope' => 'itemscope',
'itemtype' => 'http://schema.org/WPHeader',
'itemtype' => 'https://schema.org/WPHeader',
)
);

Expand Down
2 changes: 1 addition & 1 deletion lib/templates/structure/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
array(
'class' => implode( ' ', get_body_class( 'uk-form no-js' ) ),
'itemscope' => 'itemscope',
'itemtype' => 'http://schema.org/WebPage',
'itemtype' => 'https://schema.org/WebPage',

)
);
Expand Down
4 changes: 2 additions & 2 deletions lib/templates/structure/loop.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@
'id' => get_the_ID(), // Automatically escaped.
'class' => implode( ' ', get_post_class( array( 'uk-article', ( current_theme_supports( 'beans-default-styling' ) ? 'uk-panel-box' : null ) ) ) ), // Automatically escaped.
'itemscope' => 'itemscope',
'itemtype' => 'http://schema.org/CreativeWork',
'itemtype' => 'https://schema.org/CreativeWork',
);

// Blog specifc attributes.
if ( 'post' === get_post_type() ) {

$article_attributes['itemtype'] = 'http://schema.org/BlogPosting';
$article_attributes['itemtype'] = 'https://schema.org/BlogPosting';

// Only add to blogPost attribute to the main query.
if ( is_main_query() && ! is_search() ) {
Expand Down
2 changes: 1 addition & 1 deletion lib/templates/structure/sidebar-primary.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
'id' => 'beans-primary-sidebar',
'role' => 'complementary',
'itemscope' => 'itemscope',
'itemtype' => 'http://schema.org/WPSideBar',
'itemtype' => 'https://schema.org/WPSideBar',
'tabindex' => '-1',
)
);
Expand Down
2 changes: 1 addition & 1 deletion lib/templates/structure/sidebar-secondary.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
'id' => 'beans-secondary-sidebar',
'role' => 'complementary',
'itemscope' => 'itemscope',
'itemtype' => 'http://schema.org/WPSideBar',
'itemtype' => 'https://schema.org/WPSideBar',
'tabindex' => '-1',
)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function test_should_remove_the_given_value_from_attribute() {
'id' => 47,
'class' => 'uk-article uk-panel-box category-beans',
'itemscope' => 'itemscope',
'itemtype' => 'http://schema.org/blogPost',
'itemtype' => 'https://schema.org/blogPost',
'itemprop' => 'beans_post',
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function test_should_replace_existing_attribute_value() {
'id' => 47,
'class' => 'uk-article uk-panel-box category-beans',
'itemscope' => 'itemscope',
'itemtype' => 'http://schema.org/blogPost',
'itemtype' => 'https://schema.org/blogPost',
'itemprop' => 'beans_post',
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'id' => 47,
'class' => 'uk-article uk-panel-box post-47 post type-post status-publish format-standard has-post-thumbnail hentry category-beans',
'itemscope' => 'itemscope',
'itemtype' => 'http://schema.org/blogPost',
'itemtype' => 'https://schema.org/blogPost',
'itemprop' => 'beans_post',
],
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function test_should_load_default_structure_when_given_file_does_not_exis
$html = ob_get_clean();

$expected = <<<EOB
<div class="tm-content" id="beans-content" role="main" itemprop="mainEntityOfPage" tabindex="-1" itemscope="itemscope" itemtype="http://schema.org/Blog">
<div class="tm-content" id="beans-content" role="main" itemprop="mainEntityOfPage" tabindex="-1" itemscope="itemscope" itemtype="https://schema.org/Blog">
EOB;
$this->assertStringStartsWith( $expected, trim( $html ) );

Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/unit/api/html/beans-attribute/remove.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function test_should_remove_the_given_value_from_attribute() {
'id' => 47,
'class' => 'uk-article uk-panel-box category-beans',
'itemscope' => 'itemscope',
'itemtype' => 'http://schema.org/blogPost',
'itemtype' => 'https://schema.org/blogPost',
'itemprop' => 'beans_post',
];

Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/unit/api/html/beans-attribute/replace.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function test_should_replace_existing_attribute_value() {
'id' => 47,
'class' => 'uk-article uk-panel-box category-beans',
'itemscope' => 'itemscope',
'itemtype' => 'http://schema.org/blogPost',
'itemtype' => 'https://schema.org/blogPost',
'itemprop' => 'beans_post',
];

Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/unit/api/html/fixtures/test-markup.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'id' => 47,
'class' => 'uk-article uk-panel-box post-47 post type-post status-publish format-standard has-post-thumbnail hentry category-beans',
'itemscope' => 'itemscope',
'itemtype' => 'http://schema.org/blogPost',
'itemtype' => 'https://schema.org/blogPost',
'itemprop' => 'beans_post',
],
],
Expand Down

0 comments on commit d9cdd9f

Please sign in to comment.