summaryrefslogtreecommitdiffstats
path: root/wp-admin
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-09-10 18:26:30 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-09-10 18:26:30 +0000
commitb658e546840b8f23e2a1e413f6510104d73ea91f (patch)
tree1cd6bbbda247b5ae6cfff42f2cea731b4d8b667f /wp-admin
parent305d7e7228e097a26a98abdb45eb8283df7d5603 (diff)
Sync with WP 2.2.3
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1051 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin')
-rw-r--r--wp-admin/admin-ajax.php2
-rw-r--r--wp-admin/admin-functions.php6
-rw-r--r--wp-admin/install-rtl.css14
-rw-r--r--wp-admin/options.php74
-rw-r--r--wp-admin/rtl.css186
-rw-r--r--wp-admin/widgets-rtl.css5
6 files changed, 135 insertions, 152 deletions
diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php
index ad5064f..1bd5480 100644
--- a/wp-admin/admin-ajax.php
+++ b/wp-admin/admin-ajax.php
@@ -286,7 +286,7 @@ case 'autosave-generate-nonces' :
die(wp_create_nonce('update-page_' . $ID));
}
}
- die($_POST['post_type']);
+ die('0');
break;
default :
do_action( 'wp_ajax_' . $_POST['action'] );
diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php
index 37daf60..cb53fd3 100644
--- a/wp-admin/admin-functions.php
+++ b/wp-admin/admin-functions.php
@@ -105,6 +105,8 @@ function wp_write_post() {
$_POST['post_date'] = sprintf( "%04d-%02d-%02d %02d:%02d:%02d", $aa, $mm, $jj, $hh, $mn, $ss );
$_POST['post_date_gmt'] = get_gmt_from_date( $_POST['post_date'] );
}
+
+ unset($_POST['no_filter']);
// Create the post.
$post_ID = wp_insert_post( $_POST );
@@ -283,6 +285,8 @@ function edit_post() {
delete_meta( $key );
}
+ unset($_POST['no_filter']);
+
add_meta( $post_ID );
wp_update_post( $_POST );
@@ -2381,4 +2385,4 @@ The Webmaster");
}
add_action('update_option_new_admin_email', 'update_option_new_admin_email', 10, 2);
-?> \ No newline at end of file
+?>
diff --git a/wp-admin/install-rtl.css b/wp-admin/install-rtl.css
index 6cf6b34..9ab4a20 100644
--- a/wp-admin/install-rtl.css
+++ b/wp-admin/install-rtl.css
@@ -1,5 +1,15 @@
-body { font-family: Tahoma, Georgia, "Times New Roman", Times, serif; }
+body { font: 13px Tahoma, Georgia, "Times New Roman", Times, serif; }
ul, ol { padding: 5px 20px 5px 5px; }
-.step, th { text-align: left; }
+h1, h2, h3 { font-family: "Times New Roman", Times, serif; font-weight: 700 }
+
+.step, th { text-align: left }
+
+input { font-family: "Times New Roman", Times, serif; padding: 1px }
+
+#logo { background: url(../wp-content/plugins/WP-Jalali/wp-fa-logo.png) center right no-repeat; text-align: left; }
+
+#admin_email {direction: ltr; text-align: left; }
+
+#footer { font-style: normal; }
diff --git a/wp-admin/options.php b/wp-admin/options.php
index 466c8be..baccbe3 100644
--- a/wp-admin/options.php
+++ b/wp-admin/options.php
@@ -23,80 +23,6 @@ if( $_GET[ 'adminhash' ] ) {
exit;
}
}
-
-function sanitize_option($option, $value) { // Remember to call stripslashes!
-
- switch ($option) {
- case 'admin_email':
- case 'new_admin_email':
- $value = stripslashes($value);
- $value = sanitize_email($value);
- break;
-
- case 'default_post_edit_rows':
- case 'mailserver_port':
- case 'comment_max_links':
- $value = stripslashes($value);
- $value = abs((int) $value);
- break;
-
- case 'posts_per_page':
- case 'posts_per_rss':
- $value = stripslashes($value);
- $value = (int) $value;
- if ( empty($value) ) $value = 1;
- if ( $value < -1 ) $value = abs($value);
- break;
-
- case 'default_ping_status':
- case 'default_comment_status':
- $value = stripslashes($value);
- // Options that if not there have 0 value but need to be something like "closed"
- if ( $value == '0' || $value == '')
- $value = 'closed';
- break;
-
- case 'blogdescription':
- case 'blogname':
- if (current_user_can('unfiltered_html') == false)
- $value = wp_filter_post_kses( $value ); // calls stripslashes then addslashes
- $value = stripslashes($value);
- $value = wp_specialchars( $value );
- break;
-
- case 'blog_charset':
- $value = preg_replace('/[^a-zA-Z0-9_-]/', '', $value); // strips slashes
- break;
-
- case 'date_format':
- case 'time_format':
- case 'mailserver_url':
- case 'mailserver_login':
- case 'mailserver_pass':
- case 'ping_sites':
- case 'upload_path':
- $value = strip_tags($value);
- $value = wp_filter_kses($value); // calls stripslashes then addslashes
- $value = stripslashes($value);
- break;
-
- case 'gmt_offset':
- $value = preg_replace('/[^0-9:.-]/', '', $value); // strips slashes
- break;
-
- case 'siteurl':
- case 'home':
- $value = stripslashes($value);
- $value = clean_url($value);
- break;
- default :
- $value = stripslashes($value);
- break;
- }
-
- return $value;
-}
-
switch($action) {
case 'update':
diff --git a/wp-admin/rtl.css b/wp-admin/rtl.css
index 2a83e48..ebb6206 100644
--- a/wp-admin/rtl.css
+++ b/wp-admin/rtl.css
@@ -1,205 +1,247 @@
-#viewarc, #viewcat, #namediv, #emaildiv, #uridiv, #planetnews li, #login ul li, #your-profile fieldset,
- #footer .logo, .alignleft .available-theme { float: right; }
+#viewarc, #viewcat, #namediv, #emaildiv, #uridiv, #planetnews li, #login ul li, #your-profile fieldset, #footer .logo, .alignleft .available-theme {
+ float: right;
+ }
-#templateside, .alignright { float: left; }
+#templateside, .alignright {
+ float: left;
+ }
-#login #send, .readmore, .widefat th { text-align: right; }
+#login #send, .readmore, .widefat th {
+ text-align: right;
+ }
-#postcustomsubmit, form#upload th, .submit, .editform th { text-align: left; }
+#postcustomsubmit, form#upload th, .submit, .editform th {
+ text-align: left;
+ }
-#devnews h4, #wphead h1, #your-profile legend, fieldset.options legend,
- #planetnews li .post { font-family: Tahoma, Georgia, "Times New Roman", Times, serif; }
+#devnews h4, #wphead h1, #your-profile legend, fieldset.options legend, #planetnews li .post {
+ font-family: Tahoma, Georgia, "Times New Roman", Times, serif;
+ }
-#wphead { padding: .8em 2em .8em 19em; }
+#wphead {
+ padding: .8em 2em .8em 19em;
+ }
-#wphead h1 { font-size: 2.4em; }
+#wphead h1 {
+ font-size: 2.4em;
+ }
-#postdiv, #titlediv, #guiddiv, #tagdiv { margin: 0 0 0 8px; }
+#postdiv, #titlediv, #guiddiv, #tagdiv {
+ margin: 0 0 0 8px;
+ }
-#ed_toolbar input { margin: 3px 0 2px 2px; }
+#ed_toolbar input {
+ margin: 3px 0 2px 2px;
+ }
-#edButtons input, #edButtons input:active { margin: 0px 0 -1px 2px; }
+#edButtons input, #edButtons input:active {
+ margin: 0px 0 -1px 2px;
+ }
-body, td { font: 13px Tahoma, "Lucida Grande", "Lucida Sans Unicode", Verdana; }
+body, td {
+ font: 13px Tahoma, "Lucida Grande", "Lucida Sans Unicode", Verdana;
+ }
-h2 { font: normal 32px/5px serif; }
+h1, h2, h3, h4, h5 {
+ font-family: "Times New Roman", Times, serif;
+ }
+h3.dbx-handle {
+ font-family: tahoma, Verdana, Arial, Helvetica, sans-serif;
+ }
-textarea, input, select { font: 13px Tahoma, Verdana, Arial, Helvetica, sans-serif; }
+textarea, input, select {
+ font: 13px Tahoma, Verdana, Arial, Helvetica, sans-serif;
+ }
-.quicktags, .search { font: 12px Tahoma, Georgia, "Times New Roman", Times, serif; }
+.quicktags, .search {
+ font: 12px Tahoma, Georgia, "Times New Roman", Times, serif;
+ }
-.updated, .confirm { padding: 0 3em 0 1em; }
+.updated, .confirm {
+ padding: 0 3em 0 1em;
+ }
.submit input, .submit input:focus, .button, .button:focus {
border-left-color: #999;
border-right-color: #ccc;
-}
+ }
.submit input:active, .button:active {
border-left-color: #ccc;
border-right-color: #999;
-}
+ }
#adminmenu {
padding: .2em 2em .3em .2em;
height: 28px;
-}
-
-#adminmenu li { line-height: 160%; }
+ }
#adminmenu a {
margin: 0 0 0 10px;
display: block;
float: right;
-}
+ font: 700 16px/130% "Times New Roman", Times, serif;
+ }
#adminmenu a.current {
border-right: 0;
border-left: 2px solid #4f96c8;
-}
+ }
-#submenu, #minisub { padding: 1px 3em 0 2em; }
+#submenu, #minisub {
+ padding: 1px 3em 0 2em;
+ }
-#submenu { height: 28px; }
-
-#submenu li { line-height: 160%; }
+#submenu {
+ height: 28px;
+ }
#submenu a {
margin: 0 0 0 10px;
display: block;
float: right;
-}
+ line-height: 155%;
+ }
#submenu .current {
border-right: 0;
border-left: 2px solid #045290;
-}
+ }
#currenttheme img {
float: right;
margin-right: auto;
margin-left: 1em;
-}
+ }
#postdiv #quicktags {
padding-right: 0;
padding-left: 6px;
-}
+ }
.readmore {
margin-right: auto;
margin-left: 5em;
-}
+ }
#postexcerpt div, #attachmentlinks div {
margin-right: auto;
margin-left: 8px;
-}
+ }
* html #postexcerpt .dbx-toggle-open {
padding-right: 0;
padding-left: 8px;
-}
+ }
#searchform {
float: right;
margin-right: auto;
margin-left: 1em;
-}
+ }
#poststuff {
margin-right: auto;
margin-left: 16em;
-}
+ }
#template div {
margin-right: auto;
margin-left: 190px;
-}
+ }
* html #template div {
margin-right: auto;
margin-left: 0px;
-}
+ }
#user_info {
right: auto;
left: 1em;
-}
-
+ }
+
#zeitgeist {
float: left;
margin-left: auto;
margin-right: 1em;
-}
+ }
#zeitgeist ul {
margin: 0 .6em .3em 0;
padding: 0 .6em 0 0;
-}
+ }
+
+.wrap ul {
+ margin-left: 500px;
+ }
#categorydiv ul {
margin-left: auto;
margin-right: 10px;
-}
-
-#moremeta fieldset div { margin: 2px 0px 0 0; }
+ }
#moremeta {
- margin-right: auto;
+ margin-right: 0;
margin-left: 15px;
right: auto;
- left: 5%;
-}
-
+ left: 6%;
+ }
+
#moremeta .dbx-content {
background: url(images/box-butt.gif) no-repeat bottom left;
- padding-right: 0;
- padding-left: 2px;
-}
-
-#moremeta .dbx-handle { background: #2685af url(images/box-head.gif) no-repeat left; }
-
-#moremeta .dbx-box { background: url(images/box-bg.gif) repeat-y left; }
+ padding-right: 10px;
+ padding-left: 0;
+ text-align: right;
+ }
+
+#moremeta .dbx-handle {
+ background: #2685af url(images/box-head.gif) no-repeat left;
+ margin-top: -2px;
+ }
+
+#moremeta .dbx-box {
+ background: url(images/box-bg.gif) repeat-y left;
+ padding-bottom: 0;
+ }
a.dbx-toggle, a.dbx-toggle:visited {
right: auto;
left: 2px;
-}
-
-#advancedstuff a.dbx-toggle, #advancedstuff a.dbx-toggle-open:visited {
- right: auto;
- left: 5px;
-}
+ }
-#advancedstuff a.dbx-toggle-open, #advancedstuff a.dbx-toggle-open:visited {
- right: auto;
- left: 5px;
-}
#categorychecklist {
margin-right: auto;
margin-left: 6px;
-}
+ }
#ajax-response.alignleft {
margin-left: auto;
margin-right: 2em;
-}
+ }
#postdivrich #edButtons {
padding-left: 0;
padding-right: 3px;
-}
+ }
.page-numbers {
margin-right: auto;
margin-left: 3px;
-}
+ }
a.view-link {
right:auto;
left:5%;
margin-right:0;
margin-left:220px;
-}
+ }
+#advancedstuff {
+ direction: ltr;
+ }
+#advancedstuff .dbx-handle {
+ text-align: right;
+ }
+#advancedstuff .dbx-content * {
+ direction: rtl;
+ }
diff --git a/wp-admin/widgets-rtl.css b/wp-admin/widgets-rtl.css
index 805f39d..a399bae 100644
--- a/wp-admin/widgets-rtl.css
+++ b/wp-admin/widgets-rtl.css
@@ -4,7 +4,8 @@
* html #palettediv ul { padding: 0 10px 0 0; }
-#palettediv ul { padding: 0 10px 0 0; }
+#palettediv ul { padding: 0 10px 0 0;
+ margin-left: 1px!important;}
* .handle, #lastmodule span {
border-right: 1px solid #f2f2f2;
@@ -36,4 +37,4 @@
#shadow {
left: auto;
right: 0px;
-} \ No newline at end of file
+}