diff --git a/functions.php b/functions.php index 8887051..462c883 100644 --- a/functions.php +++ b/functions.php @@ -952,6 +952,8 @@ function rt_add_link_target( $content ){ foreach( $bits as $key=>$bit ){ // fix the target="_blank" bug after the link if ( strpos( $bit, 'href' ) === false ) continue; + // fix the target="_blank" bug in the codeblock + if ( strpos( preg_replace('/code([\s\S]*?)\/code[\s]*/m','temp',$content), $bit ) === false ) continue; // find the end of each link $pos = strpos( $bit, '>' ); // check if there is an end (only fails with malformed markup) diff --git a/js/sakura-app.js b/js/sakura-app.js index 5cf578c..293e7cf 100644 --- a/js/sakura-app.js +++ b/js/sakura-app.js @@ -1321,7 +1321,7 @@ var home = location.href, AH: function () { if (Poi.windowheight == 'auto') { if ($('h1.main-title').length > 0) { - var _height = $(window).height(); + var _height = $(window).height()+"px"; $('#centerbg').css({ 'height': _height });