Skip to content

Commit 79b58ca

Browse files
authored
Merge pull request #5 from BeAPI/fix-metabox-condition
fix wrong condition
2 parents aad6555 + 1231042 commit 79b58ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/class.admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function addRessources( $hook_suffix = '' ) {
9393
* @author Amaury Balmer
9494
*/
9595
public function saveDatasMetaBoxes( $object_id = 0 ) {
96-
if ( ! isset( $_POST['_meta_translation'] ) || 'true' !== $_POST['_meta_translation'] ) {
96+
if ( isset( $_POST['_meta_translation'] ) && 'true' === $_POST['_meta_translation'] ) {
9797
return;
9898
}
9999

0 commit comments

Comments
 (0)