PluginProbe
User Access Manager / trunk
User Access Manager vtrunk
2.3.20 2.3.19 2.3.18 2.3.17 2.3.16 2.3.15 2.3.14 2.3.13 trunk 0.6 0.6.1 0.6.2 0.7 0.7 Beta 0.7.0.1 0.8 0.8.0.1 0.8.0.2 0.9 0.9.1 0.9.1.1 0.9.1.2 0.9.1.3 0.9.1.4 1.0 All 136 releases
← All changes | src/Access/AccessHandler.php +2 -2 2.3.19trunk View file →
@@ -183,10 +183,10 @@
183 183
184 184 private function getOwnPostIds(): array
185 185 {
186 186 $query = $this->database->prepare(
187 - "SELECT ID FROM {$this->database->getPostsTable()}
188 - WHERE post_author = %d",
187 + "SELECT `ID` FROM `{$this->database->getPostsTable()}`
188 + WHERE `post_author` = %d",
189 189 $this->wordpress->getCurrentUser()->ID
190 190 );
191 191
192 192 return array_column((array) $this->database->getResults($query), 'ID', 'ID');