{"id":29633,"date":"2014-05-21T21:31:12","date_gmt":"2014-05-21T21:31:12","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/protocol-relative-theme-assets\/"},"modified":"2014-05-21T21:36:43","modified_gmt":"2014-05-21T21:36:43","slug":"protocol-relative-theme-assets","status":"publish","type":"plugin","link":"https:\/\/bal.wordpress.org\/plugins\/protocol-relative-theme-assets\/","author":7606552,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"4.0.38","requires":"3.6","requires_php":"","requires_plugins":"","header_name":"Protocol Relative Theme Assets","header_author":"Ryan J. Bonnell","header_description":"","assets_banners_color":"","last_updated":"2014-05-21 21:36:43","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.gittip.com\/ryanjbonnell\/","header_plugin_uri":"https:\/\/github.com\/ryanjbonnell\/Protocol-Relative-Theme-Assets","header_author_uri":"https:\/\/github.com\/ryanjbonnell","rating":4,"author_block_rating":0,"active_installs":20,"downloads":2864,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":"1","4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[229,28445,1429,1216,1739],"plugin_category":[54,59],"plugin_contributors":[87995],"plugin_business_model":[],"class_list":["post-29633","plugin","type-plugin","status-publish","hentry","plugin_tags-javascript","plugin_tags-protocol","plugin_tags-relative","plugin_tags-script","plugin_tags-stylesheet","plugin_category-security-and-spam-protection","plugin_category-utilities-and-tools","plugin_contributors-ryanjbonnell","plugin_committers-ryanjbonnell"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/protocol-relative-theme-assets.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin transforms any registered, enqueued CSS or JavaScript URLs into their \"protocol-relative\" equivalent.<\/p>\n\n<p>Consider the following examples:<\/p>\n\n<p><strong>Protocol Relative CSS URL<\/strong><\/p>\n\n<pre><code>&lt;link href=\"\/\/example.com\/wp-content\/themes\/twentytwelve\/style.css\" \/&gt;\n<\/code><\/pre>\n\n<p><strong>Protocol Relative Javascript URL<\/strong><\/p>\n\n<pre><code>&lt;script src=\"\/\/example.com\/wp-includes\/js\/jquery\/jquery.js\"&gt;&lt;\/script&gt;\n<\/code><\/pre>\n\n<p>More appropriately called a \"network-path reference\" or \"scheme-relative path\", a protocol-relative URL helps to avoid common scenarios such as:<\/p>\n\n<ul>\n<li>Broken SSL padlock icon in browser's address bar when showing mixed HTTP\/HTTPS content<\/li>\n<li>Error message in Internet Explorer saying, \"This Page Contains Both Secure and Non-Secure Items\"<\/li>\n<li>Serving HTTP assets when viewing HTTPS pages<\/li>\n<\/ul>\n\n<p>The idea of using protocol-relative URLs was popularized by <a href=\"http:\/\/paulirish.com\/2010\/the-protocol-relative-url\/\">Paul Irish<\/a> and has become common as sites switch between serving HTTP and HTTPS assets.<\/p>\n\n<p>This plugin will standardize all properly enqueued theme files to use protocol-relative paths, even those added from third-party plugins.<\/p>\n\n<p><em>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.<\/em><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Activate the plugin through the Plugins menu in the WordPress admin.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Transforms enqueued CSS and JavaScript theme URLs to use protocol-relative paths.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/29633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=29633"}],"author":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ryanjbonnell"}],"wp:attachment":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=29633"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=29633"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=29633"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=29633"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=29633"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=29633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}