Updated Wordpress changes
jdarwood007

jdarwood007 commited on 2014-10-11 11:02:47
Showing 2 changed files, with 12 additions and 17 deletions.

... ...
@@ -351,7 +351,7 @@ class pB
351 351
 			$do_create = false;
352 352
 		}
353 353
 
354
-		if (pBS::get('human_check') && $this->antispam->verify(&$this->warnings) === false)
354
+		if (pBS::get('human_check') && $this->antispam->verify($this->warnings) === false)
355 355
 			$do_create = false;
356 356
 
357 357
 		if (!empty($this->warnings) && isset($_POST['iHateU']))
... ...
@@ -369,7 +369,7 @@ class pB
369 369
 		);
370 370
 
371 371
 		// Do a test.
372
-		$this->db->addPasteTest(&$data, &$do_create, &$this->warnings);
372
+		$this->db->addPasteTest($data, $do_create, $this->warnings);
373 373
 
374 374
 		if (!$do_create)
375 375
 		{
... ...
@@ -415,9 +415,8 @@ class pB
415 415
 		// Output this.
416 416
 		echo '
417 417
 			<!-- Start Recent -->
418
-			<ul>		
419
-				<li class="widget">
420
-					<h2 class="widgettitle" title="I am not a Easter Egg">', pBL('recent'), '</h2>
418
+			<aside class="widget widget_pages">
419
+				<h3 class="widget-title" title="I am not a Easter Egg">', pBL('recent'), '</h3>
421 420
 				<ul>		
422 421
 					<li><a href="', $this->URL('index'), '">', pBL('create_new'), '</a></li>';
423 422
 
... ...
@@ -427,8 +426,7 @@ class pB
427 426
 
428 427
 		echo '
429 428
 				</ul>
430
-				</li>
431
-			</ul>
429
+			</aside>
432 430
 			<!-- End Recent -->';
433 431
 
434 432
 		// Close up the wrapper.
... ...
@@ -581,12 +579,12 @@ class pB
581 579
 
582 580
 			include_once(pBS::get('geshi_location')  . '/geshi.php');
583 581
 
584
-			$geshi =& new GeSHi('', $type);
582
+			$geshi = new GeSHi('', $type);
585 583
 			$geshi->set_header_type(GESHI_HEADER_PRE);
586
-			$geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS);
584
+			$geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS);
587 585
 
588
-			$geshiErr =& new GeSHi($paste['body'], $type);
589
-			$geshiErr->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS, 2);
586
+			$geshiErr = new GeSHi($paste['body'], $type);
587
+			$geshiErr->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS, 2);
590 588
 			$topic_parsed = $geshiErr->parse_code();
591 589
 			$topic_parsed = str_replace('&lt;?php', '<&#063;php', $topic_parsed);
592 590
 
... ...
@@ -50,16 +50,13 @@ class pTPL_wp extends pTPL
50 50
 		if (defined('PB_SHOW_SOURCE'))
51 51
 			echo '
52 52
 			<!-- Start Show Source -->
53
-			<br />
54
-			<ul>
55
-				<li class="widget">
56
-					<h2 class="widgettitle">See the Source</h2>
53
+			<aside class="widget widget_pages">
54
+				<h3 class="widget-title">See the Source</h3>
57 55
 				<ul>
58 56
 					<li><a href="http://git.sleepycode.com/?a=summary&p=SMF%20Pastebin">Local Source</a></li>
59 57
 					<li><a href="https://github.com/jdarwood007/pastebin">GitHub</a></li>
60 58
 				</ul>
61
-				</li>
62
-			</ul>
59
+			</aside>
63 60
 			<!-- End Show Source -->';
64 61
 
65 62
 		$specialPage['sidebar'] = ob_get_contents();
66 63