Skip to content

Commit

Permalink
Cleaning out some errors and fixing some XHTML 1.1 problems.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/trunk@1503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
saxmatt committed Aug 1, 2004
1 parent 250cee3 commit 6c5157a
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 36 deletions.
30 changes: 9 additions & 21 deletions wp-admin/admin-header.php
@@ -1,34 +1,21 @@
<?php

require_once('../wp-config.php');
require_once(ABSPATH.'/wp-admin/auth.php');
require(ABSPATH.'/wp-admin/admin-functions.php');
require_once(ABSPATH . '/wp-admin/auth.php');
require(ABSPATH . '/wp-admin/admin-functions.php');

function gethelp_link($this_file, $helptag) {
$url = 'http://wordpress.org/docs/reference/links/#'.$helptag;
$s = ' <a href="'.$url.'" title="' . __('Click here for help') .'">?</a>';
return $s;
}

if (!isset($blogID)) $blog_ID=1;
if (!isset($debug)) $debug=0;

$dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories WHERE 1=1");
$dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories");
foreach ($dogs as $catt) {
$cache_categories[$catt->cat_ID] = $catt;
$cache_categories[$catt->cat_ID] = $catt;
}

get_currentuserinfo();

$posts_per_page = get_settings('posts_per_page');
$what_to_show = get_settings('what_to_show');
$archive_mode = get_settings('archive_mode');
$date_format = stripslashes(get_settings('date_format'));
$time_format = stripslashes(get_settings('time_format'));

// let's deactivate quicktags on IE Mac and Lynx, because they don't work there.
if (($is_macIE) || ($is_lynx))
$use_quicktags = 0;
$date_format = get_settings('date_format');
$time_format = get_settings('time_format');

$wpvarstoreset = array('profile','standalone','redirect','redirect_url','a','popuptitle','popupurl','text', 'trackback', 'pingback');
for ($i=0; $i<count($wpvarstoreset); $i += 1) {
Expand Down Expand Up @@ -58,7 +45,7 @@ function gethelp_link($this_file, $helptag) {
<?php
if ($redirect==1) {
?>
<script language="javascript" type="text/javascript">
<script type="text/javascript">
<!--
function redirect() {
window.location = "<?php echo $redirect_url; ?>";
Expand All @@ -71,7 +58,7 @@ function redirect() {
?>

<?php if (isset($xfn)) : ?>
<script language="javascript" type="text/javascript">
<script type="text/javascript">
//<![CDATA[

function GetElementsWithClassName(elementName, className) {
Expand Down Expand Up @@ -132,6 +119,7 @@ function blurry() {
<?php do_action('admin_head', ''); ?>
</head>
<body>

<div id="wphead">
<h1><?php bloginfo('name') ?></h1>
</div>
Expand Down
8 changes: 4 additions & 4 deletions wp-admin/edit-form-advanced.php
Expand Up @@ -11,14 +11,13 @@

$allowed_users = explode(" ", trim(get_settings('fileupload_allowedusers')));

$submitbutton_text = __('Save');
$toprow_title = sprintf(__('Editing Post #%s'), $post_ID);
if (0 == $post_ID) {
$form_action = 'post';
} else {
$form_action = 'editpost';
$form_extra = "<input type='hidden' name='post_ID' value='$post_ID' />";
}

if (get_settings('use_pingback')) {
$form_pingback = '<input type="checkbox" class="checkbox" name="post_pingback" value="1" ';
if ( get_settings('default_pingback_flag') ) $form_pingback .= 'checked="checked" ';
Expand All @@ -27,8 +26,8 @@
$form_pingback = '';
}

$colspan = 2;
$form_prevstatus = '<input type="hidden" name="prev_status" value="'.$post_status.'" />';

if (get_settings('use_trackback')) {
$form_trackback = '<p><label for="trackback"><a href="http://wordpress.org/docs/reference/post/#trackback" title="' . __('Help on trackbacks') . '">' . __('<strong>TrackBack</strong> an <abbr title="Universal Resource Identifier">URI</abbr></a>') . '</label> ' . __('(Separate multiple <abbr title="Universal Resource Identifier">URI</abbr>s with spaces.)') . '<br />
<input type="text" name="trackback_url" style="width: 415px" id="trackback" tabindex="7" value="'. str_replace("\n", ' ', $to_ping) .'" /></p>';
Expand Down Expand Up @@ -123,7 +122,7 @@ function focusit() {

<?php
?>
<script type="text/javascript" language="JavaScript">
<script type="text/javascript">
<!--
edCanvas = document.getElementById('content');
//-->
Expand Down Expand Up @@ -189,6 +188,7 @@ function focusit() {
meta_form();
?>
</fieldset>
<?php do_action('edit_form_advanced', ''); ?>
</div>
</form>
<?php if ('edit' == $action) echo "
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/edit-form-comment.php
Expand Up @@ -56,7 +56,7 @@ function focusit() {
<div><textarea rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="4" id="content" style="width: 99%"><?php echo $content ?></textarea></div>
</fieldset>

<script type="text/javascript" language="JavaScript">
<script type="text/javascript">
<!--
edCanvas = document.getElementById('content');
//-->
Expand Down
11 changes: 6 additions & 5 deletions wp-admin/edit-form.php
Expand Up @@ -4,24 +4,24 @@

$allowed_users = explode(" ", trim(get_settings('fileupload_allowedusers')));

$submitbutton_text = __('Blog this!');
$toprow_title = __('New Post');
$form_action = 'post';
$form_extra = '';

if (get_settings('use_pingback')) {
$form_pingback = '<input type="checkbox" class="checkbox" name="post_pingback" value="1" ';
if ($post_pingback) $form_pingback .= 'checked="checked" ';
$form_pingback .= 'tabindex="7" id="pingback" /> <label for="pingback">' . sprintf(__('<strong>PingBack</strong> the <abbr title="Universal Resource Identifier">URI</abbr>s in this post</label> <a href="%s" title="Help on Pingbacks">?</a><br />'), 'http://wordpress.org/docs/reference/post/#pingback');
} else {
$form_pingback = '';
}

if (get_settings('use_trackback')) {
$form_trackback = '<p><label for="trackback">' . sprintf(__('<a href="%s" title="Help on trackbacks"><strong>TrackBack</strong> a <acronym title="Uniform Resource Locator">URL</acronym></a>:</label> (Separate multiple <abbr title="Universal Resource Identifier">URI</abbr>s with spaces.)<br />'), 'http://wordpress.org/docs/reference/post/#trackback') .
'<input type="text" name="trackback_url" style="width: 360px" id="trackback" tabindex="7" /></p>';
} else {
$form_trackback = '';
}
$colspan = 3;

$saveasdraft = '';


Expand Down Expand Up @@ -79,14 +79,15 @@ function focusit() {
</fieldset>


<script type="text/javascript" language="JavaScript">
<script type="text/javascript">
<!--
edCanvas = document.getElementById('content');
//-->
</script>

<?php echo $form_pingback ?>
<?php echo $form_trackback; ?>

<p class="submit"><input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="<?php _e('Save as Draft') ?>" />
<input name="saveasprivate" type="submit" id="saveasprivate" tabindex="10" value="<?php _e('Save as Private') ?>" />
<input name="publish" type="submit" id="publish" tabindex="6" style="font-weight: bold;" value="<?php _e('Publish') ?>" />
Expand All @@ -95,7 +96,7 @@ function focusit() {
} ?>
<input name="referredby" type="hidden" id="referredby" value="<?php if (isset($_SERVER['HTTP_REFERER'])) echo urlencode($_SERVER['HTTP_REFERER']); ?>" />
</p>

<?php do_action('edit_form', ''); ?>
</div>
</form>

Expand Down
2 changes: 1 addition & 1 deletion wp-admin/post.php
Expand Up @@ -764,7 +764,7 @@ function add_magic_quotes($array) {
} else if ($is_winIE) {
?>
<a href="javascript:Q='';if(top.frames.length==0)Q=document.selection.createRange().text;void(btw=window.open('<?php echo get_settings('siteurl') ?>/wp-admin/bookmarklet.php?text='+escape(Q)+'<?php echo $bookmarklet_tbpb ?>&amp;popupurl='+escape(location.href)+'&amp;popuptitle='+escape(document.title),'bookmarklet','scrollbars=yes,width=600,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));btw.focus();"><?php printf(__('Press it - %s'), get_settings('blogname')); ?></a>
<script type="text/javascript" language="JavaScript">
<script type="text/javascript">
<!--
function oneclickbookmarklet(blah) {
window.open ("profile.php?action=IErightclick", "oneclickbookmarklet", "width=500, height=450, location=0, menubar=0, resizable=0, scrollbars=1, status=1, titlebar=0, toolbar=0, screenX=120, left=120, screenY=120, top=120");
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/profile.php
Expand Up @@ -342,7 +342,7 @@ function add_magic_quotes($array) {

<?php if ($is_gecko && $profiledata->user_level != 0) { ?>
<div class="wrap">
<script language="JavaScript" type="text/javascript">
<script type="text/javascript">
//<![CDATA[
function addPanel()
{
Expand Down
4 changes: 2 additions & 2 deletions wp-admin/quicktags.php
@@ -1,2 +1,2 @@
<script src="quicktags.js" language="JavaScript" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">edToolbar();</script>
<script src="quicktags.js" type="text/javascript"></script>
<script type="text/javascript">edToolbar();</script>
2 changes: 1 addition & 1 deletion wp-admin/templates.php
Expand Up @@ -83,7 +83,7 @@ function validate_file($file) {
default:

require_once('admin-header.php');

update_option('recently_edited', array(1, 2, 3) );
if ($user_level <= 5) {
die(__('<p>You have do not have sufficient permissions to edit templates for this blog.</p>'));
}
Expand Down

0 comments on commit 6c5157a

Please sign in to comment.