Sheesh. Three lines of Javascript. All you have to do is find which of the three lines is doing something wrong. Or FILE A BUG. Or use a different browser (not *try* a different browser, *use* a different browser), or turn off freaking tinymce. But no - let's argue about browsers instead.
This commit is contained in:
@@ -1361,6 +1361,17 @@ function item_store($arr,$allow_exec = false) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// If a page layout is provided, ensure it exists and belongs to us.
|
||||
|
||||
if(array_key_exists('layout_mid',$arr) && $arr['layout_mid']) {
|
||||
$l = q("select item_restrict from item where mid = '%s' and uid = %d limit 1",
|
||||
dbesc($arr['layout_mid']),
|
||||
intval($arr['uid'])
|
||||
);
|
||||
if((! $l) || (! ($l[0]['item_restrict'] & ITEM_PDL)))
|
||||
unset($arr['layout_mid']);
|
||||
}
|
||||
|
||||
// Don't let anybody set these, either intentionally or accidentally
|
||||
|
||||
if(array_key_exists('id',$arr))
|
||||
|
Reference in New Issue
Block a user