Nonactivate a post manually causes its status changed to 3 which cannot be edited and its status cannot be changed.
This commit is contained in:
@@ -176,7 +176,7 @@ abstract class Model
|
||||
$sql = "UPDATE {$table} SET status = ? WHERE id = ?";
|
||||
|
||||
$query = $db->prepare($sql);
|
||||
$query->bindValue(1, 0);
|
||||
$query->bindValue(1, 3);
|
||||
$query->bindValue(2, $id);
|
||||
|
||||
if ($query->execute()) {
|
||||
|
||||
Reference in New Issue
Block a user