Title: Protocol Relative Theme Assets
Author: ryanjbonnell
Published: <strong>2014年5月21日</strong>
Last modified: 2014年5月21日

---

プラグインを検索

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

![](https://s.w.org/plugins/geopattern-icon/protocol-relative-theme-assets.svg)

# Protocol Relative Theme Assets

 作者: [ryanjbonnell](https://profiles.wordpress.org/ryanjbonnell/)

[ダウンロード](https://downloads.wordpress.org/plugin/protocol-relative-theme-assets.zip)

 * [詳細](https://ja.wordpress.org/plugins/protocol-relative-theme-assets/#description)
 * [レビュー](https://ja.wordpress.org/plugins/protocol-relative-theme-assets/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/protocol-relative-theme-assets/#installation)
 * [開発](https://ja.wordpress.org/plugins/protocol-relative-theme-assets/#developers)

 [サポート](https://wordpress.org/support/plugin/protocol-relative-theme-assets/)

## 説明

This plugin transforms any registered, enqueued CSS or JavaScript URLs into their“
protocol-relative” equivalent.

Consider the following examples:

**Protocol Relative CSS URL**

    ```
    <link href="//example.com/wp-content/themes/twentytwelve/style.css" />
    ```

**Protocol Relative Javascript URL**

    ```
    <script src="//example.com/wp-includes/js/jquery/jquery.js"></script>
    ```

More appropriately called a “network-path reference” or “scheme-relative path”, 
a protocol-relative URL helps to avoid common scenarios such as:

 * Broken SSL padlock icon in browser’s address bar when showing mixed HTTP/HTTPS
   content
 * Error message in Internet Explorer saying, “This Page Contains Both Secure and
   Non-Secure Items”
 * Serving HTTP assets when viewing HTTPS pages

The idea of using protocol-relative URLs was popularized by [Paul Irish](http://paulirish.com/2010/the-protocol-relative-url/)
and has become common as sites switch between serving HTTP and HTTPS assets.

This plugin will standardize all properly enqueued theme files to use protocol-relative
paths, even those added from third-party plugins.

_Note: This plugin does not transform any image paths that may be embedded in the
WordPress editor or output as featured images or elsewhere in the theme — it presently
only works on enqueued CSS/JavaScript files._

## インストール

 1. Activate the plugin through the Plugins menu in the WordPress admin.

## 評価

![](https://secure.gravatar.com/avatar/83ef055bef15d30db182397f553017f10b84c5dea03f0b493c2b013f8bb7a2f9?
s=60&d=retro&r=g)

### 󠀁[Still works with 4.3.](https://wordpress.org/support/topic/still-works-with-43/)󠁿

 [massafiri](https://profiles.wordpress.org/massafiri/) 2016年9月3日

Life saving plugin. After moving to HTTPs, a lot of the assets from Masterslider
broke and caused very broken looking homepages. Installation of this plugin fixed
that, no configuration required. As fabian mentioned, this won't update the images
on the site to pull from HTTPs.. but it's not designed to do that, and many images
are hard coded by your CSS; so it's hardly fair to give this plugin less than 5 
stars as it does exactly as it promises.

 [ 2件のレビューをすべて表示 ](https://wordpress.org/support/plugin/protocol-relative-theme-assets/reviews/)

## 貢献者と開発者

Protocol Relative Theme Assets はオープンソースソフトウェアです。以下の人々がこの
プラグインに貢献しています。

貢献者

 *   [ ryanjbonnell ](https://profiles.wordpress.org/ryanjbonnell/)

[“Protocol Relative Theme Assets” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/protocol-relative-theme-assets)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/protocol-relative-theme-assets/)
するか、[SVN リポジトリ](https://plugins.svn.wordpress.org/protocol-relative-theme-assets/)
をチェックするか、[開発ログ](https://plugins.trac.wordpress.org/log/protocol-relative-theme-assets/)
を [RSS](https://plugins.trac.wordpress.org/log/protocol-relative-theme-assets/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 1.0

 * Initial release

## メタ

 *  バージョン **1.0**
 *  最終更新日 **12年前**
 *  有効インストール数 **20+**
 *  WordPress バージョン ** 3.6またはそれ以降 **
 *  検証済み最新バージョン: **4.0.38**
 *  言語
 * [English (US)](https://wordpress.org/plugins/protocol-relative-theme-assets/)
 * タグ
 * [javascript](https://ja.wordpress.org/plugins/tags/javascript/)[Protocol](https://ja.wordpress.org/plugins/tags/protocol/)
   [relative](https://ja.wordpress.org/plugins/tags/relative/)[script](https://ja.wordpress.org/plugins/tags/script/)
   [stylesheet](https://ja.wordpress.org/plugins/tags/stylesheet/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/protocol-relative-theme-assets/advanced/)

## 評価

 5つ星中4つ星

 *  [  1 5-星レビュー     ](https://wordpress.org/support/plugin/protocol-relative-theme-assets/reviews/?filter=5)
 *  [  0 4-星レビュー     ](https://wordpress.org/support/plugin/protocol-relative-theme-assets/reviews/?filter=4)
 *  [  1 3-星レビュー     ](https://wordpress.org/support/plugin/protocol-relative-theme-assets/reviews/?filter=3)
 *  [  0 2-星レビュー     ](https://wordpress.org/support/plugin/protocol-relative-theme-assets/reviews/?filter=2)
 *  [  0 1-星レビュー     ](https://wordpress.org/support/plugin/protocol-relative-theme-assets/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/protocol-relative-theme-assets/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/protocol-relative-theme-assets/reviews/)

## 貢献者

 *   [ ryanjbonnell ](https://profiles.wordpress.org/ryanjbonnell/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/protocol-relative-theme-assets/)

## 寄付

このプラグインが今後も改善できるよう応援しませんか ?

 [ このプラグインに寄付 ](https://www.gittip.com/ryanjbonnell/)