Space before slash to properly close br tag. Props tmountjr. fixes #4717
git-svn-id: http://svn.automattic.com/wordpress/trunk@5870 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ddc05f60ea
commit
13b23aa20a
|
@ -169,7 +169,7 @@ class MT_Import {
|
||||||
echo '</li>';
|
echo '</li>';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<input type="submit" value="'.__('Submit').'">'.'<br/>';
|
echo '<input type="submit" value="'.__('Submit').'">'.'<br />';
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
echo '</ol></div>';
|
echo '</ol></div>';
|
||||||
|
|
||||||
|
|
|
@ -197,7 +197,7 @@ class WP_Import {
|
||||||
echo '</li>';
|
echo '</li>';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<input type="submit" value="Submit">'.'<br/>';
|
echo '<input type="submit" value="Submit">'.'<br />';
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
echo '</ol>';
|
echo '</ol>';
|
||||||
|
|
||||||
|
|
|
@ -980,9 +980,9 @@ function dbDelta($queries, $execute = true) {
|
||||||
|
|
||||||
if(!(($aindex = array_search($index_string, $indices)) === false)) {
|
if(!(($aindex = array_search($index_string, $indices)) === false)) {
|
||||||
unset($indices[$aindex]);
|
unset($indices[$aindex]);
|
||||||
//echo "<pre style=\"border:1px solid #ccc;margin-top:5px;\">{$table}:<br/>Found index:".$index_string."</pre>\n";
|
//echo "<pre style=\"border:1px solid #ccc;margin-top:5px;\">{$table}:<br />Found index:".$index_string."</pre>\n";
|
||||||
}
|
}
|
||||||
//else echo "<pre style=\"border:1px solid #ccc;margin-top:5px;\">{$table}:<br/><b>Did not find index:</b>".$index_string."<br/>".print_r($indices, true)."</pre>\n";
|
//else echo "<pre style=\"border:1px solid #ccc;margin-top:5px;\">{$table}:<br /><b>Did not find index:</b>".$index_string."<br />".print_r($indices, true)."</pre>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -355,14 +355,14 @@ class WP_Object_Cache {
|
||||||
|
|
||||||
function stats() {
|
function stats() {
|
||||||
echo "<p>";
|
echo "<p>";
|
||||||
echo "<strong>Cold Cache Hits:</strong> {$this->cold_cache_hits}<br/>";
|
echo "<strong>Cold Cache Hits:</strong> {$this->cold_cache_hits}<br />";
|
||||||
echo "<strong>Warm Cache Hits:</strong> {$this->warm_cache_hits}<br/>";
|
echo "<strong>Warm Cache Hits:</strong> {$this->warm_cache_hits}<br />";
|
||||||
echo "<strong>Cache Misses:</strong> {$this->cache_misses}<br/>";
|
echo "<strong>Cache Misses:</strong> {$this->cache_misses}<br />";
|
||||||
echo "</p>";
|
echo "</p>";
|
||||||
|
|
||||||
foreach ($this->cache as $group => $cache) {
|
foreach ($this->cache as $group => $cache) {
|
||||||
echo "<p>";
|
echo "<p>";
|
||||||
echo "<strong>Group:</strong> $group<br/>";
|
echo "<strong>Group:</strong> $group<br />";
|
||||||
echo "<strong>Cache:</strong>";
|
echo "<strong>Cache:</strong>";
|
||||||
echo "<pre>";
|
echo "<pre>";
|
||||||
print_r($cache);
|
print_r($cache);
|
||||||
|
|
|
@ -267,7 +267,7 @@ class WP_User {
|
||||||
// Must have ALL requested caps
|
// Must have ALL requested caps
|
||||||
$capabilities = apply_filters('user_has_cap', $this->allcaps, $caps, $args);
|
$capabilities = apply_filters('user_has_cap', $this->allcaps, $caps, $args);
|
||||||
foreach ($caps as $cap) {
|
foreach ($caps as $cap) {
|
||||||
//echo "Checking cap $cap<br/>";
|
//echo "Checking cap $cap<br />";
|
||||||
if(empty($capabilities[$cap]) || !$capabilities[$cap])
|
if(empty($capabilities[$cap]) || !$capabilities[$cap])
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -295,14 +295,14 @@ function map_meta_cap($cap, $user_id) {
|
||||||
break;
|
break;
|
||||||
case 'delete_post':
|
case 'delete_post':
|
||||||
$author_data = get_userdata($user_id);
|
$author_data = get_userdata($user_id);
|
||||||
//echo "post ID: {$args[0]}<br/>";
|
//echo "post ID: {$args[0]}<br />";
|
||||||
$post = get_post($args[0]);
|
$post = get_post($args[0]);
|
||||||
if ( 'page' == $post->post_type ) {
|
if ( 'page' == $post->post_type ) {
|
||||||
$args = array_merge(array('delete_page', $user_id), $args);
|
$args = array_merge(array('delete_page', $user_id), $args);
|
||||||
return call_user_func_array('map_meta_cap', $args);
|
return call_user_func_array('map_meta_cap', $args);
|
||||||
}
|
}
|
||||||
$post_author_data = get_userdata($post->post_author);
|
$post_author_data = get_userdata($post->post_author);
|
||||||
//echo "current user id : $user_id, post author id: " . $post_author_data->ID . "<br/>";
|
//echo "current user id : $user_id, post author id: " . $post_author_data->ID . "<br />";
|
||||||
// If the user is the author...
|
// If the user is the author...
|
||||||
if ($user_id == $post_author_data->ID) {
|
if ($user_id == $post_author_data->ID) {
|
||||||
// If the post is published...
|
// If the post is published...
|
||||||
|
@ -323,10 +323,10 @@ function map_meta_cap($cap, $user_id) {
|
||||||
break;
|
break;
|
||||||
case 'delete_page':
|
case 'delete_page':
|
||||||
$author_data = get_userdata($user_id);
|
$author_data = get_userdata($user_id);
|
||||||
//echo "post ID: {$args[0]}<br/>";
|
//echo "post ID: {$args[0]}<br />";
|
||||||
$page = get_page($args[0]);
|
$page = get_page($args[0]);
|
||||||
$page_author_data = get_userdata($page->post_author);
|
$page_author_data = get_userdata($page->post_author);
|
||||||
//echo "current user id : $user_id, page author id: " . $page_author_data->ID . "<br/>";
|
//echo "current user id : $user_id, page author id: " . $page_author_data->ID . "<br />";
|
||||||
// If the user is the author...
|
// If the user is the author...
|
||||||
if ($user_id == $page_author_data->ID) {
|
if ($user_id == $page_author_data->ID) {
|
||||||
// If the page is published...
|
// If the page is published...
|
||||||
|
@ -349,14 +349,14 @@ function map_meta_cap($cap, $user_id) {
|
||||||
// edit_others_posts
|
// edit_others_posts
|
||||||
case 'edit_post':
|
case 'edit_post':
|
||||||
$author_data = get_userdata($user_id);
|
$author_data = get_userdata($user_id);
|
||||||
//echo "post ID: {$args[0]}<br/>";
|
//echo "post ID: {$args[0]}<br />";
|
||||||
$post = get_post($args[0]);
|
$post = get_post($args[0]);
|
||||||
if ( 'page' == $post->post_type ) {
|
if ( 'page' == $post->post_type ) {
|
||||||
$args = array_merge(array('edit_page', $user_id), $args);
|
$args = array_merge(array('edit_page', $user_id), $args);
|
||||||
return call_user_func_array('map_meta_cap', $args);
|
return call_user_func_array('map_meta_cap', $args);
|
||||||
}
|
}
|
||||||
$post_author_data = get_userdata($post->post_author);
|
$post_author_data = get_userdata($post->post_author);
|
||||||
//echo "current user id : $user_id, post author id: " . $post_author_data->ID . "<br/>";
|
//echo "current user id : $user_id, post author id: " . $post_author_data->ID . "<br />";
|
||||||
// If the user is the author...
|
// If the user is the author...
|
||||||
if ($user_id == $post_author_data->ID) {
|
if ($user_id == $post_author_data->ID) {
|
||||||
// If the post is published...
|
// If the post is published...
|
||||||
|
@ -377,10 +377,10 @@ function map_meta_cap($cap, $user_id) {
|
||||||
break;
|
break;
|
||||||
case 'edit_page':
|
case 'edit_page':
|
||||||
$author_data = get_userdata($user_id);
|
$author_data = get_userdata($user_id);
|
||||||
//echo "post ID: {$args[0]}<br/>";
|
//echo "post ID: {$args[0]}<br />";
|
||||||
$page = get_page($args[0]);
|
$page = get_page($args[0]);
|
||||||
$page_author_data = get_userdata($page->post_author);
|
$page_author_data = get_userdata($page->post_author);
|
||||||
//echo "current user id : $user_id, page author id: " . $page_author_data->ID . "<br/>";
|
//echo "current user id : $user_id, page author id: " . $page_author_data->ID . "<br />";
|
||||||
// If the user is the author...
|
// If the user is the author...
|
||||||
if ($user_id == $page_author_data->ID) {
|
if ($user_id == $page_author_data->ID) {
|
||||||
// If the page is published...
|
// If the page is published...
|
||||||
|
|
|
@ -121,7 +121,7 @@ Test.Unit.Logger.prototype = {
|
||||||
this.loglines = $('loglines');
|
this.loglines = $('loglines');
|
||||||
},
|
},
|
||||||
_toHTML: function(txt) {
|
_toHTML: function(txt) {
|
||||||
return txt.escapeHTML().replace(/\n/g,"<br/>");
|
return txt.escapeHTML().replace(/\n/g,"<br />");
|
||||||
},
|
},
|
||||||
addLinksToResults: function(){
|
addLinksToResults: function(){
|
||||||
$$("tr.failed .nameCell").each( function(td){ // todo: limit to children of this.log
|
$$("tr.failed .nameCell").each( function(td){ // todo: limit to children of this.log
|
||||||
|
|
Loading…
Reference in New Issue