Пример #1
0
 private function rewriteDb()
 {
     $wpcmd = $this->getWpCommand();
     $remote = $this->remote->properUrl($this->remoteSettings->url);
     $local = $this->remote->properUrl($this->remoteSettings->localurl);
     $cmd = $wpcmd . sprintf('search-replace %s %s --skip-columns=guid', $remote, $local);
     exec($cmd);
 }