{"id":787,"date":"2008-05-05T07:23:04","date_gmt":"2008-05-04T22:23:04","guid":{"rendered":"https:\/\/y2tech.net\/blog\/?p=787"},"modified":"2008-05-05T07:23:04","modified_gmt":"2008-05-04T22:23:04","slug":"bugs","status":"publish","type":"post","link":"https:\/\/y2tech.net\/blog\/inet\/wp\/bugs-787\/","title":{"rendered":"WordPress 2.5 \u306e\u30e1\u30c7\u30a3\u30a2\u95a2\u9023\u306e\u30d0\u30b0 (Bugs)"},"content":{"rendered":"<h4> WordPress 2.5 \u306e\u30e1\u30c7\u30a3\u30a2\u95a2\u9023\u306e\u30d0\u30b0\u306b\u3064\u3044\u3066 <\/h4>\r\n<br>\r\n<p>WordPress 2.5 \u3067\u306f\u30e1\u30c7\u30a3\u30a2\u95a2\u9023\u306e\u53d6\u308a\u6271\u3044\u304c\u5927\u304d\u304f\u5909\u308f\u308a\u307e\u3057\u305f\u304c\u3001V2.5.1 \u306b\u65bc\u3044\u3066\u3082\u307e\u3060\u304b\u306a\u308a\u30d0\u30b0\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff0e<\/p>\r\n\r\n<h4>\u3010\u30d0\u30b0\uff11 Bug #1 \u3011<\/h4>\r\n<br>\r\n<p>\u30ae\u30e3\u30e9\u30ea\u30fc\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3067\u8868\u793a\u3055\u308c\u308b\u30b5\u30e0\u30cd\u30a4\u30eb\u753b\u50cf\u304c\u3001WordPress V2.5\u3088\u308a\u3082\u524d\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u305f\u753b\u50cf\u306b\u5bfe\u3057\u3066\u306f\u3001\u30b5\u30e0\u30cd\u30a4\u30eb\u753b\u50cf\u5c02\u7528\u306e\u753b\u50cf\u30c7\u30fc\u30bf\u3067\u306f\u306a\u304f\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u753b\u50cf\u30c7\u30fc\u30bf\u3092\u7e2e\u5c0f\u8868\u793a\u3057\u305f\u3082\u306e\u3068\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\uff0e\r\n<br>\r\n<br>\r\n<p>WordPress V2.5\u4ee5\u964d\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u753b\u50cf\u30c7\u30fc\u30bf\u306f\u3001\u304d\u3061\u3093\u3068\u30b5\u30e0\u30cd\u30a4\u30eb\u7528\u306e\u753b\u50cf\u3067\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3059\u304c\u3001\u65e7\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u753b\u50cf\u30c7\u30fc\u30bf\u306f\u304d\u3061\u3093\u3068\u51e6\u7406\u3057\u3066\u304f\u308c\u306a\u3044\u3088\u3046\u3067\u3059\uff0e\u30ae\u30e3\u30e9\u30ea\u30fc\u8868\u793a\u3092\u3057\u305f\u969b\u306b\u3001\u5143\u306e\u30aa\u30ea\u30b8\u30ca\u30eb\u30b5\u30a4\u30ba\u306e\u753b\u50cf\u30c7\u30fc\u30bf\u3067\u7121\u7406\u77e2\u7406\u30b5\u30e0\u30cd\u30a4\u30eb\u7528\u306e\u7e2e\u5c0f\u753b\u50cf\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3001\u30ae\u30e3\u30e9\u30ea\u30fc\u306b\u542b\u307e\u308c\u308b\u753b\u50cf\u306e\u679a\u6570\u304c\u591a\u3044\u3068\u3068\u3066\u3082\u601d\u3044\u30da\u30fc\u30b8\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\uff0e<\/p>\r\n<br><p>\u30d0\u30b0\u306e\u539f\u56e0\u3092\u8abf\u3079\u308b\u305f\u3081\u3001WordPress V2.5 \u3067\u753b\u50cf\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30c7\u30fc\u30bf\u304c\u3069\u306e\u3088\u3046\u306b\u51e6\u7406\u3055\u308c\u3066\u3044\u308b\u306e\u304b\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u305f\uff0e\u691c\u8a3c\u306e\u7d50\u679c\u3001\u753b\u50cf\u306e\u30e1\u30fc\u30bf\u30c7\u30fc\u30bf\u306e\u5185\u5bb9\u304c\u5927\u5206\u62e1\u5f35\u3055\u308c\u3066\u3044\u307e\u3057\u305f\uff0e<\/p>\r\n<br><p>WordPress 2.3 \u3067\u306e\u753b\u50cf\u306e\u30e1\u30bf\u30c7\u30fc\u30bf <\/p>\n<pre style=\"width: 670px;\">\na:5:{s:5:\"width\";i:576;s:6:\"height\";i:384;s:14:\"hwstring_small\";s:23:\"height='85' width='128'\";\ns:4:\"file\";s:63:\"\/home\/y2lab\/www\/blog\/wp-content\/uploads\/2007\/12\/converttype.jpg\";\ns:5:\"thumb\";s:25:\"converttype.thumbnail.jpg\";}\n<\/code><\/pre>\r\n<br>\r\n<p>WordPress 2.5 \u3067\u306e\u753b\u50cf\u306e\u30e1\u30bf\u30c7\u30fc\u30bf <\/p>\n<pre style=\"width: 670px;\">\na:6:{s:5:\"width\";i:640;s:6:\"height\";i:360;s:14:\"hwstring_small\";s:23:\"height='72' width='128'\";\ns:4:\"file\";s:80:\"\/Volumes\/Home\/WebServer\/Documents\/testblog\/wp-content\/uploads\/2008\/05\/ashiyu.jpg\";\ns:5:\"sizes\";a:2:{s:9:\"thumbnail\";a:3:{s:4:\"file\";s:17:\"ashiyu-160x90.jpg\";s:5:\"width\";i:160;s:6:\"height\";i:90;}\ns:6:\"medium\";a:3:{s:4:\"file\";s:18:\"ashiyu-300x168.jpg\";s:5:\"width\";i:300;s:6:\"height\";i:168;}}\ns:10:\"image_meta\";a:10:{s:8:\"aperture\";d:2.79999999999999982236431605997495353221893310546875;\ns:6:\"credit\";s:0:\"\";s:6:\"camera\";s:7:\"DMC-LX2\";s:7:\"caption\";s:0:\"\";\ns:17:\"created_timestamp\";i:1174467077;s:9:\"copyright\";s:0:\"\";\ns:12:\"focal_length\";d:6.29999999999999982236431605997495353221893310546875;\ns:3:\"iso\";i:100;\ns:13:\"shutter_speed\";d:0.033333333333333332870740406406184774823486804962158203125;\ns:5:\"title\";s:0:\"\";}}\n<\/code><\/pre>\r\n<br>\r\n<p>\u65b0\u3057\u3044\u30e1\u30bf\u30c7\u30fc\u30bf\u306e\u7279\u5fb4\u3068\u3057\u3066\u3001\u30b5\u30e0\u30cd\u30a4\u30eb\u753b\u50cf\u30c7\u30fc\u30bf\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u304c\u5f93\u6765\u306e xxxxx.thumbnail.jpg \u3068\u3044\u3046\u5f62\u5f0f\u304b\u3089\u3001xxxxx-[width]x[height].jpg \u3068\u3044\u3046\u5f62\u5f0f\u306b\u5909\u66f4\u3055\u308c\u305f\u3053\u3068\u3068\u3001\uff12\u7a2e\u985e( &#8220;thumbnail&#8221;, &#8220;medium&#8221; \uff09\u306e\u30b5\u30a4\u30ba\u306e\u7e2e\u5c0f\u753b\u50cf\u30c7\u30fc\u30bf\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\uff0e\u307e\u305f\u3001\u5143\u306e\u753b\u50cf\u306b EXIF \u30c7\u30fc\u30bf\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u5834\u5408\u306b\u306f\u3001\u305d\u306e\u30c7\u30fc\u30bf\u3082\u30e1\u30bf\u30c7\u30fc\u30bf\u306b\u8a18\u9332\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u5206\u304b\u308a\u307e\u3059\uff0e\r\n<br>\r\n<br>\r\n<p>\u30e1\u30bf\u30c7\u30fc\u30bf\u306e\u4e2d\u8eab\u3092\u5c11\u3057\u6574\u5f62\u3057\u3066\u898b\u3084\u3059\u304f\u8868\u793a\u3057\u3066\u307f\u308b\u3068\u3001\u5404\u6587\u5b57\u306e\u610f\u5473\u304c\u30cf\u30c3\u30ad\u30ea\u3059\u308b\u3067\u3057\u3087\u3046\uff0e<\/p>\n<pre><code class=\"language-Markup\">\na:6:{s:5:\"width\";\n     i:640;\n     s:6:\"height\";\n     i:360;\n     s:14:\"hwstring_small\";\n     s:23:\"height='72' width='128'\";\n     s:4:\"file\";\n     s:80:\"\/Volumes\/Home\/WebServer\/Documents\/testblog\/wp-content\/uploads\/2008\/05\/ashiyu.jpg\";\n     s:5:\"sizes\";\n     a:2:{ s:9:\"thumbnail\";\n           a:3:{ s:4:\"file\";\n                 s:17:\"ashiyu-160x90.jpg\";\n                 s:5:\"width\";\n                 i:160;\n                 s:6:\"height\";\n                 i:90;\n               }\n           s:6:\"medium\";\n           a:3:{ s:4:\"file\";\n                 s:18:\"ashiyu-300x168.jpg\";\n                 s:5:\"width\";\n                 i:300;\n                 s:6:\"height\";\n                 i:168;\n               }\n         }\n     s:10:\"image_meta\";\n     a:10:{ s:8:\"aperture\";\n            d:2.79999999999999982236431605997495353221893310546875;\n            s:6:\"credit\";\n            s:0:\"\";\n            s:6:\"camera\";\n            s:7:\"DMC-LX2\";\n            s:7:\"caption\";\n            s:0:\"\";\n            s:17:\"created_timestamp\";\n            i:1174467077;\n            s:9:\"copyright\";\n            s:0:\"\";\n            s:12:\"focal_length\";\n            d:6.29999999999999982236431605997495353221893310546875;\n            s:3:\"iso\";\n            i:100;\n            s:13:\"shutter_speed\";\n            d:0.033333333333333332870740406406184774823486804962158203125;\n            s:5:\"title\";\n            s:0:\"\";\n          }\n  }\n<\/code><\/pre>\r\n<br>\r\n<p>\n \u3069\u3046\u3084\u3089 a:6 \u306f\u8981\u7d20\u304c\uff16\u500b\u306e\u914d\u5217\u3001s:\u6570\u5b57 \u306f\u6587\u5b57\u5217\u3092\u8868\u3059\u8a18\u53f7\u3067\u305d\u306e\u5f8c\u306e\u6570\u5b57\u306f\u6587\u5b57\u6570\u3001i \u306f\u6574\u6570\u3001d \u306f\u5b9f\u6570\u3068\u3044\u3046\u3053\u3068\u3067\u3057\u3087\u3046\uff0e\u30ad\u30fc\u306e\u540d\u524d\u3068\u305d\u306e\u5024\u3067\uff11\u7d44\u306e\u8981\u7d20\u3068\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff0e<\/p>\r\n<br>\r\n<p>\u3053\u306e\u3088\u3046\u306b\u30e1\u30bf\u30c7\u30fc\u30bf\u306e\u5185\u5bb9\u304c\u5927\u304d\u304f\u62e1\u5f35\u3055\u308c\u3001\u30b5\u30e0\u30cd\u30a4\u30eb\u753b\u50cf\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\u304c\u5909\u308f\u3063\u305f\u306e\u3067\u3001\u65b0\u3057\u3044 WordPress\u304c\u65e7\u30bf\u30a4\u30d7\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\u306e\u51e6\u7406\u3092\u884c\u308f\u306a\u304f\u306a\u3063\u305f\u306e\u304c\u539f\u56e0\u3060\u3068\u601d\u3044\u307e\u3057\u305f\u304c\u3001WordPress \u306e\u30b3\u30fc\u30c9\u3092\u773a\u3081\u3066\u3044\u305f\u3089\u3001\u304d\u3061\u3093\u3068\u65e7\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30b5\u30e0\u30cd\u30a4\u30eb\u753b\u50cf\u306e\u30c7\u30fc\u30bf\u3082\u53d6\u308a\u6271\u3048\u308b\u3088\u3046\u306b\u30b3\u30fc\u30c9\u304c\u66f8\u304b\u308c\u3066\u3044\u307e\u3057\u305f\uff0e\u305f\u3060\u3001\u3053\u306e\u65e7\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30b5\u30e0\u30cd\u30a4\u30eb\u753b\u50cf\u306e\u30c7\u30fc\u30bf\u3092\u6271\u3046\u90e8\u5206\u306b\u30d0\u30b0\u304c\u3042\u308a\u3001\u305d\u306e\u305f\u3081\u65e7\u753b\u50cf\u30c7\u30fc\u30bf\u306e\u30b5\u30e0\u30cd\u30a4\u30eb\u304c\u304d\u3061\u3093\u3068\u6271\u3048\u306a\u3044\u4e8b\u304c\u5224\u660e\u3057\u307e\u3057\u305f\uff0e<\/p>\n<hr \/>\n<h4> &#8220;media.php&#8221; \u306e function image_downsize() \u306e\u30d0\u30b0\u306e\u4fee\u6b63<\/h4>\r\n<br>\r\n<p>wp-include \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e0b\u306b\u3042\u308b\u3001\u30d5\u30a1\u30a4\u30eb &#8220;media.php&#8221;\u306e\u6700\u521d\u306e\u65b9\uff0855\u884c\u76ee\u4ed8\u8fd1\uff09\u306b\u3042\u308b\u3001function image_downsize($id, $size = &#8216;medium&#8217;)\u3000\u304c\u3001\u76ee\u7684\u306e\u753b\u50cf\u30c7\u30fc\u30bf\u306e\u30b5\u30e0\u30cd\u30a4\u30eb\u753b\u50cf\u306eURL\u3068\u753b\u50cf\u30b5\u30a4\u30ba\u3092\u53d6\u5f97\u3059\u308b\u90e8\u5206\u3067\u3059\uff0e<\/p>\n<pre><code class=\"language-Markup\">\n\telseif ( $size == 'thumbnail' ) {\n\t\t\/\/ fall back to the old thumbnail\n\t\tif ( $thumb_file = wp_get_attachment_thumb_file() && $info = getimagesize($thumb_file) ) {\n\t\t\t$img_url = str_replace(basename($img_url), basename($thumb_file), $img_url);\n\t\t\t$width = $info[0];\n\t\t\t$height = $info[1];\n\t\t}\n\t}\r\n\r\n<\/code><\/pre>\r\n<br>\r\n<p>\u3053\u306e\u95a2\u6570\u306e 74\u884c\u76ee\u4ee5\u4e0b\u306e\u90e8\u5206\u304c\u65e7\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u753b\u50cf\u30c7\u30fc\u30bf\u306e\u30b5\u30e0\u30cd\u30a4\u30eb\u3092\u53d6\u308a\u51fa\u3059\u90e8\u5206\u3067\u3059\uff0ewp_get_attachment_thumb_file() \u3068\u3044\u3046\u95a2\u6570\u306e\u5b9f\u5f15\u6570\u304c\u7a7a\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u308c\u3067\u306f\u6b63\u3057\u304f\u5bfe\u8c61\u3068\u3059\u308b\u30a2\u30bf\u30c3\u30c1\u30e1\u30f3\u30c8\u753b\u50cf\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\uff0e\u6b63\u3057\u304f\u306f wp_get_attachment_thumb_file($id) \u3067\u3059\u306d\uff0e\r\n<br>\r\n<br>\r\n<p>\u66f4\u306b\u3001 if \u5206\u306e\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u66f8\u304d\u65b9\u304c\u554f\u984c\u3067\u3059\uff0ePHP\u306e\u5f0f\u306e\u8a55\u4fa1\u9806\u5e8f\u306f\u8abf\u3079\u306a\u3044\u3068\u826f\u304f\u5206\u304b\u308a\u307e\u305b\u3093\u304c\u3001$thumb_file = wp_get_attachment_thumb_file()\u3000\u3068\u3044\u3046\u5f0f\u306f\u3001if \u6587\u306e\u524d\u3067\u8a55\u4fa1\u3057\u3066\u304a\u3044\u305f\u65b9\u304c\u826f\u3044\u3067\u3057\u3087\u3046\uff0e\n\u3010 \u512a\u5148\u9806\u4f4d\u306f \u4ee3\u5165\u6f14\u7b97\u5b50(=)   \uff1e\u3000\u8ad6\u7406\u6f14\u7b97\u5b50(&#038;&#038;)\u3000\u3067\u3001 &#038;&#038; \u306f\u5de6\u7d50\u5408\u306a\u306e\u3067\u554f\u984c\u306a\u3044\u7b48\u3067\u3059\u304c\u3001\u5ff5\u306e\u305f\u3081\u30cf\u30c3\u30ad\u30ea\u3068\u9806\u5e8f\u7acb\u3066\u3066\u304a\u304d\u307e\u3059 \u3011\r\n<br>\r\n<br>\r\n<p>\u5f93\u3063\u3066\u3001\u3053\u306e\u90e8\u5206\u306f\u6b21\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\uff0e<\/p>\n<pre class=\"lyellow\">\n\telseif ( $size == 'thumbnail' ) {\n\t\t\/\/ fall back to the old thumbnail\n                $thumb_file = wp_get_attachment_thumb_file($id);\n\t\tif (  $info = getimagesize($thumb_file) ) {\n\t\t\t$img_url = str_replace(basename($img_url), basename($thumb_file), $img_url);\n\t\t\t$width = $info[0];\n\t\t\t$height = $info[1];\n\t\t}\n\t}\n<\/code><\/pre>\r\n<br>\r\n<hr \/>\n<h4>\u3010\u30d0\u30b0\uff12 Bug #2 \u3011<\/h4>\r\n<br>\r\n<p>\u30e2\u30ce\u30af\u30ed\u30fc\u30e0\u753b\u50cf\u30c7\u30fc\u30bf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3068\u3001\u30b5\u30e0\u30cd\u30a4\u30eb\u753b\u50cf\u304c\u4f5c\u6210\u3055\u308c\u305a\u3001\u30e1\u30bf\u30c7\u30fc\u30bf\u306e\u5185\u5bb9\u3082\u30d5\u30a1\u30a4\u30eb\u540d\u3057\u304b\u8a18\u8ff0\u3055\u308c\u306a\u3044\uff0e\r\n<br>\r\n<br>\r\n<p>\u307e\u3060\u539f\u56e0\u3092\u3064\u304d\u3068\u3081\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u30e2\u30ce\u30af\u30ed\u30fc\u30e0\u753b\u50cf\u30c7\u30fc\u30bf\uff08JPEG)\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u3001\u6a19\u6e96\u7684\u306a\u30ae\u30e3\u30e9\u30ea\u30fc\u3067\u8868\u793a\u3057\u3066\u307f\u308b\u3068\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff0e\u30e2\u30ce\u30af\u30ed\u753b\u50cf\u306e\u30b5\u30e0\u30cd\u30a4\u30eb\u753b\u50cf\u304c\u4f5c\u6210\u3055\u308c\u305a\u3001\u6b63\u78ba\u306a\u753b\u50cf\u30b5\u30a4\u30ba\u3082\u53d6\u5f97\u3067\u304d\u306a\u3044\u306e\u3067\u304a\u304b\u3057\u306a\u8868\u793a\u306b\u306a\u308a\u307e\u3059\uff0e<\/p>\n<hr \/>\n<h4> \u6a19\u6e96\u7684\u306a\uff3bgallery\uff3d\u3067\u30e1\u30bf\u30c7\u30fc\u30bf\u304c\u542b\u307e\u308c\u306a\u3044\u753b\u50cf\u3092\u8868\u793a\u3057\u305f\u5834\u5408 <\/h4>\n<p><br>\r\n\r\n\t\t<style type='text\/css'>\n\t\t\t.gallery {\n\t\t\t\tmargin: auto;\n\t\t\t}\n\t\t\t.gallery-item {\n\t\t\t\tfloat: left;\n\t\t\t\tmargin-top: 10px;\n\t\t\t\ttext-align: center;\n\t\t\t\twidth: 33%;\t\t\t}\n\t\t\t.gallery img {\n\t\t\t\tborder: 2px solid #cfcfcf;\n\t\t\t}\n\t\t\t.gallery-caption {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t<\/style>\n\t\t<!-- see gallery_shortcode() in wp-includes\/media.php -->\n\t\t<div class='gallery'>\n                     <dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon'>\n\t\t\t\t<a href='https:\/\/y2tech.net\/blog\/inet\/wp\/bugs-787\/attachment\/neko\/' title='neko'><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2008\/05\/neko-160x90.jpg\" width=\"160\" height=\"90\" class=\"attachment-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='gallery-caption'>\n\t\t\t\t\u98fc\u3044\u732b\n\t\t\t\t<\/dd>\n                    <\/dl>\n                    <dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon'>\n\t\t\t\t<a href='https:\/\/y2tech.net\/blog\/inet\/wp\/bugs-787\/attachment\/yosemitefall-2\/' title='yosemitefall'><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2008\/05\/yosemitefall-160x90.jpg\" width=\"160\" height=\"90\" class=\"attachment-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='gallery-caption'>\n\t\t\t\tYosemite Falls\n\t\t\t\t<\/dd>\n                    <\/dl>\n                    <dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon'>\n\t\t\t\t<a href='https:\/\/y2tech.net\/blog\/inet\/wp\/bugs-787\/attachment\/nekobw\/' title='nekobw'><img decoding=\"async\" src=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2008\/05\/nekobw1.jpg\" class=\"attachment-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='gallery-caption'>\n\t\t\t\t\u98fc\u3044\u732b\uff08\u30e2\u30ce\u30af\u30ed\uff09\n\t\t\t\t<\/dd>\n                   <\/dl>\n                   <br style=\"clear: both\" \/>\r\n\r\n                   <dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon'>\n\t\t\t\t<a href='https:\/\/y2tech.net\/blog\/inet\/wp\/bugs-787\/attachment\/yosemitefallbw\/' title='yosemitefallbw'><img decoding=\"async\" src=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2008\/05\/yosemitefallbw1.jpg\" class=\"attachment-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='gallery-caption'>\n\t\t\t\tYosemite Falls\n\t\t\t\t<\/dd>\n                    <\/dl>\n\t\t    <br style='clear: both;' \/>\n\t\t<\/div>\n<br>\r\n<br>\r\n\n<p class='continue'>\n\n<hr \/>\n<h4>\u8ffd\u8a18\uff1a\u30e2\u30ce\u30af\u30ed\u30fc\u30e0\u753b\u50cf\u30c7\u30fc\u30bf\u3092\u6b63\u3057\u304f\u51e6\u7406\u3067\u304d\u306a\u3044\u4ef6<\/h4>\r\n<br>\r\n<p>WordPress\u304c\u30e2\u30ce\u30af\u30ed\u30fc\u30e0\u753b\u50cf\u30c7\u30fc\u30bf\u3092\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3067\u304d\u306a\u3044\u3068\u3044\u3046\u30d0\u30b0\u306e\u4ef6\u3067\u3059\u304c\u3001\u3069\u3046\u3084\u3089\u30d0\u30b0\u3067\u306f\u306a\u304fWordpress\u304c\u30e2\u30ce\u30af\u30ed\u753b\u50cf\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u6271\u308f\u306a\u3044\u4ed5\u69d8\u306b\u306a\u3063\u3066\u3044\u308b\u4e8b\u304c\u5224\u660e\u3057\u307e\u3057\u305f\uff0e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3060\u3051\u3057\u3066\u304a\u3044\u3066\u3001\u8868\u793a\u3060\u3051\u304a\u304b\u3057\u306a\u7d50\u679c\u306b\u306a\u308b\u3068\u3044\u3046\u306e\u3082\u56f0\u308a\u3082\u306e\u3067\u3059\u306d\uff0e\r\n<br>\r\n<br>\r\n<p>\u753b\u50cf\u30c7\u30fc\u30bf\u306e\u7a2e\u985e\u306b\u5fdc\u3058\u3066\u5bfe\u5fdc\u3059\u308b\u753b\u50cf\u304b\u3069\u3046\u304b\u5224\u5b9a\u3057\u3066\u3044\u308b\u90e8\u5206\u306f\u3001wp-admin\/includes\/image.php \u306e function file_is_displayable_image() \u3067\u3059\uff0e<\/p>\r\n<br>\r\n<p>\u30b3\u30e1\u30f3\u30c8\u306b\u306f\u4e00\u90e8\u306e WEB\u30d6\u30e9\u30a6\u30b6\u304c \u30e2\u30ce\u30af\u30ed\u3068 CMYK JPEG\u753b\u50cf\u3092\u8868\u793a\u3067\u304d\u306a\u3044\u306e\u3067\u4e0d\u9069\u6b63\u3068\u3057\u3066\u51e6\u7406\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff0e<\/p>\r\n<br>\r\n<p>\u79c1\u304c\u8a66\u3057\u305fWEB\u30d6\u30e9\u30a6\u30b6( Mac OS X: Safari3.1, FireFox2, FireFox3, Opera 9.5  WinXP: IE6, IE7, IE8, FireFox2, FireFox3, Safari3.1, Opera9.27 \uff09\u3067\u306f\u3001\u30e2\u30ce\u30af\u30edJPEG\u753b\u50cf\u306f\u3069\u306e\u30d6\u30e9\u30a6\u30b6\u3067\u3082\u8868\u793a\u3067\u304d\u307e\u3057\u305f\uff0e\nCMYK JPEG\u753b\u50cf\u306b\u3064\u3044\u3066\u306f\u3001 IE6, IE7, IE8 \u3068 FireFox2 \u3067\u306f\u8868\u793a\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u305d\u308c\u4ee5\u5916\u306e\u30d6\u30e9\u30a6\u30b6\u3067\u306f\u8868\u793a\u3067\u304d\u307e\u3059\uff0eCMYK JPEG \u753b\u50cf\u306e\u5834\u5408\u306e\u307f\u5bfe\u8c61\u304b\u3089\u5916\u305b\u3070 OK \u3067\u3057\u3087\u3046\uff0e<\/p>\n<pre><code class=\"language-Markup\">\n\/\/ is the file an image suitable for displaying within a web page?\nfunction file_is_displayable_image($path) {\n\t$info = @getimagesize($path);\n\tif ( empty($info) )\n\t\t$result = false;\n\telseif ( !in_array($info[2], array(IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG)) )\n\t\t\/\/ only gif, jpeg and png images can reliably be displayed\n\t\t$result = false;\n\telseif ( $info['channels'] &gt; 0 && $info['channels'] != 3 ) {\n\t\t\/\/ some web browsers can't display cmyk or grayscale jpegs\n\t\t$result = false;\n\t}\n\telse\n\t\t$result = true;\r\n\r\n\treturn apply_filters('file_is_displayable_image', $result, $path);\n}\n<\/code><\/pre>\n<p style=\"text-align: center;\"> \u30aa\u30ea\u30b8\u30ca\u30eb\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 ( original source code : wp-admin\/includes\/image.php ) <\/p>\r\n<br>\r\n<p>\u3000\n<pre class=\"lyellow\">\n\/\/ is the file an image suitable for displaying within a web page?\nfunction file_is_displayable_image($path) {\n\t$info = @getimagesize($path);\n\tif ( empty($info) )\n\t\t$result = false;\n\telseif ( !in_array($info[2], array(IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG)) )\n\t\t\/\/ only gif, jpeg and png images can reliably be displayed\n\t\t$result = false;\n\t\/\/elseif ( $info['channels'] &gt; 0 && $info['channels'] != 3 ) {\n\telseif ( $info['channels'] &gt; 3 ) {\n\t\t\/\/ some web browsers can't display cmyk or grayscale jpegs\n\t\t$result = false;\n\t}\n\telse\n\t\t$result = true;\r\n\r\n\treturn apply_filters('file_is_displayable_image', $result, $path);\n}\n<\/code><\/pre>\n<p style=\"text-align: center;\"> CMYK \u753b\u50cf\u3060\u3051\u3092\u9664\u5916\u3059\u308b\u3088\u3046\u306b\u4fee\u6b63 ( modified source code ) <\/p>\r\n<br>\r\n<p>\u65e2\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u3057\u307e\u3063\u305f\u30e2\u30ce\u30af\u30ed\u753b\u50cf\u306b\u306f\u6b63\u3057\u3044\u30e1\u30bf\u60c5\u5831\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u305b\u3093\u306e\u3067\u3001\u4e0a\u8a18\u306e\u4fee\u6b63\u3092\u52a0\u3048\u305f\u5f8c\u3067\u518d\u5ea6\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u76f4\u3057\u3066\u4e0b\u3055\u3044\uff0e<\/p>\r\n\r\n<hr \/>\n<h4> \u6a19\u6e96\u7684\u306a\uff3bgallery\uff3d\u3067\u8868\u793a \uff08\u4fee\u6b63\u5f8c\uff09<\/h4>\r\n<br>\r\n\n\t\t<style type=\"text\/css\">\n\t\t\t#gallery-1 {\n\t\t\t\tmargin: auto;\n\t\t\t}\n\t\t\t#gallery-1 .gallery-item {\n\t\t\t\tfloat: left;\n\t\t\t\tmargin-top: 10px;\n\t\t\t\ttext-align: center;\n\t\t\t\twidth: 33%;\n\t\t\t}\n\t\t\t#gallery-1 img {\n\t\t\t\tborder: 2px solid #cfcfcf;\n\t\t\t}\n\t\t\t#gallery-1 .gallery-caption {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t\t\/* see gallery_shortcode() in wp-includes\/media.php *\/\n\t\t<\/style>\n\t\t<div id='gallery-1' class='gallery galleryid-787 gallery-columns-3 gallery-size-thumbnail'><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/y2tech.net\/blog\/inet\/wp\/bugs-787\/attachment\/neko\/'><img loading=\"lazy\" decoding=\"async\" width=\"160\" height=\"90\" src=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2008\/05\/neko1-160x90.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-788\" srcset=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2008\/05\/neko1-160x90.jpg 160w, https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2008\/05\/neko1-300x168.jpg 300w, https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2008\/05\/neko1.jpg 640w\" sizes=\"auto, (max-width: 160px) 100vw, 160px\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-788'>\n\t\t\t\t\u98fc\u3044\u732b\n\t\t\t\t<\/dd><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/y2tech.net\/blog\/inet\/wp\/bugs-787\/attachment\/yosemitefall-2\/'><img loading=\"lazy\" decoding=\"async\" width=\"160\" height=\"90\" src=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2008\/05\/yosemitefall1-160x90.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-791\" srcset=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2008\/05\/yosemitefall1-160x90.jpg 160w, https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2008\/05\/yosemitefall1-300x168.jpg 300w, https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2008\/05\/yosemitefall1.jpg 640w\" sizes=\"auto, (max-width: 160px) 100vw, 160px\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-791'>\n\t\t\t\tYosemite Falls\n\t\t\t\t<\/dd><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/y2tech.net\/blog\/inet\/wp\/bugs-787\/attachment\/nekobw\/'><img loading=\"lazy\" decoding=\"async\" width=\"160\" height=\"90\" src=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2008\/05\/nekobw1-160x90.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-792\" srcset=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2008\/05\/nekobw1-160x90.jpg 160w, https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2008\/05\/nekobw1-300x168.jpg 300w, https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2008\/05\/nekobw1.jpg 640w\" sizes=\"auto, (max-width: 160px) 100vw, 160px\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-792'>\n\t\t\t\t\u98fc\u3044\u732b\uff08\u30e2\u30ce\u30af\u30ed\uff09\n\t\t\t\t<\/dd><\/dl><br style=\"clear: both\" \/><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/y2tech.net\/blog\/inet\/wp\/bugs-787\/attachment\/yosemitefallbw\/'><img loading=\"lazy\" decoding=\"async\" width=\"160\" height=\"90\" src=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2008\/05\/yosemitefallbw1-160x90.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-793\" srcset=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2008\/05\/yosemitefallbw1-160x90.jpg 160w, https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2008\/05\/yosemitefallbw1-300x168.jpg 300w, https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2008\/05\/yosemitefallbw1.jpg 640w\" sizes=\"auto, (max-width: 160px) 100vw, 160px\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-793'>\n\t\t\t\tYosemite Falls(B&#038;W)\n\t\t\t\t<\/dd><\/dl>\n\t\t\t<br style='clear: both' \/>\n\t\t<\/div>\n\r\n<br>\r\n<p class='continue'> <\/p>\r\n\r\n<br>\r\n<p>","protected":false},"excerpt":{"rendered":"\u3000Wordpress 2.5 \u304b\u3089\u753b\u50cf\u306a\u3069\u306e\u30e1\u30c7\u30a3\u30a2\u306e\u53d6\u308a\u6271\u3044\u65b9\u6cd5\u304c\u5927\u304d\u304f\u5909\u308f\u308a\u307e\u3057\u305f\u304c\u3001\u307e\u3060\u304b\u306a\u308a\u30d0\u30b0\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff0e\u753b\u50cf\u306a\u3069\u306e\u30e1\u30c7\u30a3\u30a2\u306e\u53d6\u308a\u6271\u3044\u65b9\u6cd5\u3092\u63a2\u3063\u3066\u307f\u307e\u3057\u305f\uff0e","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[12],"tags":[30,201],"class_list":["post-787","post","type-post","status-publish","format-standard","hentry","category-wp","tag-bugs","tag-wordpress-2-5"],"_links":{"self":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/posts\/787","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/comments?post=787"}],"version-history":[{"count":0,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/posts\/787\/revisions"}],"wp:attachment":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/media?parent=787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/categories?post=787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/tags?post=787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}