<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ohesotori</author_name>
  <author_url>https://blog.hatena.ne.jp/ohesotori/</author_url>
  <blog_title>ここはちょっと見せられない</blog_title>
  <blog_url>https://ohesotori.hateblo.jp/</blog_url>
  <categories>
    <anon>wordpress</anon>
  </categories>
  <description>わけわからん現象で２日ほど悩んだ。 switch_to_blog() restore_current_blog()このrestoreの方が動かなくなった。このおかげで、$wpdb-&gt;prefix が元に戻らず、余計なprefixついたままになり、 全部の問い合わせに失敗。別の場所に機能追加したときに、うっかり $blog_idを使ってしまったのがいけなかったらしい。 テーマ内で使うとあかんわけですね。WPはglobalが変態並みに多いので、注意されたし。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fohesotori.hateblo.jp%2Fentry%2F20120714%2F1342285527&quot; title=&quot;マルチサイト使ってたら、途中でDBへの問い合わせが全く出来なくなる件 - ここはちょっと見せられない&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-07-14 02:05:27</published>
  <title>マルチサイト使ってたら、途中でDBへの問い合わせが全く出来なくなる件</title>
  <type>rich</type>
  <url>https://ohesotori.hateblo.jp/entry/20120714/1342285527</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
