undo the disabling of browser_prefetch and for the time being revert the HTML cache until we can isolate all the zid and observer calls. Also get rid of youtube and vimeo bbcode tags which we should not be using any more.

This commit is contained in:
redmatrix
2015-06-25 20:07:10 -07:00
parent 70975dda4a
commit a3d7e8456a
9 changed files with 43 additions and 57 deletions

View File

@@ -1442,23 +1442,23 @@ function generate_named_map($location) {
function prepare_body(&$item,$attach = false) {
if($item['html']) {
$s = bb_observer($item['html']);
}
else {
// if($item['html']) {
// $s = bb_observer($item['html']);
// }
// else {
call_hooks('prepare_body_init', $item);
unobscure($item);
// unobscure($item);
$s = prepare_text($item['body'],$item['mimetype'], true);
}
// }
$prep_arr = array('item' => $item, 'html' => $s);
call_hooks('prepare_body', $prep_arr);
$s = $prep_arr['html'];
q("update item set html = '%s' where id = %d",
dbesc($s),
intval($item['id'])
);
// q("update item set html = '%s' where id = %d",
// dbesc($s),
// intval($item['id'])
// );
if(! $attach) {
return $s;