{"id":1328,"date":"2016-12-09T19:04:06","date_gmt":"2016-12-09T10:04:06","guid":{"rendered":"http:\/\/sonic.blue\/it\/?p=1328"},"modified":"2016-12-09T19:12:13","modified_gmt":"2016-12-09T10:12:13","slug":"wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%80%8cadvanced-custom-fields%e3%80%8d%e3%82%92ssl%ef%bc%88https%ef%bc%89%e3%81%ab%e5%af%be%e5%bf%9c%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"http:\/\/sonic.blue\/it\/1328","title":{"rendered":"WordPress\u30d7\u30e9\u30b0\u30a4\u30f3\u300cAdvanced Custom Fields\u300d\u3092SSL\uff08HTTPS\uff09\u306b\u5bfe\u5fdc\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>WordPress\u30d7\u30e9\u30b0\u30a4\u30f3\u300cAdvanced Custom Fields\u300d\uff08\u4ee5\u964dACF\uff09\u306f\u554f\u984c\u306a\u304f\u5229\u7528\u3067\u304d\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001SSL\uff08HTTPS\uff09\u306b\u5207\u308a\u66ff\u3048\u305f\u3068\u3053\u308d\u3001WordPress\u306e\u7ba1\u7406\u30da\u30fc\u30b8\u3067ACF\u306e\u30dc\u30bf\u30f3\u306a\u3069\u304c\u52d5\u4f5c\u3057\u306a\u304b\u3063\u305f\u305f\u3081\u305d\u306e\u6642\u306e\u5bfe\u51e6\u65b9\u6cd5\u3092\u8a18\u8ff0\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u539f\u56e0\u3068\u3057\u3066\u306fACF\u304cSSL\u306b\u5bfe\u5fdc\u3057\u3066\u304a\u3089\u305a\u3001\u30d8\u30c3\u30c0\u30fc\u90e8\u5206\u306e\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb\u304c\u3059\u3079\u3066\u300chttp:\/\/\u300d\u306e\u307e\u307e\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u304c\u539f\u56e0\u3067\u3059\u3002<br \/>\n\u203bHTTPS\u304b\u3089HTTP\u3078\u306e\u53c2\u7167\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u304c\u4f4e\u4e0b\u3059\u308b\u305f\u3081\u3001\u30d6\u30ed\u30c3\u30af\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4e00\u5fdc\u3001HTTP\u3092HTTPS\u306b\u9077\u79fb\u3055\u305b\u308b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u51e6\u7406\u3067\u3082\u554f\u984c\u306a\u304f\u52d5\u4f5c\u306f\u3059\u308b\u306e\u3067\u3059\u304c\u3001\u30bd\u30fc\u30b9\u3092\u898b\u305f\u5834\u5408\u306bHTTP\u304c\u6df7\u3056\u3063\u3066\u3044\u308b\u306e\u306f\u3042\u307e\u308a\u30ad\u30ec\u30a4\u3067\u306f\u306a\u304b\u3063\u305f\u305f\u3081\u3001\u30b3\u30fc\u30c9\u5074\u3067\u5bfe\u5fdc\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h2>\u5bfe\u5fdc\u65b9\u6cd5<\/h2>\n<p>ACF\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u7de8\u96c6\u304b\u3089\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b3\u30fc\u30c9\u306e\u4fee\u6b63\u3092\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u300cadvanced-custom-fields\/acf.php\u300d<\/strong>\u5185<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nfunction __construct()\r\n\u30fb\u30fb\u30fb\r\n\t\/\/ vars\r\n\t$this-&gt;settings = array(\r\n\t\t'path' =&gt; apply_filters('acf\/helpers\/get_path', __FILE__),\r\n\t\t'dir' =&gt; apply_filters('acf\/helpers\/get_dir', __FILE__),\r\n\t\t'hook' =&gt; basename( dirname( __FILE__ ) ) . '\/' . basename( __FILE__ ),\r\n\t\t'version' =&gt; '4.4.11',\r\n\t\t'upgrade_version' =&gt; '3.4.1',\r\n\t\t'include_3rd_party' =&gt; false\r\n\t);\r\n\r\n\t\/\/ set text domain\r\n\tload_textdomain('acf', $this-&gt;settings&#x5B;'path'] . 'lang\/acf-' . get_locale() . '.mo');\r\n<\/pre>\n<p>\u3068\u3044\u3063\u305f\u8a18\u8ff0\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u305d\u306e\u3042\u3068\u306b<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\t\/\/http to https\r\n\t$this-&gt;settings&#x5B;'dir'] = str_replace( 'http:', 'https:', $this-&gt;settings&#x5B;'dir']);\r\n<\/pre>\n<p>\u3092\u8ffd\u8a18\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u203b\u5f37\u5236\u7684\u306b\u300chttp:\u300d\u3092\u300chttps:\u300d\u306b\u66f8\u304d\u63db\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b7\u30f3\u30d7\u30eb\u306a\u5bfe\u5fdc\u3067\u3059\u304c\u3001\u3053\u308c\u3067ACF\u304c\u7121\u4e8b\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u203b\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u66f4\u65b0\u6642\u306b\u6bce\u56de\u8a02\u6b63\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress\u30d7\u30e9\u30b0\u30a4\u30f3\u300cAdvanced Custom Fields\u300d\uff08\u4ee5\u964dACF\uff09\u306f\u554f\u984c\u306a\u304f\u5229\u7528\u3067\u304d\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001SSL\uff08HTTPS\uff09\u306b\u5207\u308a\u66ff\u3048\u305f\u3068\u3053\u308d\u3001WordPress\u306e\u7ba1\u7406\u30da\u30fc\u30b8\u3067ACF\u306e\u30dc\u30bf\u30f3\u306a\u3069\u304c\u52d5\u4f5c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,2],"tags":[],"class_list":["post-1328","post","type-post","status-publish","format-standard","hentry","category-wordpress","category-program"],"_links":{"self":[{"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/posts\/1328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/comments?post=1328"}],"version-history":[{"count":11,"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/posts\/1328\/revisions"}],"predecessor-version":[{"id":1348,"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/posts\/1328\/revisions\/1348"}],"wp:attachment":[{"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/media?parent=1328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/categories?post=1328"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/tags?post=1328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}