WordPressã§ä½¿ç¨ãããã¹æå®ã¯çµ¶å¯¾ãã¹ã®ãã®ãå¤ãã§ããããããã«ã¼ãããã®ç¸å¯¾ãã¹ã«å¤æ´ããæ¹æ³ãç´¹ä»ãã¾ãã How to make WordPress URLs root relative [ad#ad-2] ãã®ããã°ã§ã¯ãã¹æå®ã§ã¯ç¾ç¶å°ã£ã¦ãã¾ãããããã¼ã¿ããªãã£ï¼ãµã¤ãã®ç§»è»¢ï¼ããã¦ã³ãã¼ããµã¤ãºãã³ã¼ãã®ç°¡æ½ããªã©ãæ±ããéã«ã¯ç¸å¯¾ãã¹ã®æ¹ãæå©ã«ãªãã¾ãã ã«ã¼ãããã®ç¸å¯¾ãã¹ã«ããã«ã¯ãä¸è¨ã®ã³ã¼ãããã¼ããã¡ã¤ã«å ã®ãfunctions.phpãã«è¨è¿°ãã¾ãã â»ãfunctions.phpããç¡ãå ´åã¯ä½æãã¦ãã ããã PHP URLã®æååãããhttp(s)ãã¨ããã¡ã¤ã³ããåãé¤ãã¾ãã function make_href_root_relative($input) { return preg_replace('!http(s)?://' . $
{{#tags}}- {{label}}
{{/tags}}