public
Description: Personal blog
Homepage: http://blog.alexgirard.com
Clone URL: git://github.com/alx/alexgirard.com-blog.git
update to wordpress 2.6.1
alx (author)
Fri Aug 15 05:39:32 -0700 2008
commit  1d098f07c1ec3a89a63f9bfa387b9a3ec4cd6fd3
tree    37d212f31c8e74038700c7a2ade4cd1e2e267e5f
parent  3fc946d302a683265a1c0b10d944e5721cc7dcbc
...
8
9
10
11
 
12
13
14
...
29
30
31
32
 
33
34
35
...
8
9
10
 
11
12
13
14
...
29
30
31
 
32
33
34
35
0
@@ -8,7 +8,7 @@
0
 <body>
0
 <h1 id="logo" style="text-align: center">
0
   <img alt="WordPress" src="wp-admin/images/wordpress-logo.png" />
0
-  <br /> Version 2.6
0
+  <br /> Version 2.6.1
0
 </h1>
0
 <p style="text-align: center">Semantic Personal Publishing Platform</p>
0
 
0
@@ -29,7 +29,7 @@
0
 
0
 <h1>Upgrading</h1>
0
 <p>Before you upgrade anything, make sure you have backup copies of any files you may have modified such as <code>index.php</code>.</p>
0
-<h2>Upgrading from any previous WordPress to 2.6:</h2>
0
+<h2>Upgrading from any previous WordPress to 2.6.1:</h2>
0
 <ol>
0
   <li>Delete your old WP files, saving ones you've modified.</li>
0
   <li>Upload the new files.</li>
...
392
393
394
 
 
 
395
396
397
398
399
400
401
 
402
403
404
...
392
393
394
395
396
397
398
399
400
401
402
403
 
404
405
406
407
0
@@ -392,13 +392,16 @@ case 'add-comment' :
0
 
0
   list($comments, $total) = _wp_get_comment_list( $status, $search, $start, 1 );
0
 
0
+  if ( get_option('show_avatars') )
0
+    add_filter( 'comment_author', 'floated_admin_avatar' );
0
+
0
   if ( !$comments )
0
     die('1');
0
   $x = new WP_Ajax_Response();
0
   foreach ( (array) $comments as $comment ) {
0
     get_comment( $comment );
0
     ob_start();
0
-      _wp_comment_row( $comment->comment_ID, $mode, false );
0
+      _wp_comment_row( $comment->comment_ID, $mode, $status );
0
       $comment_list_item = ob_get_contents();
0
     ob_end_clean();
0
     $x->add( array(
...
74
75
76
77
78
79
80
 
81
82
83
...
93
94
95
96
 
 
 
 
 
 
 
 
97
98
99
...
101
102
103
104
 
 
 
 
 
 
 
 
105
106
107
108
109
110
111
112
113
 
114
115
116
...
74
75
76
 
 
 
 
77
78
79
80
...
90
91
92
 
93
94
95
96
97
98
99
100
101
102
103
...
105
106
107
 
108
109
110
111
112
113
114
115
116
117
118
119
120
 
121
122
 
123
124
125
126
0
@@ -74,10 +74,7 @@ unset($hook_suffixes, $hook_suffix);
0
 </div>
0
 
0
 <?php
0
-$gears_compat = false;
0
-
0
-if ( ($is_gecko || $is_winIE) && strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'webkit') === false ) { 
0
-  $gears_compat = true;
0
+if ( ! $is_opera ) { 
0
 ?>
0
   <div id="gears-info-box" class="info-box" style="display:none;">
0
   <img src="images/gear.png" title="Gear" alt="" class="gears-img" />
0
@@ -93,7 +90,14 @@ if ( ($is_gecko || $is_winIE) && strpos(strtolower($_SERVER['HTTP_USER_AGENT']),
0
   <div id="gears-msg2" style="display:none;">
0
   <h3 class="info-box-title"><?php _e('Gears Status'); ?></h3>
0
   <p><?php _e('Gears is installed on this computer but is not enabled for use with WordPress.'); ?></p> 
0
-  <p><?php _e('To enable it, make sure this web site is not on the denied list in Gears Settings under your browser\'s Tools menu, then click the button below.'); ?></p>
0
+  <p><?php 
0
+  
0
+  if ( $is_safari )
0
+    _e('To enable it, make sure this web site is not on the denied list in Gears Settings under the Safari menu, then click the button below.');
0
+  else
0
+    _e('To enable it, make sure this web site is not on the denied list in Gears Settings under your browser Tools menu, then click the button below.'); 
0
+  
0
+  ?></p>
0
   <p><strong><?php _e('However if this is a public or shared computer, Gears should not be enabled.'); ?></strong></p>
0
   <div class="submit"><button class="button" onclick="wpGears.getPermission();"><?php _e('Enable Gears'); ?></button>
0
   <button class="button" style="margin-left:10px;" onclick="document.getElementById('gears-info-box').style.display='none';"><?php _e('Cancel'); ?></button></div>
0
@@ -101,16 +105,22 @@ if ( ($is_gecko || $is_winIE) && strpos(strtolower($_SERVER['HTTP_USER_AGENT']),
0
 
0
   <div id="gears-msg3" style="display:none;">
0
   <h3 class="info-box-title"><?php _e('Gears Status'); ?></h3>
0
-  <p><?php _e('Gears is installed and enabled on this computer. You can disable it from your browser Tools menu.'); ?></p>
0
+  <p><?php
0
+  
0
+  if ( $is_safari )
0
+    _e('Gears is installed and enabled on this computer. You can disable it from the Safari menu.');
0
+  else
0
+    _e('Gears is installed and enabled on this computer. You can disable it from your browser Tools menu.'); 
0
+  
0
+  ?></p>
0
   <p><?php _e('If there are any errors, try disabling Gears, then reload the page and enable it again.'); ?></p>
0
   <p><?php _e('Local storage status:'); ?> <span id="gears-wait"><span style="color:#f00;"><?php _e('Please wait! Updating files:'); ?></span> <span id="gears-upd-number"></span></span></p>
0
   <div class="submit"><button class="button" onclick="document.getElementById('gears-info-box').style.display='none';"><?php _e('Close'); ?></button></div>
0
   </div>
0
   </div>
0
-
0
 <?php } ?>
0
 
0
-<div id="user_info"><p><?php printf(__('Howdy, <a href="%1$s">%2$s</a>!'), 'profile.php', $user_identity) ?> | <a href="<?php echo site_url('wp-login.php?action=logout', 'login') ?>" title="<?php _e('Log Out') ?>"><?php _e('Log Out'); ?></a> | <?php _e('<a href="http://codex.wordpress.org/">Help</a>') ?> | <?php _e('<a href="http://wordpress.org/support/">Forums</a>'); if ( $gears_compat ) { ?> | <span id="gears-menu"><a href="#" onclick="wpGears.message(1);return false;"><?php _e('Turbo') ?></a></span><?php } ?></p></div>
0
+<div id="user_info"><p><?php printf(__('Howdy, <a href="%1$s">%2$s</a>!'), 'profile.php', $user_identity) ?> | <a href="<?php echo site_url('wp-login.php?action=logout', 'login') ?>" title="<?php _e('Log Out') ?>"><?php _e('Log Out'); ?></a> | <?php _e('<a href="http://codex.wordpress.org/">Help</a>') ?> | <?php _e('<a href="http://wordpress.org/support/">Forums</a>'); if ( ! $is_opera ) { ?> | <span id="gears-menu"><a href="#" onclick="wpGears.message(1);return false;"><?php _e('Turbo') ?></a></span><?php } ?></p></div>
0
 
0
 <?php
0
 require(ABSPATH . 'wp-admin/menu-header.php');
...
 
 
 
 
 
 
 
 
 
1
2
3
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
 
 
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
0
@@ -1,3 +1,24 @@
0
+.post-com-count {
0
+}
0
+#adminmenu li a #awaiting-mod, #sidemenu li a #update-plugins {
0
+  background-image: url(../images/comment-stalk-rtl.gif);
0
+  background-position:right bottom;
0
+}
0
+#footer {
0
+  background-position:99% 10px;
0
+}
0
 #poststuff .closed .togbox, #poststuff .togbox {
0
-background-image: url(../images/toggle-arrow-rtl.gif) !important;
0
-}
0
\ No newline at end of file
0
+  background-image: url(../images/toggle-arrow-rtl.gif) !important;
0
+}
0
+.bar {
0
+  border-right-color: transparent;
0
+  border-left-color: #99d;
0
+}
0
+.plugins .togl {
0
+  border-right-color: transparent;
0
+  border-left-color: #ccc;
0
+}
0
+#upload-menu li.current {
0
+  border-right-color: transparent;
0
+  border-left-color: #448abd;
0
+}
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 
 
19
20
21
22
23
24
25
0
@@ -1,3 +1,24 @@
0
+.bar {
0
+  border-right-color: transparent;
0
+  border-left-color: #99d;
0
+}
0
+.post-com-count {
0
+}
0
+#adminmenu li a #awaiting-mod, #sidemenu li a #update-plugins {
0
+  background-image: url(../images/comment-stalk-rtl.gif);
0
+  background-position:right bottom;
0
+}
0
+#footer {
0
+  background-position:99% 10px;
0
+}
0
+.plugins .togl {
0
+  border-right-color: transparent;
0
+  border-left-color: #ccc;
0
+}
0
 #poststuff .closed .togbox, #poststuff .togbox {
0
-background-image: url(../images/toggle-arrow-rtl.gif) !important;
0
-}
0
\ No newline at end of file
0
+  background-image: url(../images/toggle-arrow-rtl.gif);
0
+}
0
+#upload-menu li.current {
0
+  border-right-color:transparent;
0
+  border-left-color: #448abd;
0
+}
...
 
1
2
 
 
3
4
5
6
7
8
9
10
11
12
13
14
15
 
 
 
 
 
16
17
 
 
 
 
 
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
 
42
43
44
45
 
 
 
 
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
 
69
70
71
 
72
73
74
75
 
 
76
77
78
 
 
 
 
 
 
 
 
79
...
1
2
 
3
4
5
 
6
7
8
9
 
10
11
12
13
14
 
15
16
17
18
19
20
 
21
22
23
24
25
26
 
27
28
29
30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
32
 
33
34
 
 
 
35
36
37
38
39
40
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
 
43
44
45
 
46
47
48
49
 
50
51
52
53
 
54
55
56
57
58
59
60
61
62
0
@@ -1,79 +1,62 @@
0
+/* Right Now */
0
 #rightnow {
0
-  margin-left: 15px;
0
+  margin-right:0;
0
+  margin-left: 7px;
0
 }
0
-
0
 #rightnow .reallynow span {
0
   text-align: right;
0
   float: right;
0
 }
0
-
0
 #rightnow .reallynow a {
0
   text-align: left;
0
   float: left;
0
   margin: 1px 0 0 6px;
0
 }
0
-
0
+/* Widgets */
0
+div#dashboard-widgets-wrap {
0
+  margin-right:0;
0
+  margin-left:-13px;
0
+}
0
 div.dashboard-widget-holder {
0
-  float: right;
0
+  float:right;
0
+}
0
+div.dashboard-widget {
0
+  margin-right:0;
0
+  margin-left: 20px;
0
 }
0
-
0
 h3.dashboard-widget-title span {
0
   text-align: right;
0
   float: right;
0
 }
0
-
0
-div.dashboard-widget-submit input {
0
-  font-family: sans-serif !important;
0
-}
0
-  
0
-#dashboard-widgets .widget_rss ul li a {
0
-  float:right;
0
-  font-weight:bold;
0
-  margin:0pt 0pt 0.2em 0.5em;
0
-}
0
-
0
-#dashboard-widgets .widget_rss ul li span.rss-date {
0
-  float: right;
0
-}
0
-
0
 h3.dashboard-widget-title small {
0
   text-align: left;
0
-  float: left;
0
+  float:left;
0
 }
0
-div.dashboard-widget-content ul,
0
-div.dashboard-widget-content ol,
0
-div.dashboard-widget-content dl {
0
+div.dashboard-widget-submit input  {
0
+  font-family: Tahoma;
0
+}
0
+div.dashboard-widget-content ul, div.dashboard-widget-content ol, div.dashboard-widget-content dl {
0
   padding-left:0;
0
   padding-right:15px;
0
 }
0
-div#dashboard-widgets-wrap
0
-{
0
-  margin-right:0;
0
-  margin-left:-10px;
0
-}
0
-
0
-div.dashboard-widget {
0
-  margin-right:0;
0
-  margin-left:20px;
0
-}
0
-
0
-#dashboard-widgets .widget_rss ul li span.rss-date {
0
-  float:right;
0
-}
0
-#dashboard-widgets .widget_rss ul li a {
0
-  float:right;
0
-  margin:0 0 0.2em 0.5em;
0
-}
0
 #dashboard_secondary div.dashboard-widget-content ul li {
0
-  float: right;
0
+  float:right;
0
 }
0
 #dashboard_secondary div.dashboard-widget-content ul li .post {
0
-  font-family: sans-serif !important;
0
+  font-family:arial;
0
 }
0
 #dashboard_secondary div.dashboard-widget-content ul li a {
0
   border-right:0 none;
0
-  border-left:1px solid #DADADA;
0
+  border-left: 1px solid #dadada;
0
+  height:110px;
0
 }
0
 #dashboard_secondary div.dashboard-widget-content ul li a cite {
0
-  font-family: sans-serif;
0
+  font-family: Tahoma;
0
+}
0
+#dashboard-widgets .widget_rss ul li span.rss-date {
0
+  float:right;
0
+}
0
+#dashboard-widgets .widget_rss ul li a {
0
+  float: right;
0
+  margin: 0 0 .2em .5em;
0
 }
...
1
2
3
4
5
6
7
8
9
10
11
12
13
 
 
 
 
 
 
 
 
 
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
32
33
 
 
 
 
 
34
...
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
 
13
14
15
16
 
17
18
19
 
20
21
22
 
23
24
25
 
26
27
28
29
30
31
0
@@ -1,34 +1,31 @@
0
-//* styles for use by people extending the WordPress interface */
0
-body, td { font-family: sans-serif; }
0
-
0
-textarea, input, select { font-family: sans-serif; }
0
-
0
-.alignleft { float: right; }
0
-.alignright { float: left; }
0
-
0
-.textleft { text-align: right; }
0
-.textright { text-align: left; }
0
-  
0
-.wrap h2 { font-family: sans-serif; }
0
-
0
+body, td {
0
+  font-family: Tahoma;
0
+}
0
+textarea, input, select {
0
+  font-family: Tahoma;
0
+}
0
+h1, h2, h3 {
0
+  font-family:arial;
0
+}
0
 .widefat td {
0
   padding: 7px 10px 9px 15px;
0
 }
0
-
0
 .widefat th {
0
   padding: 9px 10px 6px 15px;
0
   text-align: right;
0
 }
0
-
0
 .widefat th input {
0
   margin: 0 8px 0 0;
0
 }
0
-
0
 .widefat .check-column {
0
   text-align: left;
0
 }
0
-
0
 .wrap h2 {
0
+  font-family:arial;
0
   margin: 5px -4px 0 0;
0
-  padding: 0 0 7px 280px;
0
+  padding-right:0;
0
+  padding-left: 280px;
0
+}
0
+.wrap h2.long-header {
0
+  padding-left: 0;
0
 }
...
1
2
3
 
 
 
4
5
6
7
 
 
 
8
9
10
11
12
13
14
15
 
 
16
17
18
19
20
21
22
23
 
24
25
26
27
 
 
 
 
 
 
 
28
29
 
 
30
31
32
 
 
33
34
35
36
 
 
 
 
 
 
37
38
39
40
 
 
 
 
 
 
 
 
 
 
 
 
41
42
43
44
 
 
 
 
 
45
46
47
48
49
50
51
52
53
54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
 
 
 
1
2
3
4
 
 
 
5
6
7
8
 
 
 
 
 
 
 
9
10
11
 
 
 
 
 
 
12
13
14
 
15
 
16
17
18
19
20
21
22
23
 
24
25
26
 
 
27
28
29
 
 
 
30
31
32
33
34
35
36
 
 
 
37
38
39
40
41
42
43
44
45
46
47
48
49
 
 
 
50
51
52
53
54
55
56
 
 
 
 
 
 
 
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
0
@@ -1,53 +1,73 @@
0
-/* footer */
0
-body, td {
0
-  font-family: Tahoma,Verdana,sans-serif;
0
+#poststuff .postbox h3 {
0
+  padding-left:0;
0
+  padding-right: 23px;
0
 }
0
-
0
-.wrap {
0
-  text-align: right;
0
+* html #poststuff .postarea, * html #poststuff #titlediv {
0
+  margin-left:0;
0
+  margin-right: 3%;
0
 }
0
-
0
-.wrap h2 {
0
-  margin: 5px 0 0 4px;
0
-}
0
-
0
-#footer {
0
-  padding-left:50px;
0
+* html #poststuff h2 {
0
+  margin-right: 0;
0
 }
0
-#footer p {
0
-  background:none;
0
-  height:auto;
0
-  padding: 5px 5px 0;
0
-}
0
-
0
 #bh {
0
+  padding-right:0;
0
   padding-left: 15px;
0
-  padding-right: 0px;
0
 }
0
-/* write post */
0
+div#dashboard-widgets {
0
+  padding-right:0;
0
+  padding-left: 1px;
0
+}
0
+#tagchecklist span a {
0
+  margin: 4px -9px 0 0;
0
+}
0
 #poststuff .togbox {
0
-  margin-right:-16px;
0
+  margin-left:0;
0
+  margin-right: -19px;
0
 }
0
-#poststuff h3 {
0
-  padding-right:20px;
0
+.widefat th input {
0
+  margin: 0 5px 0 0;
0
 }
0
-
0
-p#widget-search, p#post-search {
0
-  padding-left: 15px;
0
+/* ---------- add by navid */
0
+#dashmenu { /* fix top right bottom in admin */
0
+  direction:ltr;
0
+}
0
+#sidemenu a { /* fix left admin buttom ex. plugins, options */
0
+  float:left;
0
 }
0
-
0
-.widefat th {
0
-  padding-bottom: 8px;
0
+.wrap h2 {
0
+  margin:5px 4px 0 0;
0
+}
0
+#editor-toolbar {/* fix hover in media uploader icon */
0
+  direction:ltr;
0
+}
0
+#TB_window { /* fix theme preview */
0
+  left:2%;
0
+}
0
+/* fix widget page */
0
+form#widgets-filter {
0
+  position:static;
0
 }
0
-
0
-/* template editor */
0
-#template textarea {
0
+#widget-search {
0
+  display:none;
0
+}
0
+/* fix manage comment page */
0
+ul.view-switch li {
0
   float:left;
0
 }
0
-
0
-/* Editor */
0
-
0
-.mceToolbar {
0
-  direction: ltr;
0
-  text-align: left;
0
-}
0
\ No newline at end of file
0
+form#posts-filter {
0
+  position:static;
0
+}
0
+#post-search {
0
+  display:none;
0
+}
0
+#submenu {
0
+  margin-right: 20px;
0
+}
0
+/* Fixes for media-upload window */
0
+/* Center media-upload panel on screen */
0
+#TB_window { 
0
+  width: 670px; 
0
+  position: absolute; 
0
+  top: 50%; 
0
+  left: 50%; 
0
+  margin-right: 335px !important; }
...
1
2
3
 
 
 
 
 
 
 
 
4
5
6
7
8
9
10
11
12
 
 
13
14
15
 
 
 
16
17
18
19
20
21
22
 
 
23
24
25
26
27
 
 
 
...
1
 
 
2
3
4
5
6
7
8
9
10
11
12
13
 
 
 
 
 
14
15
16
 
 
17
18
19
20
 
 
 
 
 
 
21
22
23
24
 
 
25
26
27
28
0
@@ -1,26 +1,27 @@
0
 body {
0
-  font-size: 11px;
0
-  font-family: sans-serif !important;
0
+  font-family: Tahoma;
0
+}
0
+/* Half the page disapears on IE6 */
0
+* html body {
0
+  width: 700px; 
0
+  position: absolute; 
0
+  left: 50%; 
0
+  margin-right: 350px;
0
 }
0
 ul, ol {
0
   padding: 5px 22px 5px 5px;
0
 }
0
-.form-table th {
0
-  text-align: right;
0
-}
0
-input {
0
-  padding: 1px
0
+.step, th {
0
+  text-align:right;
0
 }
0
-#logo {
0
-  text-align: left;
0
+.submit input, .button, .button-secondary  {
0
+  font-family: Tahoma;
0
+  margin-right:0;
0
 }
0
-#admin_email {
0
-  direction: ltr;
0
-  text-align: left;
0
-}
0
-.submit input, .button, .button-secondary {
0
-  font-family: sans-serif !important;
0
+.form-table th {
0
+  text-align:right;
0
 }
0
 h1 {
0
-  font-family: sans-serif;
0
-}
0
\ No newline at end of file
0
+  font-family:arial;
0
+  margin: 5px -4px 0 0;
0
+}
...
1
2
3
4
5
6
 
7
8
9
10
 
11
12
13
14
 
 
 
15
16
17
 
 
 
 
18
19
 
20
21
22
 
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 
 
 
 
...
1
 
 
 
 
 
2
3
4
5
 
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 
22
23
24
 
25
26
27
28
29
 
30
31
32
33
 
 
 
 
34
35
36
37
38
0
@@ -1,35 +1,37 @@
0
 body {
0
-  font-family: sans-serif;
0
-  direction: rtl;
0
-}
0
-#login form .submit input {
0
-  font-family: sans-serif !important;
0
+  font-family: Tahoma;
0
 }
0
 form {
0
   margin-left:0;
0
-  margin-right:8px;
0
+  margin-right: 8px;
0
 }
0
 form .forgetmenot {
0
   float:right;
0
 }
0
+#login form .submit input  {
0
+  font-family: Tahoma;
0
+}
0
 form .submit {
0
   float:left;
0
 }
0
+#backtoblog a {
0
+  left:auto;
0
+  right:15px;
0
+}
0
 #login_error, .message {
0
-  margin:0 8px 16px 0;
0
+  margin: 0 8px 16px 0;
0
 }
0
 #nav {
0
-  margin: 0 8px 0 0;
0
+  margin:0 8px 0 0;
0
 }
0
 #user_pass, #user_login, #user_email {
0
   margin-right:0;
0
   margin-left: 6px;
0
-  direction:ltr;
0
 }
0
 h1 a {
0
   text-decoration:none;
0
 }
0
-#backtoblog a {
0
-  left: auto;
0
-  right: 15px;
0
-}
0
\ No newline at end of file
0
+/* ltr input */
0
+#user_login, #user_pass {
0
+  direction:ltr;
0
+}
...
1
2
3
 
 
 
 
 
 
 
4
5
6
 
 
 
 
 
 
 
 
 
 
7
8
9
10
11
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
14
15
16
17
18
19
20
21
22
 
 
 
 
 
 
 
 
 
...
 
 
 
1
2
3
4
5
6
7
8
9
 
10
11
12
13
14
15
16
17
18
19
20
 
 
21
 
 
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
 
 
 
 
 
 
 
 
58
59
60
61
62
63
64
65
66
67
0
@@ -1,21 +1,66 @@
0
-ul#sidemenu {
0
-  left: auto;
0
-  right: 0;
0
+body#media-upload ul#sidemenu {
0
+  left:auto;
0
+  right:0;
0
+  width: 620px;
0
+}
0
+#search-filter {
0
+  text-align:left;
0
 }
0
 .align .field label {
0
-  display: block;
0
+  padding: 0 28px 0 0;
0
+  margin: 0 0 0 1em;
0
+}
0
+.image-align-none-label, .image-align-left-label, .image-align-center-label, .image-align-right-label {
0
+  background-position:center right;
0
+}
0
+tr.image-size label {
0
+  margin: 0 0 0 1em;
0
+}
0
+.filename.original {
0
   float: right;
0
-  padding: 0 25px 0 0;
0
-  margin: 5px 3px 5px 5px; 
0
 }
0
-.align .field input {
0
-  display: block;
0
+.crunching {
0
+  text-align: left;
0
+  margin-right:0;
0
+  margin-left: 5px;
0
+}
0
+button.dismiss {
0
+  right:auto;
0
+  left:5px;
0
+}
0
+.file-error {
0
+  margin: 0 50px 5px 0;
0
+}
0
+.progress {
0
+  left:auto;
0
+  right:0;
0
+}
0
+.bar {
0
+  border-right-width:0;
0
+  border-left-width: 3px;
0
+  border-left-style: solid;
0
+}
0
+.media-item .pinkynail {
0
+  float:right;
0
+}
0
+.describe-toggle-on, .describe-toggle-off {
0
+  float: left;
0
+  margin-right:0;
0
+  margin-left: 20px;
0
+}
0
+/* Specific to Uploader */
0
+
0
+#media-upload .media-upload-form p {
0
+  margin: 0 0 1em 1em;
0
+}
0
+.filename {
0
   float: right;
0
-  margin: 5px 15px 5px 0;
0
-}
0
-.image-align-none-label,
0
-.image-align-left-label,
0
-.image-align-center-label,
0
-.image-align-right-label {
0
-  background-position: center right;
0
-}
0
\ No newline at end of file
0
+  margin-left:0;
0
+  margin-right: 10px;
0
+}
0
+#media-upload .describe th.label {
0
+  text-align:right;
0
+}
0
+.menu_order {
0
+  float:left;
0
+}
...
1
2
3
4
5
6
7
8
 
 
 
...
 
 
 
 
 
 
 
1
2
3
4
0
@@ -1,7 +1,3 @@
0
-#menu { margin-right: 8px !important; }
0
-
0
-p.submit input { text-align: right !important; }
0
-
0
-li.ui-tabs-selected a { height: 25px; }
0
-
0
-#photo_directions span { right: 200px; left: auto; height: 8px; }
0
\ No newline at end of file
0
+.ui-tabs-nav {
0
+   margin-right: 0;
0
+}
...
1
2
 
3
4
5
6
 
 
 
7
8
9
10
 
 
11
12
13
14
 
 
 
 
15
16
17
18
 
 
 
19
20
21
22
 
 
 
23
24
25
26
 
 
27
28
29
30
 
 
 
31
32
33
34
 
 
 
35
36
37
38
 
 
 
39
40
41
42
 
 
43
44
45
46
 
 
47
48
49
50
 
 
 
51
52
53
54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
56
57
58
59
60
...
1
 
2
3
 
 
 
4
5
6
7
 
 
 
8
9
10
 
 
 
11
12
13
14
15
 
 
 
16
17
18
19
 
 
 
20
21
22
23
 
 
 
24
25
26
 
 
 
27
28
29
30
 
 
 
31
32
33
34
 
 
 
35
36
37
38
 
 
 
39
40
41
 
 
 
42
43
44
 
 
 
45
46
47
48
 
 
 
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
 
 
 
 
99
0
@@ -1,59 +1,98 @@
0
 body {
0
-  font-family: sans-serif;
0
+  font-family: Tahoma;
0
 }
0
-
0
-#viewsite { 
0
-  right:auto; left: 8px; 
0
+.ui-tabs-nav {
0
+  padding-left:0;
0
+  padding-right:8px;
0
 }
0
-
0
-ul#menu { 
0
-  padding-right: 8px; 
0
+.ui-tabs-nav li {
0
+  float: right;
0
 }
0
-
0
-.ui-tabs-nav li { 
0
-  float: right; 
0
+.button {
0
+  font-family: Tahoma;
0
+  margin-left:0;
0
+  margin-right: 5px;
0
 }
0
-
0
-div#posting { 
0
-  padding-right:16px; padding-left: 0; 
0
+#wphead #viewsite {
0
+  margin-left:0;
0
+  margin-right: 10px;
0
 }
0
-
0
-div#categories { 
0
-  right: auto; left: 16px; 
0
+#viewsite {
0
+  right:auto;
0
+  left: 8px;
0
 }
0
-
0
-div#categories h2 { 
0
-  margin:0.5em 1em 0.5em 0; 
0
+#wphead #viewsite a {
0
+  font-family: Tahoma;
0
 }
0
-
0
-#jaxtag { 
0
-  padding-right :1em; padding-left: 0; 
0
+h1 {
0
+  right:auto;
0
+  left:0;
0
 }
0
-
0
-input#newtag { 
0
-  margin-left: 4px; width: 100px; 
0
+div#posting {
0
+  padding-left:0;
0
+  padding-right: 16px;
0
 }
0
-
0
-#photo_directions span { 
0
-  right: auto; left: 3px 
0
+#photo_directions span {
0
+  right:auto;
0
+  left:3px;
0
 }
0
-
0
-#TB_ajaxContent #options { 
0
-  right: auto; left: 25px; 
0
+#img_container a {
0
+  float:right;
0
 }
0
-
0
-#TB_ajaxContent {
0
-  text-align: right;
0
+#img_container a, #img_container a:link, #img_container a:visited {
0
+  margin:0 0 4px 4px;
0
 }
0
-
0
-#TB_ajaxContent #this_photo {
0
-  direction: ltr;
0
+div#categories {
0
+  right:auto;
0
+  left:16px;
0
 }
0
-
0
-.video_split #extra_fields { 
0
-  float: right; 
0
+div#categories h2 {
0
+  margin: .5em 1em .5em 0;
0
+}
0
+#tagsdiv #newtag {
0
+  margin-right:0;  
0
+  margin-left: 5px;  
0
+}
0
+#jaxtag {
0
+  padding-left:0;
0
+  padding-right: 1em;
0
+}
0
+#tagchecklist {
0
+  padding-left:0;
0
+  padding-right: 1em;
0
+}
0
+#tagchecklist span {
0
+  margin-right: 10px;
0
+  margin-left: .5em;
0
+  float: right;
0
+}
0
+#tagchecklist span a {
0
+  margin: 6px -9px 0pt 0;
0
+  float: right;
0
+}
0
+.submitbox {
0
+  float: left;
0
+}
0
+.submitbox .submit input {
0
+  text-align:right;
0
+}
0
+.video_split #extra_fields {
0
+  float:right;
0
+}
0
+.video_split .editor_area {
0
+  float: left;
0
+}
0
+.ac_results li {
0
+  text-align:right;
0
+}
0
+#TB_ajaxContent #options {
0
+  right:auto;
0
+  left:25px;
0
+}
0
+#post_status {
0
+  margin-left:0;
0
+  margin-right: 10px;
0
+}
0
+#footer {
0
+  padding: 10px 60px 0 0;
0
 }
0
-
0
-.video_split .editor_area { 
0
-  float: left; 
0
-}
0
\ No newline at end of file
...
4
5
6
 
 
7
8
9
...
4
5
6
7
8
9
10
11
0
@@ -4,6 +4,8 @@ body {
0
   margin: 0px;
0
   padding: 0px;
0
 }
0
+
0
+img { border: 0; }
0
 /* Tabs */
0
 @media projection , screen {
0
   .ui-tabs-hide {
...
1
2
 
3
4
5
6
7
8
9
 
 
10
11
12
13
14
15
 
 
...
1
 
2
3
4
5
6
7
8
 
9
10
11
12
 
13
 
14
15
16
0
@@ -1,14 +1,15 @@
0
 #template textarea {
0
-  font-family: monospace !important;
0
+  font-family:monospace;
0
 }
0
 #templateside {
0
   float:left;
0
 }
0
 #themeselector {
0
   padding-right:0;
0
-  padding-left:5px;
0
+  padding-left: 5px;
0
+  float: left;
0
 }
0
 div.tablenav {
0
-  margin-left:210px;
0
   margin-right:0;
0
-}
0
\ No newline at end of file
0
+  margin-left: 210px;
0
+}
...
 
1
2
3
 
 
4
5
 
6
7
8
9
 
10
11
12
13
 
 
14
15
 
16
17
 
 
 
 
 
 
 
 
18
19
20
21
22
23
24
25
 
 
26
27
28
29
30
31
32
 
33
34
35
36
37
38
39
 
 
 
40
41
42
43
44
45
46
 
47
48
49
50
51
52
...
1
2
 
 
3
4
5
 
6
7
8
9
 
10
11
12
 
 
13
14
15
16
17
18
 
19
20
21
22
23
24
25
26
27
28
29
 
30
31
 
 
32
33
34
35
 
36
 
 
 
37
38
39
 
 
 
 
 
40
41
42
43
 
 
 
 
 
 
44
45
 
 
 
 
46
0
@@ -1,51 +1,45 @@
0
+/* 2 column liquid layout */
0
 div.widget-liquid-left-holder {
0
-  clear:right;
0
-  float:right;
0
+  float: right;
0
+  clear: right;
0
   margin-right:0;
0
-  margin-left:-310px;
0
+  margin-left: -310px;
0
 }
0
 div.widget-liquid-left {
0
   margin-right:0;
0
-  margin-left:310px;
0
+  margin-left: 320px;
0
 }
0
 div.widget-liquid-right {
0
-  clear:left;
0
-  float:left;
0
+  float: left;
0
+  clear: left;
0
 }
0
 p#widget-search {
0
+  right:auto;
0
   left:0;
0
-  right:auto
0
+}
0
+h4.widget-title span {
0
+  float: right;
0
+}
0
+h4.widget-title a {
0
+  float: left;
0
+  margin-left:0;
0
+  margin-right: 1em;
0
 }
0
 ul#widget-list li.widget-list-item h4.widget-title {
0
   float:right;
0
-  text-align:right;
0
 }
0
 ul#widget-list li.widget-list-item div.widget-description {
0
-  margin:0 200px 0 0;
0
-  padding:0 4em 0 0;
0
+  margin: 0 200px 0 0;
0
+  padding: 0 4em 0 0;
0
 }
0
 .widget-control-save, .widget-control-remove {
0
-  float:right;
0
   margin-right:0;
0
-  margin-left:8px;
0
-}
0
-h4.widget-title span {
0
+  margin-left: 8px;
0
   float: right;
0
 }
0
-h4.widget-title a {
0
-  float: left;
0
-  margin: 0 1em 0 0;
0
-}
0
-li.widget-list-control-item h4.widget-title a, #dragHelper li.widget-list-control-item h4.widget-title a, #draghelper li.widget-list-control-item h4.widget-title a:visited {
0
+li.widget-list-control-item h4.widget-title a,
0
+#dragHelper li.widget-list-control-item h4.widget-title a,
0
+#draghelper li.widget-list-control-item h4.widget-title a:visited {
0
   right:auto;
0
-  left:1em;
0
-}
0
-
0
-ul.widget-control-list div.widget-control-actions {
0
-  margin-right:0;
0
-  margin-left:-10px;
0
+  left: 1em;
0
 }
0
-ul.widget-control-list h4.widget-title,
0
-#dragHelper h4.widget-title {
0
-  text-align: right;
0
-}
0
\ No newline at end of file
...
30
31
32
 
 
33
34
35
...
175
176
177
 
 
 
178
179
180
...
30
31
32
33
34
35
36
37
...
177
178
179
180
181
182
183
184
185
0
@@ -30,6 +30,8 @@ if ( !empty( $_REQUEST['delete_comments'] ) ) {
0
     }
0
   endforeach;
0
   $redirect_to = basename( __FILE__ ) . '?deleted=' . $comments_deleted . '&approved=' . $comments_approved . '&spam=' . $comments_spammed . '&unapproved=' . $comments_unapproved;
0
+  if ( isset($_REQUEST['apage']) )
0
+    $redirect_to = add_query_arg( 'apage', absint($_REQUEST['apage']), $redirect_to );
0
   if ( !empty($_REQUEST['mode']) )
0
     $redirect_to = add_query_arg('mode', $_REQUEST['mode'], $redirect_to);
0
   if ( !empty($_REQUEST['comment_status']) )
0
@@ -175,6 +177,9 @@ if ( $page_links )
0
 <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary delete" />
0
 <?php do_action('manage_comments_nav', $comment_status); ?>
0
 <?php wp_nonce_field('bulk-comments'); ?>
0
+<?php if ( isset($_GET['apage']) ) { ?>
0
+  <input type="hidden" name="apage" value="<?php echo absint( $_GET['apage'] ); ?>" />
0
+<?php } ?>
0
 </div>
0
 
0
 <br class="clear" />
...
7
8
9
10
 
 
 
11
12
13
...
71
72
73
74
75
76
77
78
79
80
81
 
82
83
84
...
115
116
117
118
 
119
120
121
...
7
8
9
 
10
11
12
13
14
15
...
73
74
75
 
 
 
 
 
 
 
 
76
77
78
79
...
110
111
112
 
113
114
115
116
0
@@ -7,7 +7,9 @@ $messages[1] = sprintf( __( 'Post updated. Continue editing below or <a href="%s
0
 $messages[2] = __('Custom field updated.');
0
 $messages[3] = __('Custom field deleted.');
0
 $messages[4] = __('Post updated.');
0
-$messages[5] = sprintf( __('Post restored to revision from %s'), wp_post_revision_title( $_GET['revision'], false ) );
0
+
0
+if ( isset($_GET['revision']) )
0
+  $messages[5] = sprintf( __('Post restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) );
0
 
0
 $notice = false;
0
 $notices[1] = __( 'There is an autosave of this post that is more recent than the version below.  <a href="%s">View the autosave</a>.' );
0
@@ -71,14 +73,7 @@ $saveasdraft = '<input name="save" type="submit" id="save" class="button" tabind
0
 <input type="hidden" id="post_author" name="post_author" value="<?php echo attribute_escape( $post->post_author ); ?>" />
0
 <input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" />
0
 <input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo $post->post_status ?>" />
0
-<input name="referredby" type="hidden" id="referredby" value="<?php
0
-if ( !empty($_REQUEST['popupurl']) )
0
-  echo clean_url(stripslashes($_REQUEST['popupurl']));
0
-else if ( strpos( wp_get_referer(), '/wp-admin/' ) === false && $post_ID && url_to_postid(wp_get_referer()) === $post_ID  )
0
-  echo 'redo';
0
-else
0
-  echo clean_url(stripslashes(wp_get_referer()));
0
-?>" />
0
+<input name="referredby" type="hidden" id="referredby" value="<?php echo clean_url(stripslashes(wp_get_referer())); ?>" />
0
 <?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?>
0
 
0
 <?php echo $form_extra ?>
0
@@ -115,7 +110,7 @@ if ( current_user_can('publish_posts') OR ( $post->post_status == 'publish' AND
0
 </p>
0
 
0
 <?php if ( current_user_can( 'publish_posts' ) ) : ?>
0
-<p><label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> tabindex="4" /> <?php _e('Keep this post private') ?></label></p>
0
+<p id="private-checkbox"><label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> tabindex="4" /> <?php _e('Keep this post private') ?></label></p>
0
 <?php endif; ?>
0
 <?php
0
 if ($post_ID) {
...
10
11
12
13
 
 
14
15
 
16
17
18
 
19
20
21
...
10
11
12
 
13
14
15
 
16
17
18
 
19
20
21
22
0
@@ -10,12 +10,13 @@ if ( isset($_GET['deleteit']) && isset($_GET['delete']) ) {
0
 
0
   foreach( (array) $_GET['delete'] as $cat_ID ) {
0
     $cat_name = get_term_field('name', $cat_ID, 'link_category');
0
-
0
+    $default_cat_id = get_option('default_link_category');
0
+    
0
     // Don't delete the default cats.
0
-    if ( $cat_ID == get_option('default_link_category') )
0
+    if ( $cat_ID == $default_cat_id )
0
       wp_die(sprintf(__("Can&#8217;t delete the <strong>%s</strong> category: this is the default one"), $cat_name));
0
 
0
-    wp_delete_term($cat_ID, 'link_category');
0
+    wp_delete_term($cat_ID, 'link_category', array('default' => $default_cat_id));
0
   }
0
 
0
   $location = 'edit-link-categories.php';
...
6
7
8
 
 
 
9
10
11
...
27
28
29
30
31
32
33
34
35
36
...
57
58
59
60
61
62
63
64
65
 
66
67
68
...
95
96
97
98
 
99
100
101
...
6
7
8
9
10
11
12
13
14
...
30
31
32
 
 
 
 
33
34
35
...
56
57
58
 
 
 
 
 
 
59
60
61
62
...
89
90
91
 
92
93
94
95
0
@@ -6,6 +6,9 @@ $messages[2] = __('Custom field updated.');
0
 $messages[3] = __('Custom field deleted.');
0
 $messages[4] = __('Page updated.');
0
 
0
+if ( isset($_GET['revision']) )
0
+  $messages[5] = sprintf( __('Page restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) );
0
+
0
 $notice = false;
0
 $notices[1] = __( 'There is an autosave of this page that is more recent than the version below.  <a href="%s">View the autosave</a>.' );
0
 
0
@@ -27,10 +30,6 @@ if (!isset($post_ID) || 0 == $post_ID) {
0
 $temp_ID = (int) $temp_ID;
0
 $user_ID = (int) $user_ID;
0
 
0
-$sendto = clean_url(stripslashes(wp_get_referer()));
0
-
0
-if ( 0 != $post_ID && $sendto == get_permalink($post_ID) )
0
-  $sendto = 'redo';
0
 ?>
0
 
0
 <?php if ( $notice ) : ?>
0
@@ -57,12 +56,7 @@ if (isset($mode) && 'bookmarklet' == $mode)
0
 <?php echo $form_extra ?>
0
 <input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" />
0
 <input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo $post->post_status ?>" />
0
-<input name="referredby" type="hidden" id="referredby" value="<?php
0
-if ( strpos( wp_get_referer(), '/wp-admin/' ) === false && $post_ID && url_to_postid(wp_get_referer()) === $post_ID )
0
-  echo 'redo';
0
-else
0
-  echo clean_url(stripslashes(wp_get_referer()));
0
-?>" />
0
+<input name="referredby" type="hidden" id="referredby" value="<?php echo clean_url(stripslashes(wp_get_referer())); ?>" />
0
 <?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?>
0
 
0
 <div id="poststuff">
0
@@ -95,7 +89,7 @@ if ( current_user_can('publish_pages') OR ( $post->post_status == 'publish' AND
0
 </select>
0
 </p>
0
 <?php if ( current_user_can( 'publish_posts' ) ) : ?> 
0
-<p><label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> tabindex='4' /> <?php _e('Keep this page private') ?></label></p>
0
+<p id="private-checkbox"><label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> tabindex='4' /> <?php _e('Keep this page private') ?></label></p>
0
 <?php endif; ?>
0
 
0
 <?php
...
122
123
124
125
 
126
127
128
...
122
123
124
 
125
126
127
128
0
@@ -122,7 +122,7 @@ endif;
0
 $pagenum = absint( $_GET['pagenum'] );
0
 if ( empty($pagenum) )
0
   $pagenum = 1;
0
-if( !$per_page || $pre_page < 0 )
0
+if( !$per_page || $per_page < 0 )
0
   $per_page = 20;
0
 
0
 $num_pages = ceil(count($posts) / $per_page);
...
64
65
66
67
 
68
69
70
...
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
 
120
121
122
...
131
132
133
134
 
135
136
137
...
148
149
150
151
 
152
153
154
...
161
162
163
164
 
165
166
167
...
203
204
205
206
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
207
...
64
65
66
 
67
68
69
70
...
103
104
105
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
107
108
109
...
118
119
120
 
121
122
123
124
...
135
136
137
 
138
139
140
141
...
148
149
150
 
151
152
153
154
...
190
191
192
 
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
0
@@ -64,7 +64,7 @@ header( 'Content-Type: application/x-javascript; charset=UTF-8' );
0
 ?>
0
 {
0
 "betaManifestVersion" : 1,
0
-"version" : "<?php echo $man_version; ?>_20080710a",
0
+"version" : "<?php echo $man_version; ?>_20080810",
0
 "entries" : [
0
 <?php echo $defaults; ?>
0
 
0
@@ -103,20 +103,7 @@ header( 'Content-Type: application/x-javascript; charset=UTF-8' );
0
 { "url" : "images/no.png" },
0
 { "url" : "images/yes.png" },
0
 
0
-{ "url" : "../wp-includes/images/crystal/archive.png" },
0
-{ "url" : "../wp-includes/images/crystal/audio.png" },
0
-{ "url" : "../wp-includes/images/crystal/code.png" },
0
-{ "url" : "../wp-includes/images/crystal/default.png" },
0
-{ "url" : "../wp-includes/images/crystal/document.png" },
0
-{ "url" : "../wp-includes/images/crystal/interactive.png" },
0
-{ "url" : "../wp-includes/images/crystal/text.png" },
0
-{ "url" : "../wp-includes/images/crystal/video.png" },
0
-{ "url" : "../wp-includes/images/crystal/spreadsheet.png" },
0
-{ "url" : "../wp-includes/images/rss.png" },
0
-{ "url" : "../wp-includes/js/thickbox/loadingAnimation.gif" },
0
-{ "url" : "../wp-includes/js/thickbox/tb-close.png" },
0
-{ "url" : "../wp-includes/js/swfupload/swfupload_f9.swf" },
0
-
0
+<?php if ( is_file(ABSPATH.'/wp-includes/js/tinymce/tiny_mce.js') ) { ?>
0
 { "url" : "../wp-includes/js/tinymce/tiny_mce_popup.js?ver=311" },
0
 { "url" : "../wp-includes/js/tinymce/utils/mctabs.js?ver=311" },
0
 { "url" : "../wp-includes/js/tinymce/utils/validate.js?ver=311" },
0
@@ -131,7 +118,7 @@ header( 'Content-Type: application/x-javascript; charset=UTF-8' );
0
 { "url" : "../wp-includes/js/tinymce/themes/advanced/js/link.js?ver=311" },
0
 { "url" : "../wp-includes/js/tinymce/themes/advanced/js/source_editor.js?ver=311" },
0
 { "url" : "../wp-includes/js/tinymce/themes/advanced/js/anchor.js?ver=311" },
0
-{ "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js?ver=311d" },
0
+{ "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js?ver=311g" },
0
 { "url" : "../wp-includes/js/tinymce/tiny_mce.js?ver=311" },
0
 { "url" : "../wp-includes/js/tinymce/themes/advanced/editor_template.js?ver=311" },
0
 { "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/editor_plugin.js?ver=311" },
0
@@ -148,7 +135,7 @@ header( 'Content-Type: application/x-javascript; charset=UTF-8' );
0
 { "url" : "../wp-includes/js/tinymce/plugins/paste/pastetext.htm?ver=311" },
0
 { "url" : "../wp-includes/js/tinymce/plugins/fullscreen/fullscreen.htm?ver=311" },
0
 { "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/template.htm?ver=311" },
0
-{ "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/editimage.html?ver=311d" },
0
+{ "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/editimage.html?ver=311g" },
0
 { "url" : "../wp-includes/js/tinymce/wp-mce-help.php?ver=311" },
0
 
0
 { "url" : "../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/ui.css?ver=311" },
0
@@ -161,7 +148,7 @@ header( 'Content-Type: application/x-javascript; charset=UTF-8' );
0
 { "url" : "../wp-includes/js/tinymce/plugins/media/css/media.css?ver=311" },
0
 { "url" : "../wp-includes/js/tinymce/plugins/paste/css/pasteword.css?ver=311" },
0
 { "url" : "../wp-includes/js/tinymce/plugins/paste/css/blank.css?ver=311" },
0
-{ "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage.css?ver=311d" },
0
+{ "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage.css?ver=311g" },
0
 { "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage-rtl.css?ver=311" },
0
 { "url" : "../wp-includes/js/tinymce/wordpress.css?ver=311" },
0
 
0
@@ -203,5 +190,20 @@ header( 'Content-Type: application/x-javascript; charset=UTF-8' );
0
 { "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/image.gif" },
0
 { "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/media.gif" },
0
 { "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/video.gif" },
0
-{ "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/audio.gif" }
0
+{ "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/audio.gif" },
0
+<?php } ?>
0
+
0
+{ "url" : "../wp-includes/images/crystal/archive.png" },
0
+{ "url" : "../wp-includes/images/crystal/audio.png" },
0
+{ "url" : "../wp-includes/images/crystal/code.png" },
0
+{ "url" : "../wp-includes/images/crystal/default.png" },
0
+{ "url" : "../wp-includes/images/crystal/document.png" },
0
+{ "url" : "../wp-includes/images/crystal/interactive.png" },
0
+{ "url" : "../wp-includes/images/crystal/text.png" },
0
+{ "url" : "../wp-includes/images/crystal/video.png" },
0
+{ "url" : "../wp-includes/images/crystal/spreadsheet.png" },
0
+{ "url" : "../wp-includes/images/rss.png" },
0
+{ "url" : "../wp-includes/js/thickbox/loadingAnimation.gif" },
0
+{ "url" : "../wp-includes/js/thickbox/tb-close.png" },
0
+{ "url" : "../wp-includes/js/swfupload/swfupload_f9.swf" }
0
 ]}
...
67
68
69
70
71
 
72
73
74
...
103
104
105
106
 
107
108
109
...
143
144
145
146
 
147
148
149
...
281
282
283
284
 
285
286
287
...
510
511
512
513
514
515
516
517
518
519
520
 
 
521
522
523
...
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
 
622
623
624
...
884
885
886
887
888
889
890
...
947
948
949
950
 
951
952
953
954
955
...
1021
1022
1023
1024
 
1025
1026
1027
...
1082
1083
1084
 
1085
1086
1087
...
1278
1279
1280
1281
 
 
 
 
 
 
 
 
 
 
1282
1283
1284
1285
1286
1287
1288
 
1289
1290
1291
...
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
 
1316
1317
1318
 
1319
1320
1321
1322
 
1323
1324
1325
...
1354
1355
1356
1357
1358
1359
1360
...
67
68
69
 
 
70
71
72
73
...
102
103
104
 
105
106
107
108
...
142
143
144
 
145
146
147
148
...
280
281
282
 
283
284
285
286
...
509
510
511
 
 
 
 
 
 
 
 
512
513
514
515
516
...
599
600
601
 
 
 
 
 
 
602
603
604
605
606
607
 
608
609
610
611
...
871
872
873
 
874
875
876
...
933
934
935
 
936
937
 
938
939
940
...
1006
1007
1008
 
1009
1010
1011
1012
...
1067
1068
1069
1070
1071
1072
1073
...
1264
1265
1266
 
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
 
1283
1284
1285
1286
...
1290
1291
1292
 
 
 
 
 
 
 
 
 
 
 
 
1293
 
 
1294
1295
 
1296
1297
1298
 
1299
1300
 
 
 
1301
1302
1303
1304
...
1333
1334
1335
 
1336
1337
1338
0
@@ -67,8 +67,7 @@ function get_image_send_to_editor($id, $alt, $title, $align, $url='', $rel = fal
0
 
0
 function image_add_caption( $html, $id, $alt, $title, $align, $url, $size ) {
0
 
0
-  // CAPTIONS_OFF is temporary. Do not use it.
0
-  if ( empty($alt) || ( defined('CAPTIONS_OFF') && true == CAPTIONS_OFF ) ) return $html;
0
+  if ( empty($alt) || apply_filters( 'disable_captions', '' ) ) return $html;
0
   $id = ( 0 < (int) $id ) ? 'attachment_' . $id : '';
0
 
0
   preg_match( '/width="([0-9]+)/', $html, $matches );
0
@@ -103,7 +102,7 @@ function media_handle_upload($file_id, $post_id, $post_data = array()) {
0
   $file = wp_handle_upload($_FILES[$file_id], $overrides);
0
 
0
   if ( isset($file['error']) )
0
-    return new wp_error( 'upload_error', $file['error'] );
0
+    return new WP_Error( 'upload_error', $file['error'] );
0
 
0
   $url = $file['url'];
0
   $type = $file['type'];
0
@@ -143,7 +142,7 @@ function media_handle_sideload($file_array, $post_id, $desc = null, $post_data =
0
   $file = wp_handle_sideload($file_array, $overrides);
0
 
0
   if ( isset($file['error']) )
0
-    return new wp_error( 'upload_error', $file['error'] );
0
+    return new WP_Error( 'upload_error', $file['error'] );
0
 
0
   $url = $file['url'];
0
   $type = $file['type'];
0
@@ -281,7 +280,7 @@ function media_upload_form_handler() {
0
   if ( isset($_POST['send']) ) {
0
     $keys = array_keys($_POST['send']);
0
     $send_id = (int) array_shift($keys);
0
-    $attachment = $_POST['attachments'][$send_id];
0
+    $attachment = stripslashes_deep( $_POST['attachments'][$send_id] );
0
     $html = $attachment['post_title'];
0
     if ( !empty($attachment['url']) ) {
0
       if ( strpos($attachment['url'], 'attachment_id') || false !== strpos($attachment['url'], get_permalink($_POST['post_id'])) )
0
@@ -510,14 +509,8 @@ function image_attachment_fields_to_edit($form_fields, $post) {
0
   if ( substr($post->post_mime_type, 0, 5) == 'image' ) {
0
     $form_fields['post_title']['required'] = true;
0
 
0
-    // CAPTIONS_OFF is temporary. Do not use it.
0
-    if ( defined('CAPTIONS_OFF') && true == CAPTIONS_OFF ) {
0
-      $form_fields['post_excerpt']['label'] = __('Alternate Text');
0
-      $form_fields['post_excerpt']['helps'][] = __('Alt text for the image, e.g. "The Mona Lisa"');
0
-    } else {
0
-      $form_fields['post_excerpt']['label'] = __('Caption');
0
-      $form_fields['post_excerpt']['helps'][] = __('Also used as alternate text for the image');
0
-    }
0
+    $form_fields['post_excerpt']['label'] = __('Caption');
0
+    $form_fields['post_excerpt']['helps'][] = __('Also used as alternate text for the image');
0
 
0
     $form_fields['post_content']['label'] = __('Description');
0
 
0
@@ -606,19 +599,13 @@ function get_attachment_fields_to_edit($post, $errors = null) {
0
   $file = wp_get_attachment_url($post->ID);
0
   $link = get_attachment_link($post->ID);
0
 
0
-  // CAPTIONS_OFF is temporary. Do not use it.
0
-  if ( defined('CAPTIONS_OFF') && true == CAPTIONS_OFF )
0
-    $alt = __('Alternate Text');
0
-  else
0
-    $alt = __('Caption');
0
-
0
   $form_fields = array(
0
     'post_title'   => array(
0
       'label'      => __('Title'),
0
       'value'      => $edit_post->post_title,
0
     ),
0
     'post_excerpt' => array(
0
-      'label'      => $alt,
0
+      'label'      => __('Caption'),
0
       'value'      => $edit_post->post_excerpt,
0
     ),
0
     'post_content' => array(
0
@@ -884,7 +871,6 @@ function media_upload_form( $errors = null ) {
0
   $post_id = intval($_REQUEST['post_id']);
0
 
0
 ?>
0
-<input type='hidden' name='post_id' value='<?php echo (int) $post_id; ?>' />
0
 <div id="media-upload-notice">
0
 <?php if (isset($errors['upload_notice']) ) { ?>
0
   <?php echo $errors['upload_notice']; ?>
0
@@ -947,9 +933,8 @@ jQuery(function($){
0
 <div id="html-upload-ui">
0
 <?php do_action('pre-html-upload-ui'); ?>
0
   <p>
0
-  <input type="file" name="async-upload" id="async-upload" /> <input type="submit" class="button" name="html-upload" value="<?php echo attribute_escape(__('Upload')); ?>" /> <a href="#" onClick="return top.tb_remove();"><?php _e('Cancel'); ?></a>
0
+  <input type="file" name="async-upload" id="async-upload" /> <input type="submit" class="button" name="html-upload" value="<?php echo attribute_escape(__('Upload')); ?>" /> <a href="#" onclick="return top.tb_remove();"><?php _e('Cancel'); ?></a>
0
   </p>
0
-  <input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" />
0
   <br class="clear" />
0
   <?php if ( is_lighttpd_before_150() ): ?>
0
   <p><?php _e('If you want to use all capabilities of the uploader, like uploading multiple files at once, please upgrade to lighttpd 1.5.'); ?></p>
0
@@ -1021,7 +1006,7 @@ var addExtImage = {
0
 
0
     if ( f.alt.value ) {
0
       alt = f.alt.value.replace(/['"<>]+/g, '');
0
-<?php if ( ! defined('CAPTIONS_OFF') || true != CAPTIONS_OFF ) { // CAPTIONS_OFF is temporary. Do not use it. ?>
0
+<?php if ( ! apply_filters( 'disable_captions', '' ) ) { ?>
0
       caption = f.alt.value.replace(/'/g, '&#39;').replace(/"/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
0
 <?php } ?>
0
     }
0
@@ -1082,6 +1067,7 @@ var addExtImage = {
0
 </div>
0
 </div>
0
 <input type="submit" class="button savebutton" name="save" value="<?php echo attribute_escape( __( 'Save all changes' ) ); ?>" />
0
+</form>
0
 <?php
0
   endif;
0
 }
0
@@ -1278,14 +1264,23 @@ jQuery(function($){
0
 }
0
 
0
 function type_form_image() {
0
-  $form = '
0
+
0
+  if ( apply_filters( 'disable_captions', '' ) ) {
0
+    $alt = __('Alternate Text');
0
+    $alt_help = __('Alt text for the image, e.g. "The Mona Lisa"');
0
+  } else {
0
+    $alt = __('Image Caption');
0
+    $alt_help = __('Also used as alternate text for the image');
0
+  }
0
+
0
+  return '
0
   <table class="describe"><tbody>
0
     <tr>
0
       <th valign="top" scope="row" class="label" style="width:120px;">
0
         <span class="alignleft"><label for="src">' . __('Source') . '</label></span>
0
         <span class="alignright"><img id="status_img" src="images/required.gif" title="required" alt="required" /></span>
0
       </th>
0
-      <td class="field"><input id="src" name="src" value="" type="text" aria-required="true" onblur="addExtImage.getImageData()"></td>
0
+      <td class="field"><input id="src" name="src" value="" type="text" aria-required="true" onblur="addExtImage.getImageData()" /></td>
0
     </tr>
0
 
0
     <tr>
0
@@ -1295,31 +1290,15 @@ function type_form_image() {
0
       </th>
0
       <td class="field"><p><input id="title" name="title" value="" type="text" aria-required="true" /></p></td>
0
     </tr>
0
-';
0
-  // CAPTIONS_OFF is temporary. Do not use it.
0
-  if ( defined('CAPTIONS_OFF') && true == CAPTIONS_OFF ) {
0
-    $form .= '
0
-    <tr>
0
-      <th valign="top" scope="row" class="label">
0
-        <span class="alignleft"><label for="alt">' . __('Alternate Text') . '</label></span>
0
-      </th>
0
-      <td class="field"><input id="alt" name="alt" value="" type="text" aria-required="true" />
0
-      <p class="help">' . __('Alt text for the image, e.g. "The Mona Lisa"') . '</p></td>
0
-    </tr>
0
-';
0
 
0
-  } else {
0
-    $form .= '
0
     <tr>
0
       <th valign="top" scope="row" class="label">
0
-        <span class="alignleft"><label for="alt">' . __('Image Caption') . '</label></span>
0
+        <span class="alignleft"><label for="alt">' . $alt . '</label></span>
0
       </th>
0
       <td class="field"><input id="alt" name="alt" value="" type="text" aria-required="true" />
0
-      <p class="help">' . __('Also used as alternate text for the image') . '</p></td>
0
+      <p class="help">' . $alt_help . '</p></td>
0
     </tr>
0
-';
0
-  }
0
-    $form .= '
0
+
0
     <tr class="align">
0
       <th valign="top" scope="row" class="label"><p><label for="align">' . __('Alignment') . '</label></p></th>
0
       <td class="field">
0
@@ -1354,7 +1333,6 @@ function type_form_image() {
0
   </tbody></table>
0
 ';
0
 
0
-  return $form;
0
 }
0
 
0
 function type_form_audio() {
...
34
35
36
37
 
38
39
40
...
239
240
241
 
 
 
242
243
244
245
246
 
247
248
249
 
250
251
252
...
34
35
36
 
37
38
39
40
...
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
0
@@ -34,7 +34,7 @@ function get_plugin_data( $plugin_file ) {
0
 function get_plugins($plugin_folder = '') {
0
   
0
   if ( ! $cache_plugins = wp_cache_get('plugins', 'plugins') )
0
-    $cached_plugins = array();
0
+    $cache_plugins = array();
0
   
0
   if ( isset($cache_plugins[ $plugin_folder ]) )
0
     return $cache_plugins[ $plugin_folder ];
0
@@ -239,14 +239,19 @@ function validate_active_plugins() {
0
     return;
0
   }
0
 
0
+  //Invalid is any plugin that is deactivated due to error.
0
+  $invalid = array(); 
0
+
0
   // If a plugin file does not exist, remove it from the list of active
0
   // plugins.
0
   foreach ( $check_plugins as $check_plugin ) {
0
     $result = validate_plugin($check_plugin);
0
     if ( is_wp_error( $result ) ) {
0
+      $invalid[$check_plugin] = $result;
0
       deactivate_plugins( $check_plugin, true);
0
     }
0
   }
0
+  return $invalid;
0
 }
0
 
0
 function validate_plugin($plugin) {
...
603
604
605
606
607
608
609
...
603
604
605
 
606
607
608
0
@@ -603,7 +603,6 @@ function get_sample_permalink($id, $title=null, $name = null) {
0
   $post->post_status = $original_status;
0
   $post->post_date = $original_date;
0
   $post->post_name = $original_name;
0
-  $post->post_title = $original_title;
0
   return $permalink;
0
 }
0
 
...
15
16
17
18
 
19
20
21
22
 
 
23
24
25
...
15
16
17
 
18
19
20
21
 
22
23
24
25
26
0
@@ -15,11 +15,12 @@ if ( $wpdb->supports_collation() ) {
0
 
0
 $wp_queries="CREATE TABLE $wpdb->terms (
0
  term_id bigint(20) NOT NULL auto_increment,
0
- name varchar(55) NOT NULL default '',
0
+ name varchar(200) NOT NULL default '',
0
  slug varchar(200) NOT NULL default '',
0
  term_group bigint(10) NOT NULL default 0,
0
  PRIMARY KEY  (term_id),
0
- UNIQUE KEY slug (slug)
0
+ UNIQUE KEY slug (slug),
0
+ KEY name (name)
0
 ) $charset_collate;
0
 CREATE TABLE $wpdb->term_taxonomy (
0
  term_taxonomy_id bigint(20) NOT NULL auto_increment,
...
133
134
135
136
 
137
138
139
...
133
134
135
 
136
137
138
139
0
@@ -133,7 +133,7 @@ function get_tags_to_edit( $post_id ) {
0
 
0
   foreach ( $tags as $tag )
0
     $tag_names[] = $tag->name;
0
-  $tags_to_edit = join( ', ', $tag_names );
0
+  $tags_to_edit = join( ',', $tag_names );
0
   $tags_to_edit = attribute_escape( $tags_to_edit );
0
   $tags_to_edit = apply_filters( 'tags_to_edit', $tags_to_edit );
0
   return $tags_to_edit;
...
670
671
672
673
 
674
675
676
...
670
671
672
 
673
674
675
676
0
@@ -670,7 +670,7 @@ function user_row( $user_object, $style = '', $role = '' ) {
0
   } else {
0
     $edit = $user_object->user_login;
0
   }
0
-  $role_name = translate_with_context($wp_roles->role_names[$role]);
0
+  $role_name = $wp_roles->role_names[$role] ? translate_with_context($wp_roles->role_names[$role]) : __('None');
0
   $r = "<tr id='user-$user_object->ID'$style>
0
     <th scope='row' class='check-column'><input type='checkbox' name='users[]' id='user_{$user_object->ID}' class='$role' value='{$user_object->ID}' /></th>
0
     <td><strong>$edit</strong></td>
...
543
544
545
 
 
 
 
546
547
548
...
543
544
545
546
547
548
549
550
551
552
0
@@ -543,6 +543,10 @@ function upgrade_230() {
0
   $categories = $wpdb->get_results("SELECT * FROM $wpdb->categories ORDER BY cat_ID");
0
   foreach ($categories as $category) {
0
     $term_id = (int) $category->cat_ID;
0
+    $name = $category->cat_name;
0
+    $description = $category->category_description;
0
+    $slug = $category->category_nicename;
0
+    $parent = $category->category_parent;
0
     $term_group = 0;
0
 
0
     // Associate terms with the same slug in a term group and make slugs unique.
...
259
260
261
262
 
263
264
265
...
392
393
394
395
396
 
...
259
260
261
 
262
263
264
265
...
392
393
394
 
395
396
0
@@ -259,7 +259,7 @@ function wp_delete_user($id, $reassign = 'novalue') {
0
   } else {
0
     $reassign = (int) $reassign;
0
     $wpdb->query( $wpdb->prepare("UPDATE $wpdb->posts SET post_author = %d WHERE post_author = %d", $reassign, $id) );
0
-    $wpdb->query( $wpdb->prepare("UPDATE $wpdb->links SET link_owner = %d WHERE link_owner = %d}", $reassign, $id) );
0
+    $wpdb->query( $wpdb->prepare("UPDATE $wpdb->links SET link_owner = %d WHERE link_owner = %d", $reassign, $id) );
0
   }
0
 
0
   // FINALLY, delete user
0
@@ -392,4 +392,4 @@ class WP_User_Search {
0
 }
0
 endif;
0
 
0
-?>
0
\ No newline at end of file
0
+?>
...
9
10
11
 
12
13
14
...
26
27
28
 
29
30
31
...
33
34
35
 
36
37
38
...
51
52
53
54
 
55
56
57
...
9
10
11
12
13
14
15
...
27
28
29
30
31
32
33
...
35
36
37
38
39
40
41
...
54
55
56
 
57
58
59
60
0
@@ -9,6 +9,7 @@ $debug = 0;
0
  ** Returns:  true if already exists or on successful completion
0
  **           false on error
0
  */
0
+if ( ! function_exists('maybe_create_table') ) :
0
 function maybe_create_table($table_name, $create_ddl) {
0
   global $wpdb;
0
   foreach ($wpdb->get_col("SHOW TABLES",0) as $table ) {
0
@@ -26,6 +27,7 @@ function maybe_create_table($table_name, $create_ddl) {
0
   }
0
   return false;
0
 }
0
+endif;
0
 
0
 /**
0
  ** maybe_add_column()
0
@@ -33,6 +35,7 @@ function maybe_create_table($table_name, $create_ddl) {
0
  ** Returns:  true if already exists or on successful completion
0
  **           false on error
0
  */
0
+if ( ! function_exists('maybe_add_column') ) :
0
 function maybe_add_column($table_name, $column_name, $create_ddl) {
0
   global $wpdb, $debug;
0
   foreach ($wpdb->get_col("DESC $table_name",0) as $column ) {
0
@@ -51,7 +54,7 @@ function maybe_add_column($table_name, $column_name, $create_ddl) {
0
   }
0
   return false;
0
 }
0
-
0
+endif;
0
 
0
 /**
0
  ** maybe_drop_column()
...
1
2
 
3
4
5
...
1
 
2
3
4
5
0
@@ -1,5 +1,5 @@
0
 function checkAll(jQ) { // use attr( checked, fn )
0
-  jQuery(jQ).find( 'tbody :checkbox' ).attr( 'checked', function() {
0
+  jQuery(jQ).find( 'tbody:visible :checkbox' ).attr( 'checked', function() {
0
     return jQuery(this).attr( 'checked' ) ? '' : 'checked';
0
   } );
0
 }
...
25
26
27
28
 
29
30
31
 
 
32
33
34
 
 
35
36
 
37
38
39
...
61
62
63
64
 
65
66
 
67
68
69
70
 
71
72
 
73
74
75
 
 
 
 
 
 
 
 
 
 
 
 
76
77
78
79
80
81
82
83
 
...
25
26
27
 
28
29
 
 
30
31
32
 
 
33
34
35
 
36
37
38
39
...
61
62
63
 
64
65
 
66
67
68
69
 
70
71
 
72
73
74
 
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
 
 
 
92
0
@@ -25,15 +25,15 @@ wpGears = {
0
   },
0
 
0
   storeName : function() {
0
-      var name = window.location.protocol + window.location.host;
0
+    var name = window.location.protocol + window.location.host;
0
 
0
-      name = name.replace(/[\/\\:*"?<>|;,]+/g, '_'); // gears beta doesn't allow certain chars in the store name
0
-    name = 'wp_' + name.substring(0, 60); // max length of name is 64 chars
0
+    name = name.replace(/[\/\\:*"?<>|;,]+/g, '_'); // gears beta doesn't allow certain chars in the store name
0
+    name = 'wp_' + name.substring(0, 60); // max length of name is 64 chars
0
 
0
-      return name;
0
-    },
0
+    return name;
0
+  },
0
 
0
-    message : function(show) {
0
+  message : function(show) {
0
     var t = this, msg1 = t.I('gears-msg1'), msg2 = t.I('gears-msg2'), msg3 = t.I('gears-msg3'), num = t.I('gears-upd-number'), wait = t.I('gears-wait');
0
 
0
     if ( ! msg1 ) return;
0
@@ -61,23 +61,32 @@ wpGears = {
0
   I : function(id) {
0
     return document.getElementById(id);
0
   }
0
-}
0
+};
0
 
0
-function gearsInit() {
0
+(function() {
0
   if ( 'undefined' != typeof google && google.gears ) return;
0
 
0
   var gf = false;
0
-  if ( 'undefined' != typeof GearsFactory ) { // Firefox
0
+  if ( 'undefined' != typeof GearsFactory ) {
0
     gf = new GearsFactory();
0
-  } else { // IE
0
+  } else {
0
     try {
0
       gf = new ActiveXObject('Gears.Factory');
0
-    } catch (e) {}
0
+      if ( factory.getBuildInfo().indexOf('ie_mobile') != -1 )
0
+        gf.privateSetGlobalObject(this);
0
+    } catch (e) {
0
+      if ( ( 'undefined' != typeof navigator.mimeTypes ) && navigator.mimeTypes['application/x-googlegears'] ) {
0
+        gf = document.createElement("object");
0
+        gf.style.display = "none";
0
+        gf.width = 0;
0
+        gf.height = 0;
0
+        gf.type = "application/x-googlegears";
0
+        document.documentElement.appendChild(gf);
0
+      }
0
+    }
0
   }
0
 
0
   if ( ! gf ) return;
0
   if ( 'undefined' == typeof google ) google = {};
0
   if ( ! google.gears ) google.gears = { factory : gf };
0
-}
0
-
0
-gearsInit();
0
+})();
...
28
29
30
 
31
32
33
 
34
35
36
 
37
38
39
...
73
74
75
76
 
 
 
77
78
79
...
28
29
30
31
32
33
 
34
35
36
 
37
38
39
40
...
74
75
76
 
77
78
79
80
81
82
0
@@ -28,12 +28,13 @@ case 'delete':
0
     wp_die(__('Cheatin&#8217; uh?'));
0
 
0
   $cat_name = get_term_field('name', $cat_ID, 'link_category');
0
+  $default_cat_id = get_option('default_link_category');
0
 
0
   // Don't delete the default cats.
0
-    if ( $cat_ID == get_option('default_link_category') )
0
+    if ( $cat_ID == $default_cat_id )
0
     wp_die(sprintf(__("Can&#8217;t delete the <strong>%s</strong> category: this is the default one"), $cat_name));
0
 
0
-  wp_delete_term($cat_ID, 'link_category');
0
+  wp_delete_term($cat_ID, 'link_category', array('default' => $default_cat_id));
0
 
0
   $location = 'edit-link-categories.php';
0
   if ( $referer = wp_get_original_referer() ) {
0
@@ -73,7 +74,9 @@ case 'editedcat':
0
       $location = $referer;
0
   }
0
 
0
-  if ( wp_update_term($cat_ID, 'link_category', $_POST) )
0
+  $update =  wp_update_term($cat_ID, 'link_category', $_POST);
0
+
0
+  if ( $update && !is_wp_error($update) )
0
     $location = add_query_arg('message', 3, $location);
0
   else
0
     $location = add_query_arg('message', 5, $location);
...
163
164
165
166
 
167
168
 
169
170
171
...
163
164
165
 
166
167
 
168
169
170
171
0
@@ -163,9 +163,9 @@ $structures = array(
0
 
0
 <h3><?php _e('Optional'); ?></h3>
0
 <?php if ($is_apache) : ?>
0
-  <p><?php _e('If you like, you may enter custom structures for your category and tag <abbr title="Universal Resource Locator">URL</abbr>s here. For example, using <code>/topics/</code> as your category base would make your category links like <code>http://example.org/topics/uncategorized/</code>. If you leave these blank the defaults will be used.') ?></p>
0
+  <p><?php _e('If you like, you may enter custom structures for your category and tag <abbr title="Universal Resource Locator">URL</abbr>s here. For example, using <code>topics</code> as your category base would make your category links like <code>http://example.org/topics/uncategorized/</code>. If you leave these blank the defaults will be used.') ?></p>
0
 <?php else : ?>
0
-  <p><?php _e('If you like, you may enter custom structures for your category and tag <abbr title="Universal Resource Locator">URL</abbr>s here. For example, using <code>/topics/</code> as your category base would make your category links like <code>http://example.org/index.php/topics/uncategorized/</code>. If you leave these blank the defaults will be used.') ?></p>
0
+  <p><?php _e('If you like, you may enter custom structures for your category and tag <abbr title="Universal Resource Locator">URL</abbr>s here. For example, using <code>topics</code> as your category base would make your category links like <code>http://example.org/index.php/topics/uncategorized/</code>. If you leave these blank the defaults will be used.') ?></p>
0
 <?php endif; ?>
0
 
0
 <table class="form-table">
...
34
35
36
37
38
39
 
40
41
42
...
34
35
36
 
 
 
37
38
39
40
0
@@ -34,9 +34,7 @@ function redirect_page($page_ID) {
0
   } elseif (!empty($referredby) && $referredby != $referer) {
0
     $location = $_POST['referredby'];
0
     $location = remove_query_arg('_wp_original_http_referer', $location);
0
-    if ( $_POST['referredby'] == 'redo' )
0
-      $location = get_permalink( $page_ID );
0
-    elseif ( false !== strpos($location, 'edit-pages.php') )
0
+    if ( false !== strpos($location, 'edit-pages.php') )
0
       $location = add_query_arg('posted', $page_ID, $location);
0
     elseif ( false !== strpos($location, 'wp-admin') )
0
       $location = "page-new.php?posted=$page_ID";
...
165
166
167
168
169
 
 
 
 
170
171
172
...
165
166
167
 
 
168
169
170
171
172
173
174
0
@@ -165,8 +165,10 @@ wp_enqueue_script('admin-forms');
0
 $title = __('Manage Plugins');
0
 require_once('admin-header.php');
0
 
0
-validate_active_plugins();
0
-
0
+$invalid = validate_active_plugins();
0
+if( !empty($invalid) )
0
+  foreach($invalid as $plugin_file => $error)
0
+    echo '<div id="message" class="error"><p>' . sprintf(__('The plugin <code>%s</code> has been <strong>deactivated</strong> due to an error: %s'), wp_specialchars($plugin_file), $error->get_error_message()) . '</p></div>';
0
 ?>
0
 
0
 <?php if ( isset($_GET['error']) ) : ?>
...
36
37
38
39
40
41
 
42
43
44
...
36
37
38
 
 
 
39
40
41
42
0
@@ -36,9 +36,7 @@ function redirect_post($post_ID = '') {
0
   } elseif (!empty($referredby) && $referredby != $referer) {
0
     $location = $_POST['referredby'];
0
     $location = remove_query_arg('_wp_original_http_referer', $location);
0
-    if ( $_POST['referredby'] == 'redo' )
0
-      $location = get_permalink( $post_ID );
0
-    elseif ( false !== strpos($location, 'edit.php') )
0
+    if ( false !== strpos($location, 'edit.php') )
0
       $location = add_query_arg('posted', $post_ID, $location);    
0
     elseif ( false !== strpos($location, 'wp-admin') )
0
       $location = "post-new.php?posted=$post_ID";
...
34
35
36
37
38
39
 
40
41
 
42
 
43
 
 
44
45
46
...
183
184
185
186
 
187
188
 
189
190
191
192
 
193
194
 
 
195
196
197
198
 
 
199
200
201
...
246
247
248
249
250
 
 
251
252
253
254
 
255
256
257
...
266
267
268
 
269
270
271
...
275
276
277
278
279
280
281
282
283
284
285
286
287
...
322
323
324
 
325
326
327
...
445
446
447
448
449
450
451
...
472
473
474
475
 
476
477
478
...
505
506
507
508
 
509
510
511
...
34
35
36
 
 
 
37
38
 
39
40
41
42
43
44
45
46
47
...
184
185
186
 
187
188
 
189
190
191
192
193
194
195
 
196
197
198
199
 
 
200
201
202
203
204
...
249
250
251
 
 
252
253
254
255
256
 
257
258
259
260
...
269
270
271
272
273
274
275
...
279
280
281
 
282
 
 
 
 
 
283
284
285
...
320
321
322
323
324
325
326
...
444
445
446
 
447
448
449
...
470
471
472
 
473
474
475
476
...
503
504
505
 
506
507
508
509
0
@@ -34,13 +34,14 @@ function press_it() {
0
       $content = $_REQUEST['content'];
0
 
0
       foreach( (array) $_REQUEST['photo_src'] as $key => $image) {
0
-        // escape quote for matching
0
-        $quoted = preg_quote2($image);
0
-
0
+        
0
         // see if files exist in content - we don't want to upload non-used selected files.
0
-        if( strpos($_REQUEST['content'], $quoted) !== false ) {
0
+        if( strpos($_REQUEST['content'], $image) !== false ) {
0
           $upload = media_sideload_image($image, $post_ID, $_REQUEST['photo_description'][$key]);
0
+           
0
           // Replace the POSTED content <img> with correct uploaded ones.
0
+          // escape quote for matching
0
+          $quoted = preg_quote2($image);
0
           if( !is_wp_error($upload) ) $content = preg_replace('/<img ([^>]*)src=(\"|\')'.$quoted.'(\2)([^>\/]*)\/*>/is', $upload, $content);
0
         }
0
       }
0
@@ -183,19 +184,21 @@ if($_REQUEST['ajax'] == 'photo_images') {
0
 
0
     $host = parse_url($uri);
0
 
0
-    $pattern = '/<img ([^>]*)src=(\"|\')([^<>]+?\.(png|jpeg|jpg|jpe|gif)[^<>\'\"]*)(\2)([^>\/]*)\/*>/is';
0
+    $pattern = '/<img ([^>]*)src=(\"|\')([^<>]+?\.(png|jpeg|jpg|jpe|gif))[^<>\'\"]*(\2)([^>\/]*)\/*>/is';
0
     preg_match_all($pattern, $content, $matches);
0
-
0
+    
0
     if ( empty($matches[1]) ) return '';
0
 
0
     $sources = array();
0
     foreach ($matches[3] as $src) {
0
+      // if no http in url
0
       if(strpos($src, 'http') === false)
0
-        if(strpos($src, '../') === false && strpos($src, './') === false)
0
+        // if it doesn't have a relative uri
0
+        if( strpos($src, '../') === false && strpos($src, './') === false && strpos($src, '/') === true)
0
           $src = 'http://'.str_replace('//','/', $host['host'].'/'.$src);
0
         else
0
-          $src = 'http://'.str_replace('//','/', $host['host'].'/'.$host['path'].'/'.$src);
0
-
0
+          $src = 'http://'.str_replace('//','/', $host['host'].'/'.dirname($host['path']).'/'.$src);
0
+      
0
       $sources[] = clean_url($src);
0
     }
0
     return "'" . implode("','", $sources) . "'";
0
@@ -246,12 +249,12 @@ if($_REQUEST['ajax'] == 'photo_js') { ?>
0
   }
0
 
0
   function pick(img, desc) {
0
-    if (img) { 
0
-      length = jQuery('.photolist input').length;
0
+    if (img) {
0
+      if('object' == typeof jQuery('.photolist input') && jQuery('.photolist input').length != 0) length = jQuery('.photolist input').length;
0
       if(length == 0) length = 1;
0
       jQuery('.photolist').append('<input name="photo_src[' + length + ']" value="' + img +'" type="hidden"/>');
0
       jQuery('.photolist').append('<input name="photo_description[' + length + ']" value="' + desc +'" type="hidden"/>');
0
-      append_editor("\n\n" + '<p><img src="' + img +'" alt="' + desc + '" /></p>');
0
+      append_editor("\n\n" + '<p><img src="' + img +'" alt="' + desc + '" class="aligncenter"/></p>');
0
     }
0
     tinyMCE.activeEditor.resizeToContent();
0
     return false;
0
@@ -266,6 +269,7 @@ if($_REQUEST['ajax'] == 'photo_js') { ?>
0
   }
0
 
0
   jQuery(document).ready(function() {
0
+    jQuery('#extra_fields').html('<div class="photolist"></div><small id="photo_directions"><?php _e("Click images to select:") ?> <span><a href="#" id="photo_add_url" class="thickbox"><?php _e("Add from URL") ?> +</a></span></small><div class="titlewrap"><div id="img_container"></div></div>');
0
     jQuery('#img_container').html(strtoappend);
0
     jQuery('#photo_add_url').attr('href', '?ajax=thickbox_url&height=200&width=500');
0
     tb_init('a.thickbox, area.thickbox, input.thickbox');
0
@@ -275,13 +279,7 @@ if($_REQUEST['ajax'] == 'photo_js') { ?>
0
 }
0
 
0
 if($_REQUEST['ajax'] == 'photo') { ?>
0
-    <div class="photolist"></div>
0
 
0
-    <small id="photo_directions"><?php _e('Click images to select:') ?> <span><a href="#" id="photo_add_url" class="thickbox"><?php _e('Add from URL') ?> +</a></span></small>
0
-
0
-    <div class="titlewrap">
0
-      <div id="img_container"></div>
0
-    </div>
0
 <?php die;
0
 }
0
 ?>
0
@@ -322,6 +320,7 @@ if($_REQUEST['ajax'] == 'photo') { ?>
0
         editor_selector: "mceEditor",
0
         language : "<?php echo $language; ?>",
0
         width: "100%",
0
+        height: "300",
0
         theme : "advanced",
0
         theme_advanced_buttons1 : "bold,italic,underline,blockquote,separator,strikethrough,bullist,numlist,undo,redo,link,unlink",
0
         theme_advanced_buttons2 : "",
0
@@ -445,7 +444,6 @@ if($_REQUEST['ajax'] == 'photo') { ?>
0
         <?php } ?>
0
         jQuery('#extra_fields').show();
0
         jQuery('#extra_fields').before('<h2 id="waiting"><img src="images/loading.gif" alt="" /><?php echo js_escape( __( 'Loading...' ) ); ?></h2>');
0
-        jQuery('#extra_fields').load('<?php echo clean_url($_SERVER['PHP_SELF']).'/?ajax=photo&u='.attribute_escape($url); ?>');
0
         jQuery.ajax({
0
           type: "GET",
0
           cache : false,
0
@@ -472,7 +470,7 @@ if($_REQUEST['ajax'] == 'photo') { ?>
0
       show('video');
0
     <?php } elseif ( preg_match("/vimeo\.com\/[0-9]+/i", $url) ) { ?>
0
       show('video');
0
-      <?php  } elseif ( preg_match("/flickr\.com/i", $url) ) { ?>
0
+    <?php  } elseif ( preg_match("/flickr\.com/i", $url) ) { ?>
0
       show('photo');
0
     <?php } ?>
0
   });
0
@@ -505,7 +503,7 @@ if($_REQUEST['ajax'] == 'photo') { ?>
0
     <div class="editor_area">
0
       <h2 id="content_type"><label for="content"><?php _e('Post') ?></label></h2>
0
       <div class="editor-container">
0
-        <textarea name="content" id="content" style="width:100%;" class="mceEditor"><?php if ($selection) { echo wp_richedit_pre($selection); } ?><a href="<?php echo $url ?>"><?php echo $title; ?></a>.</textarea>
0
+        <textarea name="content" id="content" style="width:100%;" class="mceEditor" rows="15"><?php if ($selection) { echo wp_richedit_pre($selection); } ?><a href="<?php echo $url ?>"><?php echo $title; ?></a>.</textarea>
0
       </div>
0
     </div>
0
   </div>
...
134
135
136
137
138
139
140
141
142
...
134
135
136
 
 
 
137
138
139
0
@@ -134,9 +134,6 @@ if ( 'page' == $post->post_type ) {
0
   $title = __( 'Post Revisions' );
0
 }
0
 
0
-// Converts post_author ID# into name
0
-add_filter( '_wp_post_revision_field_post_author', 'get_author_name' );
0
-
0
 require_once( 'admin-header.php' );
0
 
0
 ?>
...
1
2
3
4
 
 
5
6
7
8
 
 
9
10
11
12
 
 
 
 
13
14
15
16
17
18
 
 
19
20
21
22
23
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
26
27
28
29
30
 
 
 
 
 
 
 
 
 
31
32
33
34
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
36
 
 
 
 
 
 
 
 
 
 
 
 
37
38
39
40
 
 
 
 
41
42
43
44
 
 
 
 
45
46
47
48
49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
51
52
53
 
54
55
56
57
 
 
58
59
60
61
62
63
64
65
 
 
 
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
101
102
103
104
 
105
106
107
108
109
110
111
 
 
 
 
 
 
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
 
 
138
139
140
141
142
 
 
 
 
143
144
145
146
147
 
 
 
 
148
149
 
 
150
151
152
153
154
155
156
 
 
157
158
159
160
161
162
163
 
 
 
 
164
165
166
167
168
169
170
171
 
 
 
172
173
174
175
176
 
177
178
 
179
180
181
182
 
183
184
 
185
186
187
188
189
190
191
 
 
 
 
 
 
 
 
192
193
194
195
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
196
197
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
198
199
 
 
200
201
202
203
 
204
205
206
207
208
209
210
211
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
212
213
214
215
216
 
 
 
217
218
219
220
221
222
223
 
 
 
 
224
225
226
227
 
 
 
 
 
 
 
 
 
228
 
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
 
 
248
249
250
251
 
 
 
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
 
 
283
284
285
286
287
 
 
288
289
290
291
292
 
 
 
 
293
294
295
296
297
 
 
 
298
299
300
301
302
 
 
 
 
303
304
 
305
306
 
307
308
309
 
 
 
 
310
311
312
313
 
 
 
 
 
 
 
 
 
 
 
 
 
314
315
316
317
318
319
 
 
 
 
320
321
322
323
324
325
...
 
 
 
 
1
2
3
 
 
 
4
5
6
 
 
 
7
8
9
10
11
 
 
 
 
 
12
13
14
 
 
 
 
 
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
 
 
 
 
 
38
39
40
41
42
43
44
45
46
47
 
 
 
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
 
68
69
70
71
72
73
74
75
76
77
78
79
80
 
 
 
81
82
83
84
85
 
 
 
86
87
88
89
90
 
 
 
 
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
 
 
108
109
 
 
 
110
111
112
 
113
 
 
 
 
 
114
115
116
117
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
 
 
 
 
133
134
 
 
135
 
 
 
136
137
138
139
140
141
142
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
 
 
 
 
 
 
144
145
146
 
 
 
 
147
148
149
150
151
 
 
 
 
152
153
154
155
156
 
157
158
159
 
 
 
 
 
 
160
161
162
 
 
 
 
 
 
163
164
165
166
167
 
 
 
 
 
 
 
168
169
170
171
 
 
 
 
172
173
 
174
175
 
 
 
176
177
 
178
179
 
 
 
 
 
 
180
181
182
183
184
185
186
187
188
 
 
 
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
 
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
 
264
265
266
 
 
 
267
268
 
 
 
269
 
 
 
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
 
 
 
 
288
289
290
291
 
 
 
 
 
 
292
293
294
295
296
 
 
 
297
298
299
300
301
302
303
304
305
306
307
308
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
309
310
311
 
 
 
312
313
314
315
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
316
317
318
 
 
 
 
319
320
321
 
 
 
 
322
323
324
325
326
 
 
 
 
327
328
329
330
 
 
 
 
331
332
333
334
335
 
336
337
 
338
339
 
 
340
341
342
343
344
 
 
 
345
346
347
348
349
350
351
352
353
354
355
356
357
358
 
 
 
 
 
359
360
361
362
363
 
 
 
 
364
0
@@ -1,324 +1,363 @@
0
-html,#edit-slug-box,#trackback,#category_nicename,#slug,#dbuser,#dbpass,#dbname,#dbhost,#dbprefix,#dccharset,input[name=gmpath],input[name=archivespath],input[name=lastentry],input[name=email],input[name=url],input[name=aim],input[name=yim],input[name=jabber],#newcontent,#email,#newcomment_author_url,#pass1,#pass2,#siteurl,#home,#admin_email,#date_format,#time_format,#mailserver_url,#mailserver_login,#mailserver_pass,#ping_sites,#blog_charset,#moderation_keys,#blacklist_keys,#permalink_structure,#category_base,#tag_base,#upload_path,#upload_url_path,#insertonly[src],#insertonly[href],#mailserver_port,#thumbnail_size_w,#thumbnail_size_h,#medium_size_w,#medium_size_h,#posts_per_page,#posts_per_rss,#comment_max_links,#insertonly[src],#link_url,#link_image,#rss_uri,#user_login,#key
0
-{
0
-  direction:ltr;
0
-  text-align:left
0
+a:link, a:visited {
0
+  text-decoration:none;
0
 }
0
-
0
-body, td, .submit input, .button, .button-secondary, .button-highlighted, #your-profile legend, .quicktags, .search, #wpcontent select, #wphead #viewsite a, #wphead h1 {
0
-  font-family: sans-serif !important;
0
+a:hover {
0
+  text-decoration:underline;
0
 }
0
-
0
-.code, #quicktags #ed_code {
0
-  font-family: monospace !important;
0
+.plugins .togl {
0
+  border-right-width: 0;
0
+  border-left-width: 1px;
0
+  border-left-style: solid;
0
 }
0
-
0
-#wpwrap,#footer,#TB_title,.media-upload-form,#media-upload-header
0
-{
0
-  direction:rtl!important;
0
-  text-align:right!important
0
+form#upload th {
0
+  text-align:left;
0
 }
0
-
0
-#user_info
0
-{
0
-  left:15px;
0
-  right:auto
0
+td.available-theme {
0
+  text-align:right;
0
+}
0
+#current-theme img {
0
+  float: right;
0
+  margin-right:0;
0
+  margin-left: 1em;
0
+}
0
+.quicktags, .search {
0
+  font-family: Tahoma;
0
+}
0
+/* 201 - 403
0
+=================================== */
0
+.side-info ul {
0
+  padding-left:0;
0
+  padding-right:18px;
0
+}
0
+.submit input, .button, .button-secondary, .button-highlighted {
0
+  font-family: Tahoma;
0
+}
0
+#wpcontent select  {
0
+  font-family: Tahoma;
0
 }
0
-
0
-#wphead h1
0
-{
0
-  margin:0 0 0 15%;
0
-  padding:11px 15px 16px 170px
0
+/* #postdiv, #titlediv, #guiddiv, #poststuff .stuffbox {
0
+  margin:0 0 0 8px;
0
+} */
0
+#quicktags #ed_code {
0
+  font-family: Tahoma;
0
+}
0
+#searchform fieldset {
0
+  float:right;
0
+  margin: 0 0 1em 1.5ex;
0
 }
0
-
0
-#wphead #viewsite
0
-{
0
+#searchform fieldset legend {
0
+  padding: 0 1px .2em 0;
0
+}
0
+#searchform #post-query-submit {
0
+  float:right;
0
+}
0
+/* 404 - 804
0
+=================================== */
0
+#template div {
0
+  margin-right:0;
0
+  margin-left: 190px;
0
+}
0
+* html #template div {
0
+  margin-left: 0;
0
+}
0
+#your-profile legend {
0
+  font-family:arial;
0
+}
0
+#ajax-response.alignleft {
0
   margin-left:0;
0
-  margin-right:10px
0
+  margin-right: 2em;
0
+}
0
+.page-numbers {
0
+  margin-right:0;
0
+  margin-left:3px;
0
+}
0
+.comment-column {
0
+  margin-left:0;
0
+  margin-right: 5px;
0
+}
0
+.tablenav a.button-secondary {
0
+  margin: 1px 0 0 8px;
0
 }
0
-
0
-#sidemenu
0
-{
0
+#update-nag, .plugin-update {
0
+  clear:both;
0
+}
0
+/* .tablenav .tablenav-pages {
0
   float:left;
0
-  margin:-30px 315px 0 15px;
0
-  padding-left:0;
0
-  padding-right:10px
0
+} */
0
+#user_info {
0
+  right:auto;
0
+  left:15px;
0
 }
0
-
0
-#dashmenu
0
-{
0
-  font-size:11px;
0
+#wphead #viewsite {
0
+  margin-left:0;
0
+  margin-right:10px;
0
+}
0
+#wphead #viewsite a {
0
+  font-family: Tahoma;
0
+}
0
+#wphead h1 {
0
+  font-family:arial;
0
+  margin-right:0;
0
+  margin-left:15%;
0
+  padding: 11px 12px 16px 170px;
0
+}
0
+#dashmenu {
0
+  right:0;
0
   left:auto;
0
   padding-left:0;
0
-  padding-right:9px;
0
-  right:0
0
+  padding-right: 9px;
0
 }
0
-
0
-#dashmenu a
0
-{
0
+#dashmenu a {
0
+  margin-right:0;
0
   margin-left:8px;
0
-  margin-right:8px;
0
 }
0
-
0
-#adminmenu
0
-{
0
-  height:32px;
0
-  padding:5px 8px 0 0
0
+#adminmenu {
0
+  padding-left:0;
0
+  padding-right:11px;
0
 }
0
-
0
-#adminmenu li a
0
-{
0
-  display:block;
0
-  float:right;
0
-  font:700 16px/100% sans-serif;
0
-  margin:0 0 0 10px;
0
-  padding:5px 7px 9px
0
-}
0
-
0
-#adminmenu li a.current
0
-{
0
-  font-weight:700
0
-}
0
-
0
-#adminmenu li a #awaiting-mod
0
-{
0
-  background:url(images/comment-stalk-rtl.gif) -309px bottom !important;
0
-  font-family: sans-serif !important;
0
-  margin-left:-45px;
0
-  margin-right:.2em;
0
-  margin-top:-5px
0
-}
0
-
0
-#adminmenu li a:hover #awaiting-mod
0
-{
0
-  background-position: -229px bottom !important;
0
-}
0
-
0
-#adminmenu li a #awaiting-mod span
0
-{
0
-  left:0;
0
-  right:auto
0
+#adminmenu a {
0
+  font-family:arial;
0
+  font-weight:bold;
0
+  padding:6px 7px;
0
+}
0
+#adminmenu a.current, #sidemenu a.current {
0
+  font-weight:bold;
0
+}
0
+#sidemenu {
0
+  margin: -30px 0 0 15px;
0
+  float: left;
0
+  padding-left:0;
0
+  padding-right: 10px;
0
+  height: 1%; /* Peek-a-boo in IE6 */
0
 }
0
-
0
-#submenu li a
0
-{
0
-  display:block;
0
+#sidemenu a {
0
   float:right;
0
-  margin:0 10px 10px 0;
0
-  padding:2px 4px
0
 }
0
-
0
-p#post-search
0
-{
0
+#submenu li {
0
+  padding: 0 17px 8px 0;
0
+  font-size:13px;
0
+}
0
+#adminmenu li a #awaiting-mod span, #sidemenu li a #update-plugins span {
0
+  right:auto;
0
   left:0;
0
-  right:auto
0
-}
0
-
0
-.tablenav div
0
-{
0
-  float:right!important
0
-}
0
-
0
-.tablenav .delete 
0
-{
0
-  margin-left: 40px;
0
-  margin-right: 0;
0
-}
0
-
0
-ul.view-switch
0
-{
0
-  float:left;
0
-  margin:-28px 0 -2px 5px
0
 }
0
-
0
-#currenttheme img
0
-{
0
-  float:right;
0
-  margin-left:1em;
0
-  margin-right:0
0
+#adminmenu li a:hover #awaiting-mod, #sidemenu li a:hover #update-plugins {
0
+  background-position: -160px top;
0
 }
0
-
0
-form#themeselector
0
-{
0
-  float:left
0
+/* 804 - 1004
0
+=================================== */
0
+#footer {
0
+  padding: 10px 60px 0 0;
0
 }
0
-
0
-.form-table input.tog
0
-{
0
-  float:right;
0
+.form-table th {
0
+  text-align:right;
0
+}
0
+.form-table input.tog {
0
   margin-right:0;
0
-  margin-left:2px;
0
+  margin-left: 2px;
0
+  float: right;
0
 }
0
-
0
-.curtime
0
-{
0
-  background-position:right 2px;
0
-  padding-left:0;
0
-  padding-right:18px;
0
+.form-table table.color-palette {
0
+  float:right;
0
 }
0
-
0
-#poststuff #edButtonPreview,#poststuff #edButtonHTML
0
-{
0
-  float:left;
0
-  margin-left:8px;
0
-  margin-right:0
0
+#pass-strength-result {
0
+  float:right;
0
+  margin-right:0;
0
+  margin-left: 5px;
0
 }
0
-
0
-#poststuff #media-buttons
0
-{
0
-  direction: rtl;
0
-  float:left;
0
-  margin-left:20px;
0
-  margin-right:0
0
+#profile-page .form-table #rich_editing {
0
+  margin-right:0;
0
+  margin-left: 5px;
0
 }
0
-
0
-#poststuff #media-buttons a
0
-{
0
-  margin-left:8px;
0
+#tagsdiv #newtag {
0
   margin-right:0;
0
-  padding: 0 5px 2px 2px;
0
+  margin-left: 5px;
0
 }
0
-
0
-#poststuff .togbox
0
-{
0
+#tagchecklist {
0
   margin-left:0;
0
-  margin-right:-19px
0
+  margin-right: 10px;
0
 }
0
-
0
-#categorydiv ul#category-tabs,#linkcategorydiv ul#category-tabs
0
-{
0
-  float:right;
0
-  margin:0 0 0 -120px;
0
-  text-align:left
0
+#tagchecklist strong {
0
+  margin-left:0;
0
+  margin-right: -8px;
0
+}
0
+#tagchecklist span {
0
+  margin-right:0;
0
+  margin-left: 25px;
0
+  float: right;
0
 }
0
-
0
-ul#category-tabs li.ui-tabs-selected,#poststuff .togbox
0
-{
0
+#tagchecklist span a {
0
+  margin: 6px -9px 0 0;
0
+  float: right;
0
+}
0
+/* 1005 - 1304
0
+=================================== */
0
+.ac_results li {
0
+  text-align:right;
0
+}
0
+#poststuff h2 {
0
+  clear:right;
0
+}
0
+#poststuff .postbox, #poststuff .stuffbox, #titlediv, #poststuff .postarea {
0
+  margin-left: 8px;
0
+  margin-right: 20px;
0
+}
0
+#edit-slug-buttons a.save {
0
+  margin-right:0;
0
+  margin-left:4px;
0
+}
0
+#poststuff #edButtonPreview, #poststuff #edButtonHTML {
0
+  margin: 5px 0 0 8px;
0
+  float: left;
0
+}
0
+#poststuff #media-buttons {
0
+  float: left;
0
+  margin-right:0;
0
+  margin-left: 20px;
0
+}
0
+#poststuff #media-buttons a {
0
+  padding: 0 2px 2px 5px;
0
+}
0
+#poststuff .togbox {
0
+  margin-left:0;
0
+  margin-right: -21px;
0
+  -moz-border-radius-topleft:0;
0
+  -khtml-border-top-left-radius:0;
0
+  -webkit-border-top-left-radius:0;
0
+  border-top-left-radius:0;
0
+  -moz-border-radius-topright: 3px;
0
+  -khtml-border-top-right-radius: 3px;
0
+  -webkit-border-top-right-radius: 3px;
0
+  border-top-right-radius: 3px;
0
+  -moz-border-radius-bottomleft: 0;
0
   -khtml-border-bottom-left-radius:0;
0
-  -khtml-border-bottom-right-radius:3px;
0
+  -webkit-border-bottom-left-radius:0;
0
+  border-bottom-left-radius:0;
0
+  -moz-border-radius-bottomright: 3px;
0
+  -khtml-border-bottom-right-radius: 3px;
0
+  -webkit-border-bottom-right-radius: 3px;
0
+  border-bottom-right-radius: 3px;
0
+}
0
+.submitbox .submitdelete {
0
+  margin-left:0;
0
+  margin-right:8px;
0
+}
0
+.submitbox .submit {
0
+  text-align:right;
0
+}
0
+.submitbox .submit input {
0
+  margin-right:0;
0
+  margin-left:3px;
0
+}
0
+#categorydiv #category-adder {
0
+  margin-left:0;
0
+  margin-right: 120px;
0
+}
0
+#categorydiv ul#category-tabs {
0
+  float: right;
0
+  text-align: left;
0
+  margin: 0 0 0 -120px;
0
+}
0
+ul#category-tabs li.ui-tabs-selected {
0
+  -moz-border-radius-topleft:0;
0
   -khtml-border-top-left-radius:0;
0
-  -khtml-border-top-right-radius:3px;
0
+  -webkit-border-top-left-radius:0;
0
+  border-top-left-radius:0;
0
   -moz-border-radius-bottomleft:0;
0
-  -moz-border-radius-bottomright:3px;
0
-  -moz-border-radius-topleft:0;
0
-  -moz-border-radius-topright:3px;
0
+  -khtml-border-bottom-left-radius:0;
0
   -webkit-border-bottom-left-radius:0;
0
-  -webkit-border-bottom-right-radius:3px;
0
-  -webkit-border-top-left-radius:0;
0
-  -webkit-border-top-right-radius:3px;
0
   border-bottom-left-radius:0;
0
-  border-bottom-right-radius:3px;
0
-  border-top-left-radius:0;
0
-  border-top-right-radius:3px
0
+  -moz-border-radius-topright: 3px;
0
+  -khtml-border-top-right-radius: 3px;
0
+  -webkit-border-top-right-radius: 3px;
0
+  border-top-right-radius: 3px;
0
+  -moz-border-radius-bottomright: 3px;
0
+  -khtml-border-bottom-right-radius: 3px;
0
+  -webkit-border-bottom-right-radius: 3px;
0
+  border-bottom-right-radius: 3px;
0
+}
0
+div.ui-tabs-panel {
0
+  margin: 0 120px 0 5px;
0
+}
0
+/* 1305 - elakh! :-)
0
+=================================== */
0
+#categorydiv ul.categorychecklist ul {
0
+  margin-left:0;
0
+  margin-right: 18px;
0
 }
0
-
0
-div.ui-tabs-panel
0
-{
0
-  margin:0 120px 0 0
0
+#linkcategorydiv #category-adder {
0
+  margin-left:0;
0
+  margin-right: 120px;
0
 }
0
-
0
-#tagchecklist span
0
-{
0
-  float:right;
0
-  margin-left:25px;
0
-  margin-right:0
0
+#linkcategorydiv ul#category-tabs {
0
+  float: right;
0
+  text-align: left;
0
+  margin: 0 0 0 -120px;
0
 }
0
-
0
-#tagchecklist span a {
0
-  margin: 6px -9px 0 0;
0
+#linkcategorydiv ul.categorychecklist ul {
0
+  margin-left:0;
0
+  margin-right: 18px;
0
+}
0
+p#tag-search, p#post-search {
0
+  right:auto;
0
+  left:0;
0
+}
0
+#posts-filter fieldset {
0
   float: right;
0
+  margin: 0 0 1em 1.5ex;
0
 }
0
-
0
-
0
-.tablenav .tablenav-pages
0
-{
0
-  float:left !important;
0
-  width:200px
0
-}
0
-
0
-.tablenav-pages .page-numbers
0
-{
0
-  display:block;
0
-  float:right
0
-}
0
-
0
-.side-info ul
0
-{
0
-  padding-left:0;
0
-  padding-right:18px
0
+#posts-filter fieldset legend {
0
+  padding: 0 1px .2em 0;
0
 }
0
-
0
-.form-table table.color-palette {
0
-  float:right;
0
+ul.view-switch {
0
+  float: left;
0
+  margin: -23px 0 -2px 5px;
0
 }
0
-
0
-#pass-strength-result
0
-{
0
-  float:right;
0
-  margin-right:0;
0
-  margin-left:5px;
0
-}
0
-
0
-td.comment p.comment-author img.avatar
0
-{
0
-  float:right !important;
0
-  margin-right:0 !important;
0
-  margin-left:8px !important;
0
-}
0
-
0
-#footer
0
-{
0
-  padding:10px 0 0
0
-}
0
-
0
-#footer p
0
-{
0
-  height:35px;
0
-  margin-right:20px;
0
-  padding:12px 40px 0 0;
0
-}
0
-
0
-#submenu,#wpbody
0
-{
0
-  clear:both;
0
+ul.view-switch li {
0
+  float: right;
0
 }
0
-
0
-#submenu li,ul.subsubsub li a
0
-{
0
-  padding:0;
0
+#the-comment-list td.comment p.comment-author {
0
+  margin-right: 0 ;
0
 }
0
-
0
-table.widefat th,.form-table th
0
-{
0
-  text-align:right
0
+#the-comment-list p.comment-author img {
0
+  float: right;
0
+  margin-right:0;
0
+  margin-left: 8px;
0
 }
0
-
0
-.widefat th input {
0
-  margin: 0 8px 0 0;
0
-  padding: 0;
0
+#the-comment-list td.comment p {
0
+  margin-left:0;
0
+  margin-right: 8px;
0
 }
0
-
0
-.available-theme,#tagchecklist span a
0
-{
0
-  float:right
0
+.curtime {
0
+  background-position: right 2px;
0
+  padding-left:0;
0
+  padding-right: 18px;
0
 }
0
-#template div {
0
+.tablenav .delete {
0
   margin-right:0;
0
-  margin-left:190px;
0
+  margin-left: 20px;
0
 }
0
-.submitbox .submit {
0
-  text-align:right;
0
+#tTips {
0
+}
0
+td.action-links, th.action-links {
0
+  text-align:left;
0
 }
0
-
0
-#editorcontainer {
0
-  border:1px solid;
0
+.info-box {
0
+  left:auto;
0
+  right: 50%;
0
+  margin-left: 0;
0
+  margin-right: -225px;
0
+}
0
+.info-box .gears-img {
0
+  float: left;
0
+}
0
+/* LTR
0
+=================================== */
0
+#edit-slug-box, #trackback, #metakeyinput, #post_password, #link_url, #link_image, #rss_uri, #category_nicename, #slug, #dbuser, #dbpass, #dbname, #dbprefix, #dccharset, #gmpath, #archivespath, #lastentry, #dbhost, #pages-exclude, #newcontent, #email, #newcomment_author_url, #siteurl, #home, #admin_email, #date_format, #time_format, #gmt_offset, #mailserver_url, #mailserver_port, #mailserver_login, #mailserver_pass, #ping_sites, #posts_per_page, #posts_per_rss, #blog_charset, #moderation_keys, #blacklist_keys, #comment_max_links, #permalink_structure, #category_base, #tag_base, #upload_path, #upload_url_path, #thumbnail_size_w, #thumbnail_size_h, #medium_size_w, #medium_size_h, #user_login, #url, #pass1, #pass2, #aim, #yim, #jabber, #key, #src, #hostname, #username, #password, #rules {
0
+  direction:ltr;
0
 }
0
-
0
-.wrap h2 {
0
-  margin: 5px -4px 0 0;
0
-  padding-right: 0px;
0
-  padding-left: 280px;
0
+/* TinyMCE
0
+=================================== */
0
+.clearlooks2 .mceTop .mceLeft {
0
+  width:100% !important;
0
 }
0
-
0
-div#message {
0
-  clear: both;
0
-}
0
\ No newline at end of file
...
206
207
208
209
210
211
 
212
213
214
...
394
395
396
 
397
398
399
...
407
408
409
410
411
412
413
414
415
416
417
418
419
...
1070
1071
1072
1073
1074
1075
1076
1077
1078
...
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
 
 
 
 
 
 
1094
1095
1096
1097
1098
1099
1100
1101
1102
 
1103
1104
1105
...
206
207
208
 
 
 
209
210
211
212
...
392
393
394
395
396
397
398
...
406
407
408
 
 
 
 
 
 
 
409
410
411
...
1062
1063
1064
 
 
 
1065
1066
1067
...
1073
1074
1075
 
 
 
 
 
 
 
1076
1077
1078
1079
1080
1081
1082
1083
1084
 
 
 
 
 
 
1085
1086
1087
1088
0
@@ -206,9 +206,7 @@ class AtomServer {
0
 
0
         // authenticate regardless of the operation and set the current
0
         // user. each handler will decide if auth is required or not.
0
-        $this->authenticate();
0
-        $u = wp_get_current_user();
0
-        if(!isset($u) || $u->ID == 0) {
0
+        if(!$this->authenticate()) {
0
           if ($always_authenticate) {
0
             $this->auth_required('Credentials required.');
0
           }
0
@@ -394,6 +392,7 @@ EOD;
0
       $this->auth_required(__('Sorry, you do not have the right to edit this post.'));
0
 
0
     $publish = (isset($parsed->draft) && trim($parsed->draft) == 'yes') ? false : true;
0
+    $post_status = ($publish) ? 'publish' : 'draft';
0
 
0
     extract($entry);
0
 
0
@@ -407,13 +406,6 @@ EOD;
0
     $post_modified = $pubtimes[0];
0
     $post_modified_gmt = $pubtimes[1];
0
 
0
-    // let's not go backwards and make something draft again.
0
-    if(!$publish && $post_status == 'draft') {
0
-      $post_status = ($publish) ? 'publish' : 'draft';
0
-    } elseif($publish) {
0
-      $post_status = 'publish';
0
-    }
0
-
0
     $postdata = compact('ID', 'post_content', 'post_title', 'post_category', 'post_status', 'post_excerpt', 'post_date', 'post_date_gmt', 'post_modified', 'post_modified_gmt');
0
     $this->escape($postdata);
0
 
0
@@ -1070,9 +1062,6 @@ EOD;
0
    * Access credential through various methods and perform login
0
    */
0
   function authenticate() {
0
-    $login_data = array();
0
-    $already_md5 = false;
0
-
0
     log_app("authenticate()",print_r($_ENV, true));
0
 
0
     // if using mod_rewrite/ENV hack
0
@@ -1084,22 +1073,16 @@ EOD;
0
 
0
     // If Basic Auth is working...
0
     if(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])) {
0
-      $login_data = array('login' => $_SERVER['PHP_AUTH_USER'],  'password' => $_SERVER['PHP_AUTH_PW']);
0
-      log_app("Basic Auth",$login_data['login']);
0
-    } else {
0
-      // else, do cookie-based authentication
0
-      if (function_exists('wp_get_cookie_login')) {
0
-        $login_data = wp_get_cookie_login();
0
-        $already_md5 = true;
0
+      log_app("Basic Auth",$_SERVER['PHP_AUTH_USER']);
0
+      $user = wp_authenticate($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']);
0
+      if ( $user && !is_wp_error($user) ) {
0
+        wp_set_current_user($user->ID);
0
+        log_app("authenticate()", $_SERVER['PHP_AUTH_USER']);
0
+        return true;
0
       }
0
     }
0
 
0
-    // call wp_login and set current user
0
-    if (!empty($login_data) && wp_login($login_data['login'], $login_data['password'], $already_md5)) {
0
-       $current_user = new WP_User(0, $login_data['login']);
0
-       wp_set_current_user($current_user->ID);
0
-      log_app("authenticate()",$login_data['login']);
0
-    }
0
+    return false;
0
   }
0
 
0
   function get_accepted_content_type($types = NULL) {
...
1
 
2
3
 
4
5
6
7
 
 
 
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
27
28
 
 
29
30
31
 
 
32
33
34
35
 
 
 
36
37
38
39
40
41
42
43
44
45
46
47
48
49
 
 
 
 
 
 
 
 
 
 
 
 
 
50
51
52
53
54
55
56
 
 
 
 
 
 
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
73
74
75
76
77
 
 
 
 
 
...
 
1
2
 
3
4
 
 
 
5
6
7
8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
 
27
28
29
 
 
30
31
32
 
 
 
33
34
35
36
 
 
 
 
 
 
 
 
 
 
 
 
 
37
38
39
40
41
42
43
44
45
46
47
48
49
50
 
 
 
 
 
 
51
52
53
54
55
56
57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
59
60
61
62
63
64
65
66
67
68
69
70