Я получаю
Parse error: syntax error, unexpected T_DOUBLE_ARROW PHP on line 47, which is
'post_content' => $thisShow['content'],
У кого-нибудь есть идеи, почему?
protected function _saveShow($thisShow) {
$saveData = array(
'mid' => $this->_saveAsUserId,
'post_title' => $thisShow['title'],
'post_name' => slug($thisShow['title'],
'post_content' => $thisShow['content'],
'post_date' => date('Y-m-d H:i:s'),
'post_date_gmt' => date('Y-m-d H:i:s'),
'category_id' => 4,
'post_author' => 0,
'category_name' => $thisShow['category_name']
);
// $this->_database->insert('wp_posts', $saveData);
}