From a3d7e8456ad77f8409f6b3a673bb1c8d2b53949d Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 25 Jun 2015 20:07:10 -0700 Subject: 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. --- include/text.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index 33562a69f..be465d0f4 100644 --- a/include/text.php +++ b/include/text.php @@ -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; -- cgit v1.2.3