Skip to:

Opened 14 years ago

Closed 14 years ago

#1297 closed defect (bug) (fixed)

bb_die wraps strings in two pairs of <p></p>

Reported by: nightgunner5's profile Nightgunner5 Owned by:
Milestone: 1.0.3 Priority: high
Severity: major Version: 1.0.1
Component: Back-end Keywords: has-patch, tested


For example:

bb_die( '<pre>Test</pre>' );

Outputs the following:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="" xml:lang="en-US" lang="en-US">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>bbPress &rsaquo; Error</title>
	<meta name="robots" content="noindex, nofollow" />
	<link rel="stylesheet" href="http://localhost/bbpress/bb-admin/install.css" type="text/css" />
	<div id="container">

	<p class="last">Back to <a href="http://localhost/bbpress/">bbPress Testsite</a>.</p>

It would be much simpler to use bb_autop and skip the hard-coded <p></p>.

Attachments (1)

1297.patch (565 bytes) - added by Nightgunner5 14 years ago.

Download all attachments as: .zip

Change History (2)

14 years ago

#1 @chrishajer
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [2446]) Last commit really should have said "fixes #1297". Props Nightgunner5

Note: See TracTickets for help on using tickets.