WordPress.org

Making WordPress.org

Changeset 7539


Ignore:
Timestamp:
07/30/2018 11:28:13 PM (3 years ago)
Author:
dd32
Message:

Gutenberg: Use full URLs with a localised domain name in the links to the plugins.

See #3703.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/gutenfront-content.php

    r7538 r7539  
    11<?php
     2
     3$localised_domain = parse_url( home_url('/'), PHP_URL_HOST );
     4
    25$title = __( 'Say Hello to the New Editor', 'gutenbergtheme' );
    36
     
    2326
    2427$content .= '<!-- wp:button {"align":"center","backgroundColor":"dark-blue"} -->
    25 <div class="wp-block-button aligncenter"><a class="wp-block-button__link has-background has-dark-blue-background-color" href="/plugins/gutenberg/">' . __( "Download Gutenberg Today", 'gutenbergtheme' ) . '</a></div>
     28<div class="wp-block-button aligncenter"><a class="wp-block-button__link has-background has-dark-blue-background-color" href="' . "https://{$localised_domain}/plugins/gutenberg/" . '">' . __( "Download Gutenberg Today", 'gutenbergtheme' ) . '</a></div>
    2629<!-- /wp:button -->' . "\n\n";
    2730
     
    3134        /* translators: %s: The URL to the Clasic Editor plugin. */
    3235        __( "Gutenberg is available as a plugin today, and will be included in version 5.0 of WordPress. The <a href='%s'>classic editor</a> will be available as a plugin if needed.", 'gutenbergtheme' ),
    33         '/plugins/classic-editor/'
     36        "https://{$localised_domain}/plugins/classic-editor/"
    3437    ) . '</em></p>
    3538<!-- /wp:paragraph -->' . "\n\n";
     
    142145
    143146$content .= '<!-- wp:button {"align":"center","backgroundColor":"dark-blue"} -->
    144 <div class="wp-block-button aligncenter"><a class="wp-block-button__link has-background has-dark-blue-background-color" href="/plugins/gutenberg/">' . __( 'Download Gutenberg Today', 'gutenbergtheme' ) . '</a></div>
     147<div class="wp-block-button aligncenter"><a class="wp-block-button__link has-background has-dark-blue-background-color" href="' . "https://{$localised_domain}/plugins/gutenberg/" . '">' . __( 'Download Gutenberg Today', 'gutenbergtheme' ) . '</a></div>
    145148<!-- /wp:button -->' . "\n\n";
    146149
     
    150153        /* translators: %s: The URL to the Clasic Editor plugin. */
    151154        __( "Gutenberg is available as a plugin today, and will be included in version 5.0 of WordPress. The <a href='%s'>classic editor</a> will be available as a plugin if needed.", 'gutenbergtheme' ),
    152         '/plugins/classic-editor/'
     155        "https://{$localised_domain}/plugins/classic-editor/"
    153156    ) . '</em></p>
    154157<!-- /wp:paragraph -->' . "\n\n";
Note: See TracChangeset for help on using the changeset viewer.