Compare commits

...

2558 Commits

Author SHA1 Message Date
ryan
6c4a7cba12 Tag 2.6
git-svn-id: http://svn.automattic.com/wordpress/tags/2.6@8337 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-15 03:11:16 +00:00
ryan
3a9762ecd4 2.6 branch
git-svn-id: http://svn.automattic.com/wordpress/branches/2.6@8336 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-15 03:05:51 +00:00
ryan
9ce9fec7c4 plugins_url()
git-svn-id: http://svn.automattic.com/wordpress/trunk@8334 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-15 00:10:07 +00:00
ryan
4460d7efc9 phpdoc for site_url() and friends
git-svn-id: http://svn.automattic.com/wordpress/trunk@8333 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-14 23:39:11 +00:00
ryan
7b7d5d8611 Image regex fixes from noel. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@8332 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-14 17:59:06 +00:00
ryan
4f5aa3fa57 Bumpage
git-svn-id: http://svn.automattic.com/wordpress/trunk@8331 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-14 17:27:19 +00:00
ryan
1e6bf47187 rlm entity not so Windows friendly. Use perios instead. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@8330 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-14 17:26:30 +00:00
ryan
b1672442f8 RTL support for Press This. Props RanYanivHartstein. see #7289
git-svn-id: http://svn.automattic.com/wordpress/trunk@8328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-13 17:57:23 +00:00
ryan
b71746be10 RTL friendly fonts from RanYanivHartstein. fixes #6616
git-svn-id: http://svn.automattic.com/wordpress/trunk@8327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-13 16:40:25 +00:00
ryan
bc54bed035 RTL for Press This. Props RanYanivHartstein. see #7289 #6616
git-svn-id: http://svn.automattic.com/wordpress/trunk@8326 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-13 16:26:16 +00:00
westi
7c340c19f1 Update readme to 2.6
git-svn-id: http://svn.automattic.com/wordpress/trunk@8325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-13 11:26:25 +00:00
ryan
8750ed2ea1 Workaround PHP parse_url() bug. Props azaozz. fixes #7288
git-svn-id: http://svn.automattic.com/wordpress/trunk@8324 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-13 05:16:54 +00:00
ryan
4846338eeb Press This: properly add and load press-this-ie.css, cleanup of the bookmarklet code. Props azaozz. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@8323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-13 04:57:01 +00:00
ryan
91ffbd5d4d Bump
git-svn-id: http://svn.automattic.com/wordpress/trunk@8322 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-12 18:04:41 +00:00
ryan
01cf8b5371 Denote CAPTIONS_OFF as temporary. see #6812
git-svn-id: http://svn.automattic.com/wordpress/trunk@8321 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-12 18:02:29 +00:00
matt
b9b2d4d557 We need to clear floats so images don't run into the next post.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-12 17:53:23 +00:00
ryan
22781f8edc Performance improvements for page_rows(). Props hailin. fixes #7286
git-svn-id: http://svn.automattic.com/wordpress/trunk@8319 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-12 15:40:57 +00:00
ryan
09f8519390 Press This: Switching to using our default content cleanup in the editor. Props azaozz. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@8318 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-11 23:38:32 +00:00
ryan
e7e42b56d5 Run plugin checks both admin and blog side. Props DD32 and mdawaffe. fixes #7265
git-svn-id: http://svn.automattic.com/wordpress/trunk@8317 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-11 22:04:03 +00:00
ryan
e027fac4f6 Press This: Fix inserting the selection in the editor and stripping of paragraphs when saving, IE CSS styling fixes, fix continuous linking in editor. Props noel and azaozz. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@8316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-11 20:27:50 +00:00
ryan
ecd98d1aff Generic POST handler. see #7283
git-svn-id: http://svn.automattic.com/wordpress/trunk@8315 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-11 20:24:35 +00:00
ryan
8ae2545c47 Inline user_login focus JS and avoid JS error. Props azaozz. fixes #7282
git-svn-id: http://svn.automattic.com/wordpress/trunk@8314 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-11 20:14:44 +00:00
ryan
752b0eb45b Rename wp_caption shortcode to caption. Allow themes to disable captioning. Use dashes instead of underscores in class names. Props azaozz. see #6812
git-svn-id: http://svn.automattic.com/wordpress/trunk@8313 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-11 15:59:14 +00:00
ryan
35e593c3ab clean_url() for add_query_arg(). Props xnown. see #7281
git-svn-id: http://svn.automattic.com/wordpress/trunk@8312 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-11 15:11:12 +00:00
ryan
72295536c2 Don't LIMIT updates to 1. Props hailin. fixes #7272
git-svn-id: http://svn.automattic.com/wordpress/trunk@8311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-11 01:49:06 +00:00
ryan
f9f960b1d0 Add flash uploader bypass toggle. Props tellyworth. fixes #7281
git-svn-id: http://svn.automattic.com/wordpress/trunk@8310 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-11 01:45:41 +00:00
ryan
0728ecb254 Fix font sizes in the install/upgrade screens. Props azaozz. fixes #7276
git-svn-id: http://svn.automattic.com/wordpress/trunk@8309 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-10 16:59:17 +00:00
ryan
6960418d18 Reduce size of Press This bookmarklet. see #7261
git-svn-id: http://svn.automattic.com/wordpress/trunk@8308 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-10 16:54:32 +00:00
ryan
0022c2c510 Fix image resizing inside captions, add edit alt field to the advanced tab. Props azaozz. see #6812
git-svn-id: http://svn.automattic.com/wordpress/trunk@8307 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-10 16:39:14 +00:00
matt
1527357b5e Javascriptify revision selections to deal elegantly while comparing.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8306 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-10 07:58:19 +00:00
matt
120abd8e17 Check for plugin updates more frequently, notify with double bubble trouble. Hat tip: mdawaffe. Fixes #7265.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8305 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-10 07:35:20 +00:00
ryan
642bd53a67 Media Uploader improvements from azaozz: Improves the insert external image dialog, redirects to the gallery tab after "Save all changes" is clicked, shows the "Order" fields on the closed tabs, where they are easier to use, and only in the Gallery. see #7274
git-svn-id: http://svn.automattic.com/wordpress/trunk@8304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-10 03:49:52 +00:00
ryan
10b433cce8 Press This: CSS cleanup, photo input newline breaks, fixes short_tags problem. Props noel. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@8303 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-09 21:39:36 +00:00
ryan
bcbbb70170 Don't format_to_edit TinyMCE inserts. Don't turn selection into a link. Restore editor contents when switching back to text tab. see #7261 #7220
git-svn-id: http://svn.automattic.com/wordpress/trunk@8302 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-09 19:51:53 +00:00
ryan
e2aa6d619c Introduce content_url(). Don't prepend base url to content url in script loader. see #6938 #7001
git-svn-id: http://svn.automattic.com/wordpress/trunk@8301 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-09 17:24:36 +00:00
ryan
100ed8a62d Prevent category looping. Props tellyworth. fixes #7267
git-svn-id: http://svn.automattic.com/wordpress/trunk@8299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-09 04:57:18 +00:00
ryan
0cd103e2a2 Hands off pre tags. Props nbachiyski. fixes #7056
git-svn-id: http://svn.automattic.com/wordpress/trunk@8298 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-09 04:52:27 +00:00
ryan
0283fc3717 Install styling from azaozz. fixes #7266
git-svn-id: http://svn.automattic.com/wordpress/trunk@8297 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-09 04:33:31 +00:00
matt
80b1ebdbbf Ajax Deleting an object that's already been deleted should silently succeed. Hat tip: mdawaffe. Fixes #7264.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8296 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-09 02:00:21 +00:00
ryan
3b48af4a6d Fix quotes in captions. Props azaozz. see #6812
git-svn-id: http://svn.automattic.com/wordpress/trunk@8290 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-08 23:38:53 +00:00
ryan
8a37dfa5b2 Use dash instead of underscore for CSS names. Props azaozz. see #6812
git-svn-id: http://svn.automattic.com/wordpress/trunk@8289 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-08 23:37:56 +00:00
ryan
4cd0c96d03 Fix get_links_list deprecation doc. Props Otto42. fixes #6879
git-svn-id: http://svn.automattic.com/wordpress/trunk@8285 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-08 17:38:12 +00:00
ryan
792b5dfd36 Don't replace spaces with nbsp. This breaks wrapping. Props MtDewVirus. fixes #7259
git-svn-id: http://svn.automattic.com/wordpress/trunk@8281 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-08 00:14:06 +00:00
ryan
cf566ef990 Return base dir and url from wp_upload_dir(). Props DD32. fixes #6762
git-svn-id: http://svn.automattic.com/wordpress/trunk@8280 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-07 23:53:54 +00:00
ryan
f605bcc3a3 gettext updates for cat2tag. Props msi08. fixes #7139
git-svn-id: http://svn.automattic.com/wordpress/trunk@8279 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-07 23:49:22 +00:00
ryan
96c00ed1c3 Send 403 if publishing is disabled. Props AlanJCastonguay. see #7157
git-svn-id: http://svn.automattic.com/wordpress/trunk@8267 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-07 19:19:47 +00:00
ryan
4957f5a4cc Notice fixes from jacobsantos. fixes #7255
git-svn-id: http://svn.automattic.com/wordpress/trunk@8266 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-07 14:21:47 +00:00
ryan
79913b557b Excerpt long media titles. Props nbachiyski. fixes #7253
git-svn-id: http://svn.automattic.com/wordpress/trunk@8265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-06 21:15:38 +00:00
ryan
0f48fa0124 Don't split in the middle of a UTF-8 character. Props nbachiyski. fixes #7254
git-svn-id: http://svn.automattic.com/wordpress/trunk@8264 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-06 21:14:47 +00:00
ryan
ffc0077745 Don't try to match rewrite rules against AtomPub requests. Props josephscott. fixes #7249
git-svn-id: http://svn.automattic.com/wordpress/trunk@8263 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-06 17:33:39 +00:00
ryan
fac865a413 Bump version for gallery. Props nbachiyski. fixes #6988
git-svn-id: http://svn.automattic.com/wordpress/trunk@8262 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-06 16:41:47 +00:00
ryan
cc829f5f96 Make sure attachment meta data is an array. Props nbachiyski. fixes #7252
git-svn-id: http://svn.automattic.com/wordpress/trunk@8261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-06 16:40:15 +00:00
ryan
e455091d0a Image caption fixes from azaozz: captions are properly created in tables and in lists, all tags are properly removed when deleting a caption, the align buttons can be used to align the captions. see #6812
git-svn-id: http://svn.automattic.com/wordpress/trunk@8260 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-06 16:38:37 +00:00
ryan
7aa234ad58 Gallery sort fix from AaronCampbell. fixes #6988
git-svn-id: http://svn.automattic.com/wordpress/trunk@8259 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-05 05:01:28 +00:00
ryan
c2814da3f1 Fix pass-by-ref error. Props DD32. fixes #7241
git-svn-id: http://svn.automattic.com/wordpress/trunk@8258 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-04 16:16:25 +00:00
ryan
4ead38ccbb Fix wp_get_attachment_thumb_url() tumbnail back compat. Props DD32. fixes #7242
git-svn-id: http://svn.automattic.com/wordpress/trunk@8257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-04 16:15:29 +00:00
ryan
897fa5bf62 Gears and styling updates for Press This from azaozz. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@8256 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-04 16:12:31 +00:00
ryan
14fc4d5981 Turn off verbose
git-svn-id: http://svn.automattic.com/wordpress/trunk@8255 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-04 06:18:20 +00:00
ryan
e38b2bcaa8 Bumpage
git-svn-id: http://svn.automattic.com/wordpress/trunk@8254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-04 06:12:24 +00:00
ryan
40c67062cb Grammar fix
git-svn-id: http://svn.automattic.com/wordpress/trunk@8253 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-04 00:28:18 +00:00
ryan
59beabd5dc Allow underscore and dash in theme dirs when previewing. fixes #7236
git-svn-id: http://svn.automattic.com/wordpress/trunk@8252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-03 23:10:28 +00:00
ryan
c3045dd2f8 Update sample config to use new cookie keys
git-svn-id: http://svn.automattic.com/wordpress/trunk@8251 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-03 17:16:10 +00:00
ryan
3ceeaa6252 Use searchform.php for search widget, if available. Props ionfish. fixes #5567
git-svn-id: http://svn.automattic.com/wordpress/trunk@8250 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-03 17:03:37 +00:00
ryan
9a7c30f64c Run display filters for blog title. Props jhodgdon. fixes #7234
git-svn-id: http://svn.automattic.com/wordpress/trunk@8249 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-03 16:05:14 +00:00
ryan
48f963e437 Add med buttons to TinyMCE fullscreen. Props azaozz. fixes #7232
git-svn-id: http://svn.automattic.com/wordpress/trunk@8248 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-03 15:55:45 +00:00
ryan
03932fa14f pre_update_option_* filter from DD32. fixes #7233
git-svn-id: http://svn.automattic.com/wordpress/trunk@8247 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-03 15:51:53 +00:00
ryan
4cd88d665a phpdoc for feed.php from jacobsantos. fixes #5636
git-svn-id: http://svn.automattic.com/wordpress/trunk@8246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-03 15:23:22 +00:00
ryan
f79638378a Image caption fixes from azaozz. see #6812
git-svn-id: http://svn.automattic.com/wordpress/trunk@8245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-03 05:11:00 +00:00
ryan
ce365c94a4 Use true swfupload version
git-svn-id: http://svn.automattic.com/wordpress/trunk@8243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-02 23:16:39 +00:00
ryan
3497e63495 Unlink temporary file if sideload fails. see #7220
git-svn-id: http://svn.automattic.com/wordpress/trunk@8241 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-02 22:56:57 +00:00
ryan
eb1f9d0b39 Clean image urls in get_images_from_uri(). see #7220
git-svn-id: http://svn.automattic.com/wordpress/trunk@8240 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-02 22:40:52 +00:00
ryan
88ca7797d1 Image captions from azaozz. see #6812
git-svn-id: http://svn.automattic.com/wordpress/trunk@8239 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-02 18:41:11 +00:00
ryan
ae010f2558 Define WP_CONTENT_DIR in setup-config.php. Props sambauers. fixes #7221
git-svn-id: http://svn.automattic.com/wordpress/trunk@8238 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-02 17:03:55 +00:00
ryan
a2ed9c5f28 Don't match images with tags in them. Props noel. see #7220
git-svn-id: http://svn.automattic.com/wordpress/trunk@8237 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-02 15:26:51 +00:00
ryan
0e91869c14 Make sure htaccess marker begins on a new line. Props johnbillion. fixes #7203
git-svn-id: http://svn.automattic.com/wordpress/trunk@8236 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-02 03:17:53 +00:00
ryan
93bccf8773 Escaping for Press This. see #7220
git-svn-id: http://svn.automattic.com/wordpress/trunk@8235 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-02 02:23:12 +00:00
markjaquith
9772330eb6 Pass AtomPub disabled messaged through translation. props josephscott. see #7157
git-svn-id: http://svn.automattic.com/wordpress/trunk@8234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-02 01:58:38 +00:00
ryan
270555de54 Account for term exclusion filter when creating cache key. Props filosofo. fixes #7213
git-svn-id: http://svn.automattic.com/wordpress/trunk@8225 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-01 15:54:58 +00:00
ryan
2ea00f0380 Plugins page layout improvements from DD32. see #7091
git-svn-id: http://svn.automattic.com/wordpress/trunk@8218 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-30 23:12:18 +00:00
ryan
3c6e74c8c1 comment_rows_actions filter from andy. fixes #7212
git-svn-id: http://svn.automattic.com/wordpress/trunk@8217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-30 20:46:39 +00:00
ryan
af9c3b8896 Use WP_CONTENT_URL in wp_upload_dir(). Props sambauers. fixes #7206
git-svn-id: http://svn.automattic.com/wordpress/trunk@8216 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-30 03:33:05 +00:00
ryan
d3a532389d phpdoc updates from jacobsantos. see #5639
git-svn-id: http://svn.automattic.com/wordpress/trunk@8215 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-30 03:23:44 +00:00
markjaquith
b45101a5d5 Enable tag auto-suggest for multiple tags at once (without having to hit enter and send each one "down below"). fixes #5580
git-svn-id: http://svn.automattic.com/wordpress/trunk@8214 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-30 00:04:22 +00:00
markjaquith
eb3a3bae78 Silently add /index.php/ to category_base and tag_base for blogs using PATHINFO permalinks. fixes #4536
git-svn-id: http://svn.automattic.com/wordpress/trunk@8213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-29 08:20:25 +00:00
markjaquith
a8dd6cb845 make get_alloptions() consistent with get_option() WRT tag_base untrailingslashit()ing
git-svn-id: http://svn.automattic.com/wordpress/trunk@8212 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-29 07:44:32 +00:00
ryan
c94918ca9f i18n fixes from nbachiyski. fixes #7195
git-svn-id: http://svn.automattic.com/wordpress/trunk@8211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-28 16:27:21 +00:00
ryan
ba56acc787 Typo fix. Props JeremyVisser. fixes #7196
git-svn-id: http://svn.automattic.com/wordpress/trunk@8210 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-28 13:51:39 +00:00
ryan
775ea980f3 Set auth cookie for plugins directory to support direct load plugin files that call auth_redirect(). see #7001
git-svn-id: http://svn.automattic.com/wordpress/trunk@8209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-27 22:54:21 +00:00
ryan
216cdeedea Check fopen return value. Props Otto42 and pishmishy. fixes #4448
git-svn-id: http://svn.automattic.com/wordpress/trunk@8208 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-27 20:14:50 +00:00
ryan
6ae5dbab86 Bumpity bump bump
git-svn-id: http://svn.automattic.com/wordpress/trunk@8207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-27 19:47:28 +00:00
ryan
c38fe7ecec Bump script loader versions for jQuery UI 1.5.1
git-svn-id: http://svn.automattic.com/wordpress/trunk@8206 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-27 19:44:13 +00:00
ryan
cf447af2f0 jQuery UI 1.5.1
git-svn-id: http://svn.automattic.com/wordpress/trunk@8205 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-27 19:41:56 +00:00
ryan
48b43595a6 TinyMCE 3.1.1 from azaozz. fixes #7191
git-svn-id: http://svn.automattic.com/wordpress/trunk@8204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-27 16:13:27 +00:00
ryan
f945453857 phpdoc updates for post.php from jacobsantos. fixes #3982
git-svn-id: http://svn.automattic.com/wordpress/trunk@8203 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-27 15:32:57 +00:00
ryan
3f90dc2f58 More informative error message when remote publishing is disabled. Don't disable if upgrading. Props josephscott. see #7157
git-svn-id: http://svn.automattic.com/wordpress/trunk@8202 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-26 22:39:57 +00:00
ryan
1fa06da55c Don't prepend http. Props noel. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@8201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-26 22:05:01 +00:00
ryan
78afb8f235 gettext for Press This from Txanny. fixes #7189
git-svn-id: http://svn.automattic.com/wordpress/trunk@8200 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-26 20:13:32 +00:00
ryan
3489826131 Fix date() warning on Windows. Props ozh. fixes #7186
git-svn-id: http://svn.automattic.com/wordpress/trunk@8199 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-26 18:34:28 +00:00
ryan
5360b75e83 Use number_format and change language. see #6471
git-svn-id: http://svn.automattic.com/wordpress/trunk@8198 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-26 17:23:07 +00:00
ryan
63b5bd26fe Only use SSL for login POST links if SSL logins are forced. Clear old cookies. see #7001
git-svn-id: http://svn.automattic.com/wordpress/trunk@8197 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-26 16:40:04 +00:00
ryan
f0935b49ae phpdoc for shortcodes from jacobsantos. fixes #7184
git-svn-id: http://svn.automattic.com/wordpress/trunk@8196 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-26 15:55:33 +00:00
ryan
3f24ac2605 Fix users.php paging. Props DD32. fixes #4017
git-svn-id: http://svn.automattic.com/wordpress/trunk@8195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-25 17:02:17 +00:00
ryan
061e9c8097 Test for feature instead of browser to fix TB positioning for browsers pretending to be IE6. Props azaozz. fixes #6676
git-svn-id: http://svn.automattic.com/wordpress/trunk@8194 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-25 16:58:27 +00:00
ryan
a16f47dc09 SSL touchups for tiny_mce_config. fixes #6759
git-svn-id: http://svn.automattic.com/wordpress/trunk@8193 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-25 16:55:16 +00:00
ryan
b42b7b33a7 Image sideloader fix from noel. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@8192 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-25 16:45:04 +00:00
ryan
55b0c88e2c Edit image fixes from azaozz: : new link not created if the image has class "aligncenter" in Safari; recalculates the demo image size properly and applies any inline styles to it; if relative link is added, it's converted to absolute; "Unknown error" in IE6. see #6811
git-svn-id: http://svn.automattic.com/wordpress/trunk@8191 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-25 16:30:28 +00:00
ryan
636c562256 SSL fixes. see #7001
git-svn-id: http://svn.automattic.com/wordpress/trunk@8190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-24 22:19:27 +00:00
ryan
cdaefc84b8 Insert image fixes from azaozz. fixes #7177
git-svn-id: http://svn.automattic.com/wordpress/trunk@8189 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-24 21:59:06 +00:00
markjaquith
bf9f2f1cc7 Don't call loop_end hook if we don't have any posts. props Denis-de-Bernardy and DD32. fixes #6769 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-24 19:58:54 +00:00
ryan
42a058e986 Typo fixes from mark8barnes and AndrewFrazier. fixes #7174
git-svn-id: http://svn.automattic.com/wordpress/trunk@8187 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-24 18:52:52 +00:00
ryan
2a9a3a255d Stub wp_guess_url() for the manifest. Props azaozz. fixes #7015
git-svn-id: http://svn.automattic.com/wordpress/trunk@8186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-24 18:47:14 +00:00
ryan
f8cc400a40 Disambiguate column. Props voxpelli. fixes #7073
git-svn-id: http://svn.automattic.com/wordpress/trunk@8185 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-24 17:49:24 +00:00
ryan
ad61789fa1 Grammar fix from Viper007Bond. fixes #7172
git-svn-id: http://svn.automattic.com/wordpress/trunk@8184 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-24 17:45:33 +00:00
ryan
9e585b7c30 Add exclude_category argument to wp_list_bookmarks(). Props ionfish. fixes #6808
git-svn-id: http://svn.automattic.com/wordpress/trunk@8183 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-24 17:44:30 +00:00
ryan
ce2ed91698 wp_guess_url() and install styling fixes from sambauers. fixes #7129 see #4732
git-svn-id: http://svn.automattic.com/wordpress/trunk@8182 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-24 17:36:21 +00:00
matt
c64c4fbd63 Better wording for Gears.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8181 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-24 16:57:12 +00:00
ryan
128dfca5d0 Save enable_app and enable_xmlrpc settings. see #7157
git-svn-id: http://svn.automattic.com/wordpress/trunk@8180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-24 00:46:36 +00:00
ryan
34a726ae12 Remove default feed function when adding new function to hook. fixes #6970
git-svn-id: http://svn.automattic.com/wordpress/trunk@8179 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-24 00:29:04 +00:00
ryan
316e26ee39 Respect post_ID update when doing multiple add meta AJAX requests. Props mdawaffe. fixes #7170 see #6457
git-svn-id: http://svn.automattic.com/wordpress/trunk@8177 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-23 23:25:15 +00:00
ryan
4f77631dd4 better handling of comparing a revision to itself. Props mdawaffe. see #6775
git-svn-id: http://svn.automattic.com/wordpress/trunk@8176 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-23 22:45:19 +00:00
ryan
88f779c343 don't show autosave message if post and autosave are 'identical'. Props mdawaffe. see #6775
git-svn-id: http://svn.automattic.com/wordpress/trunk@8175 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-23 22:25:27 +00:00
ryan
36617f11b9 Remove colons from field names. Props thee17. fixes #7158
git-svn-id: http://svn.automattic.com/wordpress/trunk@8174 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-23 21:51:47 +00:00
ryan
3a3c029662 Don't get post ancestors if post not found. Props Sam_a. fixes #6953
git-svn-id: http://svn.automattic.com/wordpress/trunk@8173 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-23 21:50:19 +00:00
ryan
cdc53fcb86 Press This image linking fixes from noel. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@8172 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-23 21:16:39 +00:00
ryan
94183a25cd widget_links_args filter from ionfish. fixes #7024
git-svn-id: http://svn.automattic.com/wordpress/trunk@8171 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-23 17:21:14 +00:00
ryan
9e951d1505 Autosave when Preview is clicked. Props azaozz and DanCoulter. fixes #6682
git-svn-id: http://svn.automattic.com/wordpress/trunk@8170 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-23 16:05:10 +00:00
ryan
9198dc7dbc Press This updates from noel. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@8169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-23 16:00:12 +00:00
ryan
f42b96cd5e Mark string that cannot be gettexted. Props nbachiyski. fixes #7074
git-svn-id: http://svn.automattic.com/wordpress/trunk@8168 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-23 15:40:43 +00:00
ryan
16dbf2fb1e Edit image updates from azaozz. see #6811
git-svn-id: http://svn.automattic.com/wordpress/trunk@8167 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-23 15:26:03 +00:00
ryan
dc6166785a Move separator inside conditional. see #6965
git-svn-id: http://svn.automattic.com/wordpress/trunk@8166 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-22 22:48:45 +00:00
ryan
74353f9bcc Beta1
git-svn-id: http://svn.automattic.com/wordpress/trunk@8165 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-22 20:45:07 +00:00
ryan
683acd8245 phpdoc updates from jacobsantos. see #7038
git-svn-id: http://svn.automattic.com/wordpress/trunk@8164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-22 20:23:23 +00:00
westi
e6e0954dbb Minor phpdoc fixups.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-20 20:56:40 +00:00
westi
55836a8b0e Fix a possible fatal error on the dashboard. Fixes #6833 for trunk.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-20 17:08:31 +00:00
westi
2b0d5a7cab Allow enabling of remote publishing at install time. See #7157.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-20 16:35:45 +00:00
westi
a9e944fee6 Bump the db_version so people get the new options for #7157.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8138 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-20 16:15:21 +00:00
ryan
9d418f4cf2 Update blogsearch URL when home changes. Props andy. fixes #7159
git-svn-id: http://svn.automattic.com/wordpress/trunk@8137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-20 16:06:57 +00:00
ryan
f22abd7533 Disable remote publishing by default. Add options to turn them back on. Props josephscott. see #7157
git-svn-id: http://svn.automattic.com/wordpress/trunk@8136 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-20 15:39:41 +00:00
westi
d76aec25dd Update nickname in display name dropdown dynamically. Fixes #5691 props hansengel.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8135 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-20 15:28:22 +00:00
westi
16126b67e4 Make the SAVEQUERIES define more flexible. Fixes #6764 props filosofo.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-20 15:17:09 +00:00
westi
f325f82a4d Show comment counts on the dashboard. Fixes #6471 props josephscott.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-20 14:33:52 +00:00
westi
829ac35bbe Add xoxo microformat markup to the blogroll. Fixes #4954 props Otto42.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-20 13:54:23 +00:00
westi
e3b575b617 Add new has_tag() template tag. Fixes #6590 props Otto42.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-20 13:52:18 +00:00
ryan
9f3313b115 Press This: Fixes for unicode/ascii/apostrophe problems. Upgrades to the Photo tab. Props noel. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@8128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-19 17:03:23 +00:00
ryan
9482b05698 TinyMCE 3.1.0.1 from azaozz. fixes #7153 #7148 #7128
git-svn-id: http://svn.automattic.com/wordpress/trunk@8127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-19 16:55:50 +00:00
ryan
f90fa97fb2 Always load RTL CSS in manifest. Props azaozz. fixes #7154
git-svn-id: http://svn.automattic.com/wordpress/trunk@8126 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-19 16:52:52 +00:00
westi
27c4f3c987 Move another sizeof out of the loop. See #7147.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8118 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-18 06:48:48 +00:00
westi
14adf33381 Ensure we initialise the position variable. See #5599 props codestyling.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8117 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-18 06:38:30 +00:00
westi
c678502b3d Add XMLRPC options api. See #7123 props josephscott.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-17 20:41:13 +00:00
ryan
3e733d13e8 Press This changes from noel. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@8113 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-17 19:36:29 +00:00
ryan
cd81760da2 Make the args for the category drop down query the same as the category table query so that the cache is used. Eliminates a query. see #7147
git-svn-id: http://svn.automattic.com/wordpress/trunk@8112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-17 05:45:21 +00:00
ryan
290dbc03e0 Don't do sizeof() in a loop. Props DD32. see #7147
git-svn-id: http://svn.automattic.com/wordpress/trunk@8111 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-17 03:07:42 +00:00
ryan
aa70c022ce Update author link. Props JohnLamansky. fixes #7142
git-svn-id: http://svn.automattic.com/wordpress/trunk@8110 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-16 22:30:46 +00:00
ryan
9b181f0973 previous_post_link and next_post_link filters. Props JohnLamansky. fixes #6985 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8108 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-16 22:27:07 +00:00
ryan
236eb02bee RTL fixes from RanYanivHartstein. fixes #6826 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8106 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-16 22:23:22 +00:00
ryan
d69adece5a category_name is not a valid arg. Use name__like. Props drdavid. fixes #6722 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8104 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-16 22:19:34 +00:00
ryan
7c878c14ad Don't trim strings in maybe_serialize(). Props hakre. fixes #7132 #7133 #4781 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-16 20:41:02 +00:00
ryan
f5e12d887b Handle cc and bcc. Props MattyRob. fixes #6899
git-svn-id: http://svn.automattic.com/wordpress/trunk@8098 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-16 20:02:10 +00:00
ryan
1349203eed If only one incoming link, show it. Props synapsestudios and hansengel. fixes #7122
git-svn-id: http://svn.automattic.com/wordpress/trunk@8097 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-16 18:44:13 +00:00
ryan
b2e75c5194 Don't decode slug in get_page_uri(). Props nbachiyski. fixes #6723
git-svn-id: http://svn.automattic.com/wordpress/trunk@8096 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-16 18:40:47 +00:00
ryan
22e486c4f8 Delete plugin confirmation from DD32. see #7091
git-svn-id: http://svn.automattic.com/wordpress/trunk@8095 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-16 18:35:48 +00:00
westi
84a93d7c65 Fix the phpdoc comments so we don't lose a function :-(. Fixes #7144 props johnhennmacc.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8094 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-15 19:11:15 +00:00
ryan
92bf0c6405 Press this updates from noel. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@8093 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-15 18:05:01 +00:00
westi
d9d640809b PHPDoc updates for functions.php. See #5639 props jacobsantos.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-15 09:38:32 +00:00
westi
bf35dedced PHPDoc updates for comment.php. See #5578 props jacobsantos.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8091 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-15 09:34:00 +00:00
westi
c68af8c7db PHPDoc updates for category.php. Fixes #5633 props jacobsantos.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8090 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-15 09:32:19 +00:00
ryan
d1be6b2a32 Add paging to Manage->Pages. see #6561
git-svn-id: http://svn.automattic.com/wordpress/trunk@8089 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-15 00:45:01 +00:00
ryan
d9d0a899db Add RTL stylesheet for edit image. Props azaozz. see #681!
git-svn-id: http://svn.automattic.com/wordpress/trunk@8088 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-14 21:01:32 +00:00
westi
0dcd6e0e9c Make sure force_ssl_login and force_ssl_admin work as designed. Fixes #7140 props wet.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-14 20:58:43 +00:00
ryan
e707cb2ff0 Passing categories by ref screws up internal array pointer when recursing. fixes #7138 #7136
git-svn-id: http://svn.automattic.com/wordpress/trunk@8086 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-14 17:22:52 +00:00
westi
437ba6e7b3 ** > *.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8085 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-14 16:57:20 +00:00
westi
b2dd3f0dc4 phpdoc updates for IXR. See #7038 props jacobsantos.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8084 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-14 16:50:55 +00:00
ryan
f8012b15fb Image popup improvements from azaozz. Added translation strings, RTL support, several layout improvements, image border, hspace and vspace can be used as shortcuts to add css styles, the preview is visible on both tabs, etc. see #6811
git-svn-id: http://svn.automattic.com/wordpress/trunk@8083 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-14 16:38:08 +00:00
westi
f8a32e8d47 Updated phpdoc for external libs. See #7038 props jacobsantos.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8082 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-14 16:36:13 +00:00
westi
a9571e003a PHPdoc updates for wp-includes/post.php. See #7038 props jacobsantos.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8081 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-14 16:31:08 +00:00
westi
d367c296f1 Make the subject in "wp-cat2tag.php" translatable. Fixes #7137 props msi08.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8080 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-14 15:08:53 +00:00
ryan
fa01d74d51 Add paging to Manage->Categories. fixes #7136
git-svn-id: http://svn.automattic.com/wordpress/trunk@8079 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-13 23:52:07 +00:00
ryan
b583b36cfa Add paging to Manage->Categories. fixes #7136
git-svn-id: http://svn.automattic.com/wordpress/trunk@8078 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-13 23:22:29 +00:00
ryan
3189d5c197 Tag to cat converter improvements from azaozz. see #6909
git-svn-id: http://svn.automattic.com/wordpress/trunk@8077 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-13 20:23:29 +00:00
ryan
c9b341d759 Update phpdoc comment for wp-load.php. Props sambauers and hansengel. fixes #7127
git-svn-id: http://svn.automattic.com/wordpress/trunk@8076 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-13 19:39:04 +00:00
ryan
94eea943d6 wp.getUsersBlogs from josephscott. fixes #7130
git-svn-id: http://svn.automattic.com/wordpress/trunk@8075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-12 21:41:18 +00:00
ryan
6142025639 Encode < and > in wp_richedit_pre. Props azaozz. fixes #6449
git-svn-id: http://svn.automattic.com/wordpress/trunk@8073 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-12 21:38:34 +00:00
ryan
830428b928 Press This UI changes and photo loading fixes from noel. fixes #7120 see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@8071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-11 17:45:50 +00:00
ryan
2787d1fde5 Suppress notices while loading config. fixes #6933 see #7087
git-svn-id: http://svn.automattic.com/wordpress/trunk@8070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-11 17:27:28 +00:00
ryan
6adcab8b27 Introduce logged_in cookie. Deliver auth cookies only to wp-admin. see #7001
git-svn-id: http://svn.automattic.com/wordpress/trunk@8069 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-11 17:25:55 +00:00
ryan
b666a1c910 Cache get_plugins() list. Props DD32. fixes #7113
git-svn-id: http://svn.automattic.com/wordpress/trunk@8068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-10 16:57:33 +00:00
ryan
7939970055 Press This improvements from noel. fixes #7117
git-svn-id: http://svn.automattic.com/wordpress/trunk@8067 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-10 16:13:06 +00:00
ryan
2cc03f7d06 Unify TinyMCE image popup and insert image popup. Props azaozz. see #6811
git-svn-id: http://svn.automattic.com/wordpress/trunk@8066 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-10 04:40:21 +00:00
ryan
0679f8501d Back compat fixes for load_plugin_textdomain() from nbachiyski. see #6938
git-svn-id: http://svn.automattic.com/wordpress/trunk@8065 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-09 19:39:04 +00:00
ryan
39345ee61c jQuery UI 1.5
git-svn-id: http://svn.automattic.com/wordpress/trunk@8064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-09 19:37:55 +00:00
ryan
975a9c5120 Add php end tag. fixes #7111
git-svn-id: http://svn.automattic.com/wordpress/trunk@8063 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-09 17:36:39 +00:00
ryan
eeca693b1e Fix the tag suggest drop-down list for Press This. Props azaozz. see #7066
git-svn-id: http://svn.automattic.com/wordpress/trunk@8062 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-09 03:53:30 +00:00
ryan
d1e50738c7 Don't forget to echo. Props DD32. fixes #7107 see #7001
git-svn-id: http://svn.automattic.com/wordpress/trunk@8061 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-08 16:56:00 +00:00
ryan
385d3d9500 Add delete_plugins and update_plugins caps. Props DD32. fixes #7096
git-svn-id: http://svn.automattic.com/wordpress/trunk@8060 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-06 19:21:35 +00:00
ryan
5b1fffa322 Fix url encode/decode issues in Press This. Props noel. fixes #7105
git-svn-id: http://svn.automattic.com/wordpress/trunk@8059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-06 08:49:45 +00:00
ryan
c790febe36 More use of site_url(), admin_url(), and site_url(). Force login and admin links to be https if FORCE_SSL_LOGIN. see #7001
git-svn-id: http://svn.automattic.com/wordpress/trunk@8058 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-06 07:39:11 +00:00
ryan
ab39b3b321 Revert [8056], didn't quite work
git-svn-id: http://svn.automattic.com/wordpress/trunk@8057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-06 07:34:30 +00:00
ryan
23cfaa55e9 Update to swfupload 2.1.0
git-svn-id: http://svn.automattic.com/wordpress/trunk@8056 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-06 07:29:15 +00:00
ryan
220af4a96e Typo fix. fixes #7104
git-svn-id: http://svn.automattic.com/wordpress/trunk@8055 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-06 01:45:58 +00:00
ryan
570cb5374c Strip shortcodes when making excerpts. Props hailin. fixes #7100
git-svn-id: http://svn.automattic.com/wordpress/trunk@8054 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-05 20:11:38 +00:00
ryan
f3de02cca6 Use WP_CONTENT_DIR to fix theme editor file loading. Props ionfish. fixes #7097
git-svn-id: http://svn.automattic.com/wordpress/trunk@8053 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-05 16:39:20 +00:00
ryan
f7f3005004 close the socket in discover_pingback_server_uri
git-svn-id: http://svn.automattic.com/wordpress/trunk@8052 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-04 23:36:55 +00:00
ryan
06ec52753b Use WP_CONTENT_DIR in get_page_templates(). Props ionfish. see #7059
git-svn-id: http://svn.automattic.com/wordpress/trunk@8051 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-04 23:15:55 +00:00
ryan
0c9006cc2d Typo fix
git-svn-id: http://svn.automattic.com/wordpress/trunk@8050 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-04 20:21:02 +00:00
ryan
8377b52dc8 Bulk delete/activate/deactivate for plugins. Split plugins into active and available lists. Props DD32. see #7091
git-svn-id: http://svn.automattic.com/wordpress/trunk@8049 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-04 18:09:31 +00:00
ryan
6aaddbee0a Press This enhancement from noel. see #7066
git-svn-id: http://svn.automattic.com/wordpress/trunk@8048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-04 16:13:55 +00:00
ryan
f1b8d9596a TinyMCE 3.0.9 from azaozz. fixes #7088
git-svn-id: http://svn.automattic.com/wordpress/trunk@8047 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-04 15:31:14 +00:00
ryan
f9575ae66d Revert jQuery hack. see #7082
git-svn-id: http://svn.automattic.com/wordpress/trunk@8046 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-04 05:31:56 +00:00
ryan
aec22e8e72 Replace ref to dimensions with jquery core
git-svn-id: http://svn.automattic.com/wordpress/trunk@8045 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-04 05:19:23 +00:00
ryan
17c0d8910b Add missing semi. see #7082
git-svn-id: http://svn.automattic.com/wordpress/trunk@8044 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-04 01:52:27 +00:00
ryan
151bfc3ab1 Hacked up version of jQuery to workaround Safari 2.0.4 bug. see #7082
git-svn-id: http://svn.automattic.com/wordpress/trunk@8043 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-04 01:47:11 +00:00
ryan
b114864b84 Dimensions is now part of jquery core
git-svn-id: http://svn.automattic.com/wordpress/trunk@8042 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-04 01:24:04 +00:00
ryan
4f3b306abe Make load_plugin_textdomain() work with WP_CONTENT_DIR. Props sambauers. see #6938
git-svn-id: http://svn.automattic.com/wordpress/trunk@8041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-03 17:19:47 +00:00
ryan
51591b778b Use WP_CONTENT_DIR and URL when linking to theme screenshots. Props sambauers. see #6938
git-svn-id: http://svn.automattic.com/wordpress/trunk@8040 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-03 17:17:45 +00:00
ryan
6e6f0e753a Bump jQuery to latest svn.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-03 16:44:51 +00:00
ryan
f67c15ad9c Remove thickbox enqueueing. Props azaozz. fixes #7078
git-svn-id: http://svn.automattic.com/wordpress/trunk@8038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-03 15:39:20 +00:00
ryan
dbeefeb210 Enable autosave for fullscreen mode. Props azaozz. fixes #7069
git-svn-id: http://svn.automattic.com/wordpress/trunk@8037 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-03 08:15:39 +00:00
ryan
8ef3a7f4d2 Gears instead of Google Gears. Props azaozz. fixes #6965
git-svn-id: http://svn.automattic.com/wordpress/trunk@8036 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-03 08:14:38 +00:00
ryan
ed30026ce8 Word count fix from azaozz. fixes #6991
git-svn-id: http://svn.automattic.com/wordpress/trunk@8035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-03 08:13:33 +00:00
ryan
e455106cdf Don't unpublish pages when a user who can edit publised pages but not publish new pages edits a page. Props jeremyclarke. see #6943 #7070 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-03 06:44:40 +00:00
ryan
3b7179f50e Add thickbox to pages that use media uploader.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8033 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-02 21:46:25 +00:00
ryan
4bb7f1c0c4 Don't unpublish posts when a user edit who can edit publised posts but not publih new posts edits a post. Props jeremyclarke. see #7070 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-02 21:01:42 +00:00
ryan
282cb020ea Use ORIG_PATH_INFO, if available. Props singpolyma. fixes #6995
git-svn-id: http://svn.automattic.com/wordpress/trunk@8031 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-02 20:38:39 +00:00
ryan
f657d4cb64 New filter and phpdoc for get_image_tag(). Props jacobsantos. fixes #7065 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8029 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-31 19:12:55 +00:00
matt
727379047b Don't prepend the host if it's already a full URL.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-31 10:51:50 +00:00
ryan
2e51769171 Close link postboxes
git-svn-id: http://svn.automattic.com/wordpress/trunk@8026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-30 21:16:33 +00:00
ryan
1c60b9e2d6 add_meta_box() for edit link form. fixes #6964
git-svn-id: http://svn.automattic.com/wordpress/trunk@8025 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-30 21:16:15 +00:00
ryan
5ad5715af7 Add some noncing. Props andy.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8023 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-30 20:43:36 +00:00
ryan
a5336482b1 Add charset to async-upload content-type header. Props duncanmc. fixes #6873 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8021 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-30 20:42:28 +00:00
ryan
e7c4a9de85 get_post_ancestors() fixes. fixes #7029 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-30 20:31:45 +00:00
ryan
d1d186cd35 WP_Filesystem updates from DD32. See #7059
git-svn-id: http://svn.automattic.com/wordpress/trunk@8018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-30 16:14:05 +00:00
ryan
9b1e23680a Add label associations to press this. Props MarcoZ. fixes #7067
git-svn-id: http://svn.automattic.com/wordpress/trunk@8017 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-30 16:00:37 +00:00
ryan
8d7b9c3a08 Dashboard validation fixes from Viper007Bond and mdawaffe. fixes #7064
git-svn-id: http://svn.automattic.com/wordpress/trunk@8016 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-30 15:59:14 +00:00
ryan
d1073bd67d Write Post h2 positioning fix from azaozz. fixes #7063
git-svn-id: http://svn.automattic.com/wordpress/trunk@8015 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-30 00:07:26 +00:00
ryan
90731cb5eb Gears validation fixes. Props mdawaffe. see #6965
git-svn-id: http://svn.automattic.com/wordpress/trunk@8014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-29 23:36:26 +00:00
ryan
ed5eba0909 Make some of the color CSS selectors more specific so that the category tabs on the Write page don't get messed up. Props mdawaffe. see #6998
git-svn-id: http://svn.automattic.com/wordpress/trunk@8013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-29 23:30:28 +00:00
ryan
18fb540124 Validation fixes for post revisions. Props mdawaffe. see #6775
git-svn-id: http://svn.automattic.com/wordpress/trunk@8012 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-29 23:16:11 +00:00
ryan
0db872b5a1 Post revisions API cleanup from mdawaffe. see #6775
git-svn-id: http://svn.automattic.com/wordpress/trunk@8011 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-29 22:21:36 +00:00
ryan
9a21aad36a Typo fixes from azaozz. see #7059
git-svn-id: http://svn.automattic.com/wordpress/trunk@8010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-29 19:06:27 +00:00
ryan
ffd63e3b33 Make WP_Filesystem work with new directory constants. Props DD32. fixes #7059
git-svn-id: http://svn.automattic.com/wordpress/trunk@8009 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-29 17:29:32 +00:00
ryan
f3511b048c styles should come before scripts should come before head. Props mdawaffe
git-svn-id: http://svn.automattic.com/wordpress/trunk@8008 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-28 22:15:46 +00:00
ryan
2b4f2fd621 Press this reorg. Remove old bookmarklet. Props noel. see #7049
git-svn-id: http://svn.automattic.com/wordpress/trunk@8007 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-28 18:18:44 +00:00
ryan
995fe002be Use siteurl instead of home. Props msi08. fixes #7050
git-svn-id: http://svn.automattic.com/wordpress/trunk@8006 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-28 16:53:29 +00:00
ryan
f57354bf63 Fix duplicate comment notifications. Props MtDewVirus. fixes #6892 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8004 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-28 15:37:59 +00:00
ryan
eb60fb288d Always hide gears popup. Props azaozz. see #6965
git-svn-id: http://svn.automattic.com/wordpress/trunk@8003 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-28 00:09:19 +00:00
ryan
f804d1fa66 Stub site_url() and admin_url() for manifest. Props azaozz. see #6965
git-svn-id: http://svn.automattic.com/wordpress/trunk@8002 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-27 20:35:14 +00:00
ryan
af2c9dd301 Fix slashing in tag feed link. fixes #7044 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8000 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-27 17:56:46 +00:00
ryan
6c8d35de32 Allow wp-content to exist outside of webroot. Props sambauers. see #6938
git-svn-id: http://svn.automattic.com/wordpress/trunk@7999 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-27 17:55:24 +00:00
ryan
9771ec5110 First cut and better admin SSL support. see #7001
git-svn-id: http://svn.automattic.com/wordpress/trunk@7998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-27 17:46:01 +00:00
ryan
67c2a2aced Better random email addresses. Props nbachiyski. fixes #7020
git-svn-id: http://svn.automattic.com/wordpress/trunk@7997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-27 11:48:07 +00:00
ryan
c85f779dbb gettext fix from thenlich. fixes #6993 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7996 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-27 11:42:32 +00:00
ryan
7996d826e3 Fix serialization when adding meta via update_post_meta(). Props azaozz. fixes #7018
git-svn-id: http://svn.automattic.com/wordpress/trunk@7995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-27 11:33:11 +00:00
ryan
0aeb94233d inline docs for wp_admin_css(). Props mdawaffe. see #7033
git-svn-id: http://svn.automattic.com/wordpress/trunk@7994 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-25 21:23:22 +00:00
ryan
5564bccc32 Press This: Obey color scheme. Props azaozz. see #6998
git-svn-id: http://svn.automattic.com/wordpress/trunk@7993 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-25 20:39:16 +00:00
ryan
5322be300a File file level phpdoc from jacobsantos. see #7037
git-svn-id: http://svn.automattic.com/wordpress/trunk@7992 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-25 20:33:13 +00:00
ryan
a6a1522a8d File file level phpdoc from jacobsantos. see #7037
git-svn-id: http://svn.automattic.com/wordpress/trunk@7991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-25 15:50:15 +00:00
ryan
62784a594f phpdoc updates from jacobsantos. see #7038
git-svn-id: http://svn.automattic.com/wordpress/trunk@7990 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-25 15:45:05 +00:00
ryan
fba6b2415c Fixes timing issue in IE6 in the TB mod scripts. Reorders css files to load before js in the admin head. Props azaozz. fixes #7032
git-svn-id: http://svn.automattic.com/wordpress/trunk@7989 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-24 17:06:26 +00:00
ryan
b70d3b2028 Few css fixes for the media uploader, confirm delete of attachments from the library tab. Props azaozz. fixes #7033
git-svn-id: http://svn.automattic.com/wordpress/trunk@7988 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-24 17:03:51 +00:00
ryan
81a8e065c6 Allow defining the number of revisions to save. Props mdawaffe. see #6775
git-svn-id: http://svn.automattic.com/wordpress/trunk@7987 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-23 15:27:56 +00:00
ryan
58e47dcb4a wp_cache_add_global_groups() and wp_cache_add_non_persistent_groups(). fixes #6740
git-svn-id: http://svn.automattic.com/wordpress/trunk@7986 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-22 17:28:54 +00:00
ryan
53ecaddb5f Remove unnecessary checks for the existence of post meta data. Props filosofo. fixes #7018
git-svn-id: http://svn.automattic.com/wordpress/trunk@7985 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-22 16:33:06 +00:00
ryan
a3d971bd3e gettext for Press This. Props SteveAgl. fixes #702!
git-svn-id: http://svn.automattic.com/wordpress/trunk@7984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-22 15:48:32 +00:00
ryan
7d4065182b Press This fixes from noel. see #6998
git-svn-id: http://svn.automattic.com/wordpress/trunk@7983 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-22 15:47:37 +00:00
ryan
087c490eab Version bump, still bleeding.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7982 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-22 15:45:50 +00:00
ryan
526476fbcf Use style loader for gears manifest. Props azaozz. fixes #7015
git-svn-id: http://svn.automattic.com/wordpress/trunk@7981 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-22 15:27:28 +00:00
ryan
05f229cef0 Don't double escape. fixes #7018
git-svn-id: http://svn.automattic.com/wordpress/trunk@7980 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-22 00:12:17 +00:00
ryan
68a874a4dd wp_admin_css() improvements. Props mdawaffe. see #7011
git-svn-id: http://svn.automattic.com/wordpress/trunk@7979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-22 00:06:41 +00:00
ryan
3846bff484 Add non-existent values instead of returning g false in update_post_meta(). Props filosofo. fixes #7018
git-svn-id: http://svn.automattic.com/wordpress/trunk@7978 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-22 00:01:00 +00:00
ryan
631665ffe5 Remove colors from widgets.css, use colors css. Props johnhennmacc. fixes #7017
git-svn-id: http://svn.automattic.com/wordpress/trunk@7977 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-21 23:36:06 +00:00
ryan
9178934544 Add wp_default_styles(), convert wp_admin_css(). Props mdawaffe. see #7011
git-svn-id: http://svn.automattic.com/wordpress/trunk@7976 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-21 23:24:23 +00:00
ryan
1519e51f89 wp-ajax.js is no longer used
git-svn-id: http://svn.automattic.com/wordpress/trunk@7975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-21 20:27:36 +00:00
ryan
8f2a589e21 Add sorting to gallery. Props AaronCampbell. fixes #6988
git-svn-id: http://svn.automattic.com/wordpress/trunk@7974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-21 18:29:46 +00:00
ryan
5f8d0313a8 jQuery update
git-svn-id: http://svn.automattic.com/wordpress/trunk@7973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-21 18:19:44 +00:00
ryan
f0be83149e Add theme paging for those who can't bear to pare down their huge theme collection. You know who you are. see #5486
git-svn-id: http://svn.automattic.com/wordpress/trunk@7972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-21 17:36:41 +00:00
ryan
5b8113578d Allow wp-config.php to exist one level up from WordPress root directory. Props sambauers. fixes #6933
git-svn-id: http://svn.automattic.com/wordpress/trunk@7971 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-21 05:59:27 +00:00
ryan
e9aa24cffb Style loader from mdawaffe. see #7011
git-svn-id: http://svn.automattic.com/wordpress/trunk@7970 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-21 05:56:04 +00:00
ryan
d0e696c185 Allow lang and xml:lang for span. Props MtDewVirus. fixes #7003
git-svn-id: http://svn.automattic.com/wordpress/trunk@7969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-20 23:56:28 +00:00
ryan
ae3cca9951 Add space. Props MtDewVirus. fixes #6972
git-svn-id: http://svn.automattic.com/wordpress/trunk@7968 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-20 23:50:29 +00:00
ryan
f08f975835 Fix trackback meta box. Props mdawaffe. fixes #7010
git-svn-id: http://svn.automattic.com/wordpress/trunk@7967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-20 23:46:31 +00:00
ryan
41c7bca7d0 Don't use php 5 only component parameter to parse_url. Props azaozz. see #6998
git-svn-id: http://svn.automattic.com/wordpress/trunk@7966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-20 22:26:20 +00:00
ryan
47e6a79b98 Export and import post excerpts. Props kartik_subbarao. fixes #5555
git-svn-id: http://svn.automattic.com/wordpress/trunk@7965 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-20 22:22:21 +00:00
ryan
a54eb08d09 Widget edit link layout fixes from mdawaffe. fixes #6371
git-svn-id: http://svn.automattic.com/wordpress/trunk@7964 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-20 19:57:38 +00:00
ryan
74f878d040 Some URL cleaning
git-svn-id: http://svn.automattic.com/wordpress/trunk@7962 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-20 18:01:43 +00:00
ryan
bc07ef1efe Theme preview and thickbox CSS cleanup. Props azaozz. see #5486
git-svn-id: http://svn.automattic.com/wordpress/trunk@7961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-20 17:19:33 +00:00
ryan
e9ea1ab0ef get_archives_link filter. Props codealsatian. fixes #5530 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7959 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-20 16:43:44 +00:00
ryan
d917ddc2f5 Relocate signon to the top. Props AaronCampbell. fixes #7002
git-svn-id: http://svn.automattic.com/wordpress/trunk@7958 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-20 16:40:49 +00:00
ryan
60e440142e Press This styling updates from noel. fixes #6998
git-svn-id: http://svn.automattic.com/wordpress/trunk@7957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-20 16:37:54 +00:00
ryan
01acf41355 Put checked categories at the top of the checlist. Props mdawaffe. fixes #7000 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-19 21:35:18 +00:00
ryan
3ce00adc38 Use user_trailingslashit. Props Sam_a. fixes #6996 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-19 18:51:28 +00:00
ryan
96c73cc917 Make sure taxonomy args are set before using. Props Sam_a. fixes #6960 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7952 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-19 18:47:33 +00:00
ryan
9e4e87d975 Gears update from azaozz. see #6965
git-svn-id: http://svn.automattic.com/wordpress/trunk@7951 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-19 15:41:31 +00:00
ryan
c72356b0b4 Fix FTP SSL setting. Props DD32. fixes #6986 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-18 20:09:52 +00:00
ryan
78bad5259d add_meta_box() for edit page form. Props DD32. see #6964
git-svn-id: http://svn.automattic.com/wordpress/trunk@7948 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-18 20:08:18 +00:00
ryan
b8654e4cdf Check WP_INSTALLING when setting cookiehash. Props DD32. fixes #6990
git-svn-id: http://svn.automattic.com/wordpress/trunk@7947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-18 20:06:31 +00:00
ryan
0a0216a765 Trailing whitespace cleanup.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7946 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-17 18:50:54 +00:00
ryan
2ed0873cd2 Some escaping. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@7945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-16 23:20:56 +00:00
ryan
85df87de5a Init array. Props DD32. fixes #6981
git-svn-id: http://svn.automattic.com/wordpress/trunk@7944 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-16 16:33:11 +00:00
ryan
4e1a352771 Streamline manifest includes. Props azaozz. see #6965
git-svn-id: http://svn.automattic.com/wordpress/trunk@7943 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-16 16:25:33 +00:00
ryan
dc6fa76e51 Remove old #your-profile fieldset CSS. fixes #6982
git-svn-id: http://svn.automattic.com/wordpress/trunk@7942 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-16 16:18:23 +00:00
matt
2d8fa9ee21 get_queried_object should not return an array of terms, and wp_title should check is_tax. Hat tip: andy
git-svn-id: http://svn.automattic.com/wordpress/trunk@7941 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-16 03:57:09 +00:00
matt
7b0c0703f5 Fix default taxonomy query var. Populate taxonomy and term query vars ASAP. Fixes template fall-through. Hat tip: andy
git-svn-id: http://svn.automattic.com/wordpress/trunk@7940 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-16 02:35:24 +00:00
matt
691eccf400 Use TT ids instead of term ids. Hat tip: andy.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-16 01:43:35 +00:00
ryan
e9c054e143 Support for Google Gears managed offline storage. Props azaozz. see #6965
git-svn-id: http://svn.automattic.com/wordpress/trunk@7938 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-15 22:57:14 +00:00
ryan
4bf3397cb9 Clear out bad activation keys from 2.5.1. fixes #6842 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7936 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-15 20:07:54 +00:00
ryan
0553790ede jQuery UI core and tabs 1.5b4
git-svn-id: http://svn.automattic.com/wordpress/trunk@7935 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-15 03:45:42 +00:00
ryan
6762f6169e Press This: Fetch offsite images, fix slashing. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@7934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-15 00:20:27 +00:00
ryan
36badd926e Only img src. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@7933 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-14 23:21:28 +00:00
ryan
7ce984281f Press This: AJAX load all tabs, add tag UI, make category list scrollable.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7932 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-14 20:01:09 +00:00
ryan
aa927d3859 Brand as Press This. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@7931 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-14 16:59:07 +00:00
ryan
c46da4e0f5 Add default edit post meta boxes via API. see #6964
git-svn-id: http://svn.automattic.com/wordpress/trunk@7930 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-14 08:22:01 +00:00
ryan
b76608029b Word count detection fix from ramenboy. fixes #6967
git-svn-id: http://svn.automattic.com/wordpress/trunk@7929 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-14 04:07:42 +00:00
ryan
90973154fe Add spinner
git-svn-id: http://svn.automattic.com/wordpress/trunk@7928 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-13 22:17:29 +00:00
ryan
967ee06a32 Don't pass image list via GET. Fetch images remotely. Load photo tab via AJAX. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@7927 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-13 22:12:52 +00:00
ryan
7b1e56dc06 default is a valid page template. see #6098
git-svn-id: http://svn.automattic.com/wordpress/trunk@7925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-13 21:03:10 +00:00
ryan
9b7daff0b4 Quick post updates: More gettext, escaping, compress bookmarklet JS. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@7924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-13 16:02:12 +00:00
ryan
f6d1274333 Quick post TMCE improvements: add new theme, languages, support for Safari, modal dialogs, changed some settings to be the same like the write page, small css fixes. Props azaozz. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@7923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-13 15:22:52 +00:00
ryan
e44fe50107 Some cleaning
git-svn-id: http://svn.automattic.com/wordpress/trunk@7922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-13 00:03:11 +00:00
ryan
dcf35ab2ed Add some page template validation
git-svn-id: http://svn.automattic.com/wordpress/trunk@7921 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-12 23:51:54 +00:00
ryan
9830ab988c Quick post bookmarklet. First cut. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@7919 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-12 19:08:39 +00:00
ryan
359601b720 Resurrect comment approval notification. Props chmac. fixes #6892 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7917 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-12 16:14:15 +00:00
markjaquith
61881c0e82 Do not use the "home"-supplied host for canonical redirects if no host is there specified. props thenlich. fixes #6890
git-svn-id: http://svn.automattic.com/wordpress/trunk@7916 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-09 18:23:05 +00:00
ryan
6d3c98a56f strtolower widget id. Props filosofo. fixes #6949
git-svn-id: http://svn.automattic.com/wordpress/trunk@7915 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-09 16:29:17 +00:00
ryan
94eb7224bb Use wp_count_comments() in wp.getCommentCount. Props josephscott. fixes #6941
git-svn-id: http://svn.automattic.com/wordpress/trunk@7914 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-09 16:02:44 +00:00
ryan
3c8cb2b079 Revisioning for pages from mdawaffe. see #6775
git-svn-id: http://svn.automattic.com/wordpress/trunk@7913 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-09 15:59:17 +00:00
markjaquith
25b49b2ceb Remove last remaining user level checks in favor of capabilities checks. props filosofo. fixes #6940
git-svn-id: http://svn.automattic.com/wordpress/trunk@7912 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-09 00:45:17 +00:00
ryan
938f29414f Use array calling style. see #6647
git-svn-id: http://svn.automattic.com/wordpress/trunk@7911 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-08 19:19:58 +00:00
ryan
2abe38c548 number_format_i18n() for comments_number()
git-svn-id: http://svn.automattic.com/wordpress/trunk@7910 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-08 17:54:40 +00:00
ryan
0ddd511f36 global-rtl.css from mdawaffe. fixes #6931 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7908 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-08 17:46:46 +00:00
ryan
129d030c20 Move autosave to post revisions. Props mdawaffe. see #6775
git-svn-id: http://svn.automattic.com/wordpress/trunk@7907 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-08 17:25:07 +00:00
ryan
7a0f94ffa3 Query cleanups. Use absint, concat where instead of overwrite, make post_parent independent, sanitize post__in and post__not_in. Props mdawaffe. see #6772
git-svn-id: http://svn.automattic.com/wordpress/trunk@7906 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-08 05:17:27 +00:00
ryan
c25a6fe381 Fix page 404 when page_for_posts is empty. see #6539
git-svn-id: http://svn.automattic.com/wordpress/trunk@7905 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-07 19:57:15 +00:00
ryan
d8ee8494be [7064] introduces an extra query for each call to in_category(). Avoid the query if an int is passed.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-07 19:12:44 +00:00
ryan
87db175abe Add current_category option to wp_list_categories(). Props filosofo. fixes #6928
git-svn-id: http://svn.automattic.com/wordpress/trunk@7903 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-07 19:10:36 +00:00
ryan
5a9d1d9c8d Add arg as array. Props MtDewVirus. fixes #6924
git-svn-id: http://svn.automattic.com/wordpress/trunk@7902 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-06 17:28:24 +00:00
ryan
5d69e51c86 Expose page template functionality via XML-RPC. Props josephscott. fixes #6098
git-svn-id: http://svn.automattic.com/wordpress/trunk@7901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-06 16:49:42 +00:00
ryan
15a9bac5ad wp_insert_post() -- Validate page template, check return of insert and update queries, add option to return WP_Error. fixes #6227 see #6098
git-svn-id: http://svn.automattic.com/wordpress/trunk@7900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-05 23:19:27 +00:00
ryan
ecc6151966 Get color option for user being edited, not current user. Props regulatethis. fixes #6911 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7898 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-05 20:06:37 +00:00
ryan
04b03a7906 Show when a term is both a category and a tag, also when a child category is converted to a tag and then converted back, restore the child status, if the parent still exists. Props azaozz. fixes #6909
git-svn-id: http://svn.automattic.com/wordpress/trunk@7897 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-05 17:15:35 +00:00
ryan
0b05038ebb Add editable_slug filter. Props nbachiyski. see #6915
git-svn-id: http://svn.automattic.com/wordpress/trunk@7896 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-05 17:08:13 +00:00
ryan
742f09dbc7 Use full path to fs abstraction class. Props DD32. fixes #6912
git-svn-id: http://svn.automattic.com/wordpress/trunk@7895 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-05 17:06:29 +00:00
ryan
a3bc5f60da Use array calling style. Props DD32. see #6647
git-svn-id: http://svn.automattic.com/wordpress/trunk@7894 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-05 16:03:27 +00:00
ryan
34314a54e5 Add definite article. Props filosofo. fixes #5986
git-svn-id: http://svn.automattic.com/wordpress/trunk@7893 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-05 15:55:00 +00:00
ryan
3d5a874774 get_posts fixes from DD32 and filosofo. see #6772
git-svn-id: http://svn.automattic.com/wordpress/trunk@7892 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-05 15:46:32 +00:00
westi
26529c1423 Revert [7887] see #6915.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7891 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-05 08:15:54 +00:00
westi
a5dc032654 Add missing form end tag.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7889 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-04 21:31:29 +00:00
westi
7759f1672f Add ARIA markup for required fields. Fixes #6914 props MarcoZ.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7888 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-04 21:28:12 +00:00
westi
ae998b8a76 Make international slugs easier to edit. Fixes #6915 props options.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7887 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-04 21:13:42 +00:00
ryan
76dfbdfb11 Add blank to default avatars. Rename default to Mystery Man. see #6802
git-svn-id: http://svn.automattic.com/wordpress/trunk@7886 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-04 18:05:20 +00:00
westi
9962fa1f0b Always set the locale to something. Fixes #6872 props MarcoZ.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7885 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-04 17:28:42 +00:00
westi
38ebc1a0ee Fix _deprecated_function() and _deprecated_file() so that they work correctly. Props JonathanRogers and DD32.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7884 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-04 10:44:44 +00:00
westi
3cbcbbbfb4 Associate lables with form fields. Fixes #6859 props MarcoZ.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-04 10:37:06 +00:00
ryan
7623315990 Widget arrangement fix from azaozz. fixes #6876 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7881 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-04 02:05:18 +00:00
ryan
d9fd98601e Use WP_query in get_posts(). Props filosofo. fixes #6772
git-svn-id: http://svn.automattic.com/wordpress/trunk@7880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-03 20:08:32 +00:00
ryan
fbcbedc4f0 Default avatar selector. Props Viper007Bond. see #6802
git-svn-id: http://svn.automattic.com/wordpress/trunk@7879 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-03 00:56:16 +00:00
ryan
63d12e0b39 Use 'counts' cache group. see #6884
git-svn-id: http://svn.automattic.com/wordpress/trunk@7878 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-02 19:42:44 +00:00
ryan
c75f6c7695 Fix post name check prepare. Props westi. see #6894
git-svn-id: http://svn.automattic.com/wordpress/trunk@7876 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-02 17:28:19 +00:00
ryan
b9e595d3a5 Fix send_to_editor escaping. Props Glotzfisch. fixes #6898 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7874 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-02 17:25:54 +00:00
ryan
90f52c0fc3 Use array calling style. Props guillep2k for the find. fixes #6637 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-02 16:59:49 +00:00
ryan
2fd45c2192 Don't redirect robots. Props thenlich and DD32. fixes #6891
git-svn-id: http://svn.automattic.com/wordpress/trunk@7871 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-01 21:38:40 +00:00
ryan
4a19108aaf Classic theme navigation fix from Otto42. fixes #6513 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-01 21:35:57 +00:00
ryan
8c59e943d4 Add per post counting to wp_count_comments(). Props josephscott. fixes #6884
git-svn-id: http://svn.automattic.com/wordpress/trunk@7868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-01 16:52:48 +00:00
ryan
43fc7beb08 Refresh thickbox css. Props azaozz. fixes #6843 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7866 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-01 16:51:28 +00:00
ryan
8cabdbc588 Bump script vers. see #6843
git-svn-id: http://svn.automattic.com/wordpress/trunk@7864 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-30 23:33:57 +00:00
ryan
020eb02ef0 thickbox and media upload fixes from azaozz. fixes #6843
git-svn-id: http://svn.automattic.com/wordpress/trunk@7862 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-30 20:21:09 +00:00
ryan
96cdf5c7a7 send_to_editor fix for FF. Props azaozz. fixes #6864 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-30 20:12:39 +00:00
ryan
0f13be9815 Add comments_per_page filter
git-svn-id: http://svn.automattic.com/wordpress/trunk@7859 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-30 20:05:25 +00:00
ryan
7750cc0d90 Use number_format_i18n on Awaiting Moderation count. fixes #6700 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7857 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-29 23:19:31 +00:00
ryan
ef4c69fcfd Use number_format_i18n on Awaiting Moderation count. fixes #6700 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7855 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-29 23:02:15 +00:00
ryan
123a6091fb Word count from azaozz. see #4807
git-svn-id: http://svn.automattic.com/wordpress/trunk@7854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-29 19:17:23 +00:00
ryan
ca284189fb Typo fix
git-svn-id: http://svn.automattic.com/wordpress/trunk@7852 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-29 18:35:04 +00:00
ryan
f97c96fde0 Use wp_count_comments() instead of direct query.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-29 18:30:45 +00:00
ryan
88b23960fb widget_title filters from jhodgdon. fixes #6684
git-svn-id: http://svn.automattic.com/wordpress/trunk@7850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-29 16:08:19 +00:00
ryan
499ac46099 Multi-widget pattern documentation typo fixes from Jaymin Patel. fixes #6866
git-svn-id: http://svn.automattic.com/wordpress/trunk@7849 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-28 20:08:23 +00:00
ryan
45302a3d9a Add populate_options action. Props RanYanivHartstein. fixes #6854
git-svn-id: http://svn.automattic.com/wordpress/trunk@7848 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-28 19:55:00 +00:00
ryan
ded2d7929d Handle enclosures in xmlrpc. Props josephscott. fixes #3405
git-svn-id: http://svn.automattic.com/wordpress/trunk@7847 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-28 16:15:23 +00:00
ryan
a2220d1659 Consolidate class attributes. Props robertaccettura. fixes #6853 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7846 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-28 15:17:55 +00:00
westi
b119ab7003 Bump the db version so [7841] has an affect.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-28 06:19:33 +00:00
westi
5a375132ac Make sure the direct feed files work when siteurl == homeurl. Fixes #6460 for trunk props DD32.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7841 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-28 06:17:01 +00:00
ryan
2a8733a159 tempnam workarounds from DD32. see #6465
git-svn-id: http://svn.automattic.com/wordpress/trunk@7840 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-25 21:34:54 +00:00
ryan
7564d59d47 Don't reuse image_send_to_editor filter in get_image_tag(). Props AaronCampbell. fixes #6806 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7838 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-25 17:58:38 +00:00
ryan
87b1154989 Add arg to make special chars optional when generating passwords. fixes #6842 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-25 17:12:25 +00:00
ryan
cbf1aed77d Allow editing of attachmentts with no titles. Props mdawaffe. fixes #6839 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-25 15:28:08 +00:00
ryan
2fc180fa45 Move cap check up. Props mdawaffe. fixes #6838 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-25 15:23:11 +00:00
ryan
77087fe6fa Add cap checks. see #6838
git-svn-id: http://svn.automattic.com/wordpress/trunk@7827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-25 15:01:02 +00:00
markjaquith
4b2959f55b fix typo in [7820] for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-25 06:40:12 +00:00
ryan
76a87862bf Add some sanity checks
git-svn-id: http://svn.automattic.com/wordpress/trunk@7821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-25 06:20:18 +00:00
markjaquith
08f237c227 attribute_escape() and int-casting paranoia for trunk.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7820 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-25 06:15:17 +00:00
markjaquith
6d0ac532e3 attribute_escape() type in the media-uploder. props Alex Concha. for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7818 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-25 05:55:01 +00:00
markjaquith
60aab00ba1 Fix typo in wp_save_revision(). props Andy. see #6775
git-svn-id: http://svn.automattic.com/wordpress/trunk@7817 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-25 04:41:41 +00:00
markjaquith
ca6bd9ebd5 Don't wpautop()-wrap shortcodes that stand alone. fixes #6444 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-25 00:45:31 +00:00
markjaquith
6930439dfe Revert [7700] from trunk in preparation for a different #6444 solution
git-svn-id: http://svn.automattic.com/wordpress/trunk@7814 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-25 00:43:44 +00:00
ryan
f3d3b700f5 Bump the autosave re-enable delay to 5 seconds, makes sure we manually re-enable the buttons on ajax success, and visually dim the disabled buttons for some UI feedback. Props mdawaffe. fixes #6707 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7813 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-25 00:32:29 +00:00
ryan
31f09d0b85 Typo fix
git-svn-id: http://svn.automattic.com/wordpress/trunk@7810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-24 17:33:58 +00:00
ryan
b67cfee094 Document new secret-key API in sample config.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7808 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-24 17:26:36 +00:00
ryan
123cd6550a Discard buffers. Props azaozz. fixes #6794 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7804 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-24 01:25:33 +00:00
ryan
0101f8809d strlen - 1. Props mdawaffe. see #6146
git-svn-id: http://svn.automattic.com/wordpress/trunk@7802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-24 01:13:35 +00:00
ryan
cad2447ddc Don't query for checked categories for new posts.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7800 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-24 00:54:27 +00:00
ryan
eb9c8420db hash_hmac is always available. Drop function_exists check
git-svn-id: http://svn.automattic.com/wordpress/trunk@7797 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-24 00:30:49 +00:00
ryan
4680f8f084 Add length arg to wp_generate_password() and lengthen secret. Props tellyworth. fixes #6146 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7796 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-24 00:19:09 +00:00
markjaquith
1e811e8742 Fix redirect issue with null post_ID equaling null url_to_postid(). fixes #6674 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7794 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-23 22:58:36 +00:00
ryan
eaf44137c6 Reverting [7729]. Breaks listing of categories with posts that have parents with no posts.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7792 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-23 22:00:31 +00:00
ryan
8709169ef9 Disable buttons until autosave completes. Props mdawaffe. fixes #6707 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7790 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-23 02:22:55 +00:00
ryan
b82f47cc97 Disable buttons until autosave completes. Props mdawaffe. fixes #6707 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7788 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-23 01:55:58 +00:00
ryan
4a31dc117f Fix reveresed logic. see #6805
git-svn-id: http://svn.automattic.com/wordpress/trunk@7787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-23 01:25:01 +00:00
ryan
5ea7b64496 Typo fixes from DD32. fixes #6818 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7785 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-23 01:14:26 +00:00
ryan
5d839715d5 don't get or set post_lock if you can't edit the post/page. Props mdawaffe
git-svn-id: http://svn.automattic.com/wordpress/trunk@7781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-22 23:54:13 +00:00
ryan
fe4cab3d1f Fix text widget cropping in IE6. Props mdawaffe. fixes #6792 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-22 23:48:28 +00:00
ryan
6e23bed1fd wp_category_checklist() fixes from mdawaffe. fixes #6810 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-22 22:45:53 +00:00
ryan
444391eaff Consolidate get_pending_comments_num() queries. see #6770
git-svn-id: http://svn.automattic.com/wordpress/trunk@7775 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-22 21:26:01 +00:00
ryan
bf40169710 Silence ini_get warnings. fixes #6787 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-22 21:24:34 +00:00
ryan
4bcb8222b5 Typo fix from peaceablewhale. fixes #6579 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7772 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-22 21:16:42 +00:00
ryan
c77c239754 Normalize whitespace when parsing shortcodes. Props azaozz. fixes #6562 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-22 20:54:51 +00:00
ryan
779ff029f6 Comment query fix from MtDewVirus. fixes #6805 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7766 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-22 20:51:35 +00:00
ryan
d95ea6777b Convert Walker classes to pass as reference. Props mdawaffe. fixes #6796 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-21 19:30:54 +00:00
ryan
23fd331b4a Post and page edit redirect fixes. fixes #6720 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7759 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-21 17:54:56 +00:00
ryan
8d6d1af393 Check if PATH_INFO is set to avoid undefined index errors. see #5160
git-svn-id: http://svn.automattic.com/wordpress/trunk@7757 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-21 17:35:20 +00:00
ryan
8aa8fbfd28 Redirect back to original referer when deleting a comment from the edit comment page. fixes #6458 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7755 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-21 16:45:48 +00:00
matt
6943482d3b For some reason taxonomy pages also return is_home, so we need to put this check first.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-21 06:28:50 +00:00
ryan
5889755c66 Don't include perm as part of cache key if perm is not used in the query.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7752 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-20 21:26:10 +00:00
ryan
5ecd57c4de Check publish_pages capability, not publish_posts. Props matthijs. fixes #6777 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7750 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-20 06:48:00 +00:00
ryan
8591767741 Fix pass by ref error. Props DD32. fixes #6776 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7749 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-20 06:45:13 +00:00
ryan
35086b850f Post revisions from mdawaffe. see #6775
git-svn-id: http://svn.automattic.com/wordpress/trunk@7747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-18 23:38:21 +00:00
ryan
17deb910aa Fix meta_key and meta_value queries in get_pages(). Props filosofo. fixes #6773 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-18 22:29:43 +00:00
ryan
fbe04fbf90 Shift-click to select a range of checkboxes. Props mdawaffe. fixes #6541 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7745 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-18 22:23:02 +00:00
ryan
38d7abdfea Move cache cleaning of children to clean_post_cache(). see #6702
git-svn-id: http://svn.automattic.com/wordpress/trunk@7743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-18 20:23:50 +00:00
ryan
14ed05e98b Remove debug cruft
git-svn-id: http://svn.automattic.com/wordpress/trunk@7742 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-18 20:06:46 +00:00
ryan
80fbb3b27d Consult the cached user object in get_usermeta to avoid queries.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7741 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-18 19:00:07 +00:00
ryan
2ca92d8905 Don't run url_to_postid on admin pages.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7740 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-18 18:22:33 +00:00
ryan
65e4ddc684 Don't query post cats if no post. see #2621
git-svn-id: http://svn.automattic.com/wordpress/trunk@7739 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-18 18:12:04 +00:00
ryan
3495bf80e0 Only use the args defined in defaults to compute the cache key in get_terms. Props mdawaffe.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-18 17:42:13 +00:00
ryan
1fdbde921b wp_category_checklist() and wp_link_category_checklist() to replace the nested cats code. see #2621
git-svn-id: http://svn.automattic.com/wordpress/trunk@7737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-18 17:41:10 +00:00
ryan
926754275c If widget ID not found, scan the entire registered widgets array looking for legacy IDs. Props Denis-de-Bernardy. fixes #6605 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7736 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-18 02:19:45 +00:00
ryan
019e456c4c Checking for 0 and 1 instead of != spam is faster.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7732 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-17 22:33:35 +00:00
ryan
f42f78b3b1 Typo fix. see #6578
git-svn-id: http://svn.automattic.com/wordpress/trunk@7730 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-17 22:00:39 +00:00
ryan
84bd7d6a00 We don't need get_categories() to do a hierarchical sort anymore. The walker takes care of it.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7729 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-17 21:21:13 +00:00
ryan
3389df53f2 don't cache during title extraction. Props mdawaffe. fixes #6694 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7728 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-17 20:42:47 +00:00
ryan
3821189be8 Tweak unused widgets interface. Make widget titles less repetitive. fixes #6349 #5823 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-17 20:36:59 +00:00
ryan
baba01caff Make link widget IDs unique. Props docwhat. fixes #4287 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-17 20:32:13 +00:00
ryan
66ad98c078 Verify widget option sanity. Props Viper007Bond. fixes #6578 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-17 20:14:07 +00:00
ryan
d5f5f07270 Revert [7689], gonna try another approach. see #6677
git-svn-id: http://svn.automattic.com/wordpress/trunk@7720 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-17 19:32:38 +00:00
ryan
35f17e4dea Key meta box array by id. Props Denis-de-Bernardy. fixes #6192 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-17 19:20:15 +00:00
ryan
26fd2097a0 Protect the <pre> and <script> tags when switching editors. Props azaozz. fixes #6610 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-17 19:11:21 +00:00
ryan
e399f6ad54 Cache comment count and use count API in menu.php
git-svn-id: http://svn.automattic.com/wordpress/trunk@7714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-16 23:45:39 +00:00
ryan
957a61318b array_shift() error fixes from DD32. fixes #6499 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7713 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-16 23:09:51 +00:00
ryan
7387154152 Bump script loader ver. see #6753
git-svn-id: http://svn.automattic.com/wordpress/trunk@7710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-16 22:58:15 +00:00
ryan
d18e3f9d4a Preserve author during autosave. fixes #6753 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-16 22:56:37 +00:00
ryan
a5f480ebec Legacy uploader fix from tellyworth. fixes #6629 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7707 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-16 22:03:44 +00:00
ryan
5748fbb486 Make profile fields wider. Props tellyworth. fixes #6581 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-16 22:01:32 +00:00
ryan
3b95476f1c image_make_intermediate_size filter from tellyworth. fixes #6580 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7703 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-16 21:59:23 +00:00
ryan
4e74faa972 Default cap arg should be an empty array. Props tellyworth. fixes #5520
git-svn-id: http://svn.automattic.com/wordpress/trunk@7701 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-16 21:56:03 +00:00
markjaquith
9df4077f95 Allow shortcodes to run before or after wpautop()/texturize() formatting. Default to before for WP 2.5 compat. Props AaronCampbell
git-svn-id: http://svn.automattic.com/wordpress/trunk@7699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-16 21:07:04 +00:00
ryan
7f5548e55b Custom header and color picker fixes from mdawaffe. fixes #6577 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-16 20:58:03 +00:00
ryan
62d5105c5b Fix usermeta escaping. fixes #6750
git-svn-id: http://svn.automattic.com/wordpress/trunk@7696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-16 18:23:48 +00:00
ryan
a60abc0904 Add post ancestors to the cache for the post object. see #6702 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-16 17:23:17 +00:00
ryan
d814986be2 Strip slashes before preparing link for insert. see #6644
git-svn-id: http://svn.automattic.com/wordpress/trunk@7693 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-16 05:55:27 +00:00
ryan
82fd123c91 Relocate wp_authenticate action to fix back compat and make it more useful. fixes #6675 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7692 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-16 04:49:19 +00:00
ryan
ce1fed1a02 Strip slashes before preparing comment insert to avoid double-slashing. Props filosofo. fixes #6738
git-svn-id: http://svn.automattic.com/wordpress/trunk@7690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-15 18:05:08 +00:00
ryan
47a695049e Demand load the category list. Props mdawaffe. see #6677
git-svn-id: http://svn.automattic.com/wordpress/trunk@7689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-15 18:00:52 +00:00
ryan
f8cea0117c Add or remove class=aligncenter when aligning images in TinyMCE. Props azaozz. fixes #6645 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-15 16:03:24 +00:00
ryan
c92c2be2af Fix menu_order ordering. Props torfason. fixes #6731 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7685 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-15 01:39:33 +00:00
ryan
cab4206406 Workaround response truncation by reducing size of response after uploading with flash uploader. Props tellyworth. fixes #6713
git-svn-id: http://svn.automattic.com/wordpress/trunk@7682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 23:09:14 +00:00
ryan
6ec2c0877b tiny_mce_gzip.php no longer needed
git-svn-id: http://svn.automattic.com/wordpress/trunk@7681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 22:30:16 +00:00
ryan
713a705b52 TinyMCE 3.0.7 from azaozz. fixes #6726 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 22:19:04 +00:00
ryan
b97e7fa82b Fix IE6 overlap and remove unnecessary markup. Props tellyworth. fixes #6661 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 20:48:11 +00:00
ryan
47c6ee0e09 Suppress exif_read_data() errors. Props tellyworth. fixes #6571 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 20:19:15 +00:00
ryan
02e0c889f7 Pass size to image_send_to_editor filter. fies #6691 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7671 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 19:47:07 +00:00
ryan
8eff77e82d More efficient category and list JS from mdawaffe. fixes #6677 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7669 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 19:31:20 +00:00
ryan
7d2a7755a3 Fix category exclusion when getting adjacent posts. Props filosofo. fixes #6551 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7667 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 17:56:58 +00:00
ryan
1a41abe289 Handle pathinfo structures when determining if verbose page rules should be used. Props dlo. fixes #6650 #6570 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7665 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 17:18:53 +00:00
ryan
6e662d708b Move define of AUTOSAVE_INTERVAL to wp-settings so that it is available earlier. Props simonwheatley. fixes #6668 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7664 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 17:07:34 +00:00
ryan
b7c7f9d1c2 CSS typo fixes from spirit55555. fixes #6653 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7662 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 17:05:24 +00:00
ryan
4c9d2e9dfa Check create_users cap instead of edit_users wgen adding/inserting users. Props imwebgefunden. fixes #6662 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 16:57:29 +00:00
ryan
b9b5291c18 Typo fixes. see #6644
git-svn-id: http://svn.automattic.com/wordpress/trunk@7658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 16:49:17 +00:00
ryan
56f15cb1bf Add missing comma. see #6644
git-svn-id: http://svn.automattic.com/wordpress/trunk@7657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 16:45:12 +00:00
ryan
ab7af57751 Use input instead of button to work around IE6 bug. Props tellyworth. fixes #6660 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 16:38:25 +00:00
ryan
1d67896b70 Validation fixes for uploader. Props sambauers. fixes #6659 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 16:33:37 +00:00
ryan
b83563f368 Add some actions and filters to the media uploader. Props tellyworth. fixes #6658 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7652 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 16:32:04 +00:00
ryan
030a8b9b33 Fix image fetching in get_media_items(). Props tellyworth. fixes #6657 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7651 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 16:30:27 +00:00
ryan
d943a8252a Make MT post status lower case when importing. Props jgbishop. fixes #6656 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 16:26:21 +00:00
ryan
972851a755 Make get_posts args optional. Props karlkatzke and Otto42. fixes #6608 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 16:23:29 +00:00
ryan
248a0c06e2 Prepare DB queries in more places. Props filosofo. see #6644
git-svn-id: http://svn.automattic.com/wordpress/trunk@7645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 16:13:25 +00:00
ryan
796ae7104e Use error handler instead of die when moving files to upload dir fails. Props simonwheatley. fixes #6450 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 16:01:59 +00:00
ryan
36c9588f08 phpdoc typo fix from filosofo. fixes #6712 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-14 15:53:09 +00:00
matt
43c3c8ef36 Direct file system manip fixes, should fix .svn upgrade problem. Hat tip: DD32.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-13 04:04:57 +00:00
ryan
81370476f4 Add post_date_column_time filter for easy time customization.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-10 18:59:17 +00:00
ryan
132ac51a5a Use wp_count_posts() to determine availabel statuses for get_available_post_statuses(). fixes #6654 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-09 20:09:45 +00:00
ryan
5b1208ebc3 Don't send content length for tinymce config. Props azaozz. fixes #6524 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7635 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-09 19:02:13 +00:00
ryan
77be80f02c Change get_the_time filter to get_post_time for the get_post_time() function. Props filosofo. fixes #6641 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7634 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-08 17:33:42 +00:00
ryan
79e2e8fa76 Use DB prepare on login queries. Props filosofo. fixes #6640 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-08 17:30:14 +00:00
ryan
4a33d268ab Strip percent signs when sanitizing filenames so the server doesn't try to decode entities. Props filosofo. fixes #5587 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-08 17:22:20 +00:00
ryan
3fffac7d5d Disambiguate default slugs. Props RanYanivHartstein. fixes #6614 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7628 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-08 17:14:18 +00:00
ryan
9714b08b71 Move category query to get category case of get_permalink to avoid unnecessary queries. Props mdawaffe. fixes #6638 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-08 01:55:04 +00:00
ryan
9ffa66c56c Show all categories in category filter. Don't show misleading counts. see #6439
git-svn-id: http://svn.automattic.com/wordpress/trunk@7625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-08 01:53:53 +00:00
ryan
c3e32dcd4e Revert [7605]. It breaks setting posts page. see #6539
git-svn-id: http://svn.automattic.com/wordpress/trunk@7622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-08 01:05:45 +00:00
ryan
3794dc04b4 Avoid data-loss when editing multi-widgets. Props mdawaffe. fixes #6636 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-07 21:40:32 +00:00
ryan
92fe7fcad0 Fix add_users_page() when current user does not have edit_users cap. Props mattyrob. fixes #6621 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-07 21:25:31 +00:00
ryan
4e1465b8d9 Remove unused starify function. Props josephscott. fixes #6634 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7617 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-07 21:13:48 +00:00
ryan
27167db9c3 Escape faultString in IXR. Props josephscott. fixes #5666 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-07 18:30:51 +00:00
ryan
aeb2b5bf9f Update timestamp when only the minute value is changed. fixes #6456 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-07 17:19:43 +00:00
ryan
aad4350fb1 upload_file_glob filter from tellyworth. fixes #6628 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7611 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-07 17:10:00 +00:00
ryan
90952804da Update timestamp when only the minute value is changed. fixes #6456 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7609 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-07 17:06:56 +00:00
ryan
82f01c5c79 Fix RTL alignment for delete button. Props RanYanivHartstein. fixes #6617 for 2.6
git-svn-id: http://svn.automattic.com/wordpress/trunk@7607 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-06 23:26:25 +00:00
ryan
81d1b488a9 Explicit ID check so we don't fall through for empties. Props natecook. fixes #6539 for 2.6
git-svn-id: http://svn.automattic.com/wordpress/trunk@7605 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-06 23:23:05 +00:00
ryan
f83ca8ec0d Order cats by name. Props MtDewVirus. fixes #6623 for 2.6
git-svn-id: http://svn.automattic.com/wordpress/trunk@7603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-06 22:29:18 +00:00
matt
6099258ff9 Allow TinyMCE to work under SSL. Fixes #6544. Hat tip: blenjee, azaozz.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-06 21:29:36 +00:00
matt
ad1c6ea083 The child should not have to pay for the sins of his father. Caching for children needs to be cleared when parent is edited; if we check for empty and not isset, it never gets better for empty results.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7601 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-05 05:54:08 +00:00
matt
70dae93a6a Deal more elegantly with blogs with blank titles. (Which is apparently pretty common.)
git-svn-id: http://svn.automattic.com/wordpress/trunk@7600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-05 00:54:56 +00:00
westi
fd890d1fb4 Don't add new lines around the <!--more--> tag when posting over xmlrpc. Fixes #6016 props josephscott and redsweater.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-03 20:56:48 +00:00
westi
ca41e227ad Select the link in the link popup again. Fixes #6521 for trunk props azaozz.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-03 20:14:37 +00:00
markjaquith
aff9f47646 Don't show delete checkbox for default category. HTML validation. props johnbillion. fixes #6560 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7595 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-03 05:02:19 +00:00
markjaquith
6a41b549d0 Fix gallery shortcode orderby param for all SQL setups. Sanitize orderby. fixes #6476 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7592 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-03 03:05:49 +00:00
westi
9a15c3a960 Ensure we only fire off ajax requests for the dashboard widgets when the cache has expired. Fixes #6533 for trunk props mdawaffe.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-02 16:22:53 +00:00
westi
3eee635513 Replace the last usage of ctype_digit with is_numeric. Fixes #6534 for trunk props mtekk.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-02 16:18:11 +00:00
markjaquith
29a551d786 Sanitize "cat" query var and cast to int before looking for a category template
git-svn-id: http://svn.automattic.com/wordpress/trunk@7586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-02 13:15:21 +00:00
westi
8ca58c943e Rearrange the media uploader view so the filename is visible. Fixes #6517 for trunk props andy.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-01 21:12:35 +00:00
markjaquith
e0e2dedba5 Do not hyperlink the "Edit this entry" period. props phocks. fixes #6488
git-svn-id: http://svn.automattic.com/wordpress/trunk@7582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-31 17:02:41 +00:00
markjaquith
359fb2aced Parse shortcodes AFTER wpautop() to avoid mangling. Have wptexturize() ignore shortcodes so quotes stay straight. fixes #6444 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7581 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-31 07:56:58 +00:00
westi
74a7fc7923 Specify collation as well when connecting to the database if it is provided. See #6410 for trunk.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7579 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-30 17:56:27 +00:00
markjaquith
6e9a44bd99 Move user search </form> to correct position. props Nazgul and bl968. fixes #6462 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-30 16:48:31 +00:00
markjaquith
5ab9ee6a8f Gallery XHTML validation fixes. props shelleyp. fixes #6461 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7575 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-30 16:41:43 +00:00
westi
88cbd04406 Make sure the rewrite rules for the feed files match when WordPress is installed in a subdirectory. See #6460 this is for trunk.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-30 13:42:03 +00:00
markjaquith
9eeb25a302 Remove errant commas to prevent file uploader script errors in IE7. props tsimmons. fixes #6443 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-30 06:11:30 +00:00
markjaquith
1e668ea293 Update timestamp when only the minute value is changed. props johnconners. fixes #6456 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7570 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-30 06:00:59 +00:00
westi
9e849cc2ec Trunk is for 2.6 development now.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7569 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-29 16:47:16 +00:00
matt
81f9a12d30 Live from WordCamp Dallas. :)
git-svn-id: http://svn.automattic.com/wordpress/trunk@7566 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-29 14:39:28 +00:00
markjaquith
8462894aef Cannot use Silk icon because of an incompatible license. Not really needed with background color and "Active" text anyway. see #6275
git-svn-id: http://svn.automattic.com/wordpress/trunk@7565 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-29 07:21:12 +00:00
markjaquith
a364c8f80e Sync page edit and post edit redirect message usage a bit more -- properly exclude the page.php file from the "go back" link for page edits.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7564 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-29 06:47:30 +00:00
matt
214aaea94f In some environments people can override most things but not mod_sec rules, so this breaks their blog and they can't recover unless they manually edit the file. There is no way to detect whether you can overwrite the rules or not.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-29 04:03:09 +00:00
westi
73768f4a8d Remove the slash from html generators and camelcase WP. Fixes #6440 props lloydbudd.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7562 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-28 19:05:22 +00:00
matt
a419491688 Shortcode quotes were getting texturized, which can cause a bit of chaos. Fixes #6436.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7561 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-28 15:23:09 +00:00
ryan
111549dfc0 RC3
git-svn-id: http://svn.automattic.com/wordpress/trunk@7560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-28 07:02:55 +00:00
ryan
121fca1624 Drop trackbacks that request UTF-7
git-svn-id: http://svn.automattic.com/wordpress/trunk@7559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-28 06:51:19 +00:00
ryan
c4865c3418 Disable mod_security for uploader. Props andy. see #6406
git-svn-id: http://svn.automattic.com/wordpress/trunk@7558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-28 06:08:20 +00:00
ryan
acb9f8f738 do not add rel if link is not get_attachment_link. Props andy. fixes #6428
git-svn-id: http://svn.automattic.com/wordpress/trunk@7557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-28 03:53:05 +00:00
ryan
a29ec701f5 TinyMCE RTL and paste as plain text fixes from azaozz. fixes #6429
git-svn-id: http://svn.automattic.com/wordpress/trunk@7556 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-28 03:49:35 +00:00
ryan
77d5b58105 Rehash old md5 hashes inside of wp_check_password() to make hashing more pluggable.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-27 22:44:47 +00:00
ryan
585f442ec5 Redirect back to attachment permalink page after editing attachment via 'Edit This' link.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-27 22:05:51 +00:00
ryan
f37928e5e5 Updated RTL for default theme from mani_monaj. see #6296
git-svn-id: http://svn.automattic.com/wordpress/trunk@7553 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-27 20:42:50 +00:00
ryan
5a3c15d7bd RTL fixes from mani_monaj. see #6296
git-svn-id: http://svn.automattic.com/wordpress/trunk@7552 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-27 20:33:56 +00:00
ryan
6d81b777d7 Remove unanchored string replacement. Props nh7a. fixes #6423
git-svn-id: http://svn.automattic.com/wordpress/trunk@7551 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-27 20:10:29 +00:00
westi
a0706cbb8a Allow a plugin to force enable/disable the flash uploader. See #6406 props DD32.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7550 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-27 17:37:37 +00:00
ryan
ba90d16134 Use is_numeric instead of ctype_digit. Props josephscott. fixes #5481
git-svn-id: http://svn.automattic.com/wordpress/trunk@7549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-27 16:56:56 +00:00
ryan
29839a2fb5 Localize date in dashboard. Props hervada and nbachiyski. fixes #6397
git-svn-id: http://svn.automattic.com/wordpress/trunk@7548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-27 08:09:06 +00:00
ryan
3cfb4b406c Return WP_Error from download_url() on HTTP Errors. Fix cases where current plugin filename differs from the WordPress.org slug. Props DD32. see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@7547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-27 07:36:30 +00:00
ryan
70a2ebbdd3 Init categories array. Props tellyworth. fixes #6411
git-svn-id: http://svn.automattic.com/wordpress/trunk@7546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-27 07:20:53 +00:00
ryan
a480e4e55b Allow register_taxonomy() to be called before init for back compat with impatient plugins.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-27 06:30:20 +00:00
markjaquith
2b93618c82 Tags work without JS, so we should not hide them!
git-svn-id: http://svn.automattic.com/wordpress/trunk@7544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-27 03:02:54 +00:00
markjaquith
f945af84d8 Don't show broken parent post links for orphaned media. fixes #6408
git-svn-id: http://svn.automattic.com/wordpress/trunk@7543 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-27 02:50:01 +00:00
ryan
b9fff33927 Media edit and delete redirect fixes. WIP.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-27 01:48:22 +00:00
matt
efef565261 Make calls in image.php template more explicit to allow for easier hacking and adaptation.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7541 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-27 00:13:14 +00:00
ryan
74cff8bd3c Add nonce and gettext to sidebar.php. Fix sidebar redirect.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 23:41:41 +00:00
matt
f43fba3559 .clear class was used, but undefined, which could cause funky image navigation at some sizes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 23:12:54 +00:00
ryan
bfba721708 Active plugin highlighting tweaks from MT. fixes #6275
git-svn-id: http://svn.automattic.com/wordpress/trunk@7538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 22:27:27 +00:00
ryan
b39d0790ec Fix redirects after editing and deleting link categories.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 22:21:01 +00:00
ryan
8c42926dee Fix redirects after editing and deleting tags.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 21:54:02 +00:00
ryan
fccd2c132e Fix user feedback when editing attachment details immediately after upload. Props andy. fixes #6398
git-svn-id: http://svn.automattic.com/wordpress/trunk@7535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 21:26:28 +00:00
ryan
d9e10dd831 Fix user feedback when editing attachment details immediately after upload. Props andy. fixes #6398
git-svn-id: http://svn.automattic.com/wordpress/trunk@7534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 21:22:19 +00:00
markjaquith
feece21b1f Use attachment title instead of filename, unless it is empty
git-svn-id: http://svn.automattic.com/wordpress/trunk@7533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 21:00:21 +00:00
markjaquith
740f33ea4b Autosave fixes for attachments from andy. fixes #6389
git-svn-id: http://svn.automattic.com/wordpress/trunk@7532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 20:28:40 +00:00
ryan
bba593e250 Fix attachment links for permalink structures containing category tag. Props andy. fixes #4699
git-svn-id: http://svn.automattic.com/wordpress/trunk@7531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 20:17:31 +00:00
markjaquith
f0a9ece115 Use red background delete style for Delete Comment link on Edit Comment screen. fixes #6396
git-svn-id: http://svn.automattic.com/wordpress/trunk@7530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 20:15:52 +00:00
markjaquith
e6f396880b Clean up the Write Post/Write Page/Edit Comment screens for people without JS. Introduce the hide-if-no-js and hide-if-js automagical classes. fixes #6395
git-svn-id: http://svn.automattic.com/wordpress/trunk@7529 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 20:06:18 +00:00
ryan
07697db8d1 Link to post instead of post editor from edit-comments.php.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 19:35:42 +00:00
ryan
1c0b403516 Redirect consistency when saving pages and posts.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 18:55:24 +00:00
ryan
f2d7699045 get_term_link() fixes for core taxonomies. Props andy. see #6357
git-svn-id: http://svn.automattic.com/wordpress/trunk@7526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 18:26:22 +00:00
ryan
6a700defeb Fix plugin error scraping in the plugin editor. Props DD32. fixes #6332
git-svn-id: http://svn.automattic.com/wordpress/trunk@7525 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 16:14:29 +00:00
ryan
5d7980a249 Honor redirect_to for logged in users. Props DD32. fixes #6385
git-svn-id: http://svn.automattic.com/wordpress/trunk@7524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 07:43:52 +00:00
markjaquith
95672cb4a2 Old school green color for active plugins was harshing on my WP 2.5 zen colors. see #6275
git-svn-id: http://svn.automattic.com/wordpress/trunk@7523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 07:29:28 +00:00
markjaquith
75a2f04fa9 Consensus is to make "Visit Site" links open in the same tab/window. fixes #6163
git-svn-id: http://svn.automattic.com/wordpress/trunk@7522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 07:14:07 +00:00
ryan
89fc6085db RC2
git-svn-id: http://svn.automattic.com/wordpress/trunk@7521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 06:50:42 +00:00
ryan
e1b1845154 Taxonomy links and template tags from andy. see #6357
git-svn-id: http://svn.automattic.com/wordpress/trunk@7520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 06:37:19 +00:00
matt
909c0f8fbd Removing active image.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 04:48:20 +00:00
ryan
ed0379930b Tweak active plugin highlighting. WIP. see #6275
git-svn-id: http://svn.automattic.com/wordpress/trunk@7518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 04:23:02 +00:00
ryan
7e93fa628f Filter list of plugins actions. Props DD32. see #5660
git-svn-id: http://svn.automattic.com/wordpress/trunk@7517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 03:59:40 +00:00
ryan
65d22bd47c Handle more than 3 columns in gallery. Props Dickie. fixes #6382
git-svn-id: http://svn.automattic.com/wordpress/trunk@7516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 03:34:55 +00:00
ryan
7971f0a536 Markup fixes for plugins page from DD32. fixes #6383
git-svn-id: http://svn.automattic.com/wordpress/trunk@7515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 03:33:14 +00:00
ryan
d25d202e72 Pass box to add_meta_box() callback. Props henrikmelin. fixes #6316
git-svn-id: http://svn.automattic.com/wordpress/trunk@7514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 03:31:27 +00:00
ryan
8895454664 Fixing several problems with TiynMCE, triggering of autosave() on an empty post in Safari 3.1, <br> tags in FF, <object> tag may break if switching from Visual to HTML mode and back several times, little cleanup of the compressor and others. Props azaozz. fixes #6384
git-svn-id: http://svn.automattic.com/wordpress/trunk@7513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 03:22:53 +00:00
markjaquith
e05db09acb Prevent individual post comment listing admin page title from sneaking behind the search box. fixes #6375
git-svn-id: http://svn.automattic.com/wordpress/trunk@7512 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-25 20:09:34 +00:00
ryan
8f35f1a817 Cleanup cat query var
git-svn-id: http://svn.automattic.com/wordpress/trunk@7511 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-25 17:47:02 +00:00
markjaquith
6054151013 Check the Alignment: None box by default for media insertion. XHTML validation. see #6379
git-svn-id: http://svn.automattic.com/wordpress/trunk@7510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-25 07:33:57 +00:00
ryan
48db986c36 Fix addition of new meta keys when no meta keys currently exist. Props DD32. fixes #6343
git-svn-id: http://svn.automattic.com/wordpress/trunk@7509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-25 01:42:38 +00:00
ryan
064322eded Reture true from got_mod_rewrite if we can't determine if the module is loaded. Add got_rewrite filter. Props andy. fixes #6278
git-svn-id: http://svn.automattic.com/wordpress/trunk@7508 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-25 00:22:37 +00:00
ryan
faff475746 Accept array of object types when registering a taxonomy. Props andy. see #6357
git-svn-id: http://svn.automattic.com/wordpress/trunk@7507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-24 22:43:20 +00:00
markjaquith
cdebbffe4c Preserve HTML entities in Custom Fields. fixes #6374
git-svn-id: http://svn.automattic.com/wordpress/trunk@7506 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-24 22:06:17 +00:00
ryan
f9f1f16dca in_category(): Return immediately if category is empty.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-24 20:39:05 +00:00
markjaquith
4cc8c4e7f8 require_once() the dashboard include, using ABSPATH. props Viper007Bond. fixes #6356
git-svn-id: http://svn.automattic.com/wordpress/trunk@7504 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-24 20:36:46 +00:00
ryan
1276a8283c Fix some notices
git-svn-id: http://svn.automattic.com/wordpress/trunk@7503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-24 20:30:33 +00:00
ryan
47dec4bad6 FF3_b4 horizontal selects fix, widgets css fixes for IE6 and other small fixes and improvements from mt. fixes #6370
git-svn-id: http://svn.automattic.com/wordpress/trunk@7502 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-24 16:18:30 +00:00
ryan
44863f1683 RTL fixes from mani_monaj and RanYanivHartstein?. see #6296 #6365
git-svn-id: http://svn.automattic.com/wordpress/trunk@7501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-24 16:16:15 +00:00
ryan
0092522115 Add GUI to first page. Props MichaelH. fixes #6373
git-svn-id: http://svn.automattic.com/wordpress/trunk@7500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-24 16:09:25 +00:00
westi
5180584bfb Upgrade the database so we get all the new options for thumbnail size etc in all blogs.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-24 12:15:55 +00:00
matt
1551a9298b Some options juggling to put things where they fit a little better, and more exposition around the more obtuse options.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-24 08:28:15 +00:00
matt
f868d87004 Bring in forgotton tag_escape. Fixes #6368.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7497 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-24 05:15:28 +00:00
ryan
193b20c03f Gallery display enhancements from tellyworth. fixes #6368
git-svn-id: http://svn.automattic.com/wordpress/trunk@7496 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-24 02:57:19 +00:00
ryan
74035dc969 Uploader CSS tweaks from tellyworth. fixes #6367
git-svn-id: http://svn.automattic.com/wordpress/trunk@7495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-24 02:53:15 +00:00
ryan
f0506ff8e5 RTL fixes from mani_monaj and RanYanivHartstein. see #6296 #6365
git-svn-id: http://svn.automattic.com/wordpress/trunk@7494 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-24 02:51:51 +00:00
westi
84a5d17f6e Setup the class variable for when it's not used. Props dickie.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-23 22:10:00 +00:00
matt
6be1f709f6 Return the content so everything doesn't go blank from [7491]. See #6537. Hat tip: robmil.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7492 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-23 18:19:03 +00:00
ryan
cce67416a3 Taxonomy queries and urls. Props andy. see #6357
git-svn-id: http://svn.automattic.com/wordpress/trunk@7491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-23 17:02:11 +00:00
ryan
93d9dc3c21 s/Post/Page/. Props Denis-de-Bernardy. fixes #6361
git-svn-id: http://svn.automattic.com/wordpress/trunk@7490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-23 16:38:30 +00:00
ryan
9ff67a46b4 Maintain toolbar state. Props azaozz. fixes #6360
git-svn-id: http://svn.automattic.com/wordpress/trunk@7489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-23 16:37:06 +00:00
ryan
0590b75eec Use is_plugin_active() and remove double searching. Props DD32. fixes #6332
git-svn-id: http://svn.automattic.com/wordpress/trunk@7488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-23 16:36:05 +00:00
ryan
b274b643a1 Typo fix from Viper007Bond. fixes #6358
git-svn-id: http://svn.automattic.com/wordpress/trunk@7487 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-23 16:34:28 +00:00
matt
d2143e92ed Have titles show cursor. Hat tip: Noel.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7486 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-23 07:32:58 +00:00
matt
7d7a28c515 Sometimes people have huge numbers of posts, let's always number_format them. Also, additional related link.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-23 07:10:17 +00:00
matt
94c34601ef Spacing cleanups and fixes. Hat tip: azaozz.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7484 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-23 06:41:43 +00:00
ryan
a4589fb866 Make sure cat parents are >= 0. see #6305
git-svn-id: http://svn.automattic.com/wordpress/trunk@7483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-23 01:10:46 +00:00
ryan
31d303ea1b Add default for post_excerpt. see #6355
git-svn-id: http://svn.automattic.com/wordpress/trunk@7482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-23 00:58:47 +00:00
ryan
bc1e8fd755 Make sure IDs are >= 0. see #6305
git-svn-id: http://svn.automattic.com/wordpress/trunk@7481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-23 00:55:11 +00:00
westi
da305bbce0 Tabindex for the Preview/View links. See #6352.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-22 22:19:25 +00:00
westi
e01e02de5c Add tabindex. See #6352.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7479 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-22 21:25:21 +00:00
matt
712f33944b Helper comment and lowercase filenames before playing around with them, to avoid extension duplication.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-22 19:34:21 +00:00
ryan
c7dcfa6261 Fix loading of colors RTL css. Props mani_monaj. see #6296
git-svn-id: http://svn.automattic.com/wordpress/trunk@7477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-22 18:33:31 +00:00
ryan
b442bfdeff RTL CSS from mani_monaj. see #6296
git-svn-id: http://svn.automattic.com/wordpress/trunk@7476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-22 17:59:55 +00:00
matt
b814963de2 register_taxonomy seems crippled and useless, but let's try it anyway.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-22 17:40:28 +00:00
matt
fc2ee8bd18 Better default quality.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7474 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-22 17:14:53 +00:00
westi
32d28d7be2 Tab index love for Write>Page.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7473 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-22 10:29:54 +00:00
westi
ad583a7219 Improve the tabindex's on the Write>Post page. Need to do the others too.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7472 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-22 09:14:49 +00:00
ryan
e380fb0e15 Update background color of insert link dialog. Props azaozz. fixes #6304
git-svn-id: http://svn.automattic.com/wordpress/trunk@7471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-22 08:23:18 +00:00
ryan
1ef7c757e2 Fix pasted html cleanup. Props azaozz. fixes #6346
git-svn-id: http://svn.automattic.com/wordpress/trunk@7470 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-22 08:20:04 +00:00
ryan
058a14bccc Fix bad incrementor in widgets. Props mdawaffe. fixes #6350
git-svn-id: http://svn.automattic.com/wordpress/trunk@7469 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-22 08:17:37 +00:00
ryan
a370785fbc Fix custom field add/update/delete. Props mdawaffe. fixes #6343
git-svn-id: http://svn.automattic.com/wordpress/trunk@7468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-22 08:15:48 +00:00
matt
32d9449194 Don't dupe widget titles. Fixes #6349. Hat tip: mdawaffe.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7467 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-22 07:35:11 +00:00
ryan
6de702f183 pretty delete animation, fix squashed icons and use 80x60 thumbs, add rel attrs to attachment links inserted from uploader. Props andy. see #5911
git-svn-id: http://svn.automattic.com/wordpress/trunk@7466 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 23:21:27 +00:00
ryan
1e11a54317 Deactivate plugins during plugin update. Props DD32. see #6262
git-svn-id: http://svn.automattic.com/wordpress/trunk@7465 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 23:02:00 +00:00
ryan
138770edd6 TinyMCE updates from azaozz. fixes #6340
git-svn-id: http://svn.automattic.com/wordpress/trunk@7464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 22:13:03 +00:00
westi
ac7cf2b1cc Right align actions on Plugins page. Fixes #6337 props mt.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7463 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 22:01:29 +00:00
markjaquith
d93684e0c1 increment comment moderation counter when unapproving comment from approved comments screen. props mdawaffe. fixes #6338
git-svn-id: http://svn.automattic.com/wordpress/trunk@7462 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 21:57:25 +00:00
ryan
8dcc9e02fa Close img tag. Props Otto42. fixes #6339
git-svn-id: http://svn.automattic.com/wordpress/trunk@7461 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 21:39:28 +00:00
ryan
91e9d8bebf Fix dashboard width in IE. Props mdawaffe. fixes #6336
git-svn-id: http://svn.automattic.com/wordpress/trunk@7460 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 21:05:22 +00:00
markjaquith
bc7ad1f8d2 Don't increment moderation counter when deleting or marking comments as spam. fixes #6338
git-svn-id: http://svn.automattic.com/wordpress/trunk@7459 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 20:29:03 +00:00
markjaquith
2aa9ee9d08 Always show 15 media files per page in the media manager (do not use front-of-house ppp setting). props Denis-de-Bernardy. fixes #6334
git-svn-id: http://svn.automattic.com/wordpress/trunk@7458 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 20:03:31 +00:00
markjaquith
a2c0c840b9 We're not reactivating ALL plugins, just the ones that were previously active
git-svn-id: http://svn.automattic.com/wordpress/trunk@7457 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 19:40:06 +00:00
markjaquith
48da5c40ad Better plugin-deactivation array-fu from Denis-de-Bernardy. fixes #6332
git-svn-id: http://svn.automattic.com/wordpress/trunk@7456 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 19:34:27 +00:00
ryan
e6e3b1aa35 Cleanup slashing in wp_mkdir_p
git-svn-id: http://svn.automattic.com/wordpress/trunk@7455 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 18:27:56 +00:00
ryan
3ea6a438f9 Fix parens in walker. Props hailin.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 18:11:47 +00:00
ryan
b2527163db Fix horizontal scrollbar in dashboard. Props mt. fixes #6336
git-svn-id: http://svn.automattic.com/wordpress/trunk@7453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 17:57:35 +00:00
markjaquith
fb1ad3901f make_clickable() trailing punctuation fixes from neodude. fixes #5081
git-svn-id: http://svn.automattic.com/wordpress/trunk@7452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 16:29:59 +00:00
ryan
d0f6f37841 Change default phpmailer address
git-svn-id: http://svn.automattic.com/wordpress/trunk@7451 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 16:11:47 +00:00
ryan
4f413d7437 W-P! rocks the CamelCase. Props lloydbudd. fixes #6335
git-svn-id: http://svn.automattic.com/wordpress/trunk@7450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 16:10:33 +00:00
westi
6797f05a26 Make double height dashboard widgets really double height. Fixes #6325 props Viper007Bond.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 12:46:34 +00:00
westi
075b9e764e Mark files as deprecated. See #4960.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7448 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 09:29:22 +00:00
westi
98a76f76c7 We use "do not" not "don't". Fixes #6328 props rnt.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7447 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 09:25:03 +00:00
westi
d047875664 Translate WordPress. Fixes #6324.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7446 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 09:20:04 +00:00
westi
6a50d730cb Add sanitization of option values to add_option. Fixes #5209 props johnbillion.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 08:56:29 +00:00
westi
0c733599d4 Add a filter to the jpeg_quality to allow for it to be modified. Fixes #6289.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 08:31:50 +00:00
ryan
c69821c5e0 FTP find_base_dir fixes from DD32. see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@7443 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 05:15:21 +00:00
markjaquith
2cc2f543c2 Give the greylist and blacklist a little room to breathe!
git-svn-id: http://svn.automattic.com/wordpress/trunk@7442 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 04:45:19 +00:00
markjaquith
f3e25d6df3 better Apache mod detection from andy. fixes #6278
git-svn-id: http://svn.automattic.com/wordpress/trunk@7441 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 04:10:01 +00:00
markjaquith
c5e0b789f6 Prevent uploads from overwriting each other. props neodude. fixes #6294
git-svn-id: http://svn.automattic.com/wordpress/trunk@7440 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 04:03:33 +00:00
markjaquith
44c9c17fe4 Don't show 'Go Back' link for drafts
git-svn-id: http://svn.automattic.com/wordpress/trunk@7439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 03:35:27 +00:00
markjaquith
62642cb9fe "Go back" link for admin-initiated post/page edits. e.g. do a search, edit a post, click the link to go back to the search.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7438 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 03:31:12 +00:00
ryan
ef8ff2324c use explicit attachment permalink marker for int names. Props andy. fixes #6280
git-svn-id: http://svn.automattic.com/wordpress/trunk@7437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 03:08:22 +00:00
ryan
1ec1d3902d parseAjaxResponse fix from mdawaffe. fixes #6326
git-svn-id: http://svn.automattic.com/wordpress/trunk@7436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 03:03:38 +00:00
ryan
b3a9ed91e7 Fix IE conditional. Props mdawaffe. fixes #6327
git-svn-id: http://svn.automattic.com/wordpress/trunk@7435 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-21 03:02:16 +00:00
ryan
c6e1d87b09 Fix logic inversion. Props DD32. fixes #6248
git-svn-id: http://svn.automattic.com/wordpress/trunk@7434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 23:54:17 +00:00
ryan
bf281b5a7b Don't show plugin upgrade notice if user cannot edit_plugins. Props DD32. fixes #6248
git-svn-id: http://svn.automattic.com/wordpress/trunk@7433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 23:43:54 +00:00
ryan
609f04c4b9 Make b0rked message slightly more informative.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7432 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 23:39:39 +00:00
ryan
da37142561 Capture last db error. Pass it in WP_Error data when term inserts fail. Fix typo in WP_Ajax_Response
git-svn-id: http://svn.automattic.com/wordpress/trunk@7431 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 23:34:32 +00:00
ryan
4784e3bd97 Return error if term DB insert fails
git-svn-id: http://svn.automattic.com/wordpress/trunk@7430 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 22:33:34 +00:00
ryan
4be265b167 Fix dash markup when there's only one comment. Props mdawaffe. fixes #6306
git-svn-id: http://svn.automattic.com/wordpress/trunk@7429 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 22:01:27 +00:00
ryan
85e8b827d2 Underline links and tweak colors in user_info menu. Props mt. fixes #6314
git-svn-id: http://svn.automattic.com/wordpress/trunk@7428 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 21:59:08 +00:00
ryan
f503cf59a6 Wrap comment bubbles in minimum width div to avoid chopping. Props mt. fixes #6207
git-svn-id: http://svn.automattic.com/wordpress/trunk@7427 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 21:40:17 +00:00
ryan
3f52602fa4 Always save and continue except when referred from the permalink page for the post being edited.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7426 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 21:15:05 +00:00
markjaquith
fda19a41bf don't time-throttle comments from Administrators
git-svn-id: http://svn.automattic.com/wordpress/trunk@7425 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 20:32:18 +00:00
markjaquith
4ebfe93ca2 Show previous search in comment search box
git-svn-id: http://svn.automattic.com/wordpress/trunk@7424 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 20:28:17 +00:00
ryan
c81a649596 Parse default args and return WP_Error for emprt cat name in wp_insert_category.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7423 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 20:19:25 +00:00
ryan
1b4a86c41e Right-align actions header, too. Props mt. see #6292
git-svn-id: http://svn.automattic.com/wordpress/trunk@7422 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 20:07:48 +00:00
ryan
a1154832ff Use uniqid if getmypid is disabled. Props Solar Designer. fixes #6293
git-svn-id: http://svn.automattic.com/wordpress/trunk@7421 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 19:56:37 +00:00
westi
e435fc983f Send plugins all the replacment strings.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7420 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 19:40:11 +00:00
ryan
d919604a9e Don't error_log() if error_log file is not writable. see #5771
git-svn-id: http://svn.automattic.com/wordpress/trunk@7419 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 19:16:38 +00:00
ryan
c5d75f1195 Don't error_log() if error_log file is not writable. see #5771
git-svn-id: http://svn.automattic.com/wordpress/trunk@7418 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 19:08:40 +00:00
markjaquith
8955cc0fba Part of [7399] regressed part of [7344]. Reverting until HC can deliver recommendation.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7417 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 17:50:56 +00:00
ryan
06333bf7de deactivate_plugins() fix from DD32. fixes #6309
git-svn-id: http://svn.automattic.com/wordpress/trunk@7416 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 17:24:44 +00:00
ryan
7b9d864878 wpfs direct fixes from DD32. see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@7415 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 17:22:43 +00:00
ryan
3b9c0f73d5 Enable wpfs auto selection. Props DD32. seee #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@7414 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 06:08:27 +00:00
markjaquith
13d4f1226e Fix doublewide checkbox on user profile in FF. fixes #6282
git-svn-id: http://svn.automattic.com/wordpress/trunk@7413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 05:42:46 +00:00
markjaquith
9299b610dd Bail out users who go to Manage - Links trying to add a link
git-svn-id: http://svn.automattic.com/wordpress/trunk@7412 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 05:02:40 +00:00
markjaquith
26eff23f34 Multi-widgets should never be removed if you click cancel. props mdawaffe. fixes #6291
git-svn-id: http://svn.automattic.com/wordpress/trunk@7411 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 04:39:23 +00:00
markjaquith
3092ae5e3c Hide delete checkbox and remove edit link for entries the current user cannot delete or edit
git-svn-id: http://svn.automattic.com/wordpress/trunk@7410 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 04:30:38 +00:00
markjaquith
0764f3594b Only show Contributors post stati they can chose. Hide date editing from Contributors (as they cannot use it). fixes #6303
git-svn-id: http://svn.automattic.com/wordpress/trunk@7409 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 04:19:58 +00:00
ryan
a88ac8c62c Bump ver to distinguish ongoing trunk from the RC1 package.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7408 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 00:40:07 +00:00
ryan
dfc35da488 Typo fix. see #6243
git-svn-id: http://svn.automattic.com/wordpress/trunk@7407 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 00:34:41 +00:00
ryan
95c51418d8 Degrade flash upload if the server is lightttpd < 1.5. Props nbachyski. fixes #6243
git-svn-id: http://svn.automattic.com/wordpress/trunk@7406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 00:33:59 +00:00
ryan
7c83d7abd1 Suppress errors during option retrieval while installing. see #5771
git-svn-id: http://svn.automattic.com/wordpress/trunk@7405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-19 23:17:23 +00:00
markjaquith
0f026c38f9 Do not double-mark posts as "Private" in the admin. fixes #3146
git-svn-id: http://svn.automattic.com/wordpress/trunk@7404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-19 21:33:47 +00:00
ryan
ca900d471c Check return of tmpfile(). see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@7403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-19 20:36:23 +00:00
ryan
81466f4604 TinyMCE cache fixes from markjaquith and azaozz. fixes #6295
git-svn-id: http://svn.automattic.com/wordpress/trunk@7402 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-19 18:53:01 +00:00
markjaquith
c6fa4c36ee Make sure apache_getenv() exists before using it. fixes #6278
git-svn-id: http://svn.automattic.com/wordpress/trunk@7401 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-19 18:18:59 +00:00
ryan
5132af64c4 Remove dead code
git-svn-id: http://svn.automattic.com/wordpress/trunk@7400 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-19 16:51:43 +00:00
ryan
6af4152493 Tighten layout. Props mt. see #6292
git-svn-id: http://svn.automattic.com/wordpress/trunk@7399 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-19 16:16:16 +00:00
ryan
31e258ae64 RTL CSS from Mani. fixes #6296
git-svn-id: http://svn.automattic.com/wordpress/trunk@7398 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-19 16:08:03 +00:00
ryan
c66438659d ngettext fixes from nbachiyski. fixes #6261
git-svn-id: http://svn.automattic.com/wordpress/trunk@7397 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-19 16:00:09 +00:00
ryan
6acfc685e6 Disable flash uploader if mac and mod_security is enabled. Props andy. fixes #6278
git-svn-id: http://svn.automattic.com/wordpress/trunk@7396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-19 06:18:05 +00:00
markjaquith
f704e592a9 wp_nonce_ays() HTML fixes from DD32. fixes #6270
git-svn-id: http://svn.automattic.com/wordpress/trunk@7395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-19 06:04:45 +00:00
markjaquith
0ebd2b681a Autosave when title has content and loses focus. props ryan. see #5749
git-svn-id: http://svn.automattic.com/wordpress/trunk@7394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-19 05:38:58 +00:00
ryan
12c62fa4d4 Fix typo in ftpext class. Handle safe mode errors. PRops DD32. see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@7393 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-19 02:46:27 +00:00
ryan
296acb1a5a Fix menu parent for link category editor
git-svn-id: http://svn.automattic.com/wordpress/trunk@7392 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 23:49:42 +00:00
markjaquith
15b17df867 moderation.php is no more. All hail edit-comments.php?comment_status=moderated
git-svn-id: http://svn.automattic.com/wordpress/trunk@7391 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 23:24:04 +00:00
markjaquith
3f81338a73 There ARE 2 posts pending your review. props mdawaffe. see #6290
git-svn-id: http://svn.automattic.com/wordpress/trunk@7390 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 23:00:45 +00:00
markjaquith
4d6d4c39ea Show Pending Review posts on the dashboard. props link2caro for the idea. fixes #6290
git-svn-id: http://svn.automattic.com/wordpress/trunk@7389 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 22:49:41 +00:00
ryan
ebfc602022 Change unapproved comment background color. Props mt. fixes #6288
git-svn-id: http://svn.automattic.com/wordpress/trunk@7388 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 21:35:03 +00:00
ryan
98f764089f Make plugin update colors more readable. Props mt. fixes #6276
git-svn-id: http://svn.automattic.com/wordpress/trunk@7387 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 21:32:42 +00:00
ryan
49799e5c9a Remove unneeded js include. Props mdawaffe. fixes #6287
git-svn-id: http://svn.automattic.com/wordpress/trunk@7386 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 19:41:09 +00:00
ryan
251dcee995 Fix over-aggressive form validation. Props mdawaffe. fixes #6209
git-svn-id: http://svn.automattic.com/wordpress/trunk@7385 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 19:37:31 +00:00
ryan
afc92801a1 Fix over-aggressive form validation. Props mdawaffe. fixes #6209
git-svn-id: http://svn.automattic.com/wordpress/trunk@7384 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 19:20:18 +00:00
ryan
19e2cf5f61 Typo fix. fixes #6230
git-svn-id: http://svn.automattic.com/wordpress/trunk@7383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 17:29:30 +00:00
ryan
c951f2c7b1 Grammar fix from filosofo. fixes #6274
git-svn-id: http://svn.automattic.com/wordpress/trunk@7382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 17:17:48 +00:00
ryan
e53a37cc04 Grammar fix. Props Denis-de-Bernardy and MtDewVirus. fixes #6274
git-svn-id: http://svn.automattic.com/wordpress/trunk@7381 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 17:06:04 +00:00
ryan
901703c63d Restore wp-langs changes. Props azaozz. fixes #6273
git-svn-id: http://svn.automattic.com/wordpress/trunk@7380 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 16:32:05 +00:00
ryan
8427f15bca Buhbump
git-svn-id: http://svn.automattic.com/wordpress/trunk@7379 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 07:01:01 +00:00
ryan
b530b3b7dc TinyMCE fixes from azaozz. fixes #6272
git-svn-id: http://svn.automattic.com/wordpress/trunk@7378 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 06:59:53 +00:00
ryan
c700c87195 Add explanatory text for upgrade plugin nonce. Props DD32. see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@7377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 05:04:18 +00:00
ryan
cd4894370a More nonce renewals from andy. fixes #6266
git-svn-id: http://svn.automattic.com/wordpress/trunk@7376 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 04:59:54 +00:00
ryan
34d67f9907 Renew autosave nonce. Props andy. fixes #6266
git-svn-id: http://svn.automattic.com/wordpress/trunk@7375 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 02:43:20 +00:00
ryan
be4ff0a9dc Add title attribute to view page link. see #6082
git-svn-id: http://svn.automattic.com/wordpress/trunk@7374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 02:28:43 +00:00
ryan
6219f706e7 Add title attribute to view post link. see #6082
git-svn-id: http://svn.automattic.com/wordpress/trunk@7373 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 02:22:07 +00:00
ryan
1e1e2e3340 Styling fixes for Options->Misc from mdawaffe. fixes #6202
git-svn-id: http://svn.automattic.com/wordpress/trunk@7372 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 02:07:49 +00:00
ryan
f181ad63a6 Fix check all for IE. Props mdawaffe. fixes #6268
git-svn-id: http://svn.automattic.com/wordpress/trunk@7371 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 02:04:54 +00:00
ryan
5f6bc326a4 Better protocol check from Łukasz Pilorz.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7370 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 01:53:36 +00:00
ryan
a4dc527de4 Basedir location fixes for ftp fs from DD32. see #6245
git-svn-id: http://svn.automattic.com/wordpress/trunk@7369 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 00:13:11 +00:00
ryan
352c9fca90 Don't squish the autosave error notice. Props mdawaffe. fixes #6267
git-svn-id: http://svn.automattic.com/wordpress/trunk@7368 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-18 00:09:31 +00:00
ryan
bc5e5bd300 Add title attribute to edit tag link. see #6082
git-svn-id: http://svn.automattic.com/wordpress/trunk@7367 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 23:57:26 +00:00
ryan
93db749985 Add title attribute to edit media link. see #6082
git-svn-id: http://svn.automattic.com/wordpress/trunk@7366 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 23:54:30 +00:00
ryan
7622ef7ce5 Add title attribute to edit link category link. see #6082
git-svn-id: http://svn.automattic.com/wordpress/trunk@7365 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 23:51:34 +00:00
ryan
bec1247231 Add title attribute to edit category link. see #6082
git-svn-id: http://svn.automattic.com/wordpress/trunk@7364 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 23:47:03 +00:00
ryan
5264e639a9 Add title attribute to edit link link. see #6082
git-svn-id: http://svn.automattic.com/wordpress/trunk@7363 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 23:40:55 +00:00
ryan
d9f9cd0375 Fix multi-widget addition with JS disabled. Props mdawaffe. see #6239
git-svn-id: http://svn.automattic.com/wordpress/trunk@7362 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 23:25:05 +00:00
ryan
c7d6a001d0 Avatar support for classic theme
git-svn-id: http://svn.automattic.com/wordpress/trunk@7361 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 23:16:10 +00:00
ryan
d587b08c0b Add avatar support to default theme.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 23:12:17 +00:00
ryan
d3fbaa1d66 Remove remnants of infinite posts features. Props mdawaffe. fixes #6264
git-svn-id: http://svn.automattic.com/wordpress/trunk@7359 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 23:02:12 +00:00
westi
da5b4ca357 Set eol-style.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7358 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 22:56:00 +00:00
westi
835dad08c4 Delete the correct upload.php. See #5911 props andy.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7357 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 22:54:13 +00:00
westi
95239d2aa8 Restore upload.php as we really need it. See #5911.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7356 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 22:53:14 +00:00
ryan
d7542601fb Add title attribute to edit comment link. see #6082
git-svn-id: http://svn.automattic.com/wordpress/trunk@7355 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 22:39:06 +00:00
ryan
aa4873ee62 Add title attribute to edit page link. see #6082
git-svn-id: http://svn.automattic.com/wordpress/trunk@7354 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 22:31:26 +00:00
ryan
908885e15c Add title attribute to edit post link. see #6802
git-svn-id: http://svn.automattic.com/wordpress/trunk@7353 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 22:27:47 +00:00
ryan
9f1d38c249 Display 15 posts. Remove no longer needed add-post AJAX action. Props johnhennmacc. fixes #6264
git-svn-id: http://svn.automattic.com/wordpress/trunk@7352 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 22:18:32 +00:00
ryan
7afb7b63ac Better phrasing. Props kichu and MtDewVirus. fixes #6259
git-svn-id: http://svn.automattic.com/wordpress/trunk@7351 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 21:18:03 +00:00
ryan
d95e0cf394 s/post/page/. Props xibe and ninjaWR. fixes #6260
git-svn-id: http://svn.automattic.com/wordpress/trunk@7350 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 20:42:29 +00:00
ryan
575b8b4281 Make media button type default filter in Library browser. Props andy. fixes #6231
git-svn-id: http://svn.automattic.com/wordpress/trunk@7349 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 20:09:55 +00:00
ryan
848216b443 do not insert empty links; use the file basename if no title given. Props andy. fixes #6249
git-svn-id: http://svn.automattic.com/wordpress/trunk@7348 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 20:08:43 +00:00
ryan
7819f69e7b Remove old upload files. props andy. fixes #5911
git-svn-id: http://svn.automattic.com/wordpress/trunk@7347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 20:07:06 +00:00
ryan
577f7f557a Fix warning in media.php. Show sidemenu. Props andy. fixes #6206
git-svn-id: http://svn.automattic.com/wordpress/trunk@7346 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 18:28:43 +00:00
ryan
8e7f26b498 Remove unfinished widget contextual help. Pros mdawaffe. fixes #6203
git-svn-id: http://svn.automattic.com/wordpress/trunk@7345 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 18:07:06 +00:00
matt
1cbca340d8 Right align comment action links.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7344 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 17:20:13 +00:00
markjaquith
246b00e8ef Strange for this to be the only question on the page (and with strange answers at that). Wash dishes? Wash dishes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7343 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 03:45:05 +00:00
markjaquith
0e881155a8 Sync "Last edited" on Edit Page screen to that on Edit Post screen. see #6250
git-svn-id: http://svn.automattic.com/wordpress/trunk@7342 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 03:34:04 +00:00
markjaquith
0f9573513d Bring Edit Page screen up to parity with Edit Post screen WRT timestamps. see #6250
git-svn-id: http://svn.automattic.com/wordpress/trunk@7341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 03:26:53 +00:00
markjaquith
1ef02206f1 Fix reference to page as "post"
git-svn-id: http://svn.automattic.com/wordpress/trunk@7340 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 03:18:17 +00:00
markjaquith
8fe73691d6 Remove reference to edit_date which no longer exists. Props fitzrev. see #6250
git-svn-id: http://svn.automattic.com/wordpress/trunk@7339 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 03:09:50 +00:00
ryan
385677b909 Better date editing from MarkJaquith. see #6250
git-svn-id: http://svn.automattic.com/wordpress/trunk@7338 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-16 23:05:16 +00:00
westi
7039083a89 Update the allowed attributes for html list elements. Fixes #6253 props andy and lloydbudd.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7337 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-16 22:16:27 +00:00
ryan
4f60026851 Don't allow duplicate category creation. Props westi and mdawaffe. fixes #3799
git-svn-id: http://svn.automattic.com/wordpress/trunk@7336 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-16 20:37:02 +00:00
ryan
c41402325f Fix var name. see #6236
git-svn-id: http://svn.automattic.com/wordpress/trunk@7335 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-16 18:19:42 +00:00
ryan
a6180f4427 Fix var name. see #6236
git-svn-id: http://svn.automattic.com/wordpress/trunk@7334 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-16 18:18:35 +00:00
westi
ef53fc4b54 Give the default avatar some class.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7333 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-16 16:55:31 +00:00
matt
42ac4d7043 Fix for bizarre FFb4 bug in WYSIWYG. Hat tip: azaozz.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7332 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-16 14:07:11 +00:00
westi
f289fb554c Fix my poor spelling. Props dickie.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7331 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-16 12:21:03 +00:00
westi
ce5dd073fb Allow plugins to filter the dashboard counts sentance. Fixes #6244 props nerrad.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7330 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-16 10:04:42 +00:00
westi
9c49dc2836 Don't show a check box for deleting the default category.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7329 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-16 10:00:11 +00:00
ryan
a66d723e9b find_base_dir fixes from DD32. see #6245
git-svn-id: http://svn.automattic.com/wordpress/trunk@7328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-16 09:50:35 +00:00
ryan
568d64e73e FTP CWD fixes from DD32. see #6245
git-svn-id: http://svn.automattic.com/wordpress/trunk@7327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-16 09:49:10 +00:00
westi
78c365c7cd Import mt tags/keywords. See #4472 props shacker.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7326 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-15 23:16:28 +00:00
westi
e65d6369f2 Switch from addLoadEvent to jQuery(document).ready. Fixes #6241 props azaozz.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-15 22:57:47 +00:00
matt
04ae1fc75a Don't let the auto-suggest overwrite the form field after the page has redrawn a bit. Fixes #6240. Hat tip: azaozz.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7324 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-15 22:48:12 +00:00
westi
5cd2e835d8 Allow for wp_nonce_field, wp_referrer_field and wp_original_referer_field be able to return output. Fixes #3628 props robmil.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-15 22:44:34 +00:00
westi
a7f441525e Only show IP and email address for comments a user can edit. Fixes #4353.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7322 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-15 22:09:23 +00:00
westi
8a81571933 Only link to a post for editing if the user can edit it.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7321 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-15 21:52:12 +00:00
westi
91011917f7 Only replace the last segment of the uri when generating the sample permalink. Fixes #6068.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-15 21:27:10 +00:00
westi
b871aff737 Allow plugins to filter the redirect status as well as the location. See #4790.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7319 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-15 20:50:49 +00:00
westi
e430f167d7 Set autocomplete off for password files on the profile pages. Fixes #5006.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7318 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-15 20:42:00 +00:00
westi
e9164dd56d Make the edit link point to the profile for the current user when managing users.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7317 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-15 20:27:16 +00:00
westi
ae747b14ef Make the preview message consistent. Fixes #6238 props mdawaffe.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-15 19:26:17 +00:00
westi
80ff56f154 Add some class to the your are using theme xxx paragraph. Fixes #6234 props Aaron Harun.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7315 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-15 18:38:21 +00:00
westi
f9871ae531 Chase down some 64bit dragons. Ensure that we only ever create a 32bit number to compare to the 32bit magic number when searching a zip file for the end of the directory record. See #6236.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7314 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-15 18:33:16 +00:00
matt
8734e3d1bf So fresh and so clean, clean.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7313 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-15 17:02:16 +00:00
matt
d6d149bbb9 Match quicktag bar to button.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7312 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-15 16:57:57 +00:00
matt
44cb71faa1 Tooltips for media buttons. Hat tip: azaozz.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-15 16:53:36 +00:00
westi
fe5387bbbc Add an action to allow plugins to add extra related links to the list. Fixes #6232.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7310 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-15 08:40:22 +00:00
westi
b3709e1ddc Typo fix from johnbillion.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7309 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-15 08:29:10 +00:00
westi
6c14cad3c9 Change the default size avatar back to 96 now we are using the new gravatar.com api which supports bigger sizes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7308 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-15 08:27:28 +00:00
ryan
d74331ba32 Reduce dependency on inline style. Props mdawaffe. fixes #6228
git-svn-id: http://svn.automattic.com/wordpress/trunk@7307 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-15 06:14:03 +00:00
markjaquith
df240cb60c Use newer Gravatar URL style. props link2caro. fixes #6229
git-svn-id: http://svn.automattic.com/wordpress/trunk@7306 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-15 02:23:27 +00:00
matt
4d4127bf42 Some color changes from JSM.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7305 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-15 00:21:28 +00:00
ryan
7a1db035a2 Reduce dependency on inline style. Props mdawaffe. fixes #6228
git-svn-id: http://svn.automattic.com/wordpress/trunk@7304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 23:58:31 +00:00
ryan
d095605faa i18n fixes from nbachiyski. fixes #6226
git-svn-id: http://svn.automattic.com/wordpress/trunk@7303 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 22:20:24 +00:00
ryan
fb488bb835 i18n fixes from nbachiyski. fixes #6226
git-svn-id: http://svn.automattic.com/wordpress/trunk@7302 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 20:17:17 +00:00
westi
fdda0c30d3 Use blog name in atom service document. Fixes #5667 props tvachon.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7301 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 20:01:08 +00:00
ryan
4be6f03439 i18n fixes from nbachiyski. fixes #6226
git-svn-id: http://svn.automattic.com/wordpress/trunk@7300 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 19:56:43 +00:00
westi
7741d8ea53 Enclose more things as CDATA when exporting. Fixes #4242 props nbachiyski.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 19:37:18 +00:00
matt
5ceb47d0c4 Simpler gallery markup in feeds. Fixs #6225. Hat tip: andy.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7298 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 19:23:56 +00:00
ryan
e098836829 Allow hardcoding of FTP connection info. Props DD32. see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@7297 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 19:11:41 +00:00
westi
062fc0b63a Allow plugins to filter the fetched pingback source data. Fixes #3525 props tenpura.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7296 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 19:08:09 +00:00
ryan
835d70399d Remove underline from admin footer links. Pros sambauers. fixes #6201
git-svn-id: http://svn.automattic.com/wordpress/trunk@7295 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 18:26:48 +00:00
ryan
07807f1769 install.php i18n and html fixes. Props nbachiyski. fixes #6221
git-svn-id: http://svn.automattic.com/wordpress/trunk@7294 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 18:22:19 +00:00
ryan
9a0dd2b9c8 CSS typo fixes from sambauers. fixes #6220
git-svn-id: http://svn.automattic.com/wordpress/trunk@7293 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 18:18:23 +00:00
ryan
c6ca95213b Mark dashboard feed links for translation so they can be localized. Props tai. fixes #6222
git-svn-id: http://svn.automattic.com/wordpress/trunk@7292 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 18:16:29 +00:00
westi
370212a0a2 Allow you to click on the colours or label to select a colour scheme. Fixes #6198 props nbachiyski.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7291 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 16:51:39 +00:00
matt
f85b8d6eb8 The whole title box should be clickable to expand or contract. Fixes #6217. Hat tip: azaozz.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7290 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 08:43:00 +00:00
matt
b1fd49fc2c logging button should be titlecase.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7289 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 08:40:53 +00:00
matt
673b6b534f Only show months that actually have attachments.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7288 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 08:39:07 +00:00
matt
ba3972df2b Tighten up buttons a bit, always space out delete from its neighbor.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7287 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 08:38:09 +00:00
matt
7afb82c4ae Change order of links to match buttons above.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7286 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 08:30:45 +00:00
matt
2085ea1c9a Date display and editing tweaks.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7285 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 08:17:59 +00:00
matt
1f8838b373 Let's call a spade a spade.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7284 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 07:58:04 +00:00
matt
386eb869f9 Make empty links text a bit more informative.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7283 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 07:26:46 +00:00
matt
62298aa7c7 Remove drafts from Write page.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7282 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 07:07:46 +00:00
ryan
89bc5d972f Avoid integer overflow with widget IDs. Props mdawaffe. fixes #6210
git-svn-id: http://svn.automattic.com/wordpress/trunk@7281 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 06:48:23 +00:00
ryan
c711c5aaf8 Encode ampersands. Props Quandary. fixes #6212
git-svn-id: http://svn.automattic.com/wordpress/trunk@7280 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 06:44:40 +00:00
ryan
b4a795bb5c Merge style attributes. Props Quandary. fixes #6214
git-svn-id: http://svn.automattic.com/wordpress/trunk@7279 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 06:43:38 +00:00
ryan
e077b57335 Make RSS and text widget controls the same width. Props mdawaffe. fixes #6205
git-svn-id: http://svn.automattic.com/wordpress/trunk@7278 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 06:30:41 +00:00
ryan
c3b5c2cb4e Typo fix from nerrad. fixes #6216
git-svn-id: http://svn.automattic.com/wordpress/trunk@7277 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 06:27:25 +00:00
ryan
66e96b088c Show Add Link page when visiting Write from Mange->Links. Props MtDewVirus. fixes #6204
git-svn-id: http://svn.automattic.com/wordpress/trunk@7276 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-13 23:51:32 +00:00
westi
04543417c9 Better protection against double widget insertion. Fixes #6191 props mdawaffe.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7275 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-13 21:33:11 +00:00
westi
1567bfb195 Move the restrict_manage_post hook back to a useful place. Fixes #6196.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7274 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-13 20:39:56 +00:00
westi
d1f0f9517b IE fixes for the stylesheet selector. Fixes #6200 props hansengel.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7273 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-13 19:17:57 +00:00
ryan
e56562d1ba Fix code button alignment. Props sambauers. fixes #6179
git-svn-id: http://svn.automattic.com/wordpress/trunk@7272 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-13 06:06:33 +00:00
ryan
6d0fa72e1d Remove intermediate images when deleting an attachment. Props tellyworth. fixes #6142
git-svn-id: http://svn.automattic.com/wordpress/trunk@7271 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-12 23:15:31 +00:00
ryan
2e439f5810 TinyMCE 3.05 from azaozz. fixes #6195
git-svn-id: http://svn.automattic.com/wordpress/trunk@7270 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-12 22:47:11 +00:00
ryan
eda7e0e8bc Suppress logging of DB errors when checking if blog is installed. see #5771
git-svn-id: http://svn.automattic.com/wordpress/trunk@7269 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-12 22:41:43 +00:00
ryan
f89ff6c5a0 Action oriented text for expired session notice. Props lloydbudd. fixes #6193
git-svn-id: http://svn.automattic.com/wordpress/trunk@7268 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-12 22:21:14 +00:00
ryan
4acb6b2a63 Don't double insert widget. Props mdawaffe. fixes #6191
git-svn-id: http://svn.automattic.com/wordpress/trunk@7267 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-12 19:56:08 +00:00
westi
0070e011a2 Add description for custom fields on write>page. Fixes #6190 props hansengel.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7266 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-12 17:36:26 +00:00
markjaquith
f80da996c9 Move "approve/unapprove" links to the right, so the comment action links are consistently in the same position. fixes #6143
git-svn-id: http://svn.automattic.com/wordpress/trunk@7265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-12 08:54:41 +00:00
westi
3eb7d021ed Add some missing timezone offsets. Fixes #6176 props sambauers.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7264 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-12 08:38:21 +00:00
ryan
31abda9e0f Image fixes from andy. see #5911
git-svn-id: http://svn.automattic.com/wordpress/trunk@7263 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-12 08:10:00 +00:00
ryan
3d0435bb58 Attachment editing from mdawaffe. fixes #6181
git-svn-id: http://svn.automattic.com/wordpress/trunk@7262 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-12 05:50:07 +00:00
matt
143d94c1c4 Color tweaks, fixes #6180
git-svn-id: http://svn.automattic.com/wordpress/trunk@7261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-12 04:46:17 +00:00
matt
574a6b4784 A little darker on the right now.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7260 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-12 03:43:01 +00:00
ryan
67deb4e0f4 Color scheme switcher styling from mt. fixes #6178
git-svn-id: http://svn.automattic.com/wordpress/trunk@7259 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-12 02:35:22 +00:00
ryan
4b2bc59df8 Color scheme selector fixes from andy. see #6167
git-svn-id: http://svn.automattic.com/wordpress/trunk@7258 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-12 00:12:34 +00:00
ryan
553e8d935c Typo fixes. fixes #6155
git-svn-id: http://svn.automattic.com/wordpress/trunk@7257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 23:45:07 +00:00
ryan
2c535c4ca7 media handling fixes from andy. see #5911
git-svn-id: http://svn.automattic.com/wordpress/trunk@7256 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 23:15:17 +00:00
ryan
349fc66bd1 Editor button fixes for IE. Props azaozz. fixes #6172
git-svn-id: http://svn.automattic.com/wordpress/trunk@7255 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 23:04:13 +00:00
ryan
399da81504 user edit form validation fixes
git-svn-id: http://svn.automattic.com/wordpress/trunk@7254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 22:03:05 +00:00
westi
0344154048 Allow plugins to filter the result of get_user_option().
git-svn-id: http://svn.automattic.com/wordpress/trunk@7253 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 21:37:23 +00:00
ryan
e1b30972da Move All Users to head of filter list
git-svn-id: http://svn.automattic.com/wordpress/trunk@7252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 21:21:24 +00:00
ryan
b27053bf5a Fix comment bubble links for attachments and pages. Props mdawaffe. fixes #6169
git-svn-id: http://svn.automattic.com/wordpress/trunk@7251 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 21:09:07 +00:00
ryan
674e725d06 Fix edit links for attachments. Props mdawaffe. fixes #6168
git-svn-id: http://svn.automattic.com/wordpress/trunk@7250 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 21:08:09 +00:00
ryan
f0479dbc17 Admin color selector. see #6167
git-svn-id: http://svn.automattic.com/wordpress/trunk@7249 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 21:06:03 +00:00
ryan
66e8bdb87f Fix AJAX comment ops for single pages. Props mdawaffe. fixes #6165
git-svn-id: http://svn.automattic.com/wordpress/trunk@7248 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 20:26:10 +00:00
ryan
4416bcf555 Fix AJAX comment ops for single posts. Props mdawaffe. see #6165
git-svn-id: http://svn.automattic.com/wordpress/trunk@7247 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 20:10:39 +00:00
ryan
eab1b66d64 gettext
git-svn-id: http://svn.automattic.com/wordpress/trunk@7246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 19:36:46 +00:00
matt
66b8394d60 Some color tweaks.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 18:26:14 +00:00
westi
77c0f608c8 Better self links for feeds. Fixes #5238 props andy.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7244 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 18:18:22 +00:00
ryan
a3395b364e Don't show multi widgets multi times in available widgets. Props mdawaffe. fixes #6162
git-svn-id: http://svn.automattic.com/wordpress/trunk@7243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 18:01:22 +00:00
ryan
93f0add73b Make sure widget is available before trying to display it in the admin. Props mdawaffe. fixes #6149
git-svn-id: http://svn.automattic.com/wordpress/trunk@7242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 17:42:09 +00:00
westi
bd9c890f3d Add phpDoc with copyright and licencing info to external ftp libs. Fixes #6155 props DD32.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7241 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 17:23:30 +00:00
ryan
0b22d34ee6 More TinyMCE color abstraction and new border for title and editor. Props azaozz. fixes #6156
git-svn-id: http://svn.automattic.com/wordpress/trunk@7240 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 16:54:48 +00:00
ryan
132a674402 Remove extraneous slash. Props rnt. fixes #6158
git-svn-id: http://svn.automattic.com/wordpress/trunk@7239 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 16:41:53 +00:00
ryan
d1753e67e6 Auto update fixes from DD32. see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@7238 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 16:37:44 +00:00
ryan
7fa4744082 Upgrade message in dash. Props mdawaffe. fixes #6060
git-svn-id: http://svn.automattic.com/wordpress/trunk@7237 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 16:13:07 +00:00
westi
f14702fb65 Bring the bubble back when we have moderated a comment. Fixes #6010 props mdawaffe.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7236 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 08:55:57 +00:00
westi
7733c94c8c Validation and Translation fixes for the Profile page. Fixes #6152 and #6153 props johnbillion.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7235 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 08:54:08 +00:00
westi
abb5051775 Improved wording for the missing mysql error message. Fixes #6141 props MtDewVirus.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 08:44:59 +00:00
matt
4c715fbd58 Turn off the fullsize argument, which was accidentally toggled earlier.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7233 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 07:45:31 +00:00
matt
c3c45d74fc Abstract TinyMCE colors. Fixes #6154. Hat tip: azaozz.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7232 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 07:31:19 +00:00
matt
cd23e67355 Show comment time, not post time.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 07:28:47 +00:00
matt
7f77979b0a Visual and English tweaks throughout.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7230 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 07:23:07 +00:00
matt
801ab72258 Dashboard color tweak.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7229 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 02:08:10 +00:00
matt
13e2adae6b See #5911. Hat tip: andy.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7228 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 01:30:15 +00:00
matt
602266439f Parley voo crunching?
git-svn-id: http://svn.automattic.com/wordpress/trunk@7227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 01:10:48 +00:00
matt
d3eb82934f Use jQuery load function when available. Fixes #6112; Hat tip: azaozz.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7226 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 00:58:37 +00:00
matt
3a6137e0ac Don't link to yourself on a permalink page.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7225 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 00:46:58 +00:00
matt
e16e98041b Smaller regex.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7224 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 00:43:07 +00:00
matt
93e92262cb Big regex for type.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7223 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 00:37:29 +00:00
matt
77c8335821 Better media attachment template. See #5911. Hat tip: andy.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7222 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 00:09:14 +00:00
matt
b0cf57810e Better attachment template. Hat tip: Andy. Fixes #6150.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7221 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-11 00:02:15 +00:00
matt
9c8a54f24a Show a message after the upload has finished but before the return HTML is finished.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 23:55:26 +00:00
ryan
121991894a Make titles for multiple instances of a widget distinct. Props mdawaffe. fixes #6108
git-svn-id: http://svn.automattic.com/wordpress/trunk@7219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 23:23:32 +00:00
matt
355c09e6d0 More attachment thumbnail fixes, see #5911. Hat tip: andy.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7218 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 23:04:20 +00:00
ryan
39ca0f550e Add cap checks to dash. Props mdawaffe. fixes #5858
git-svn-id: http://svn.automattic.com/wordpress/trunk@7217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 22:59:57 +00:00
matt
4f59f008ab Some more color updates.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7216 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 22:35:19 +00:00
ryan
7e5d1fade9 Add cursor pointer to buttons. Props ionfish and mt. fixes #5943
git-svn-id: http://svn.automattic.com/wordpress/trunk@7215 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 22:10:39 +00:00
ryan
56673e49e6 Styling update for user edit form. Props mt. fixes #6140
git-svn-id: http://svn.automattic.com/wordpress/trunk@7214 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 22:09:26 +00:00
matt
8d03359345 Invisible ink delete links. See #5911. Also some old school colors, half-way done.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 21:49:08 +00:00
matt
7807a9d116 Icon fixes. See #5911; hat tip: andy.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7212 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 21:31:33 +00:00
matt
0cef1b754e New color file.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 20:59:08 +00:00
matt
0023f723ec Drop the padding back down now that the borders are back.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7210 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 20:57:04 +00:00
ryan
5fa2304d1e Fix deletion of plugins not in their own directory. Props DD32. see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@7209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 17:13:41 +00:00
ryan
8768a5eed8 Typo fix
git-svn-id: http://svn.automattic.com/wordpress/trunk@7208 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 08:38:17 +00:00
ryan
26551b27db Fix comment bubble alignment. Props azaozz. fixes #6115
git-svn-id: http://svn.automattic.com/wordpress/trunk@7207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 08:24:45 +00:00
ryan
331efc3e25 Show error data in message. Props DD32. see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@7206 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 07:45:46 +00:00
ryan
dad505b57e Return error if base dir empty. Props DD32. see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@7205 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 07:44:23 +00:00
ryan
8aab63b7cf Use default category when getting permalink if the post has no categories assigned. Props nbachiyski. see #6083
git-svn-id: http://svn.automattic.com/wordpress/trunk@7204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 07:15:01 +00:00
ryan
f957f7307d Include login rtl css. Props nbachiyski. fixes #6121
git-svn-id: http://svn.automattic.com/wordpress/trunk@7203 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 07:11:44 +00:00
markjaquith
e105b51283 No longer BetaPress TODO. fixes #6060
git-svn-id: http://svn.automattic.com/wordpress/trunk@7202 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 06:46:38 +00:00
ryan
5c4354e714 Dashboard styling updates from mt. fixes #6120
git-svn-id: http://svn.automattic.com/wordpress/trunk@7201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 05:58:15 +00:00
ryan
fe696318fc Hide moderation count bubble when no comments are awaiting moderation. Props filosofo. fixes #6010
git-svn-id: http://svn.automattic.com/wordpress/trunk@7200 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 05:54:46 +00:00
ryan
21f293db28 gettext strings. Props hervada. fixes #6136
git-svn-id: http://svn.automattic.com/wordpress/trunk@7199 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 05:51:33 +00:00
ryan
af2f181524 Add Delete link link to edit link form. Props mdawaffe. fixes #6126
git-svn-id: http://svn.automattic.com/wordpress/trunk@7198 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 05:48:28 +00:00
ryan
693df6dea7 Dashboard IE fixes from mdawaffe. see #5750
git-svn-id: http://svn.automattic.com/wordpress/trunk@7197 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 05:47:07 +00:00
ryan
a1449b1ebc Enqueue XFN for link pages. Props mdawaffe. fixes #6217
git-svn-id: http://svn.automattic.com/wordpress/trunk@7196 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 05:44:56 +00:00
ryan
3fc5ffa166 Dashboard styling updates from mt. see #6120
git-svn-id: http://svn.automattic.com/wordpress/trunk@7195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 05:42:08 +00:00
ryan
1ab0b60ef8 Style fixes from mt. fixes #6124
git-svn-id: http://svn.automattic.com/wordpress/trunk@7194 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 05:37:13 +00:00
ryan
b7f524580d Add sanitization to get_link() and get_link_to_edit(). Props mdawaffe. fixes #6125
git-svn-id: http://svn.automattic.com/wordpress/trunk@7193 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 05:28:21 +00:00
ryan
45a072ddee Relocate Save Changes button. Props mdawaffe. fixes #6118
git-svn-id: http://svn.automattic.com/wordpress/trunk@7192 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-10 05:19:12 +00:00
westi
b5904c542e Better description for WXR. Fixes #6093 props thenlich and MtDewVirus.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7191 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-09 22:14:49 +00:00
westi
fcddc04547 Remove the entity decoding and recoding from wp_html_excerpt. Fixes #6077 props nbachiyski.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-09 22:11:20 +00:00
westi
215a5b33d9 Consistent headings for the Manage->Link page. See #6137 props MichaelH.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7189 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-09 21:54:34 +00:00
westi
0fa353c714 Add context to translated string. Fixes #6134 props RanYanivHartstein.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-08 22:50:12 +00:00
westi
7ffcd8c7d6 Abstract css colours on login page to colors-fresh. Fixes #6135 props iammattthomas.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7187 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-08 22:43:58 +00:00
westi
ecc02b445d Better name for the related link to manage categories. Fixes #6133 props MichaelH.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-08 22:38:55 +00:00
westi
c64864598f Use the new colours stylesheet for the media library. See #5911 props andy.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7185 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-07 22:40:08 +00:00
matt
c9b93dc282 Make deletes hover red, rawr.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7184 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-07 18:35:24 +00:00
westi
df492283e6 Work harder to create the correct links for new top level menus. Fixes #4907 props DD32.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7183 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-07 14:48:10 +00:00
westi
5d6e61a555 Link to more specific documentation. Fixes #6070 props MichaelH.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7182 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-07 14:29:05 +00:00
matt
932ffd6ed7 A number of style tweaks; widen up a little; starting to add contextual help to various forms; catching up unloved forms with new UI guidelines.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7181 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-07 10:05:54 +00:00
matt
097b9be6c5 Don't show comment text in list view; extra layout bit.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-07 07:53:15 +00:00
matt
fbdf2b8753 CSS consolidation.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7179 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-07 07:16:29 +00:00
matt
f6f04cafe9 Abstract colors from layout CSS. Pass 1.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7178 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-07 01:17:21 +00:00
ryan
5049a8f7d6 fix missing thumbnail radio button for inserting into post. Props andy. see #5911
git-svn-id: http://svn.automattic.com/wordpress/trunk@7177 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-06 23:40:21 +00:00
ryan
589993b783 Make cancel mean cancel. Props mdawaffe. see #5886
git-svn-id: http://svn.automattic.com/wordpress/trunk@7176 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-06 23:01:22 +00:00
ryan
b214271fd3 Add unapprove links. Props mdawaffe. see #6094
git-svn-id: http://svn.automattic.com/wordpress/trunk@7175 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-06 21:48:20 +00:00
ryan
3f90ba9d0a Remove link underlines from where the shouldn't be. Props mt. fixes #6113
git-svn-id: http://svn.automattic.com/wordpress/trunk@7174 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-06 20:44:29 +00:00
ryan
1189e1fce8 Added filter for changing the languages selection for the spellchecker, fixed problems with valid_elements and added filter for extended_valid_elements, update to the latest version. Props azaozz. fixes #6111
git-svn-id: http://svn.automattic.com/wordpress/trunk@7173 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-06 19:56:02 +00:00
ryan
c506a8173c Fix insert, gallery, sizing, type queries, errors, thumbs, type fallback. Props andy. see #5911
git-svn-id: http://svn.automattic.com/wordpress/trunk@7172 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-06 19:48:54 +00:00
ryan
12a0f3a403 ftpsockets fix from DD32. see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@7171 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-06 18:14:58 +00:00
matt
24d3ee2c98 Fix some names and order of filters.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7170 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-06 10:23:00 +00:00
matt
878d16ecc6 Clean up comments links, link to more comments pages not posts.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-06 10:09:14 +00:00
matt
9342ab2cac Move view link to status, missed underline.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7168 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-06 09:58:47 +00:00
matt
ac37a96e57 Underline all links in body, none in header.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7167 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-06 09:53:03 +00:00
matt
51902baa0c Check all should now work on comments.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7166 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-06 09:48:36 +00:00
ryan
feb0644005 Use constant instead of DB option for setting autosave_interval. Props mdawaffe. fixes #6075
git-svn-id: http://svn.automattic.com/wordpress/trunk@7165 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-06 06:07:53 +00:00
ryan
607ef8887d wpfs fixes from DD32. see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@7164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-06 06:06:13 +00:00
ryan
224cd002de Change the colors on the login error messages. Props mt. fixes #6105
git-svn-id: http://svn.automattic.com/wordpress/trunk@7163 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-06 06:02:26 +00:00
markjaquith
1da923bdfd Post slug fixes from nbachiyski. fixes #6072
git-svn-id: http://svn.automattic.com/wordpress/trunk@7162 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-05 22:09:28 +00:00
matt
e6b01542a5 Don't return early before filtering.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7161 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-05 18:49:56 +00:00
ryan
0e9ffe90bb Improve upload_max_filesize error. Improve error display for long messages. New uploads now added to bottom, not top. Fix align class. Remove redundant header text. Props andy. see #5911
git-svn-id: http://svn.automattic.com/wordpress/trunk@7160 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-05 06:46:42 +00:00
ryan
71d63f9b3e Use wp_mkdir_p() to create js cache dir. Props DD32. see #6097
git-svn-id: http://svn.automattic.com/wordpress/trunk@7159 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-05 05:53:56 +00:00
ryan
5ca43fe40b Update get_avatar() phpdoc
git-svn-id: http://svn.automattic.com/wordpress/trunk@7158 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-04 22:52:36 +00:00
ryan
6e80433a40 Fallback to UTF-8 if not valid mb_internal_encoding. Props tenpura. fixes #6092
git-svn-id: http://svn.automattic.com/wordpress/trunk@7157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-04 19:25:00 +00:00
ryan
c2c7fa0aef Make sure encoding is not empty. Props tenpura. see #6902
git-svn-id: http://svn.automattic.com/wordpress/trunk@7156 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-04 17:12:04 +00:00
ryan
beb71f0932 wp-fs fixes from DD32. see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@7155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-04 17:10:17 +00:00
ryan
fbd4ce39d8 Remove cruft
git-svn-id: http://svn.automattic.com/wordpress/trunk@7154 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-04 17:08:39 +00:00
ryan
af95d56dc9 Comment bubble count fixes from mdawaffe. fixes #6090
git-svn-id: http://svn.automattic.com/wordpress/trunk@7153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-04 17:07:47 +00:00
matt
92745e8531 Don't timeout while importing WXR. Fixes #6089. Hat tip: tellyworth.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7152 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-04 04:33:40 +00:00
matt
d320099c83 Table styling and "add media" label. See #5911. Hat tip: andy.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-04 04:28:23 +00:00
matt
6ecded2a95 Handle GD errors correctly during image resizing. Fixes #6087. Hat tip: tellyworth.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-04 04:23:35 +00:00
matt
0456afb16d New functions for attachment image display, fixes #6086. Hat tip: tellyworth.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-04 04:21:37 +00:00
ryan
241d5fb011 Set autosave_interval for fresh installs. DEfault to 60 if autosave_interval is not set. see #6075
git-svn-id: http://svn.automattic.com/wordpress/trunk@7148 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-04 00:41:49 +00:00
ryan
1365d48ac2 Update to TinyMCE 3.03. Define shortcuts. Relocate cached TMCE file. Props azaozz. fixes #6084
git-svn-id: http://svn.automattic.com/wordpress/trunk@7147 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-04 00:07:29 +00:00
ryan
4e45603410 Post edit collision detection fixes from mdawaffe. fixes #6043
git-svn-id: http://svn.automattic.com/wordpress/trunk@7146 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-04 00:05:30 +00:00
ryan
08ed4d3b40 Autosave notice styling from mdawaffe. fixes #6054
git-svn-id: http://svn.automattic.com/wordpress/trunk@7145 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-03 21:15:34 +00:00
ryan
e38923c92d Validation fix from nbachiyski. fixes #5962
git-svn-id: http://svn.automattic.com/wordpress/trunk@7144 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-03 21:13:47 +00:00
ryan
5aabe0133c Set focus for some fields. Props nbachiyski. fixes #6080
git-svn-id: http://svn.automattic.com/wordpress/trunk@7143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-03 21:12:17 +00:00
ryan
92ad2aabbe Revert plugin page styling for now. Props mt. see #6067
git-svn-id: http://svn.automattic.com/wordpress/trunk@7142 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-03 21:09:08 +00:00
ryan
8b6871a538 Widget admin styling from my. fixes #6078
git-svn-id: http://svn.automattic.com/wordpress/trunk@7141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-03 21:06:26 +00:00
ryan
6e181bb941 Multi-byte character safe excerpting from nbachiyski. fixes #6077
git-svn-id: http://svn.automattic.com/wordpress/trunk@7140 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-03 21:05:23 +00:00
ryan
b1f0a853da Slug edit fix from nbachiyski. fixes #6072
git-svn-id: http://svn.automattic.com/wordpress/trunk@7139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-03 21:02:53 +00:00
ryan
5504c11b58 Only show "saved at" when the post was actually saved. Props mdawaffe. fixes #6053
git-svn-id: http://svn.automattic.com/wordpress/trunk@7138 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-03 20:58:06 +00:00
ryan
0ab4077b3c Image sizing fix from andy. fixes #6074
git-svn-id: http://svn.automattic.com/wordpress/trunk@7137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-03 20:53:04 +00:00
ryan
46acda57a4 Error class styling from mt. fixes #6034
git-svn-id: http://svn.automattic.com/wordpress/trunk@7136 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-03 20:52:04 +00:00
matt
bb22054028 Creating intermediate sizes, better thumbnails, and other image improvements. Hat tip: tellyworth.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7135 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-03 04:17:37 +00:00
matt
bf18e2fd3f Deal correctly with empty upload_path option. Hat tip: tellyworth.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-03 04:14:16 +00:00
ryan
bee4e17d23 Show page hierarchy when editing page slugs. fixes #6068
git-svn-id: http://svn.automattic.com/wordpress/trunk@7133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-02 22:15:30 +00:00
ryan
bf8f7b0f28 Make sure avatar size is numeric. Props Martin2006. fixes #6069
git-svn-id: http://svn.automattic.com/wordpress/trunk@7132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-02 21:41:35 +00:00
ryan
48368e8a7f Set eol-style. Props nbachiyski. fixes #6065
git-svn-id: http://svn.automattic.com/wordpress/trunk@7131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-02 21:34:25 +00:00
ryan
04c9051a7d Remove trailing whites.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7130 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-02 20:17:30 +00:00
ryan
642135072a Fix file type
git-svn-id: http://svn.automattic.com/wordpress/trunk@7129 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-02 20:10:43 +00:00
ryan
97cd4acf01 Fix file types
git-svn-id: http://svn.automattic.com/wordpress/trunk@7128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-01 23:29:19 +00:00
ryan
8dcb1bc61c Set eol-style
git-svn-id: http://svn.automattic.com/wordpress/trunk@7127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-01 21:23:51 +00:00
ryan
c71d96e269 Plugin updater updates. see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@7126 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-01 21:20:23 +00:00
ryan
88e06106a8 Make punctuation consistent. Props hervada. fixes #5880
git-svn-id: http://svn.automattic.com/wordpress/trunk@7125 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-01 20:54:00 +00:00
ryan
267756fc93 Fix passed by reference errors. Props DD32. fixes #6056
git-svn-id: http://svn.automattic.com/wordpress/trunk@7124 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-01 20:41:18 +00:00
ryan
4630b5ecb9 thead instead of tbody. Props alexrabe. fixes #6057
git-svn-id: http://svn.automattic.com/wordpress/trunk@7123 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-01 20:40:06 +00:00
ryan
a239d2f38c Remove extra plugin page pipes. fixes #6059
git-svn-id: http://svn.automattic.com/wordpress/trunk@7122 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-01 20:38:35 +00:00
ryan
7d9f5e76a0 max width fixes from azaozz. fixes #6051
git-svn-id: http://svn.automattic.com/wordpress/trunk@7121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-01 08:13:23 +00:00
ryan
846991d804 Fix private post toggle
git-svn-id: http://svn.automattic.com/wordpress/trunk@7120 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-01 06:26:13 +00:00
ryan
372ce0ed9b Full length fields on the edit link form. Props mt. fixes #6055
git-svn-id: http://svn.automattic.com/wordpress/trunk@7119 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-01 02:12:52 +00:00
ryan
5750a43404 More error class styling from mt. see #6034
git-svn-id: http://svn.automattic.com/wordpress/trunk@7118 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-01 02:06:55 +00:00
ryan
67c2adba1c Fix link colors for error class. Props mt. see #6034
git-svn-id: http://svn.automattic.com/wordpress/trunk@7117 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-01 00:40:16 +00:00
ryan
44fb2281f3 Change save page redirects. see #6024
git-svn-id: http://svn.automattic.com/wordpress/trunk@7116 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-01 00:16:55 +00:00
ryan
915e8d7721 Error class stlying from mt. fixes #6034
git-svn-id: http://svn.automattic.com/wordpress/trunk@7115 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-01 00:08:00 +00:00
ryan
73b84563d3 max width fixes from azaozz. fixes #6051
git-svn-id: http://svn.automattic.com/wordpress/trunk@7114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-29 23:27:02 +00:00
ryan
080b33f54c Allow searching within a given page status. fixes #5839
git-svn-id: http://svn.automattic.com/wordpress/trunk@7113 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-29 22:38:20 +00:00
ryan
0d48bb7cec Add option to check caps when querying a particular page status. fixes #6052
git-svn-id: http://svn.automattic.com/wordpress/trunk@7112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-29 22:34:29 +00:00
ryan
5f7d1ae0cb Restrict edit.php searches to posts. No pages.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7111 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-29 22:29:57 +00:00
ryan
97bdfc4bbf Allow searching within a given post status. fixes #5839
git-svn-id: http://svn.automattic.com/wordpress/trunk@7110 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-29 22:02:49 +00:00
ryan
884be4169f Add option to check caps when querying a particular post status. fixes #6052
git-svn-id: http://svn.automattic.com/wordpress/trunk@7109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-29 21:49:49 +00:00
ryan
37c69acd2d Hardcode offset range since the step argument to range is PHP 5 only. fixes #6047
git-svn-id: http://svn.automattic.com/wordpress/trunk@7108 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-29 19:00:52 +00:00
ryan
03170d477f Use preg_replace_callback instead of 'e' modifier. see #5644
git-svn-id: http://svn.automattic.com/wordpress/trunk@7107 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-29 18:28:32 +00:00
ryan
6fe2cd5873 Use preg_replace_callback instead of 'e' modifier. see #5644
git-svn-id: http://svn.automattic.com/wordpress/trunk@7106 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-29 17:49:50 +00:00
ryan
dcc9de1076 Remove empty gettext call. Props andy. fixes #6044
git-svn-id: http://svn.automattic.com/wordpress/trunk@7105 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-29 17:15:34 +00:00
ryan
577f12beae Update deprecated attributes. Props hansengel. fixes #6037
git-svn-id: http://svn.automattic.com/wordpress/trunk@7104 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-29 17:09:44 +00:00
ryan
d9aef704a1 Post Edit Collision Detection from mdawaffe. fixes #6043
git-svn-id: http://svn.automattic.com/wordpress/trunk@7103 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-29 09:51:36 +00:00
ryan
fcd52b23a1 Remove some no longer needed JS. Props mdawaffe. fixes #6011
git-svn-id: http://svn.automattic.com/wordpress/trunk@7102 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-29 08:12:12 +00:00
ryan
4ecde2cdbb Set max width on .wrap. Props mt. fixes #6036
git-svn-id: http://svn.automattic.com/wordpress/trunk@7101 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-29 08:08:17 +00:00
ryan
daf37cc98c Media Library updates from andy. see #5911
git-svn-id: http://svn.automattic.com/wordpress/trunk@7100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-29 06:54:15 +00:00
ryan
3bf5a1849b Media icons. fixes #6039
git-svn-id: http://svn.automattic.com/wordpress/trunk@7099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-29 06:49:05 +00:00
ryan
76996fcd71 Fade approved comments from moderated list. Props mdawaffe. fixes #6032
git-svn-id: http://svn.automattic.com/wordpress/trunk@7098 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-28 22:12:04 +00:00
westi
bf15f62334 Line dolly up again.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7097 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-28 22:02:20 +00:00
ryan
259bc26542 urlencode only when needed. Props spikeyslam. see #5775
git-svn-id: http://svn.automattic.com/wordpress/trunk@7096 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-28 22:01:56 +00:00
westi
b5903814d4 urlencode the goback url to preserve any parameters. Fixes #5753 props DD32.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7095 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-28 21:57:49 +00:00
ryan
09f33b6865 Revert [7093]. Need a different method. see #6032
git-svn-id: http://svn.automattic.com/wordpress/trunk@7094 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-28 21:57:39 +00:00
ryan
c4bb6ba122 Fade approved comments from moderated list. Props filosofo. fixes #6032
git-svn-id: http://svn.automattic.com/wordpress/trunk@7093 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-28 21:51:57 +00:00
ryan
282ed12fa4 Media library updates from andy. see #5911
git-svn-id: http://svn.automattic.com/wordpress/trunk@7092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-28 21:29:51 +00:00
westi
cf7e0adf8b Use a default size that gravatar supports rather than one it doesn't. Fixes #6033 props josephscott.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7091 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-28 21:11:47 +00:00
ryan
d548357a2f View switcher styling from mt. fixes #6031
git-svn-id: http://svn.automattic.com/wordpress/trunk@7090 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-28 20:40:23 +00:00
ryan
dc4cad77f2 Change approved comment color. Props mt. fixes #6030
git-svn-id: http://svn.automattic.com/wordpress/trunk@7089 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-28 20:39:14 +00:00
ryan
db0e02e19e Dashboard styling from mt. fixes #6029
git-svn-id: http://svn.automattic.com/wordpress/trunk@7088 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-28 20:37:48 +00:00
westi
717b7316bf Ensure email address is lower case in get_avatar(). Fixes #6028 props josephscott.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-28 16:34:59 +00:00
ryan
f529aef82d Widget admin layout fixes from mdawaffe. fixes #5997
git-svn-id: http://svn.automattic.com/wordpress/trunk@7086 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-28 09:11:11 +00:00
ryan
67fd73834b Update 'See Comments on this Page' link
git-svn-id: http://svn.automattic.com/wordpress/trunk@7085 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-28 07:37:15 +00:00
ryan
b2572e4b11 Change save post redirects. see #6024
git-svn-id: http://svn.automattic.com/wordpress/trunk@7084 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-28 07:34:13 +00:00
ryan
afcf5d8f37 Add unapprove button
git-svn-id: http://svn.automattic.com/wordpress/trunk@7083 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-28 07:04:52 +00:00
ryan
51a3623aed Unify comment display. Props mdawaffe. fixes #6025
git-svn-id: http://svn.automattic.com/wordpress/trunk@7082 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-28 06:50:25 +00:00
ryan
c313442072 Cast to array
git-svn-id: http://svn.automattic.com/wordpress/trunk@7081 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-28 06:43:45 +00:00
ryan
b2838e11c7 Fix widgets using old-style multi instance support. Props mdawaffe. fixes #6023
git-svn-id: http://svn.automattic.com/wordpress/trunk@7080 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-28 00:31:46 +00:00
ryan
3a9016a05b Add edit comments js to edit-pages when viewing a page's comments. see #6022
git-svn-id: http://svn.automattic.com/wordpress/trunk@7079 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-28 00:16:49 +00:00
ryan
3880d93370 Show comments when viewing a page in Manage Pages. fixes #6022
git-svn-id: http://svn.automattic.com/wordpress/trunk@7078 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-28 00:13:09 +00:00
ryan
d0dfa68b6a fix new-fangled multi widgets. Props mdawaffe. see #6022
git-svn-id: http://svn.automattic.com/wordpress/trunk@7077 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 23:57:00 +00:00
ryan
efd7c23c87 Fix plugin version compare. Props mdawaffe. fixes #5978
git-svn-id: http://svn.automattic.com/wordpress/trunk@7076 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 23:43:22 +00:00
ryan
363ddd3b4f Fix AJAX comment moderation on edit post view. Props mdawaffe. fixes #4245
git-svn-id: http://svn.automattic.com/wordpress/trunk@7075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 23:36:24 +00:00
ryan
b9d443b574 Introduce get_post_ancestors(). Add current_page_ancestor class to ancestors of the current page. Props AaronCampbell. fixes #5662
git-svn-id: http://svn.automattic.com/wordpress/trunk@7074 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 23:28:18 +00:00
ryan
affd57730c Add current_page_item on page_for_posts. Props mdawaffe. fixes #2959
git-svn-id: http://svn.automattic.com/wordpress/trunk@7073 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 22:38:02 +00:00
ryan
d91f8ed06e Make punctuation consistent. Props hervada and lloydbudd. fixes #5880
git-svn-id: http://svn.automattic.com/wordpress/trunk@7072 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 22:05:50 +00:00
ryan
eaf3da1a2c Tagging terminology cleanup from lloydudd. fixes #6020
git-svn-id: http://svn.automattic.com/wordpress/trunk@7071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 21:47:52 +00:00
ryan
0b43776d5f For page attachmentes, set both is_attachment and is_page to true so that templates cascade correctly.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 21:30:59 +00:00
ryan
d236d4f3e1 remove debug cruft and set swfupload max file size to match php ini. Props andy. see #5911
git-svn-id: http://svn.automattic.com/wordpress/trunk@7067 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 19:36:02 +00:00
ryan
b310e6a620 Style updates to plugins, export, and sidemenu from mt. fixes #6019
git-svn-id: http://svn.automattic.com/wordpress/trunk@7066 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 19:18:21 +00:00
westi
92cd35b5a2 Generate random passwords for users created during import. Fixes #5837 props pishmishy.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7065 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 18:45:40 +00:00
westi
9735b962ba A better in_category which supports category names that are all numbers.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 18:25:25 +00:00
ryan
5367493b1e gettext fixes from takayukister. fixes #6018
git-svn-id: http://svn.automattic.com/wordpress/trunk@7063 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 17:19:58 +00:00
ryan
cc39b5fbce Add media library uploader tab. Props andy. see #5911
git-svn-id: http://svn.automattic.com/wordpress/trunk@7062 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 08:31:10 +00:00
ryan
e1bb43b66b set eol style
git-svn-id: http://svn.automattic.com/wordpress/trunk@7061 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 05:37:13 +00:00
ryan
77aa40f291 TinyMCE 3.02 from azaozz. fixes #6012
git-svn-id: http://svn.automattic.com/wordpress/trunk@7060 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 05:36:42 +00:00
ryan
32b34b0be6 Remove unused files. see #6011
git-svn-id: http://svn.automattic.com/wordpress/trunk@7059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 05:05:28 +00:00
ryan
15c0ccc933 get_temp_dir(). fixes #5984
git-svn-id: http://svn.automattic.com/wordpress/trunk@7058 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 00:47:15 +00:00
ryan
354edc9544 Don't load wp-lists on pages that don't need it. Props mdawaffe. fixes #6011
git-svn-id: http://svn.automattic.com/wordpress/trunk@7057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 00:46:27 +00:00
ryan
83df1eb992 Use preg_replace_callback() instead of using the 'e' modifier.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7056 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 00:37:40 +00:00
ryan
03b47d4ddc Revert [7054]. No idea how I managed that.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7055 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 00:36:33 +00:00
ryan
fb02817dfc Fix users query
git-svn-id: http://svn.automattic.com/wordpress/trunk@7054 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 00:25:08 +00:00
ryan
2825626009 Remove listman from script loader
git-svn-id: http://svn.automattic.com/wordpress/trunk@7053 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 23:04:44 +00:00
ryan
5505b145af Bump jquery color ver
git-svn-id: http://svn.automattic.com/wordpress/trunk@7052 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 22:51:16 +00:00
ryan
f4422c2842 Remove list-manipulation.js. No longer used
git-svn-id: http://svn.automattic.com/wordpress/trunk@7051 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 22:48:47 +00:00
ryan
8ebf2db0c6 Ajax tweaks for edit-comments.php from mdawaffe. fixes #6009
git-svn-id: http://svn.automattic.com/wordpress/trunk@7050 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 22:45:46 +00:00
ryan
ee73826c11 Show custom header images in the media library. Props spikeyslam. fixes #6008
git-svn-id: http://svn.automattic.com/wordpress/trunk@7049 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 21:07:15 +00:00
ryan
d747a60a34 Correct RSS link for plugin dashboard widget. Props mdawaffe. fixes #5931
git-svn-id: http://svn.automattic.com/wordpress/trunk@7048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 20:56:03 +00:00
ryan
83908c9078 Add page saved notice.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7047 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 20:53:07 +00:00
ryan
3b82fdffc7 Remove messages from the requested URI so they don't follow us around while paging.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7046 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 20:35:40 +00:00
ryan
77f215393c fix overuse of default mime icon and re-shuffle mp4/m4a file type matches. Props andy. see #5911
git-svn-id: http://svn.automattic.com/wordpress/trunk@7045 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 19:57:00 +00:00
ryan
8cd7ff8b76 Fix theme and plugin editor styling for IE. Props mt. fixes #5950
git-svn-id: http://svn.automattic.com/wordpress/trunk@7044 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 19:33:51 +00:00
ryan
1eaf857f7b Media upload updates from andy. see #5911
git-svn-id: http://svn.automattic.com/wordpress/trunk@7043 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 19:30:10 +00:00
ryan
1b08613a81 Add some defaults for wp_insert_attachment. fixes #6006
git-svn-id: http://svn.automattic.com/wordpress/trunk@7042 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 18:51:45 +00:00
ryan
de3ab9a05e image_resize() and friends from tellyworth. fixes #6005
git-svn-id: http://svn.automattic.com/wordpress/trunk@7041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 18:46:03 +00:00
ryan
afe0740ba8 Add cursor pointer to buttons. Props ionfish. fixes #5943
git-svn-id: http://svn.automattic.com/wordpress/trunk@7040 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 18:44:26 +00:00
ryan
e0649b751c Silence some exected warnings in ftpext. Props DD32. see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@7039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 18:35:01 +00:00
ryan
4446c81177 Return error when requesting invalid feed format. Props pishmishy. fixes #5446
git-svn-id: http://svn.automattic.com/wordpress/trunk@7038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 10:05:05 +00:00
ryan
5f5694ee64 Silence warnings if error_log is disabled. fixes #5771
git-svn-id: http://svn.automattic.com/wordpress/trunk@7037 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 09:45:51 +00:00
ryan
16c4b30145 update mime-to-icon matching and get filename from function instead of guid. Props andy. see #5911
git-svn-id: http://svn.automattic.com/wordpress/trunk@7036 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 08:54:11 +00:00
ryan
f4490b8acb Add nbsp. Props Speedboxer. fixes #5931
git-svn-id: http://svn.automattic.com/wordpress/trunk@7035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 08:50:42 +00:00
ryan
8ec7beca29 Editor style fixes for IE6 from mt and azaozz. fixes #6004
git-svn-id: http://svn.automattic.com/wordpress/trunk@7034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 07:15:59 +00:00
ryan
e495d173a1 Instantiate errors object for ftpsockets class.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7033 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 05:23:05 +00:00
ryan
fabda2a2d3 Fix edit comment form tab indices. fixes #5712
git-svn-id: http://svn.automattic.com/wordpress/trunk@7032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 04:53:48 +00:00
ryan
eded6730c1 Adjust margin and sidemenu. Props mt. fixes #5832 #6003
git-svn-id: http://svn.automattic.com/wordpress/trunk@7031 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-26 04:22:09 +00:00
westi
fdb26f5bae Support category names in in_category(). Fixes #4558 props robmil.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-25 22:18:41 +00:00
westi
fcec1e31d2 Fix one wrong corner css. Fixes #5987 props johnbillion.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7029 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-25 22:10:04 +00:00
westi
35a2e26b4d Add keyed object output to wpdb::get_results. Fixes #5286 props andy.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-25 22:00:27 +00:00
ryan
2229af8cb6 Resurrect moderation.php as a redirect to edit-comments.php.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-25 19:29:30 +00:00
ryan
fc943e24c6 Grammar fixes from takayukister and thenlich. fixes #5992
git-svn-id: http://svn.automattic.com/wordpress/trunk@7026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-25 19:13:21 +00:00
ryan
538126aff8 Workaround Safari crasher. Props azaozz. fixes #5945
git-svn-id: http://svn.automattic.com/wordpress/trunk@7025 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-25 19:03:35 +00:00
ryan
a8575ec1c7 Typo fix. Props Stevie212. fixes #6001
git-svn-id: http://svn.automattic.com/wordpress/trunk@7024 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-25 18:54:22 +00:00
ryan
a09ff250e3 Change Your Timezone to simply Timezone. Props hansengel. fixes #5988
git-svn-id: http://svn.automattic.com/wordpress/trunk@7023 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-25 18:45:27 +00:00
ryan
68606d301e get_pagenum_link filter from Martin2006. fixes #5969
git-svn-id: http://svn.automattic.com/wordpress/trunk@7022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-25 18:40:46 +00:00
ryan
428d820978 Grammar fix. Props thenlich and hansengel. fixes #5991
git-svn-id: http://svn.automattic.com/wordpress/trunk@7021 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-25 18:34:45 +00:00
ryan
0b5c3cce1e CSS rule fixes from Nao and ionfish. fixes #5993
git-svn-id: http://svn.automattic.com/wordpress/trunk@7020 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-25 18:33:39 +00:00
ryan
fd18739a7a Remove moderation.php. edit-comments.php now handles moderation
git-svn-id: http://svn.automattic.com/wordpress/trunk@7019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-25 08:24:44 +00:00
ryan
198e1c5d54 Add manage_comments_nav action
git-svn-id: http://svn.automattic.com/wordpress/trunk@7018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-25 08:20:36 +00:00
ryan
38d86547c3 Put settings first in the side menu
git-svn-id: http://svn.automattic.com/wordpress/trunk@7017 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-25 08:08:09 +00:00
ryan
b9c6db344f Some password reset filters
git-svn-id: http://svn.automattic.com/wordpress/trunk@7016 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-25 07:41:13 +00:00
ryan
feb2950b2d Create password reset key only once. Props tellyworth. fixes #5990
git-svn-id: http://svn.automattic.com/wordpress/trunk@7015 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-25 07:34:24 +00:00
ryan
8137e045da Remove add link bookmarlet from write link page. Relocating it.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-25 06:30:38 +00:00
ryan
af552e88d1 Comment action fixes
git-svn-id: http://svn.automattic.com/wordpress/trunk@7013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-25 05:56:21 +00:00
ryan
6e323c8411 Change 2px radii to 3px. Props mt. fixes #5987
git-svn-id: http://svn.automattic.com/wordpress/trunk@7012 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-25 00:34:26 +00:00
ryan
16f1d1c505 Manage comments styling from mt. fixes #5985
git-svn-id: http://svn.automattic.com/wordpress/trunk@7011 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-25 00:28:21 +00:00
ryan
3c14697683 Move edit link to author name.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-24 22:22:28 +00:00
ryan
dbca6a9d0c Add approve and spam links
git-svn-id: http://svn.automattic.com/wordpress/trunk@7009 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-24 21:52:46 +00:00
ryan
79fd097b80 Date display fixes for manage comments.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7008 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-24 21:38:44 +00:00
ryan
0ecb874ad4 Trim long urls. Hide Approve button when listing already Approved comments.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7007 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-24 20:42:44 +00:00
ryan
c847832d1f Remember filter settings. Redirect cleanups.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7006 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-24 20:28:36 +00:00
ryan
65141d2025 Manage comments styling from mt. see #5985
git-svn-id: http://svn.automattic.com/wordpress/trunk@7005 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-24 19:41:04 +00:00
ryan
c0dd0a503b Localize help and forum links. Props SteveAgl. fixes #5983
git-svn-id: http://svn.automattic.com/wordpress/trunk@7004 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-24 19:37:58 +00:00
ryan
34603c02c5 Comment detail and list views
git-svn-id: http://svn.automattic.com/wordpress/trunk@7003 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-24 04:51:47 +00:00
ryan
9537359dc4 disregard nonexistant attachments. Props andy. fixes #5967
git-svn-id: http://svn.automattic.com/wordpress/trunk@7002 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-24 04:34:40 +00:00
ryan
2e38b04136 Error page styling from mt. fixes #5977
git-svn-id: http://svn.automattic.com/wordpress/trunk@7001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-24 04:33:51 +00:00
ryan
ece9c26f6f Change niceblue class name to form-table. Props filosofo and mt. fixes #5973
git-svn-id: http://svn.automattic.com/wordpress/trunk@7000 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-24 04:33:10 +00:00
ryan
cfb44d3d90 Hook up bulk comment operations.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6999 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-24 02:33:30 +00:00
ryan
b793e1846f Revert changes to canonical that broke redirects. Props fitztrev. fixes #5961
git-svn-id: http://svn.automattic.com/wordpress/trunk@6998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-24 02:09:24 +00:00
ryan
1e2c4818e8 Admin style tweaks from mt. fixes #5974
git-svn-id: http://svn.automattic.com/wordpress/trunk@6997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-24 02:07:51 +00:00
ryan
c615381288 Specify min width on pages that use TinyMCE. Props azaozz. fixes #5975
git-svn-id: http://svn.automattic.com/wordpress/trunk@6996 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-24 02:04:11 +00:00
westi
8d42a5d342 Fix the display of human time difference when server timezone if different from blog timezone. Fixes #5970 props jhodgdon.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-23 22:11:47 +00:00
ryan
93f0c00cb7 Manage comments rework. WIP
git-svn-id: http://svn.automattic.com/wordpress/trunk@6994 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-23 08:33:44 +00:00
ryan
bef4d0e3f1 Manage comments rework. WIP.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6993 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-23 08:01:51 +00:00
matt
9cfa62b2c4 Don't show filter stuff when we're on a single post view.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6992 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-23 07:20:08 +00:00
ryan
5825c9a139 Remove role context. Props nbachiyski. fixes #5966
git-svn-id: http://svn.automattic.com/wordpress/trunk@6991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-23 04:10:04 +00:00
ryan
a2274a39d0 Add bulk role change to users.php
git-svn-id: http://svn.automattic.com/wordpress/trunk@6990 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 23:36:53 +00:00
ryan
f2313a908b Allow full localization of edit timestamp fields. fixes #5514
git-svn-id: http://svn.automattic.com/wordpress/trunk@6989 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 23:13:02 +00:00
ryan
3d70875d81 Date and title fixes for media management from andy. fixes #5927
git-svn-id: http://svn.automattic.com/wordpress/trunk@6988 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 22:38:52 +00:00
ryan
bc092c9a68 Show messages with message styling instead of error styling. fixes #5929
git-svn-id: http://svn.automattic.com/wordpress/trunk@6987 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 22:07:53 +00:00
ryan
699b250926 Small code formatting tweak
git-svn-id: http://svn.automattic.com/wordpress/trunk@6986 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 20:48:28 +00:00
ryan
b49ff57e63 Make sure post has future status before publishing from cron. Props hailin. fixes #5801
git-svn-id: http://svn.automattic.com/wordpress/trunk@6985 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 19:59:12 +00:00
ryan
038910ae4e Upload path fixes from tellyworth. see #5953
git-svn-id: http://svn.automattic.com/wordpress/trunk@6984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 17:46:03 +00:00
ryan
dce0978cee Notice fixes from nbachiyski. fixes #5961
git-svn-id: http://svn.automattic.com/wordpress/trunk@6983 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 17:43:56 +00:00
ryan
54f091eebf Allow overriding the default secret key. Proy. Props nbachiyski. fixes #5960
git-svn-id: http://svn.automattic.com/wordpress/trunk@6982 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 17:36:09 +00:00
ryan
c6d88f0bc6 Media paging fix from filosofo and andy. fixes #5963
git-svn-id: http://svn.automattic.com/wordpress/trunk@6981 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 17:33:47 +00:00
ryan
90ef210610 Validation fixes from nbachiyski. fixes #5962
git-svn-id: http://svn.automattic.com/wordpress/trunk@6980 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 17:30:43 +00:00
westi
a93e4504f6 Styling updates for the options.php. Fixes #5958 props fitztrev.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 07:44:36 +00:00
westi
8bfac794d2 Styling updates for the settings pages. Fixes #5959 props iammattthomas.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6978 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 07:43:06 +00:00
ryan
7ec7f6df52 Submitbox styling from mt. fixes #5957
git-svn-id: http://svn.automattic.com/wordpress/trunk@6977 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 06:46:15 +00:00
ryan
5e09a8cd81 Styling for permalink settings page from mtfrom mt. fixes #5956
git-svn-id: http://svn.automattic.com/wordpress/trunk@6976 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 06:43:56 +00:00
ryan
15f41f8d2b Return false from edit timestamp click handler. Props fitztrev. fixes #5954
git-svn-id: http://svn.automattic.com/wordpress/trunk@6975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 06:12:10 +00:00
ryan
c5d19aed9c Media library work from andy. see #5911
git-svn-id: http://svn.automattic.com/wordpress/trunk@6974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 05:53:47 +00:00
ryan
fa9f3af382 Move blockquote to first toolbar. Props azaozz. fixes #5709
git-svn-id: http://svn.automattic.com/wordpress/trunk@6973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 05:07:03 +00:00
ryan
512f898b02 Side menu styling from mt. fixes #5948
git-svn-id: http://svn.automattic.com/wordpress/trunk@6972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 04:45:24 +00:00
ryan
2724f9479e Restore JIT script localization. Props azaozz. fixes #5921
git-svn-id: http://svn.automattic.com/wordpress/trunk@6971 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 04:02:09 +00:00
ryan
b4c5911022 submitbox stylings from mt. fixes #5949
git-svn-id: http://svn.automattic.com/wordpress/trunk@6970 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 03:52:19 +00:00
ryan
5afb77ccdd Submitbox style changes from mt. see #5949
git-svn-id: http://svn.automattic.com/wordpress/trunk@6969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 03:45:19 +00:00
ryan
75b6998532 Plugin editor design updates from ffemtcj. fixes #5950
git-svn-id: http://svn.automattic.com/wordpress/trunk@6968 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 03:06:35 +00:00
ryan
5479c56c09 New side menu styling from mt. fixes #5948
git-svn-id: http://svn.automattic.com/wordpress/trunk@6967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 02:09:16 +00:00
ryan
b666039878 Move submitboxes to be the first thing in the poststuff div. Props fitztrev. fixes #5947
git-svn-id: http://svn.automattic.com/wordpress/trunk@6966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 02:04:17 +00:00
ryan
4a89a7ee40 Style updates for install from mt. fixes #5946
git-svn-id: http://svn.automattic.com/wordpress/trunk@6965 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-21 23:55:11 +00:00
ryan
e6a1bade1c Make pagename regex ungreedy. Fixes /pagename/2 links
git-svn-id: http://svn.automattic.com/wordpress/trunk@6964 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-21 23:49:05 +00:00
ryan
8b6ba5061c Validation fixes
git-svn-id: http://svn.automattic.com/wordpress/trunk@6963 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-21 22:29:48 +00:00
ryan
00336b9a98 Validation fixes
git-svn-id: http://svn.automattic.com/wordpress/trunk@6962 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-21 22:26:56 +00:00
ryan
e44e1b7202 Validation fixes
git-svn-id: http://svn.automattic.com/wordpress/trunk@6961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-21 22:20:19 +00:00
ryan
71de0f2d24 Remove extraneous tag. Props ionfish. fixes #5890
git-svn-id: http://svn.automattic.com/wordpress/trunk@6960 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-21 21:49:48 +00:00
ryan
e545cdadb1 TinyMCE 3.01. Props azaozz. fixes #5944
git-svn-id: http://svn.automattic.com/wordpress/trunk@6959 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-21 21:40:25 +00:00
ryan
e92ee80901 Dashboard widgets caching improvements from mdawaffe. see #5750
git-svn-id: http://svn.automattic.com/wordpress/trunk@6958 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-21 21:20:09 +00:00
ryan
1e755afb7b Ver bump
git-svn-id: http://svn.automattic.com/wordpress/trunk@6957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-21 21:03:43 +00:00
ryan
a739979c12 Revert [6940]. Breaks atompub. see #5717
git-svn-id: http://svn.automattic.com/wordpress/trunk@6956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-21 20:47:15 +00:00
ryan
ed09992863 Slug edit for pages. Hide advanced slug field if JS enabled. Trigger first autosave after 15 chars. Set autosave interval to 60s. Props filosofo. see #5749
git-svn-id: http://svn.automattic.com/wordpress/trunk@6955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-21 20:19:34 +00:00
ryan
f5afc1fd4f Show permalink editor on new posts after autosave. Props filosofo. see #5749
git-svn-id: http://svn.automattic.com/wordpress/trunk@6954 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-21 17:08:06 +00:00
ryan
eb3cb51113 Auto add preview link after autosaving a new post or page. Props filosofo. see #5847
git-svn-id: http://svn.automattic.com/wordpress/trunk@6953 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-21 06:19:46 +00:00
ryan
833447d59e Image size options from tellyworth. fixes #5933
git-svn-id: http://svn.automattic.com/wordpress/trunk@6952 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-21 06:00:15 +00:00
ryan
2f7d3a377e Add a default for post_conten_filtered
git-svn-id: http://svn.automattic.com/wordpress/trunk@6951 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-21 00:52:51 +00:00
ryan
2c874f5189 Admin styling updates from mt. fixes #5940
git-svn-id: http://svn.automattic.com/wordpress/trunk@6950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-21 00:27:23 +00:00
ryan
efc3b70996 Add Related section to all write/edit pages
git-svn-id: http://svn.automattic.com/wordpress/trunk@6949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 23:43:06 +00:00
ryan
3378e3b20b Lose the breaks and do it right
git-svn-id: http://svn.automattic.com/wordpress/trunk@6948 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 23:31:56 +00:00
ryan
9183c9ee15 Add h2 headers to the write/edit pages
git-svn-id: http://svn.automattic.com/wordpress/trunk@6947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 22:49:04 +00:00
ryan
726b030412 Allow comment object to be passed to get_avatar() for convenience. see #5775
git-svn-id: http://svn.automattic.com/wordpress/trunk@6946 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 20:58:58 +00:00
ryan
3355f0c2af Allow comment object to be passed to get_avatar() for convenience. see #5775
git-svn-id: http://svn.automattic.com/wordpress/trunk@6945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 20:57:21 +00:00
ryan
865a634fb4 Remove label colons for niceblue widefat tables. Props filosofo. fixes #5939
git-svn-id: http://svn.automattic.com/wordpress/trunk@6944 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 20:30:39 +00:00
ryan
ad42d0148a Remove raquo from buttons. Props filosofo. fixes #5938
git-svn-id: http://svn.automattic.com/wordpress/trunk@6943 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 19:30:55 +00:00
ryan
d12642fc81 Remove useless is_tag() call. Props takayukister. fixes #5687
git-svn-id: http://svn.automattic.com/wordpress/trunk@6942 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 17:57:53 +00:00
ryan
7fe624526c Fix media delete nonce. Props andy. see #5911
git-svn-id: http://svn.automattic.com/wordpress/trunk@6941 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 17:05:42 +00:00
ryan
321845ffcd Skip main posts query if 404. Props misterbisson. fixes #5717
git-svn-id: http://svn.automattic.com/wordpress/trunk@6940 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 16:52:40 +00:00
ryan
4bbe72cd41 shortcodes should not require var=val format. Props andy. fixes #5892
git-svn-id: http://svn.automattic.com/wordpress/trunk@6939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 16:47:50 +00:00
ryan
b09e83ddca pre_post_update action from tellyworth. fixes #5815
git-svn-id: http://svn.automattic.com/wordpress/trunk@6938 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 16:46:44 +00:00
ryan
297492cce5 Alignment tweaks
git-svn-id: http://svn.automattic.com/wordpress/trunk@6937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 10:02:12 +00:00
ryan
5cdc27d40f Make checkbox column narrow
git-svn-id: http://svn.automattic.com/wordpress/trunk@6936 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 09:29:27 +00:00
ryan
db202d383f Add privacy and preview to edit link submitbox
git-svn-id: http://svn.automattic.com/wordpress/trunk@6935 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 08:06:03 +00:00
ryan
4a8632e6fa Fix edit link page menu parentage.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 07:44:25 +00:00
ryan
0012d2b36f Update date display in Manage Posts
git-svn-id: http://svn.automattic.com/wordpress/trunk@6933 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 07:01:36 +00:00
ryan
b9c63b6f11 Change some meta box titles
git-svn-id: http://svn.automattic.com/wordpress/trunk@6932 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 06:50:52 +00:00
ryan
34046eb2de Redirect to cleanup URL
git-svn-id: http://svn.automattic.com/wordpress/trunk@6931 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 05:45:16 +00:00
ryan
e6fae2dc51 Don't show Add Media when editing comments. Props azaozz. fixes #5910
git-svn-id: http://svn.automattic.com/wordpress/trunk@6930 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 05:39:04 +00:00
ryan
2533bac2df Lose caching of user DB misses. Wasn't working out that well.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6929 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 05:34:51 +00:00
ryan
be8d41230a Plugins dashboard widget from mdawaffe. fixes #5931
git-svn-id: http://svn.automattic.com/wordpress/trunk@6928 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 03:23:34 +00:00
ryan
4da577f121 Add Related section to edit page form
git-svn-id: http://svn.automattic.com/wordpress/trunk@6927 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 03:16:47 +00:00
ryan
ea40f8503e Style edit link form fields
git-svn-id: http://svn.automattic.com/wordpress/trunk@6926 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 03:12:46 +00:00
ryan
ecc8de81b9 Revert [6921]. see #5928
git-svn-id: http://svn.automattic.com/wordpress/trunk@6925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 02:55:36 +00:00
ryan
f59076ca1c Set eol-style
git-svn-id: http://svn.automattic.com/wordpress/trunk@6924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 02:46:10 +00:00
ryan
9e349220b5 Update edit comment form. WIP
git-svn-id: http://svn.automattic.com/wordpress/trunk@6923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 02:41:16 +00:00
ryan
bc187ded1d Login styling updates from mt. fixes #5929
git-svn-id: http://svn.automattic.com/wordpress/trunk@6922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 00:19:01 +00:00
ryan
e0e9db30d7 Do version check on admin_init. Props DD32. fixes #5928
git-svn-id: http://svn.automattic.com/wordpress/trunk@6921 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 00:16:44 +00:00
ryan
1ff305a90c fs direct fixes from DD32. see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@6920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 00:15:55 +00:00
ryan
5b696274a0 Set eol-style to native
git-svn-id: http://svn.automattic.com/wordpress/trunk@6919 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-20 00:12:48 +00:00
ryan
b97f4b5e10 Standardize button and select treatments. Props mt. fixes #5925
git-svn-id: http://svn.automattic.com/wordpress/trunk@6918 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-19 20:33:59 +00:00
ryan
c1d3fa2f28 Border radius changes from mt. fixes #5906
git-svn-id: http://svn.automattic.com/wordpress/trunk@6917 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-19 20:31:14 +00:00
ryan
7c8c648554 Don't save translated role names to the DB. Instead, translate them on the fly. fixes #3442 #5537
git-svn-id: http://svn.automattic.com/wordpress/trunk@6916 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-19 20:28:54 +00:00
ryan
3992509821 Add admin_init action. fixes #5924
git-svn-id: http://svn.automattic.com/wordpress/trunk@6915 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-19 20:24:50 +00:00
ryan
b04d17f011 Fix ftpext dirlist for ftp servers that return 8 fields instead of 9. see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@6914 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-19 08:22:42 +00:00
ryan
b7ef7b598f Button stylings from my. fixes #5912
git-svn-id: http://svn.automattic.com/wordpress/trunk@6913 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-19 07:09:31 +00:00
ryan
a1909d2180 Remove h1 letter spacing. Props mt. fixes #5913
git-svn-id: http://svn.automattic.com/wordpress/trunk@6912 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-19 06:55:28 +00:00
ryan
3e9b80d5ef Support positional attributes in shortcodes. Props tellyworth. fixes #5914
git-svn-id: http://svn.automattic.com/wordpress/trunk@6911 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-19 06:52:30 +00:00
ryan
366cfe0d03 Media Library design updates from Andy. see #5911
git-svn-id: http://svn.automattic.com/wordpress/trunk@6910 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-19 06:13:20 +00:00
ryan
45e9806700 Add webkit border radius. Props mt. fixes #5906
git-svn-id: http://svn.automattic.com/wordpress/trunk@6909 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-19 00:47:58 +00:00
ryan
7519a920b1 Theme editor layout fixes from ionfish. see #5890
git-svn-id: http://svn.automattic.com/wordpress/trunk@6908 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-19 00:00:53 +00:00
ryan
a84d0dd08f Logo with new colors. Props mt. fixes #5905
git-svn-id: http://svn.automattic.com/wordpress/trunk@6907 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-18 23:06:13 +00:00
ryan
f2c3aac262 Fix text and link colors in submit box. Props ffemtcj. fixes #5778
git-svn-id: http://svn.automattic.com/wordpress/trunk@6906 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-18 22:45:11 +00:00
ryan
63f8aaa1ec Dashboard menu fixes from mt. fixes #5904
git-svn-id: http://svn.automattic.com/wordpress/trunk@6905 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-18 22:31:52 +00:00
ryan
7d06b85a36 Move timestamp to submitbox. Put it in a slidedown. see #5846
git-svn-id: http://svn.automattic.com/wordpress/trunk@6904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-18 22:07:57 +00:00
ryan
23a4e81028 Remove bookmarklet stuff from post-new.php. Moving it somewhere else.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6903 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-18 20:36:49 +00:00
ryan
0a875e8b22 Make user option name sanitization consistent. Props filosofo. fixes #5901
git-svn-id: http://svn.automattic.com/wordpress/trunk@6902 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-18 20:16:02 +00:00
ryan
2169d4e439 submit box actions hooks from filosofo. fixes #5873
git-svn-id: http://svn.automattic.com/wordpress/trunk@6901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-18 19:38:01 +00:00
ryan
d92d57bd14 TinyMCE compressor fixes from azaozz. fixes #5900
git-svn-id: http://svn.automattic.com/wordpress/trunk@6900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-18 19:25:56 +00:00
ryan
1ba0025c60 Add optional post ID arg to the_category and get_the_category_list. Props filosofo. fixes #5050
git-svn-id: http://svn.automattic.com/wordpress/trunk@6899 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-18 17:46:26 +00:00
ryan
ffe43e781e Add submitpost_box action to post edit form. Props filosofo. see #5873
git-svn-id: http://svn.automattic.com/wordpress/trunk@6898 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-18 17:44:14 +00:00
ryan
9a74743b4c Make sure plugin is a file before loading. Props filosofo. fixes #5822
git-svn-id: http://svn.automattic.com/wordpress/trunk@6897 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-18 17:42:51 +00:00
ryan
4d82268ee7 Declare wpdb and wp_queries as global. Props jhodgdon. see #5860
git-svn-id: http://svn.automattic.com/wordpress/trunk@6896 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-18 17:33:40 +00:00
ryan
bd8069aba7 Typo fix from rnt. fixes #5894
git-svn-id: http://svn.automattic.com/wordpress/trunk@6895 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-18 17:13:21 +00:00
ryan
6bef16a574 TinyMCE config enhancements from azaozz. fixes #5896 #5888
git-svn-id: http://svn.automattic.com/wordpress/trunk@6894 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-18 17:11:12 +00:00
ryan
8efbdbbec1 Fix TinyMCE translation typo. Props rnt. fixes #5769
git-svn-id: http://svn.automattic.com/wordpress/trunk@6893 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-18 17:07:23 +00:00
ryan
b8621c5f1e Add new file descriptions for the theme editor. Props SteveAgl. fixes #5897
git-svn-id: http://svn.automattic.com/wordpress/trunk@6892 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-18 17:05:37 +00:00
ryan
cba49b6185 Load teme editor css on admin_head hook. Props DD32. see #5871
git-svn-id: http://svn.automattic.com/wordpress/trunk@6891 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-17 23:53:36 +00:00
ryan
df65d131ab Theme editor font sizing and layout fixes from ionfish. see #5890
git-svn-id: http://svn.automattic.com/wordpress/trunk@6890 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-17 22:23:04 +00:00
ryan
878dd99bc2 Don't include CSS on action pages.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6889 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-17 22:17:55 +00:00
ryan
a9812e8973 Fix var typo
git-svn-id: http://svn.automattic.com/wordpress/trunk@6888 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-17 22:06:26 +00:00
ryan
53c157426b Back to 50 per page
git-svn-id: http://svn.automattic.com/wordpress/trunk@6887 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-17 20:24:43 +00:00
ryan
20e180de64 Remove pseudo role group by
git-svn-id: http://svn.automattic.com/wordpress/trunk@6886 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-17 20:16:22 +00:00
ryan
fbf440b88b Removed no longer needed image. see #5868
git-svn-id: http://svn.automattic.com/wordpress/trunk@6885 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-17 19:44:16 +00:00
ryan
6359558694 Tab styling fixes from Speedboxer. see #5868
git-svn-id: http://svn.automattic.com/wordpress/trunk@6884 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-17 19:41:47 +00:00
ryan
89ee192797 Fix backend avatar display
git-svn-id: http://svn.automattic.com/wordpress/trunk@6883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-17 01:57:58 +00:00
ryan
7f1df6fb14 Show only roles that have users
git-svn-id: http://svn.automattic.com/wordpress/trunk@6882 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-17 01:34:30 +00:00
ryan
d67043e6ae Theme editor gettext from hervada. fixes #5885
git-svn-id: http://svn.automattic.com/wordpress/trunk@6881 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-17 00:58:23 +00:00
ryan
0e18cafd6c Tab styling fixes from hempsworth. fixes #5868
git-svn-id: http://svn.automattic.com/wordpress/trunk@6880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-16 22:39:59 +00:00
ryan
948bb7e7b8 Set eol-style
git-svn-id: http://svn.automattic.com/wordpress/trunk@6879 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-16 22:09:03 +00:00
ryan
f59025f3d4 Theme editor restyling from hansengel. see #5871
git-svn-id: http://svn.automattic.com/wordpress/trunk@6878 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-16 22:08:13 +00:00
ryan
02292333f0 Bump js ver
git-svn-id: http://svn.automattic.com/wordpress/trunk@6877 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-16 22:05:37 +00:00
ryan
8db820753e Media handling updates from andy. fixes #5874
git-svn-id: http://svn.automattic.com/wordpress/trunk@6876 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-16 21:54:47 +00:00
ryan
22195eeaed users.php redesign. WIP
git-svn-id: http://svn.automattic.com/wordpress/trunk@6875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-16 21:44:50 +00:00
ryan
b6cc3da285 gettext string. Props hervada. fixes #5878
git-svn-id: http://svn.automattic.com/wordpress/trunk@6874 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-16 17:43:03 +00:00
westi
86c55d6d67 More specific moderation emails for {ping|track}backs. Fixes #4986 props Otto42.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-16 17:03:05 +00:00
westi
251a2ffa0c Make sure we can publish private posts. Fixes #5881, #4206.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-16 16:24:52 +00:00
westi
1e566cbf6a Update Hello Dolly for the new admin ui. Fixes #5657 props hansengel.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6871 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-16 15:07:31 +00:00
westi
43a7c39340 Add translations. Fixes #5877 props hervada.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6870 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-16 12:54:10 +00:00
westi
13d23eeae3 Fix broken translations. Fixes #5865 props hervada.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-16 11:36:46 +00:00
matt
089c2f1d8d Avatars for backend.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-16 02:39:13 +00:00
ryan
1bec10a40a Put closing div inside conditional.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6867 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-16 01:15:35 +00:00
ryan
171cb54946 Styling fix for previewview from hansengel. see #5847
git-svn-id: http://svn.automattic.com/wordpress/trunk@6866 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-15 23:11:42 +00:00
ryan
599507fbd4 Show (no title) if the page title is empty
git-svn-id: http://svn.automattic.com/wordpress/trunk@6865 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-15 22:42:44 +00:00
ryan
5509d35b49 Show (no title) if the post title is empty
git-svn-id: http://svn.automattic.com/wordpress/trunk@6864 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-15 22:40:02 +00:00
ryan
d35361464b Clean up URL and redirect after GET posts
git-svn-id: http://svn.automattic.com/wordpress/trunk@6863 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-15 22:29:18 +00:00
ryan
6279379c76 Clean up URL and redirect after GET posts
git-svn-id: http://svn.automattic.com/wordpress/trunk@6862 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-15 21:02:50 +00:00
ryan
4cd65bf8d0 Default args to array. Props fitztrev. fixes #5866
git-svn-id: http://svn.automattic.com/wordpress/trunk@6861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-15 20:42:53 +00:00
ryan
42a8efec5e Fix validation and filtering for link manager
git-svn-id: http://svn.automattic.com/wordpress/trunk@6860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-15 18:44:48 +00:00
ryan
daa48683de Gettext strings. Props SteveAgl. fixes #5865
git-svn-id: http://svn.automattic.com/wordpress/trunk@6859 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-15 17:46:02 +00:00
ryan
30fa0eb3c7 Walker markup fixes from hailin. fixes #5844
git-svn-id: http://svn.automattic.com/wordpress/trunk@6858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-15 07:34:52 +00:00
ryan
60ae3bf766 Fix postbox layout for IE. Props hansengel. fixes #5812
git-svn-id: http://svn.automattic.com/wordpress/trunk@6857 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-15 06:46:54 +00:00
ryan
62ada03dc2 Put full post date and time in link title. Clean up date display for drafts. see #5813
git-svn-id: http://svn.automattic.com/wordpress/trunk@6856 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-15 06:44:17 +00:00
ryan
0fbfc2f391 Fix manage tags wrong message display. see #5684
git-svn-id: http://svn.automattic.com/wordpress/trunk@6855 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-15 00:02:58 +00:00
ryan
cd1242b61f Filter cat and tag names. Props jhodgdon. fixes #5861
git-svn-id: http://svn.automattic.com/wordpress/trunk@6854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-14 21:57:19 +00:00
ryan
1857fc1627 generic_ping() improvements from fitztrev. fixes #5855
git-svn-id: http://svn.automattic.com/wordpress/trunk@6853 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-14 21:50:43 +00:00
ryan
ab3dab56b0 Manage Users styling updates
git-svn-id: http://svn.automattic.com/wordpress/trunk@6852 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-14 20:15:36 +00:00
ryan
5ed843d6d8 Support ordering for term relationships. Props andy. fixes #5857
git-svn-id: http://svn.automattic.com/wordpress/trunk@6851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-14 17:17:57 +00:00
ryan
c2fd99fd56 Move table width to CSS. Props hansengel. see 5851
git-svn-id: http://svn.automattic.com/wordpress/trunk@6850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-14 15:33:56 +00:00
ryan
91f1b07cbf Bulk link category delete
git-svn-id: http://svn.automattic.com/wordpress/trunk@6849 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-14 09:34:19 +00:00
ryan
1c0cf5a6b6 Bulk tag delete
git-svn-id: http://svn.automattic.com/wordpress/trunk@6848 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-14 09:26:40 +00:00
ryan
088cd992fd Bulk delete for categories
git-svn-id: http://svn.automattic.com/wordpress/trunk@6847 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-14 09:17:00 +00:00
ryan
dd180738f3 Width of 100% for settings tables
git-svn-id: http://svn.automattic.com/wordpress/trunk@6846 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-14 06:40:10 +00:00
ryan
aa9690b08f Use niceblue table format for some edit forms
git-svn-id: http://svn.automattic.com/wordpress/trunk@6845 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-14 06:18:17 +00:00
ryan
467387c34f auto-add css class when using align on Image. Props azaozz. fixes #5856
git-svn-id: http://svn.automattic.com/wordpress/trunk@6844 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-14 05:45:40 +00:00
ryan
e3b7a9c202 Add more sort options to wp_get_object_terms(). Props andy. fixes #5245
git-svn-id: http://svn.automattic.com/wordpress/trunk@6843 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-14 05:40:19 +00:00
ryan
be25bfa72f Bulk delete for links
git-svn-id: http://svn.automattic.com/wordpress/trunk@6842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-14 05:28:48 +00:00
ryan
aa9693258e Styling updates for settings. see #5851
git-svn-id: http://svn.automattic.com/wordpress/trunk@6841 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-14 05:19:39 +00:00
ryan
4cdc2396bb Styling updates for reading settings. see #5851
git-svn-id: http://svn.automattic.com/wordpress/trunk@6840 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-14 03:10:51 +00:00
ryan
c19d47bb75 Revert [6835] as it breaks the depth arg. see#5844
git-svn-id: http://svn.automattic.com/wordpress/trunk@6839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-14 02:51:12 +00:00
ryan
778357c0bc Styling updates for settings pages. Props hansengel. see #5851
git-svn-id: http://svn.automattic.com/wordpress/trunk@6838 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-14 02:46:08 +00:00
ryan
8bdede4a5c Replace fieldset with h3 in settings pages. Props hansengel. see #5851
git-svn-id: http://svn.automattic.com/wordpress/trunk@6837 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-14 02:40:17 +00:00
ryan
9b11e32fe1 Change strong to avoid gettext ambiguity. Props RanYanivHartstein. fixes #5515
git-svn-id: http://svn.automattic.com/wordpress/trunk@6836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-14 00:57:29 +00:00
ryan
939cc4624a Walker markup fixes from hailin. fixes #5844
git-svn-id: http://svn.automattic.com/wordpress/trunk@6835 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-14 00:54:52 +00:00
ryan
3453246f35 Save tags lingering in quick add box upon save. Props fitzrev. fixes #5849
git-svn-id: http://svn.automattic.com/wordpress/trunk@6834 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-14 00:51:28 +00:00
ryan
968682dea6 Options are called Settings now. Props hansengel. see #5850
git-svn-id: http://svn.automattic.com/wordpress/trunk@6833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-14 00:39:38 +00:00
ryan
43503fe141 More informative error message when plugin files are not writable. Props hansengel. fixes #5783
git-svn-id: http://svn.automattic.com/wordpress/trunk@6832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 23:58:23 +00:00
ryan
f5f89eb624 Bulk delete for manage pages.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 23:54:11 +00:00
ryan
b0b5981a77 Add capability check to async-upload. Props xknown. fixes #5848
git-svn-id: http://svn.automattic.com/wordpress/trunk@6830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 23:16:11 +00:00
ryan
ecba594cdc Rough in Related section of preview view. Needs styling. see #5847
git-svn-id: http://svn.automattic.com/wordpress/trunk@6829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 21:58:46 +00:00
westi
ab4ce8237d '>"
git-svn-id: http://svn.automattic.com/wordpress/trunk@6828 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 21:56:56 +00:00
ryan
611183e09d Hookup bulk delete for posts.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 20:53:18 +00:00
ryan
a3b1336f7f Do page, not post, meta boxes. Props arickmann. see #5798
git-svn-id: http://svn.automattic.com/wordpress/trunk@6826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 19:20:29 +00:00
ryan
8bbf359295 Add comment_date_gmt key to comments table. Optimize _wp_get_comment_list() query. fixes #5785
git-svn-id: http://svn.automattic.com/wordpress/trunk@6825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 19:15:30 +00:00
ryan
e5879ea923 Add RAND order option to wp_tag_cloud(). Props fitzrev. fixes #5726
git-svn-id: http://svn.automattic.com/wordpress/trunk@6824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 19:12:46 +00:00
ryan
daf0d9a7e9 Allow is_single(), is_category(), and is_tag() to accept arrays. Props fitzrev. fixes #5593
git-svn-id: http://svn.automattic.com/wordpress/trunk@6823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 19:02:08 +00:00
ryan
3b04c16b5e Add wp_list_bookmarks filter. Props codealsatian. fixes #5532
git-svn-id: http://svn.automattic.com/wordpress/trunk@6822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 18:47:34 +00:00
ryan
487aa2bd78 Pass login, email, and errors to register_post action. fixes #5763
git-svn-id: http://svn.automattic.com/wordpress/trunk@6821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 18:42:07 +00:00
ryan
2bf68a3e80 Finish making upload tabs pluggable. Props andy. fixes #5843
git-svn-id: http://svn.automattic.com/wordpress/trunk@6820 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 18:36:40 +00:00
ryan
84a3a81bb8 Improve metadata for atom comment search feeds. Props ionfish. fixes #5493
git-svn-id: http://svn.automattic.com/wordpress/trunk@6819 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 18:29:10 +00:00
ryan
0ac5af1f6e Add a prophylactic specialchars to the object in explain nonce. see #5838
git-svn-id: http://svn.automattic.com/wordpress/trunk@6817 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 18:14:38 +00:00
ryan
f77f58e7cb Fix add custom field redirects. Props pishmishy. fixes #2788
git-svn-id: http://svn.automattic.com/wordpress/trunk@6816 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 18:10:41 +00:00
ryan
1bb2ce0e08 metaWeblog.newPost fix. Props malex. fixes #5814 for 2.5
git-svn-id: http://svn.automattic.com/wordpress/trunk@6815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 17:54:08 +00:00
ryan
6199f2dc76 Make Nonce Mismatch Fail Instead of AYS. Props filosofo. fixes #5838 for 2.5
git-svn-id: http://svn.automattic.com/wordpress/trunk@6813 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 17:39:40 +00:00
ryan
c516aa6a42 Add gzip_compression() stub in case someone actually uses it.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6812 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 11:21:09 +00:00
ryan
32d6f88d87 Dashboard styling from mdawaffe. see #5750
git-svn-id: http://svn.automattic.com/wordpress/trunk@6811 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 11:01:42 +00:00
ryan
30c5b7473e Dashboard styling from mdawaffe. see #5750
git-svn-id: http://svn.automattic.com/wordpress/trunk@6810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 10:07:57 +00:00
ryan
664235e23b Link to tag manager from dash
git-svn-id: http://svn.automattic.com/wordpress/trunk@6809 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 09:32:32 +00:00
ryan
c21c9af12a Reduce queries by wp_count_posts(). Props josephscott. fixes #5820
git-svn-id: http://svn.automattic.com/wordpress/trunk@6808 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 09:30:26 +00:00
ryan
8d1af802b2 Update post save notifications and redirects
git-svn-id: http://svn.automattic.com/wordpress/trunk@6807 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 08:55:17 +00:00
ryan
38ecbf2f7f Update salutation menu
git-svn-id: http://svn.automattic.com/wordpress/trunk@6806 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 08:22:26 +00:00
ryan
e1ed93d7d9 Bump nuber of link cats per page.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6805 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 07:33:56 +00:00
ryan
c60237244e Design update for link categories management.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6804 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 07:32:50 +00:00
ryan
7aa24fb904 Use array keys instead of hard coded list when traversing post fields to sanitize. Props andy. fixes #5836
git-svn-id: http://svn.automattic.com/wordpress/trunk@6803 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 06:49:23 +00:00
ryan
f6cfa549fb Fix variable name typo. Props reinkim. fixes #5834
git-svn-id: http://svn.automattic.com/wordpress/trunk@6802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 06:39:45 +00:00
ryan
9900f35dd3 Fix floated left gallery layout breaks. Prop s nbachiyski. fixes #5828
git-svn-id: http://svn.automattic.com/wordpress/trunk@6801 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 06:35:21 +00:00
ryan
b54674879e Manage Tags design update. Column spacing and justification need fixing.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6800 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-12 09:25:19 +00:00
ryan
8bd0691aa3 Manage categories redesign. Add categories search.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6799 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-12 09:02:02 +00:00
ryan
1bd097fff0 Manage links redesign. Add link search.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6798 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-12 08:01:32 +00:00
ryan
079e285537 s/post/page/
git-svn-id: http://svn.automattic.com/wordpress/trunk@6797 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-12 05:59:07 +00:00
ryan
48df0bbc2c Manage->Pages design update
git-svn-id: http://svn.automattic.com/wordpress/trunk@6796 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-12 05:51:53 +00:00
ryan
9528af34a0 Multimedia uploader styling from andy. see #5824
git-svn-id: http://svn.automattic.com/wordpress/trunk@6795 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-12 04:47:31 +00:00
ryan
94915febc5 Use full slug, not abbreviated slug, when editing. Props nbachiyski. fixes #5816
git-svn-id: http://svn.automattic.com/wordpress/trunk@6794 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-11 23:19:09 +00:00
ryan
081e7089a8 Fix human readable time offset for future posts. Props ffemtcj. fixes #5817
git-svn-id: http://svn.automattic.com/wordpress/trunk@6793 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-11 21:52:50 +00:00
ryan
5117b06a45 Remove debug code
git-svn-id: http://svn.automattic.com/wordpress/trunk@6792 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-11 21:05:20 +00:00
ryan
fa53c462a9 tinyMCE compressor update from azaozz. see #5807
git-svn-id: http://svn.automattic.com/wordpress/trunk@6791 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-11 20:19:29 +00:00
ryan
28e1d318bb tinyMCE compressor additions and deletion of unused lang files. Props azaozz. see #5807
git-svn-id: http://svn.automattic.com/wordpress/trunk@6790 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-11 19:22:22 +00:00
ryan
9c7db11219 New gzip compressor for TinyMCE from azaozz. fixes #5807
git-svn-id: http://svn.automattic.com/wordpress/trunk@6789 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-11 17:45:18 +00:00
ryan
2b7ea6a824 Fix edit slug ajax nonce. props nbachiyski. see #5816
git-svn-id: http://svn.automattic.com/wordpress/trunk@6788 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-11 17:40:16 +00:00
ryan
1e4cf4d54d Fix delete page nonce
git-svn-id: http://svn.automattic.com/wordpress/trunk@6787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-11 09:18:11 +00:00
matt
3b82a74e29 Blow out mem limit, slightly larger thumbnails.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6786 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-11 09:02:44 +00:00
ryan
a39ee17da9 ftp fs tweaks. see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@6785 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-11 08:46:11 +00:00
ryan
b5aefdfc0c Use absint
git-svn-id: http://svn.automattic.com/wordpress/trunk@6784 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-11 08:14:01 +00:00
matt
f55e3feab2 Lowercase extensions too, dynamically change when we try to create thumbnails by memory limit.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6783 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-11 08:02:01 +00:00
matt
76260edc29 A few places we were missing links to new stylesheet.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6782 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-11 07:53:10 +00:00
matt
6f0a785408 Butter upload buttons. Still need custom dialogs for music/video/other.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-11 07:44:21 +00:00
matt
d9738d6cfb Allow uploads outside of the WP path and custom URLs for the same.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-11 06:35:24 +00:00
ryan
9aab2ce97a First cut at plugin update. Props DD32 for the filesystem abstraction. see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@6779 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-11 05:45:54 +00:00
matt
df17a15b02 New manage posts almost fully functional, and some admin CSS reorganization. TODO: Delete buttons and checkboxes are currently impotent.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6778 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-10 08:10:11 +00:00
ryan
1edf014a54 s/2.4/2.5/. Props ffemtcj. fixes #5810
git-svn-id: http://svn.automattic.com/wordpress/trunk@6777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-10 07:59:34 +00:00
ryan
500c8f1ab8 Fix users table formatting. Props Potter_System and markjaquith. fixes #5784
git-svn-id: http://svn.automattic.com/wordpress/trunk@6776 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-10 07:28:14 +00:00
ryan
6f108ce6f3 Remove gzip_compression(). Leave it to the server. fixes #4342
git-svn-id: http://svn.automattic.com/wordpress/trunk@6775 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-10 07:12:33 +00:00
ryan
4e63f31327 Fix add new category box for links. Props DD32. fixes #5797
git-svn-id: http://svn.automattic.com/wordpress/trunk@6774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-10 06:49:46 +00:00
ryan
0a89479d1c Maintain hidden toolbar state when switching to fullscreen. Props azaozz. fixes #5806
git-svn-id: http://svn.automattic.com/wordpress/trunk@6773 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-10 06:27:03 +00:00
ryan
4f25d8c305 More informative error message when theme files are not writable. Props hansengel. fixes #5783
git-svn-id: http://svn.automattic.com/wordpress/trunk@6772 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-09 20:17:49 +00:00
ryan
1ab042a3fb Remove warning about more tag cutting off posts in feeds. Props lloydbudd. fixes #2582
git-svn-id: http://svn.automattic.com/wordpress/trunk@6771 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-09 19:36:25 +00:00
ryan
ce4fb5e015 Move editor js to editor.js. fixes #5799
git-svn-id: http://svn.automattic.com/wordpress/trunk@6770 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-09 13:08:28 +00:00
ryan
f58f803b5b Automatically add classes to images for floated images. Props azaozz. fixes #5803
git-svn-id: http://svn.automattic.com/wordpress/trunk@6769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-09 12:42:15 +00:00
ryan
62a4e6518b Fix display of dates for drafts and future posts. Props DD32 and ffemtcj. see #5774
git-svn-id: http://svn.automattic.com/wordpress/trunk@6768 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-09 08:40:00 +00:00
ryan
a96ae481ff htmlspecialchars when loading content into html editor. Props DD32 and andy. fixes #5796
git-svn-id: http://svn.automattic.com/wordpress/trunk@6767 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-09 07:29:36 +00:00
ryan
9587194fb9 Use %s instead of %d so number_format_i18n() strings don't get cast to 1.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6766 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-09 07:08:32 +00:00
ryan
c25dd9912a gettext for tinymce strings. Props azaozz. see #5769
git-svn-id: http://svn.automattic.com/wordpress/trunk@6765 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-09 06:43:15 +00:00
ryan
9e6593de20 add "select class" to the Image pop-up. Props azaozz. fixes #5803
git-svn-id: http://svn.automattic.com/wordpress/trunk@6764 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-09 05:00:13 +00:00
ryan
bf2f730177 Show full content, including content after the more tag, for feeds. fixes #2582
git-svn-id: http://svn.automattic.com/wordpress/trunk@6763 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-09 00:19:48 +00:00
ryan
7f78733f6b Separate meta box context into page and context to accommodate postbox API changes. see #5798
git-svn-id: http://svn.automattic.com/wordpress/trunk@6762 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-08 21:06:15 +00:00
ryan
bc817d2a2e Postbox save updates and admin js refactoring from nbachiyski. fixes #5799
git-svn-id: http://svn.automattic.com/wordpress/trunk@6761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-08 19:57:50 +00:00
ryan
9989d4c23e Allow rand post ordering. Props Otto42 and Nazgul. fixes #4617
git-svn-id: http://svn.automattic.com/wordpress/trunk@6760 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-08 19:50:10 +00:00
ryan
8fa3f8bb00 Bulk tag delete from jhodgdon. see #5684
git-svn-id: http://svn.automattic.com/wordpress/trunk@6759 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-08 19:38:53 +00:00
ryan
47ac60f02c add_meta_box(). see #5798
git-svn-id: http://svn.automattic.com/wordpress/trunk@6758 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-08 18:51:37 +00:00
ryan
2ebcad280b jQuery 1.2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@6757 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-08 07:33:51 +00:00
ryan
4a662f1776 Precompute the hash of the unknown avatar user to save an md5 call. Props Viper007Bond. see #5775
git-svn-id: http://svn.automattic.com/wordpress/trunk@6756 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-08 07:09:01 +00:00
matt
d3277c0efd Some first pass styling changes for manage pages.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6755 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-08 01:40:14 +00:00
ryan
f8be8cb880 Widget interface updates from mdawaffe. see #5583
git-svn-id: http://svn.automattic.com/wordpress/trunk@6754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-07 21:57:54 +00:00
ryan
47faf261ba Add post_password to export. Props Nazgul. fixes #4376
git-svn-id: http://svn.automattic.com/wordpress/trunk@6753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-07 19:22:59 +00:00
ryan
7646d94d88 Pass 'show' argument to bloginfo_rss filters. Props tzafrir and Viper007Bond. fixes #5267
git-svn-id: http://svn.automattic.com/wordpress/trunk@6750 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-07 18:01:33 +00:00
ryan
596f6b0583 Gonna serve default avatars from gravatar. see #5775
git-svn-id: http://svn.automattic.com/wordpress/trunk@6749 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-07 06:58:38 +00:00
ryan
36a651ef92 get_avatar(). see #5775
git-svn-id: http://svn.automattic.com/wordpress/trunk@6748 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-07 06:07:12 +00:00
ryan
04a6478e12 Constrain image size when adding to editor. Props tellyworth. fixes #5777
git-svn-id: http://svn.automattic.com/wordpress/trunk@6747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-07 04:22:38 +00:00
ryan
2d7252544b Show media upload buttons when RTE is not enabled. Props tellyworth. fixes #5764
git-svn-id: http://svn.automattic.com/wordpress/trunk@6746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-07 04:21:22 +00:00
markjaquith
21d3dd2a76 Make sure the theme_dir is a dir before we attempt to closedir(). fixes #5768
git-svn-id: http://svn.automattic.com/wordpress/trunk@6744 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-06 23:17:13 +00:00
markjaquith
302ac4890e Allow redirect_canonical filter to cancel a redirect (just return FALSE). see #5766
git-svn-id: http://svn.automattic.com/wordpress/trunk@6743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-06 22:57:15 +00:00
markjaquith
5b22db23d1 Make RSS 2.0 comment feed GUIDs immutable. fixes #5072
git-svn-id: http://svn.automattic.com/wordpress/trunk@6742 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-06 22:33:21 +00:00
ryan
eabaabd76b Redirect if post not specified. Props lloydbudd. fixes #5754
git-svn-id: http://svn.automattic.com/wordpress/trunk@6741 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-06 21:40:52 +00:00
ryan
bddedf8c3e Rename is_front() to is_front_page() to avoid conflict with bbPress. see #3682
git-svn-id: http://svn.automattic.com/wordpress/trunk@6740 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-06 21:21:22 +00:00
ryan
7b946b9007 Remove cookie checking from check_ajax_referer(). Check nonces instead. Props mdawaffe. fixes #5782
git-svn-id: http://svn.automattic.com/wordpress/trunk@6739 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-06 21:19:47 +00:00
ryan
6c312db33c Fix fields=names query in get_terms(). Props Sarky-de. fixes #5780
git-svn-id: http://svn.automattic.com/wordpress/trunk@6738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-06 20:42:03 +00:00
ryan
ab0ea44dc7 Page permalink fixes from josephscott. fixes #5781
git-svn-id: http://svn.automattic.com/wordpress/trunk@6737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-06 18:11:49 +00:00
ryan
8fecb97b09 Order by and index on comment_date_gmt instead of comment_date to insulate order from offset changes. fixes #5773
git-svn-id: http://svn.automattic.com/wordpress/trunk@6736 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-05 23:29:59 +00:00
ryan
057c2dfccf Remove extra search box
git-svn-id: http://svn.automattic.com/wordpress/trunk@6735 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-05 21:29:50 +00:00
ryan
5dcc0398af More edit.php butchery. Time for designers to take over
git-svn-id: http://svn.automattic.com/wordpress/trunk@6734 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-05 21:27:10 +00:00
ryan
edf9c3607b Fix edit.php h2 text
git-svn-id: http://svn.automattic.com/wordpress/trunk@6733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-05 21:16:19 +00:00
ryan
ed5224f393 Enum to varchar. fixes #4778
git-svn-id: http://svn.automattic.com/wordpress/trunk@6732 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-05 21:05:56 +00:00
ryan
3587caeb53 First cut at post status menu. Needs style fixes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6731 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-05 20:30:24 +00:00
ryan
b85271e8ed Add wp_count_posts().
git-svn-id: http://svn.automattic.com/wordpress/trunk@6730 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-05 19:08:14 +00:00
ryan
b67bbb9e4e Add key on comment_approved,comment_date to speed up last comment modified queries. fixes #5773
git-svn-id: http://svn.automattic.com/wordpress/trunk@6729 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-05 18:04:17 +00:00
ryan
95781cf290 Fix interface sortables for IE7. Props filosofo. see #5583
git-svn-id: http://svn.automattic.com/wordpress/trunk@6728 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-05 16:32:20 +00:00
ryan
f609dcdd56 Add beginnings of bulk tag delete. see #5684
git-svn-id: http://svn.automattic.com/wordpress/trunk@6727 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-05 07:45:40 +00:00
ryan
d88983793b Trailing whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@6726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-05 06:47:27 +00:00
ryan
252c30c9c1 Use wpurl, not home, for constructing paging links. see #5684
git-svn-id: http://svn.automattic.com/wordpress/trunk@6723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-05 03:18:46 +00:00
ryan
ae364a2262 Remove cruft that slipped in.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6722 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-05 03:12:39 +00:00
ryan
9b10127afb Use siteurl, not home, for constructing paging links. see #5684
git-svn-id: http://svn.automattic.com/wordpress/trunk@6721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-05 03:09:43 +00:00
ryan
4b0cd5c58a Remove eextra set of links. Props mdawaffe. see #5583
git-svn-id: http://svn.automattic.com/wordpress/trunk@6719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-04 20:54:51 +00:00
ryan
b897b88430 No need to re-register widgets. see #5750
git-svn-id: http://svn.automattic.com/wordpress/trunk@6718 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-04 20:51:10 +00:00
ryan
9f643af85d Dashboard fixes from mdawaffe. No longer stomps sidebar. see #5750
git-svn-id: http://svn.automattic.com/wordpress/trunk@6717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-04 20:38:48 +00:00
ryan
25788ba179 Add filters to comments_open() and pings_open(). Props tellyworth. fixes #5761
git-svn-id: http://svn.automattic.com/wordpress/trunk@6716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-04 20:27:45 +00:00
ryan
b9316d1e80 More cap checks from josephscott. see #5313
git-svn-id: http://svn.automattic.com/wordpress/trunk@6714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-04 18:35:05 +00:00
ryan
45ebbd5bb8 Fix edit link form categories a bit. AJAX add still needs work.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6713 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-02 20:31:56 +00:00
ryan
d42b1a8256 Don't hard code post type in edit forms. Props filosofo and DD32. fixes #4991
git-svn-id: http://svn.automattic.com/wordpress/trunk@6712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-02 19:22:14 +00:00
ryan
8263948a96 Some notice fixes from Nazgul. fixes #3155
git-svn-id: http://svn.automattic.com/wordpress/trunk@6711 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-02 18:42:09 +00:00
ryan
c95f0e57c7 Add edit_page cap check. Props josephscott. see #5313
git-svn-id: http://svn.automattic.com/wordpress/trunk@6709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-02 17:55:40 +00:00
ryan
7f4d8b2f27 New dashboard from mdawaffe. see #5750
git-svn-id: http://svn.automattic.com/wordpress/trunk@6705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-02 07:57:51 +00:00
ryan
43852a57c3 is_front() from markjaquith and Nazgul. fixes #3682
git-svn-id: http://svn.automattic.com/wordpress/trunk@6704 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-02 00:13:34 +00:00
ryan
63f6070325 profile-update.php no longer needed. see #5736
git-svn-id: http://svn.automattic.com/wordpress/trunk@6703 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-02 00:09:12 +00:00
ryan
0483b98514 Use feed_link instead of rss_link functions. Props nazgul. fixes #5743
git-svn-id: http://svn.automattic.com/wordpress/trunk@6702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-31 22:15:49 +00:00
ryan
08a89b8a11 Allow multiple db instances. Props Nazgul. fixes #2722
git-svn-id: http://svn.automattic.com/wordpress/trunk@6701 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-31 22:09:17 +00:00
ryan
7db4c0ad2c Fix profile submenu highlight. Make is_profile_page a constant so that register globals can't manipulate it. see #5736
git-svn-id: http://svn.automattic.com/wordpress/trunk@6700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-31 22:03:48 +00:00
ryan
78e80be72f Define parent_file and submenu_file after admin.php is loaded. see #5736
git-svn-id: http://svn.automattic.com/wordpress/trunk@6699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-31 21:53:16 +00:00
ryan
8945a17651 Add unique 'for' attribute to labels for post password forms. Props Nazgul. fixes #4721
git-svn-id: http://svn.automattic.com/wordpress/trunk@6698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-31 21:47:35 +00:00
ryan
ece19d2bfb Merge user-edit.php and profile.php. Props nbachiyski. fixes #5736
git-svn-id: http://svn.automattic.com/wordpress/trunk@6697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-31 21:44:17 +00:00
ryan
e2d55ab832 Remove old tinymce files. see #5674
git-svn-id: http://svn.automattic.com/wordpress/trunk@6696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-31 20:48:33 +00:00
ryan
1266b9c53f Update edit link pages. Link categories need work.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-31 20:04:54 +00:00
ryan
c1a034bcbe TinyMCE 3.0 Final from azaozz. see #5674
git-svn-id: http://svn.automattic.com/wordpress/trunk@6694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-31 18:10:46 +00:00
ryan
2340b8dda6 Remove spurious dollar sign. fixes #6690
git-svn-id: http://svn.automattic.com/wordpress/trunk@6693 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-31 00:58:54 +00:00
ryan
5481803d74 Widget i18n from nbachiyski. see #5583
git-svn-id: http://svn.automattic.com/wordpress/trunk@6692 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-30 21:49:56 +00:00
ryan
491aec7937 Future post publishing over XML-RPC fixes from markjaquith. fixes #5721
git-svn-id: http://svn.automattic.com/wordpress/trunk@6691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-30 20:33:14 +00:00
ryan
d88d4f85dd Add depth arg to wp_dropdown_categories(). Props pishmishy. fixes #2461
git-svn-id: http://svn.automattic.com/wordpress/trunk@6690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-30 20:07:52 +00:00
ryan
f21c535f3f Add fullscreen plugin. Props andy. fixes #5735
git-svn-id: http://svn.automattic.com/wordpress/trunk@6689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-30 06:55:47 +00:00
ryan
c52e264fde Don't advance post counter when resetting query. see #5439
git-svn-id: http://svn.automattic.com/wordpress/trunk@6688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-29 23:58:41 +00:00
ryan
dd7370dbe9 Recent entries widget caching fixes from mdawaffe.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-29 23:28:58 +00:00
ryan
93e7ffb118 Use var_export instead of printr. fixes #5732
git-svn-id: http://svn.automattic.com/wordpress/trunk@6686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-29 22:54:18 +00:00
ryan
19de78b638 Add wp_authenticate_user filter
git-svn-id: http://svn.automattic.com/wordpress/trunk@6685 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-29 20:17:11 +00:00
ryan
a5246f532f absint is not defined yet. see #4762
git-svn-id: http://svn.automattic.com/wordpress/trunk@6684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-29 20:00:17 +00:00
ryan
7f4b870b15 Make sure we have a post when doing post comment feed query. Props ruckus. see #5185
git-svn-id: http://svn.automattic.com/wordpress/trunk@6683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-29 19:01:39 +00:00
westi
520d17d7f0 Switch from abs(intval()) to absint(). See #4762.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-29 18:48:38 +00:00
ryan
5c2f29c467 Increase memory limit. Props darkdragon. see #3141
git-svn-id: http://svn.automattic.com/wordpress/trunk@6681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-29 17:25:45 +00:00
ryan
7d78a53a87 like_escape() from nbachiyski. see #5684
git-svn-id: http://svn.automattic.com/wordpress/trunk@6680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-29 17:20:27 +00:00
ryan
53c09007bb Widget i18n from nbachiyski. see #5583
git-svn-id: http://svn.automattic.com/wordpress/trunk@6679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-29 17:17:13 +00:00
ryan
1aef57fb18 Comment bubble count fix from nbachiyski. fixes #5694
git-svn-id: http://svn.automattic.com/wordpress/trunk@6678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-29 16:43:20 +00:00
ryan
b26cf6d97d Fix tag search. Props jhodgdon. see #5684
git-svn-id: http://svn.automattic.com/wordpress/trunk@6677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-28 23:25:46 +00:00
ryan
9d46888a48 Add missing close brace.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-28 23:16:04 +00:00
ryan
d5973814b7 Move postbox to postbox.js. Don't load cat and tag js for pages.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6675 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-28 21:34:42 +00:00
ryan
8f6920d116 Fill edit slug box with current slug. Props johnbillion and nbachiyski. fixes #5704
git-svn-id: http://svn.automattic.com/wordpress/trunk@6674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-28 20:25:39 +00:00
ryan
9cc169608f Use wp_list_bookmarks() in default theme. Props MichaelH. fixes #5724
git-svn-id: http://svn.automattic.com/wordpress/trunk@6673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-28 20:18:07 +00:00
ryan
71c278e89d Remove PHP 4.2 and 4.3 back compat functions. Props DD32. fixes #5415
git-svn-id: http://svn.automattic.com/wordpress/trunk@6672 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-28 20:15:20 +00:00
ryan
22599d1bc1 Make postbox IDs unique
git-svn-id: http://svn.automattic.com/wordpress/trunk@6671 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-28 17:45:11 +00:00
ryan
bd3b74e729 Tag searching from jhodgdon. see #5684
git-svn-id: http://svn.automattic.com/wordpress/trunk@6670 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-28 17:21:14 +00:00
ryan
80643d6ed9 doubleval bytes. Props tellyworth. fixes #5246
git-svn-id: http://svn.automattic.com/wordpress/trunk@6669 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-28 04:55:54 +00:00
westi
2ac5c0204f Remove the duplicate code for sanitising IP Addresses we only need to do it once. Fixes #4579.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6668 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-26 10:18:33 +00:00
westi
0c027ed065 Update the required version in the readme too. Fixes #5416 props Nazgul.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6667 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-26 08:10:58 +00:00
ryan
5602414fa7 Fix autosave dependencies
git-svn-id: http://svn.automattic.com/wordpress/trunk@6666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-25 23:27:33 +00:00
ryan
0bf9c81fb5 Update edit page form. Post boxes need fixin'
git-svn-id: http://svn.automattic.com/wordpress/trunk@6665 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-25 23:11:54 +00:00
ryan
c8fb582d2c Note to self. Take note of which repository you are in before committing. Reverting [6663]
git-svn-id: http://svn.automattic.com/wordpress/trunk@6664 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-25 20:58:26 +00:00
ryan
b993fdde39 Don't assault Matt with password reset email.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-25 20:52:15 +00:00
ryan
f3d0aaee55 Require PHP 4.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@6662 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-25 20:06:22 +00:00
ryan
238cbe830a Restore Link Categories to menu.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-25 19:34:10 +00:00
ryan
879f7f4766 First cut at Manage->Tags. Props jhodgdon. see #5684
git-svn-id: http://svn.automattic.com/wordpress/trunk@6660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-25 19:29:01 +00:00
matt
f529123061 First pass at async upload, multi-upload, and gallery feature. Modified names from patch. Hat tip: tellyworth, skeltoac.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6659 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-25 19:21:11 +00:00
westi
f9ba9a3802 Allow IPv6 addresses as well. Fixes #4579 props pishmishy.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-25 18:50:52 +00:00
ryan
2e8ee3b0e0 Typo fix
git-svn-id: http://svn.automattic.com/wordpress/trunk@6657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-25 03:19:34 +00:00
ryan
4b812eb11f Unescape user data before sending to wpdb::update() and wpdb::insert(), which expect unescaped data.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6656 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-25 02:21:59 +00:00
ryan
6f7d120d5b Remove lingering bit of get_tags cache
git-svn-id: http://svn.automattic.com/wordpress/trunk@6655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-25 01:59:06 +00:00
ryan
e5c94063b0 Clear post_meta cache upon change. Props nbachiyski. fixes #5718
git-svn-id: http://svn.automattic.com/wordpress/trunk@6654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-25 01:55:21 +00:00
ryan
3c0db5ec37 Restore global post when resetting the query. Props ionfish. fixes #5439
git-svn-id: http://svn.automattic.com/wordpress/trunk@6653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-25 01:41:57 +00:00
ryan
82414776e7 Eliminate dupes from display name list. Props nbachiyski. see #5508
git-svn-id: http://svn.automattic.com/wordpress/trunk@6652 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-25 01:33:28 +00:00
ryan
2d656cdb15 Remove busted get_tags cache. get_terms does the caching for us. Props josephscott
git-svn-id: http://svn.automattic.com/wordpress/trunk@6651 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-25 01:19:53 +00:00
ryan
1fde397d5b s/Save/Change/
git-svn-id: http://svn.automattic.com/wordpress/trunk@6650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-24 22:48:30 +00:00
ryan
35bd1677a1 check_ajax_referer() should look for *only* the auth_cookie, not others that look like they match. Autosave should know that an ajax response of -1 or 0 is a failure. Props mdawaffe
git-svn-id: http://svn.automattic.com/wordpress/trunk@6649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-24 21:19:42 +00:00
ryan
f21535a6b1 Add check_password filter
git-svn-id: http://svn.automattic.com/wordpress/trunk@6648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-24 18:36:45 +00:00
ryan
a99e7c0cee Add wp_login_failed action
git-svn-id: http://svn.automattic.com/wordpress/trunk@6647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-24 18:32:21 +00:00
ryan
e51dd5d7d1 Don't forget to pass the category
git-svn-id: http://svn.automattic.com/wordpress/trunk@6646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-23 23:38:30 +00:00
westi
839ea6c294 Fix the updated times when publishing/editing with APP. See #5680 props rubys.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-23 20:25:08 +00:00
ryan
7eb704b71b Pass remember arg. see #5405
git-svn-id: http://svn.automattic.com/wordpress/trunk@6644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-23 18:20:59 +00:00
ryan
6afab28342 Refactor login. see #5405
git-svn-id: http://svn.automattic.com/wordpress/trunk@6643 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-22 19:35:19 +00:00
ryan
a33b080c9d Typo fix from rnt. fixes #5700
git-svn-id: http://svn.automattic.com/wordpress/trunk@6642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-22 17:13:43 +00:00
ryan
f283ceae87 Port wphelp plugin to tinyMCE 3.0. Props azaozz. see #5703
git-svn-id: http://svn.automattic.com/wordpress/trunk@6641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-22 06:23:46 +00:00
ryan
6726698979 get_col() instead of get_results(). Props fitzrev. fixes #5699
git-svn-id: http://svn.automattic.com/wordpress/trunk@6640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-22 05:50:22 +00:00
matt
9cb618d27f Missing image from #5694
git-svn-id: http://svn.automattic.com/wordpress/trunk@6639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-21 22:16:02 +00:00
matt
bf70994fad Try a different comment bubble, fixes #5694. Hat tip: sambauers.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-21 22:13:07 +00:00
ryan
c12cc74bae phpdoc for pluggable.php from darkdragon. fixes #5509
git-svn-id: http://svn.automattic.com/wordpress/trunk@6637 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-20 06:53:42 +00:00
ryan
4ab500c856 Remove old tinymce files. see #5674
git-svn-id: http://svn.automattic.com/wordpress/trunk@6636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-19 00:01:45 +00:00
westi
48344f94b5 Ensure APP clients can update timestamps on publish. Fixes #5680 props tvachon.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6635 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-18 07:59:09 +00:00
westi
9f9769b328 Add some more actions to xmlrpc. Fixes #5686 props joesephscott.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6634 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-18 07:52:15 +00:00
matt
5fbca12c9e Edit permalink in place. Fixes #5679. Hat tip: nbachiyski.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-17 16:51:32 +00:00
ryan
95bbfed206 TinyMCE 3.0 RC1. First cut, eexpect regressions. Props azaozz. see #5674
git-svn-id: http://svn.automattic.com/wordpress/trunk@6632 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-17 15:44:05 +00:00
matt
43093f6038 This destroys other shutdown actions.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-17 02:46:22 +00:00
ryan
0aee557b68 phpdoc for kses from darkdragon. fixes #5641
git-svn-id: http://svn.automattic.com/wordpress/trunk@6630 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-16 19:15:07 +00:00
ryan
f8ab885ab0 Use PLUGINDIR in plugin_basename(). Props hansengel. fixes #5665
git-svn-id: http://svn.automattic.com/wordpress/trunk@6629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-16 19:11:15 +00:00
ryan
f78af1cbe5 Typo fix from hansengel. fixes #5676
git-svn-id: http://svn.automattic.com/wordpress/trunk@6628 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-16 19:07:11 +00:00
ryan
d9a3735eae Always show plugin activation errors. Props DD32. fixes #5673
git-svn-id: http://svn.automattic.com/wordpress/trunk@6627 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-16 16:46:49 +00:00
ryan
a2e8bad643 Make sure plugin is set. Props arickmann. fixes #5658
git-svn-id: http://svn.automattic.com/wordpress/trunk@6626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-16 16:45:36 +00:00
ryan
7c51664827 Fix typo and clean up ternary logic. Props fitzrev. fixes #5677
git-svn-id: http://svn.automattic.com/wordpress/trunk@6625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-16 09:18:15 +00:00
ryan
51e4044a0b Show post modification time. Needs style. Rough.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6624 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-16 09:02:18 +00:00
ryan
5bfe19954d Add date display and pending status.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-16 07:26:41 +00:00
ryan
d2eafce2c8 Close the last li.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-16 06:55:20 +00:00
ryan
d31bccdd44 Don't dangle our pipes
git-svn-id: http://svn.automattic.com/wordpress/trunk@6621 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-16 06:48:08 +00:00
ryan
78acad2aa8 Relocate delete post on edit screen. Needs styling.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-16 06:28:42 +00:00
ryan
102b274a40 Make publish status a dropdown.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-16 05:52:38 +00:00
ryan
c97638a4d9 jQuery 1.2.2 final. Props filosofo. fixes #5492
git-svn-id: http://svn.automattic.com/wordpress/trunk@6618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-15 17:05:07 +00:00
ryan
076634d99b Allow more tags in kses. Props lloydbudd. fixes #5617
git-svn-id: http://svn.automattic.com/wordpress/trunk@6617 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-14 23:56:53 +00:00
ryan
b95f8d4459 Return, don't echo, array. Props Otto42. fixes #5155
git-svn-id: http://svn.automattic.com/wordpress/trunk@6616 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-14 22:35:43 +00:00
ryan
b7b689e35f Move WP_User_Search to admin includes. Props Viper007Bond. fixes #5111
git-svn-id: http://svn.automattic.com/wordpress/trunk@6615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-14 21:55:17 +00:00
ryan
0866e1e584 Don't double requested url in url_to_postid(). Props filosofo. fixes #5661
git-svn-id: http://svn.automattic.com/wordpress/trunk@6614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-14 21:44:08 +00:00
ryan
61881b5111 Allow parens in urls. Props nbachiyski. fixes #5668
git-svn-id: http://svn.automattic.com/wordpress/trunk@6613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-14 20:38:43 +00:00
matt
a5d2996bd8 New login screen. Clearing out images not used anymore.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6612 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-14 09:11:41 +00:00
matt
5ff7c8126a Some styling tweaks to header and submit box.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6611 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-14 07:21:25 +00:00
ryan
74cad1dac8 Eliminate comment_date_gmt <= now from get_lastcommentmodified() queries. fixes #5650
git-svn-id: http://svn.automattic.com/wordpress/trunk@6610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-14 05:59:39 +00:00
ryan
8c55d60d5b Get named sidebars. Props AaronCampbell. fixes #5615
git-svn-id: http://svn.automattic.com/wordpress/trunk@6609 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-14 04:51:29 +00:00
ryan
f56d2616d3 Bump ver in readme. Props fitzrev and spencerp. fixes #5600
git-svn-id: http://svn.automattic.com/wordpress/trunk@6608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-14 04:39:36 +00:00
ryan
5b2e3bed58 More explicit statement of requirements. fixes #5220
git-svn-id: http://svn.automattic.com/wordpress/trunk@6607 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-14 04:38:02 +00:00
matt
3905811c9f Have footer stay at the bottom even on short pages in long windows. Hat tip: DD32.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6606 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-14 03:16:56 +00:00
matt
d01592f0ae Rough pass at submit box.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6605 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-14 01:14:57 +00:00
matt
23770cb94e Have the bottom boxes be closed by default. Remove the global padding kill from thickbox CSS.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6604 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-14 00:20:52 +00:00
westi
e0856a070f Simplify to_ping query. Fixes #5649 props misterbisson.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-12 17:31:17 +00:00
ryan
47ee44af0f Don't do form submit when pressing enter in add new tag box. Props mdawaffe. fixes #5629
git-svn-id: http://svn.automattic.com/wordpress/trunk@6602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-12 15:54:44 +00:00
matt
37fb9152a1 Don't try fancy tab focus if the WYSIWYG isn't active. Hat tip: skeltoac.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6601 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-12 01:55:51 +00:00
ryan
106df879c6 phpdoc for pluggable from darkdragon. fixes #5509
git-svn-id: http://svn.automattic.com/wordpress/trunk@6600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-11 20:51:39 +00:00
westi
8c45b3a029 Revert #5007 as it causes more trouble than it solves. Fixes #5273 for trunk.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-11 18:44:44 +00:00
westi
fcbe872299 Add missing brace. Fixes #5643 props xknown.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-11 18:35:34 +00:00
matt
917d5a7370 Fixes to category list saving. Hat tip: mdawaffe. Fixes #5631
git-svn-id: http://svn.automattic.com/wordpress/trunk@6597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-10 22:42:49 +00:00
westi
c75a848b4c Better xmlrpc field names. See #5569 props josephscott.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-10 22:37:15 +00:00
ryan
bdbdeb1e7c Add depth arg to wp_list_categories(). Props pishmishy. see #2461
git-svn-id: http://svn.automattic.com/wordpress/trunk@6595 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-10 21:51:00 +00:00
westi
ac2d661ee9 Add xmlrpc methods to discover the valid post and page statuses. See #5569 props josephscott.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6594 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-10 21:46:25 +00:00
westi
484a252c4b Ensure that we preserve GUIDs when importing from RSS. Fixes #5589 props peterjanes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-10 21:27:08 +00:00
westi
1aaec4ff30 Notice fixing for wp-includes. See #5607 props filosofo.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6592 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-10 20:51:07 +00:00
ryan
db44305ce1 Fixes for new categories interface from mdawaffe. fixes #5618
git-svn-id: http://svn.automattic.com/wordpress/trunk@6591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-10 20:19:58 +00:00
ryan
1f71b9227d Eliminate duplication in and minify jquery.schedule.js. fixes #5620
git-svn-id: http://svn.automattic.com/wordpress/trunk@6590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-10 17:35:48 +00:00
ryan
ce884496e1 phpdoc for locale from darkdragon. fixes #5621
git-svn-id: http://svn.automattic.com/wordpress/trunk@6589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-10 17:28:50 +00:00
matt
16d42d6ee7 New experimental category interface, fixes #5618. Hat tip: mdawaffe.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-10 09:39:35 +00:00
ryan
f975992f90 JIT load tinymce localization to avoid load order problems. Props mdawaffe. fixes #5605
git-svn-id: http://svn.automattic.com/wordpress/trunk@6587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-09 20:11:13 +00:00
ryan
251ad30066 Call WP::init() just before kicking the init action so that the current user is setup as early as possible. fixes #4181
git-svn-id: http://svn.automattic.com/wordpress/trunk@6586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-09 20:08:59 +00:00
ryan
479fc2e2b3 phpdoc tuneup from darkdragon. see #5611
git-svn-id: http://svn.automattic.com/wordpress/trunk@6585 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-09 17:48:00 +00:00
ryan
d3e7affa4b Save toggle box open/closed state. Props nbachiyski. fixes #5610
git-svn-id: http://svn.automattic.com/wordpress/trunk@6584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-09 17:46:13 +00:00
ryan
a4f050e486 Concat secret key with salt. see #5367
git-svn-id: http://svn.automattic.com/wordpress/trunk@6583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-09 16:37:43 +00:00
matt
d66013fdd9 Replacing FAT with jQuery effects, new styling for alerts. See #5369.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-09 12:12:35 +00:00
matt
cc18743397 Redirect to edit page with posted blurb as default.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6581 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-09 11:21:27 +00:00
ryan
cf879c0c55 Plugin reactivation. Props dougal. see #4176
git-svn-id: http://svn.automattic.com/wordpress/trunk@6580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-09 09:37:27 +00:00
ryan
3388050bf9 New image uploader from tellyworth. see #5609
git-svn-id: http://svn.automattic.com/wordpress/trunk@6579 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-09 08:14:29 +00:00
matt
9a8adfabe5 Here's the toggle, but no saving... yet.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-09 07:52:30 +00:00
matt
ce0f9ad80b Put a delay on the suggestion, and minimum length. Hat tip: DerFichtl.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-09 06:22:14 +00:00
matt
5b479b2994 The bottom of this shouldn't run into the box.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-09 06:21:38 +00:00
ryan
fa3fd336c6 Purty editor buttons from andy. Removing some oogly. fixes #5573
git-svn-id: http://svn.automattic.com/wordpress/trunk@6575 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-09 05:21:51 +00:00
ryan
f9fc69dc40 Revert back to fat for now. see #5369
git-svn-id: http://svn.automattic.com/wordpress/trunk@6574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-08 07:22:07 +00:00
ryan
726332d535 Fade using jquery.color. Props JeremyVisser. fixes #5369
git-svn-id: http://svn.automattic.com/wordpress/trunk@6573 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-08 06:44:31 +00:00
ryan
e7350d078e Fade using jquery.color. Props JeremyVisser. fixes #5369
git-svn-id: http://svn.automattic.com/wordpress/trunk@6572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-08 06:39:09 +00:00
ryan
7c8824653d Fix for widget sort with IE7. Props filosofo. see #5292 #5583
git-svn-id: http://svn.automattic.com/wordpress/trunk@6571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-07 23:55:49 +00:00
ryan
62d4757979 Mass select for users from cpoteet and mdawaffe. fixes #5592
git-svn-id: http://svn.automattic.com/wordpress/trunk@6570 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-07 20:38:49 +00:00
ryan
f4e84d8abe Update jquery.form to 2.02. Props filosofo. fixes #5048
git-svn-id: http://svn.automattic.com/wordpress/trunk@6569 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-07 17:23:40 +00:00
ryan
fdb577cfd3 Encoding before title. Props RanYanivHartstein. fixes #5519 for 2.5
git-svn-id: http://svn.automattic.com/wordpress/trunk@6568 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-06 19:15:33 +00:00
ryan
0a5781da6e Remember last editor chosen. Props mdawaffe. fixes #3978
git-svn-id: http://svn.automattic.com/wordpress/trunk@6567 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-06 19:01:32 +00:00
westi
92a7e547c5 You are now logged out. Fixes #4754 props spencerp.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6566 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-06 10:26:40 +00:00
ryan
65ce4f3e03 Init tags array. Props fitzrev. fixes #5468
git-svn-id: http://svn.automattic.com/wordpress/trunk@6565 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-06 08:43:20 +00:00
ryan
b5c7c66ad8 phpdoc for registration from darkdragon. fixes #4383
git-svn-id: http://svn.automattic.com/wordpress/trunk@6564 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-06 08:21:58 +00:00
ryan
eb74f766c8 phpdoc for l10n. Props darkdragon. fixes #5590
git-svn-id: http://svn.automattic.com/wordpress/trunk@6563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-06 01:28:34 +00:00
ryan
7c9ec289bf Update dimension to 1.2
git-svn-id: http://svn.automattic.com/wordpress/trunk@6562 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-05 17:14:21 +00:00
ryan
040769e245 jQuery 1.2.2b2. see #5492
git-svn-id: http://svn.automattic.com/wordpress/trunk@6561 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-05 06:18:29 +00:00
ryan
61a5a4cca0 Fix some array warnings. Props mdawaffe. see #5583
git-svn-id: http://svn.automattic.com/wordpress/trunk@6560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-05 05:20:56 +00:00
matt
d1e16b8940 Deal with long titles better.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-05 00:22:48 +00:00
matt
0f5710ce2a Put menus in their proper place. TODO: refactor.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-05 00:17:35 +00:00
ryan
c7f3beebe7 Widget admin redesign from mdawaffe. see #5583
git-svn-id: http://svn.automattic.com/wordpress/trunk@6557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-04 23:40:47 +00:00
ryan
4f56c35980 Widget admin redesign from mdawaffe. see #5583
git-svn-id: http://svn.automattic.com/wordpress/trunk@6556 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-04 23:34:33 +00:00
matt
c397ae61cc Some link manager juggling, still need to have submenu highlight when on sub-sub pages.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-04 20:18:55 +00:00
ryan
4374db281e Some file level phpdoc from darkdragon. fixes #5572
git-svn-id: http://svn.automattic.com/wordpress/trunk@6554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-04 20:05:07 +00:00
ryan
502a542d64 phpdoc for comment.php from darkdragon. fixes #5578
git-svn-id: http://svn.automattic.com/wordpress/trunk@6553 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-04 20:03:42 +00:00
ryan
91586ebff4 Page walk fixes from hailin. fixes #5581
git-svn-id: http://svn.automattic.com/wordpress/trunk@6552 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-04 19:55:17 +00:00
ryan
1ae1811dd0 Unused var cleanup. Props DD32. see #5418
git-svn-id: http://svn.automattic.com/wordpress/trunk@6551 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-04 19:36:34 +00:00
matt
f05fe26e0c Update comment count in single post row on post comment screen, edit.php?p=1&c=1.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6550 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-04 11:53:15 +00:00
matt
2ad5f03b1c There's a lockup in the tri-menu area. Traffic ahead. Eliminating generic file editor.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-04 11:47:06 +00:00
matt
5566bffec6 We log out, not sign out.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-04 09:37:40 +00:00
ryan
d019a7b965 Don't bust table markup when switching between visual and html. Props mdawaffe. fixes #5577
git-svn-id: http://svn.automattic.com/wordpress/trunk@6547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-04 08:49:35 +00:00
ryan
e46b5e6bc2 Port autosave to jquery. Props rmccue. see #3824
git-svn-id: http://svn.automattic.com/wordpress/trunk@6546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-04 08:46:33 +00:00
matt
594820e5b0 Update both of the comment counts when something changes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-03 22:24:58 +00:00
matt
2073c22bbd Post screen improvements^H^H^H, er, changes. Will file tickets for todos.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-03 08:03:29 +00:00
ryan
1d1c3cc6f5 phpdoc for cache.php from darkdragon. fixes #5511
git-svn-id: http://svn.automattic.com/wordpress/trunk@6543 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-03 04:35:47 +00:00
matt
ae18e22598 New tag interface, tag auto-suggest while typing. Rough - suggest and parts of JS should probably be refactored. Hat tip: jhodgdon.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-03 01:34:11 +00:00
matt
43c44fba24 Importing old version of dimension to compensate for older jQuery.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6541 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-02 23:44:08 +00:00
ryan
60220997a6 Fix cache close. see #5570
git-svn-id: http://svn.automattic.com/wordpress/trunk@6540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-02 23:03:25 +00:00
ryan
bc53152043 Remove persistent object cache. fixes #5570
git-svn-id: http://svn.automattic.com/wordpress/trunk@6539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-02 22:13:16 +00:00
ryan
8fa9b9fb76 Add separator location arg to wp_title. Props cpoteet. fixes #4407
git-svn-id: http://svn.automattic.com/wordpress/trunk@6538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-02 20:45:17 +00:00
ryan
0bc86efb8c set_post_type from filosofo. fixes #4844
git-svn-id: http://svn.automattic.com/wordpress/trunk@6537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-02 20:06:00 +00:00
westi
28e6daf192 Beautify. Fixes #5561 props fitztrev.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-02 18:21:19 +00:00
ryan
ee80716944 Properly close tags. Props ionfish. fixes #5568
git-svn-id: http://svn.automattic.com/wordpress/trunk@6535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-02 17:31:00 +00:00
ryan
99b6eff02c wp.getCommentCount from josephscott. fixes #5463
git-svn-id: http://svn.automattic.com/wordpress/trunk@6534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-01 18:40:39 +00:00
ryan
c30b0e1207 Localize calendar caption. Props takayukister. fixes #5562
git-svn-id: http://svn.automattic.com/wordpress/trunk@6533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-01 18:38:32 +00:00
ryan
8b64f70945 Defer comment counting. Props tellyworth. fixes #5557
git-svn-id: http://svn.automattic.com/wordpress/trunk@6532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-01 17:03:52 +00:00
ryan
6aafd77e36 Remove unneeded get_userdata call. Props DD32. see #5367
git-svn-id: http://svn.automattic.com/wordpress/trunk@6531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-31 23:39:02 +00:00
ryan
d13d567b22 Theme tagging from andy. fixes #5545
git-svn-id: http://svn.automattic.com/wordpress/trunk@6530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-31 18:39:43 +00:00
ryan
bed1da2844 Separate cookie generation from cookie set. Introduce wp_generate_auth_cookie(). see #5367
git-svn-id: http://svn.automattic.com/wordpress/trunk@6529 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-31 17:50:32 +00:00
ryan
eabc128c41 Don't echo content. Props xknown.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-29 19:38:33 +00:00
ryan
baf6e7b6ae Don't echo posted content. Specialchars all other displayed info.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-29 19:20:15 +00:00
westi
42def106d2 Use ' not " so we don't expand. Fixes #5546 props takayukister.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-29 09:10:51 +00:00
ryan
5104e0dad0 Extra traversal check.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-29 03:14:33 +00:00
westi
e2f66cbb1d Really making the default theme notice free.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-28 23:02:13 +00:00
westi
e2acb46b6c Making the default theme notice free.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-28 22:56:56 +00:00
westi
bce8c48d72 Deprecate comments_rss and create_user.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-28 21:47:54 +00:00
westi
c04f475479 Better documentation for prep_atom_text_construct props darkdragon
git-svn-id: http://svn.automattic.com/wordpress/trunk@6516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-28 21:21:50 +00:00
westi
b53a070422 Better documentation for the_author props darkdragon
git-svn-id: http://svn.automattic.com/wordpress/trunk@6515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-28 21:19:44 +00:00
westi
d49cece4a3 Mark functions and files as deprecated. Fixes #4361 props docwhat and darkdragon
git-svn-id: http://svn.automattic.com/wordpress/trunk@6514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-28 21:17:42 +00:00
ryan
f56f0f64a4 Load jquery.js instead of interface.js. fixes #5544
git-svn-id: http://svn.automattic.com/wordpress/trunk@6513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-28 19:57:00 +00:00
ryan
0c67d2a1c1 Prototype 1.6.0 and script.aculo.us 1.8.0. fixes #5543
git-svn-id: http://svn.automattic.com/wordpress/trunk@6512 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-28 19:17:21 +00:00
ryan
f635599744 Use is_admin. Props markjaquith. see #5487
git-svn-id: http://svn.automattic.com/wordpress/trunk@6509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-28 01:04:17 +00:00
ryan
0aa5bf4862 Some cap checks for app from josephscott.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-28 00:46:18 +00:00
ryan
ebdaaae6d3 Don't show email.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-27 22:31:13 +00:00
ryan
c36d1c928a Some xmlrpc cap checks from josephscott.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-27 22:14:27 +00:00
ryan
545e8a3e76 \s is not a valid escape sequence. Props xknown. fixes #5539
git-svn-id: http://svn.automattic.com/wordpress/trunk@6501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-27 08:09:31 +00:00
ryan
6d6280b7a2 Add some sanitization
git-svn-id: http://svn.automattic.com/wordpress/trunk@6500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-27 08:08:11 +00:00
ryan
2490ec40c8 Limit what getAuthors exposes. Props josephscott for the patch and xknown for the find. fixes #5534 for 2.4
git-svn-id: http://svn.automattic.com/wordpress/trunk@6498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-26 19:54:35 +00:00
ryan
f2ea13fd3b Limit post_password exposure. Props josephscott for the patch and xknown for the find. fixes #5535 for 2.4
git-svn-id: http://svn.automattic.com/wordpress/trunk@6496 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-26 19:50:26 +00:00
ryan
cfcb483cf7 phpdoc for comment-template.php from darkdragon. fixes #5528
git-svn-id: http://svn.automattic.com/wordpress/trunk@6495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-26 17:18:13 +00:00
ryan
bdf77c2b8d phpdoc for canonical.php from darkdragon. fixes #5526
git-svn-id: http://svn.automattic.com/wordpress/trunk@6494 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-25 20:48:47 +00:00
ryan
09f2286a41 Some file level phpdoc from darkdragon. fixes #5527
git-svn-id: http://svn.automattic.com/wordpress/trunk@6493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-25 20:48:01 +00:00
ryan
7541abd7e5 Don't do hierarchical if includes specified. Props Kafkaesqui. fixes #5373 for 2.4
git-svn-id: http://svn.automattic.com/wordpress/trunk@6491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-24 21:24:03 +00:00
ryan
0da0bf3436 Fetch only post category terms in get_posts(). Props MichaelH. fixes #5317
git-svn-id: http://svn.automattic.com/wordpress/trunk@6490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-24 21:21:16 +00:00
westi
d1cdea8eb2 Avoid the 64bit dragons. Fixes #3780 props nbachiyski.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-24 15:14:07 +00:00
ryan
63790db707 set_auth_cookie action. see #5367
git-svn-id: http://svn.automattic.com/wordpress/trunk@6486 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-24 08:01:55 +00:00
westi
0a7a447555 Add file level documentation for compat.php. Fixes #5510 props darkdragon.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-24 07:18:41 +00:00
matt
54b7d8f9c5 Styling: alerts, updates, top dashboard.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6484 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-24 07:14:41 +00:00
westi
efcd1eb5c5 Add file level documentation for template-loader.php. Fixes #5513 props darkdragon.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-24 07:09:36 +00:00
matt
287edad647 A better addLoadEvent which kicks off when the DOM is ready instead onLoad, which kicks off after images finish. Code from Dean Edwards, Mathias Miller, John Resig, Jesse Skinner. Should speed up front-end execution.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-24 07:08:37 +00:00
westi
30145d1a56 Add documentation for bookmark-template.php. Fixes #5521 props darkdragon.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-24 07:04:29 +00:00
westi
b867ab06a0 Add documentation for bookmark.php. Fixes #5523 props darkdragon.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-24 07:01:47 +00:00
westi
0671b6e5e1 Update @since information. Fixes #4393 props darkdragon
git-svn-id: http://svn.automattic.com/wordpress/trunk@6479 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-24 06:57:34 +00:00
ryan
42d83376c9 Allow DB salt to be overridden by SECRET_SALT. Add a filter to wp_salt(). see #5367
git-svn-id: http://svn.automattic.com/wordpress/trunk@6478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-24 06:34:12 +00:00
ryan
b3fa9f2840 Importer refactoring from tellyworth. fixes #5522
git-svn-id: http://svn.automattic.com/wordpress/trunk@6477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-24 06:20:34 +00:00
matt
1d2147c456 Newer and Older entries, rather than next/previous.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-24 04:25:04 +00:00
matt
8720ce2827 A few more stylings -- options/settings still need a lot more work.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-23 10:05:37 +00:00
westi
3177977de8 '>"
git-svn-id: http://svn.automattic.com/wordpress/trunk@6474 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-23 09:15:57 +00:00
ryan
53db776533 Add xmlrpc_call actions. Cleanup some whitespace.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6473 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-23 01:35:44 +00:00
ryan
7e0152f018 Add import_done actions
git-svn-id: http://svn.automattic.com/wordpress/trunk@6472 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-23 01:10:29 +00:00
ryan
03a9269b11 Don't fallback to DB info for secret key. Allow expiration grace period for AJAX requests. see #5367
git-svn-id: http://svn.automattic.com/wordpress/trunk@6471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-23 00:58:06 +00:00
ryan
e8241c6966 Show DB errors if WP_DEBUG and if installing. see #5473
git-svn-id: http://svn.automattic.com/wordpress/trunk@6469 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-22 17:45:30 +00:00
matt
32c3c43307 First pass at some of the header/footer styles. Again, work in progress. A few menu item renames.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-22 09:46:13 +00:00
ryan
e587cbafcc Throw pages into search queries. Let's see how they handle. see #5149
git-svn-id: http://svn.automattic.com/wordpress/trunk@6467 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-22 08:19:10 +00:00
matt
232980bcee Only show comments on pages meant to show one entry, rather than any edit.php query which happens to have one result.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6465 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-22 07:34:14 +00:00
ryan
364e809c38 Don't block SET NAMES query. Props g30rg3x for the find. fixes #5503 for 2.4
git-svn-id: http://svn.automattic.com/wordpress/trunk@6464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-22 06:24:48 +00:00
matt
5118aa7b7d pre flight commit, BOOM. hat tip: rboren.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6462 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-21 22:24:04 +00:00
ryan
10e8e7a53d Forgot this. see #5495
git-svn-id: http://svn.automattic.com/wordpress/trunk@6460 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-21 19:54:46 +00:00
ryan
9563ccece0 Return after bailing since bail doesn't always die now. Don't do queries if constructor didn't complete. see #5495
git-svn-id: http://svn.automattic.com/wordpress/trunk@6459 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-21 19:30:08 +00:00
ryan
40a7118dd5 Revert accidental bits.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6457 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-21 18:50:29 +00:00
ryan
131a6c0923 Page walker fixes from hailin. fixes #5498
git-svn-id: http://svn.automattic.com/wordpress/trunk@6456 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-21 18:49:20 +00:00
westi
19471ad3ab Fix funky formatting
git-svn-id: http://svn.automattic.com/wordpress/trunk@6454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-21 09:23:59 +00:00
ryan
3ab33265bc Remove debug
git-svn-id: http://svn.automattic.com/wordpress/trunk@6452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-21 06:12:23 +00:00
ryan
d6e864abc2 Be more selective in what we make clickable.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-21 03:14:22 +00:00
ryan
e8dc86950e Custom DB error page. fixes #5500 for 2.4
git-svn-id: http://svn.automattic.com/wordpress/trunk@6447 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-21 02:53:57 +00:00
ryan
e6080b4926 Check attachment link when deleting.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6446 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-21 01:40:26 +00:00
ryan
0106156df2 gettext for new dashboard from nbachiyski. fixes #5499
git-svn-id: http://svn.automattic.com/wordpress/trunk@6441 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-20 22:36:00 +00:00
westi
33fffea3f3 Add file level phpdoc to external libraries we use. Fixes #5443 props darkdragon.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6440 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-20 22:28:54 +00:00
westi
92c4835150 Preserve PNG transparency/alpha during thumbnail creation. Fixes #2805 props Libertus/Otto42.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-20 22:24:39 +00:00
westi
71b2207ea3 Ensure we don't call exif_read_data() on unsupported file types. Fixes #5397 props DD32
git-svn-id: http://svn.automattic.com/wordpress/trunk@6438 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-20 22:18:28 +00:00
westi
6950e2833b Fix @since for timer_start and timer_stop. See #5211.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-20 21:28:53 +00:00
westi
1f889417e5 Fix some of the notices visible with WP_DEBUG enabled.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-20 21:25:12 +00:00
westi
21d9604409 Fix query variable naming errors.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6435 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-20 20:59:53 +00:00
westi
75dc7786a9 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-20 20:44:52 +00:00
westi
9f9a2b862a Fix html for post customfields entry box. Fixes #5068 props minusfive.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-20 20:36:35 +00:00
westi
7a8c378a07 Add a link to the post a comment is for when editing a comment. Fixes #4345 props mgrouchy,
git-svn-id: http://svn.automattic.com/wordpress/trunk@6432 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-20 20:31:46 +00:00
matt
ff4b271a82 To avoid monolithic commits I'm going to be bringing this in piece by piece. No need to file bug about lack of styling, it's on purpose right now. Trunk will be hit with the oogly stick for 2-3 days. This brings in structure for new dashboard.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6431 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-20 20:23:30 +00:00
ryan
7f722d1f90 Use __ngettext() for plurals. Props darkdragon. see #4865
git-svn-id: http://svn.automattic.com/wordpress/trunk@6430 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-20 17:05:06 +00:00
ryan
7c1515630d Fix funky char, remove IE taunt. Props nbachiyski. see #4470
git-svn-id: http://svn.automattic.com/wordpress/trunk@6429 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-20 05:50:57 +00:00
ryan
74cb5ee95d Attachment and post meta import improvements from tellyworth. fixes #5497
git-svn-id: http://svn.automattic.com/wordpress/trunk@6428 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-20 05:31:39 +00:00
ryan
8273b56d60 Orphaned page fix from hailin. fixes #5498
git-svn-id: http://svn.automattic.com/wordpress/trunk@6427 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-20 05:29:52 +00:00
ryan
de5340b9f3 Set error if there is a problem connecting to the DB. Props skeltoac and Potter_System. fixes #5495
git-svn-id: http://svn.automattic.com/wordpress/trunk@6426 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-20 02:10:09 +00:00
ryan
4f92b64b2e Update term counts when future posts are published. fixes #4913 #5488
git-svn-id: http://svn.automattic.com/wordpress/trunk@6425 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-20 00:48:49 +00:00
ryan
5cb5750259 Don't create blank terms. Props ionfish and jhodgdon. fixes #5494
git-svn-id: http://svn.automattic.com/wordpress/trunk@6424 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-19 23:25:11 +00:00
ryan
99ed3ba7ce Not so new anymore. Props johnbillion. fixes #4951
git-svn-id: http://svn.automattic.com/wordpress/trunk@6423 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-19 23:19:49 +00:00
ryan
67b50add23 Rename file. see #4470
git-svn-id: http://svn.automattic.com/wordpress/trunk@6422 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-19 22:46:02 +00:00
ryan
49245b272c Add file. see #4470
git-svn-id: http://svn.automattic.com/wordpress/trunk@6421 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-19 22:40:44 +00:00
ryan
605e27ccdd Show session expired message only when cookie is set.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6420 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-19 22:22:21 +00:00
ryan
1f28d55ab3 Password strength meter from MellerTime. see #4470
git-svn-id: http://svn.automattic.com/wordpress/trunk@6419 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-19 21:53:10 +00:00
ryan
630cd8267c Custom fields support for xmlrpc from josephscott. fixes #5148
git-svn-id: http://svn.automattic.com/wordpress/trunk@6418 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-19 21:07:38 +00:00
ryan
00d334c288 wp.deleteCategory xmlrpc method from josephscott. fixes #4599
git-svn-id: http://svn.automattic.com/wordpress/trunk@6417 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-19 20:33:27 +00:00
ryan
fc8d8837a0 Fix wp.suggestCategories return values. Props josephscott. fixes #5406
git-svn-id: http://svn.automattic.com/wordpress/trunk@6416 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-19 20:30:44 +00:00
ryan
4004a7cffa Fix previous/next links for slugs containing 'page'. Props xknown. fixes #5318
git-svn-id: http://svn.automattic.com/wordpress/trunk@6415 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-19 19:27:14 +00:00
ryan
34780230f9 Fix id, self link and alternate link in Atom comment feeds. Props ionfish. fixes #5435
git-svn-id: http://svn.automattic.com/wordpress/trunk@6414 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-19 18:25:22 +00:00
ryan
22fc69ea24 get_search_feed_link and get_search_comments_feed_link from ionfish. fixes #5442
git-svn-id: http://svn.automattic.com/wordpress/trunk@6413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-19 18:05:21 +00:00
ryan
f4b80af89a Better is_admin() check from filosofo and pishmishy. fixes #5487
git-svn-id: http://svn.automattic.com/wordpress/trunk@6412 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-19 17:56:16 +00:00
ryan
e0301f76ea Avoid warning when import dir is empty. Props Viper007Bond. fixes #5395
git-svn-id: http://svn.automattic.com/wordpress/trunk@6411 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-19 17:48:51 +00:00
ryan
40300b4632 Add a get_stylesheet_dir to sprintf in get_theme_mod. Props andy. fixes #5398
git-svn-id: http://svn.automattic.com/wordpress/trunk@6410 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-19 17:47:06 +00:00
ryan
fdebf7ba34 Allows 0 titles when sanitizing. Props mdawaffe. fixes #5293
git-svn-id: http://svn.automattic.com/wordpress/trunk@6409 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-19 17:45:50 +00:00
ryan
d958376904 language_attributes() improvements from ionfish. fixes #5393
git-svn-id: http://svn.automattic.com/wordpress/trunk@6408 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-19 17:44:02 +00:00
westi
d7d770ef7c Don't create empty tags. Fixes #5412 props ionfish
git-svn-id: http://svn.automattic.com/wordpress/trunk@6407 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-19 17:34:15 +00:00
westi
e0de7b04a6 Move the heading inside the wrap. Fixes #5348 props rob1n
git-svn-id: http://svn.automattic.com/wordpress/trunk@6406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-19 17:27:22 +00:00
ryan
f97604713a Fix tinymce valid elements configuration. Props linusmartensson. fixes #3826
git-svn-id: http://svn.automattic.com/wordpress/trunk@6405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-18 20:46:09 +00:00
ryan
b7f907b875 Escape pop3 error messages. Props xknown. fixes #5484
git-svn-id: http://svn.automattic.com/wordpress/trunk@6404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-18 20:06:37 +00:00
ryan
2c49f4748b Clean cache for orphaned pages. Props hailin. fixes #5457
git-svn-id: http://svn.automattic.com/wordpress/trunk@6403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-18 19:38:17 +00:00
ryan
49d8db4cbe redirect fixes from ruckus and tellyworth. fixes #5479
git-svn-id: http://svn.automattic.com/wordpress/trunk@6402 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-18 05:28:44 +00:00
ryan
83ccac4372 unique filename fixes from tellyworth. fixes #5482
git-svn-id: http://svn.automattic.com/wordpress/trunk@6401 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-18 03:32:43 +00:00
ryan
8a556e5e48 Fix AJAX cookie validation. see #5367
git-svn-id: http://svn.automattic.com/wordpress/trunk@6400 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-17 21:12:28 +00:00
ryan
9bca1574ca wp_list_pages() no longer requires get_pages() to do a hierarchical sort. Set hierarchical to false. see #5458
git-svn-id: http://svn.automattic.com/wordpress/trunk@6399 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-17 06:53:59 +00:00
ryan
c0d2060f82 Use generic page rewrite rules for compatible permalink strucures. see #3614
git-svn-id: http://svn.automattic.com/wordpress/trunk@6398 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-17 06:29:30 +00:00
ryan
1d9a4211dc Accept array of pages for is_page(). Props azaozz. fixes #5430
git-svn-id: http://svn.automattic.com/wordpress/trunk@6397 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-17 06:21:43 +00:00
ryan
9572687394 wp_set_password(). see #2394
git-svn-id: http://svn.automattic.com/wordpress/trunk@6396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-17 06:02:45 +00:00
ryan
26df2b24d1 author-template phpdoc from darkdragon. fixes #4393
git-svn-id: http://svn.automattic.com/wordpress/trunk@6395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-16 23:47:58 +00:00
matt
c5529f7d0f Change prints to echoes. Add check all button to avoid carpal clicking syndrome. Cleaned up some English. Fixes #5437. Hat tip: hailin. Changes from diff: moved JS inside of function so it didn't show up on every import page; moved button above form instead of next to submit button.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-16 22:07:32 +00:00
matt
de1014dbb0 Allow numbers in content type to allow for types like 3gp. Fixes #5449. Hat tip: meledin, DD32.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6393 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-16 21:44:48 +00:00
matt
13ad107f4d Invalid HTML in nested category checkbox list. Also cleans up source formatting a bit. Fixes #5462. Hat tip: 082net.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6392 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-16 21:40:36 +00:00
ryan
0cbe2f0d84 Suppress display of DB error messages by default. Props filosofo. see #5473
git-svn-id: http://svn.automattic.com/wordpress/trunk@6391 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-16 21:38:24 +00:00
ryan
e9c9b1fbf2 Import file attachments. Props tellyworth. fixes #5466
git-svn-id: http://svn.automattic.com/wordpress/trunk@6390 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-16 21:34:48 +00:00
ryan
a616834549 Don't show both log out and session expired messages when logging out. see #5367
git-svn-id: http://svn.automattic.com/wordpress/trunk@6389 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-16 21:20:18 +00:00
ryan
28f0d5bf06 Fix depth = 1 page traversal. Props hailin. fixes #5469
git-svn-id: http://svn.automattic.com/wordpress/trunk@6388 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-16 20:31:44 +00:00
ryan
29ef8b6f5f New secure cookie protocol. see #5367
git-svn-id: http://svn.automattic.com/wordpress/trunk@6387 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-16 17:41:59 +00:00
matt
3225503174 Remember what attachment options you pick, fixes #4565. Hat tip: filosofo.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6386 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-16 03:00:38 +00:00
ryan
7b16e3616c Pluggable random password generator from pishmishy. fixes #5401
git-svn-id: http://svn.automattic.com/wordpress/trunk@6385 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-15 05:31:16 +00:00
ryan
ce1ac877cf Faster page and cat walker. Props hailin. see #5458
git-svn-id: http://svn.automattic.com/wordpress/trunk@6384 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-14 21:46:52 +00:00
ryan
85267d4d17 the_content_export filter from tellyworth. fixes #5465
git-svn-id: http://svn.automattic.com/wordpress/trunk@6383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-14 21:40:28 +00:00
ryan
8f6268e38b clean page cache when reparenting pages after deletion. Props hailin. fixes #5457
git-svn-id: http://svn.automattic.com/wordpress/trunk@6382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-14 20:56:55 +00:00
ryan
c4020242c2 Fix registration of multiple sidebars. Props watson. fixes #5352
git-svn-id: http://svn.automattic.com/wordpress/trunk@6381 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-14 08:06:08 +00:00
ryan
2088cb4a1a Faster page_rows() from hailin. see #5303
git-svn-id: http://svn.automattic.com/wordpress/trunk@6380 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-14 06:20:42 +00:00
ryan
c7198d281d post phpdoc from m0n5t3r and darkdragon. see #3982
git-svn-id: http://svn.automattic.com/wordpress/trunk@6379 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-14 00:28:34 +00:00
ryan
6a27406096 Taxonomy phpdoc from darkdragon. fixes #4742
git-svn-id: http://svn.automattic.com/wordpress/trunk@6378 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-14 00:25:39 +00:00
ryan
f0a47b7127 Query page attachments from page requests so that they can both use the same set of rewrite rules. see #3614
git-svn-id: http://svn.automattic.com/wordpress/trunk@6377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-12 11:45:55 +00:00
ryan
805e41198c Defer term counting during import. Props tellyworth. fixes #5377
git-svn-id: http://svn.automattic.com/wordpress/trunk@6376 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-12 05:14:00 +00:00
ryan
0f846cd38f Additional metadata for wxr export from tellyworth. fixes #5454
git-svn-id: http://svn.automattic.com/wordpress/trunk@6375 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-12 05:11:24 +00:00
ryan
336e9b9e20 Correctly handle post_parent during import. Props tellyworth. fixes #5456
git-svn-id: http://svn.automattic.com/wordpress/trunk@6374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-12 05:08:48 +00:00
westi
4c53026f96 Autosave tags as well. Fixes #5359 props sembee
git-svn-id: http://svn.automattic.com/wordpress/trunk@6373 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-11 20:30:22 +00:00
matt
fa98e055e8 Revert [6368]. Fixes #5448, fixes #5247 by adding a new filter to hook in specifically to add attributes, rather than filtering the whole thing. Minor formatting cleanup of comments_popup_link.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6372 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-10 20:49:46 +00:00
matt
c5dc5fb56e Switch error messages to have a footer instead of use wp_die, so they don't look busted. Use absint where appropiate. Formatting cleanup. Clearer styling and messaging on buttons.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6371 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-10 20:42:03 +00:00
ryan
dd17ae4da8 phpdoc for deprecated funcs. Props darkdragon. fixes #5444
git-svn-id: http://svn.automattic.com/wordpress/trunk@6370 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-10 18:52:24 +00:00
ryan
8ef0bd232d Support atom threading. Props rubys. fixes #5434
git-svn-id: http://svn.automattic.com/wordpress/trunk@6369 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-10 06:57:58 +00:00
ryan
c56489c18c comments_popup_link filter from joostdevalk. fixes #5247
git-svn-id: http://svn.automattic.com/wordpress/trunk@6368 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-10 06:53:58 +00:00
westi
d26bff6a38 Remove triming from string options fixes #4781 props hakre
git-svn-id: http://svn.automattic.com/wordpress/trunk@6367 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-09 11:49:25 +00:00
westi
43b212e86d Comment out the code that can't run so as to not confuse people.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6366 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-09 11:28:57 +00:00
ryan
83afcae858 New feed_link functions. Deprecate rss_link functions. Make default feed pluggable. Props rubys. see #5328
git-svn-id: http://svn.automattic.com/wordpress/trunk@6365 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-06 19:58:15 +00:00
ryan
028a159440 Remove unused vars. Props DD32. see #5418
git-svn-id: http://svn.automattic.com/wordpress/trunk@6364 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-06 19:49:33 +00:00
ryan
2283075a92 Remove unused variables. Props DD32. see #5418
git-svn-id: http://svn.automattic.com/wordpress/trunk@6363 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-06 06:37:30 +00:00
ryan
71e8b50ed2 Consistent AJAX fade colors. Props mdawaffe. fixes #5423
git-svn-id: http://svn.automattic.com/wordpress/trunk@6362 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-06 06:08:14 +00:00
ryan
050ffefc43 Filter and action optimizations and phpdoc updates from darkdragon. fixes #5338
git-svn-id: http://svn.automattic.com/wordpress/trunk@6361 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-06 05:56:38 +00:00
ryan
20d5aa5095 Remove executable property from files. Props lapcat. fixes #5408
git-svn-id: http://svn.automattic.com/wordpress/trunk@6360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-05 09:30:13 +00:00
ryan
524c32cad5 Refactor next_post_link, previous_post_link. props xknown. fixes #5411
git-svn-id: http://svn.automattic.com/wordpress/trunk@6359 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-05 09:25:45 +00:00
westi
7c3f965571 Expose post_status over xmlrpc. Fixes #4982 props josephscott
git-svn-id: http://svn.automattic.com/wordpress/trunk@6358 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-05 07:42:42 +00:00
westi
80f85b53e3 Ensure wp-mail doesn't issue a 500 error if no messages are available to post. Fixed #5420 props Bobcat
git-svn-id: http://svn.automattic.com/wordpress/trunk@6357 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-05 07:39:07 +00:00
westi
63c48d25b9 Allow plugins to handle admin page access failures. Fixes #5379 props donncha
git-svn-id: http://svn.automattic.com/wordpress/trunk@6356 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-05 07:34:57 +00:00
ryan
0ad360cc00 Don't return all taxonomies for an object type of 0. Props tellyworth and nbachiyski. fixes #5417
git-svn-id: http://svn.automattic.com/wordpress/trunk@6355 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-05 00:31:54 +00:00
ryan
dab1c792c7 Remove unused variables. Props DD32. fixes #5418
git-svn-id: http://svn.automattic.com/wordpress/trunk@6354 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-05 00:29:05 +00:00
ryan
95fe4f48bd Use correct var. Props DD32. fixes #5419
git-svn-id: http://svn.automattic.com/wordpress/trunk@6353 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-04 23:59:16 +00:00
ryan
9a9521e01e Avoid unnecesary call to get_userdata in get_permalink function. Props xknown. fixes #5414
git-svn-id: http://svn.automattic.com/wordpress/trunk@6352 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-04 00:40:00 +00:00
ryan
7c033fd82c Don't save page and attachemtn uris to page_uris and page_attachment_uris. This is not needed. Add an option to use wildcard page rewrite rules instead of per-page rules. see #3614
git-svn-id: http://svn.automattic.com/wordpress/trunk@6351 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-04 00:19:10 +00:00
ryan
07e337adcf Hash passwords with phpass. Add wp_check_pasword() and wp_hash_password() functions. Props pishmishy. see #2394
git-svn-id: http://svn.automattic.com/wordpress/trunk@6350 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-02 05:14:11 +00:00
ryan
a7c0525870 When posting by email, publish only if user has publish caps, otherwise set status to pending. Props Bobcat. fixes #4642
git-svn-id: http://svn.automattic.com/wordpress/trunk@6349 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-29 05:51:09 +00:00
ryan
5c07742cd3 Remove old comment_count_cache variable. It's dead.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6348 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-29 05:03:25 +00:00
westi
aa60ae297d Correct support for mt_allow_comments to cover all possible values. Fixes #5366 props redsweater/josephscott
git-svn-id: http://svn.automattic.com/wordpress/trunk@6347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-28 20:52:55 +00:00
ryan
43b7cd700f get_user_by_email() and some user caching cleanups. fixes #5392
git-svn-id: http://svn.automattic.com/wordpress/trunk@6346 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-27 22:14:53 +00:00
ryan
ec4bcf7080 Check if REQUEST_METHOD is POST rather than cheecking if _POST is empty to determine if we were called via POST. Props xknown. fixes #5365
git-svn-id: http://svn.automattic.com/wordpress/trunk@6345 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-27 08:03:33 +00:00
ryan
90fc94a73d Don't lose the upload tab. Props mdawaffe. fixes #5390
git-svn-id: http://svn.automattic.com/wordpress/trunk@6344 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-26 22:26:51 +00:00
ryan
596dc0ac87 Use 'Log in' instead of 'Login' for verb form. Props doug. see #5296
git-svn-id: http://svn.automattic.com/wordpress/trunk@6343 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-26 21:40:00 +00:00
ryan
a76484d2d1 Debug backtrace for queries. Props tellyworth. fixes #5218
git-svn-id: http://svn.automattic.com/wordpress/trunk@6342 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-21 00:14:58 +00:00
ryan
bbc8fa3b14 Do two sets of filters on posts query. First set is used by regular plugins, second by caching plugins.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-18 19:36:30 +00:00
westi
15f67c97f9 Actually return a url if SSL is not supported! Relates to #5298
git-svn-id: http://svn.automattic.com/wordpress/trunk@6340 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-17 11:27:01 +00:00
westi
b296c5f19e Ensure that we offer https access to atom if it is available. Fixes #5298 props rubys.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6339 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-17 11:21:34 +00:00
ryan
ab845b0000 Move posts_selection action to after post_limits filter.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6338 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-17 00:04:19 +00:00
ryan
b51a0cb0f8 Update page on front settings when deleting the page on front. Props hailin. fixes #5361
git-svn-id: http://svn.automattic.com/wordpress/trunk@6337 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-16 17:39:15 +00:00
ryan
3dc58c8383 Don't load entire wxr import file at once to conserve memory. Props tellyworth. fixes #5357
git-svn-id: http://svn.automattic.com/wordpress/trunk@6336 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-15 05:36:43 +00:00
ryan
9e8d25e767 Move export_wp() to an include. Props tellyworth. fixes #5347
git-svn-id: http://svn.automattic.com/wordpress/trunk@6335 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-15 05:32:33 +00:00
ryan
e531ad04c4 Add switch_theme(). Cache current theme in options to avoid calling get_themes(). fixes #5346
git-svn-id: http://svn.automattic.com/wordpress/trunk@6334 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-13 05:07:44 +00:00
ryan
6bed155f5d Check publish_posts not edit_published_posts when setting pending status. Props jeremyclarke. fixes #5329
git-svn-id: http://svn.automattic.com/wordpress/trunk@6333 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-12 19:58:09 +00:00
ryan
ea1663435c Make sure term id is an int. Props tellyworth. fixes #5330
git-svn-id: http://svn.automattic.com/wordpress/trunk@6332 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-12 19:51:42 +00:00
ryan
3ca284f9e3 Eliminate warnings in convert_smilies. Props tellyworth. fixes #5340
git-svn-id: http://svn.automattic.com/wordpress/trunk@6331 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-12 19:33:06 +00:00
ryan
df08604882 Remove unused variable. Props epper. fixes #5339
git-svn-id: http://svn.automattic.com/wordpress/trunk@6330 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-12 19:31:49 +00:00
ryan
26cd478bb7 Output WP_Error message when adding categories via AJAX. fixes #5342
git-svn-id: http://svn.automattic.com/wordpress/trunk@6329 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-12 19:12:49 +00:00
ryan
fc31e5395b phpdoc for get_category_feed_link(). see #5173
git-svn-id: http://svn.automattic.com/wordpress/trunk@6328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-09 20:31:24 +00:00
ryan
17b0fbab7a get_category_feed_link() from ionfish. fixes #5173
git-svn-id: http://svn.automattic.com/wordpress/trunk@6327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-09 20:12:04 +00:00
ryan
8689aef969 Make term slug unique when moving to another parent.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6326 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-09 18:34:41 +00:00
ryan
9a94e7b26c Skip theme validation during normal blog page loads. fixes #3907
git-svn-id: http://svn.automattic.com/wordpress/trunk@6325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-08 04:04:15 +00:00
ryan
0eaad56717 Change 'all' hook calling. Bring filters and actions back into one array for back-compat. see #5231
git-svn-id: http://svn.automattic.com/wordpress/trunk@6324 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-08 01:05:43 +00:00
ryan
1ea72d5996 Don't run sanitize_title on IDs in new widgets API to avoid performance overhead. fixes #5326
git-svn-id: http://svn.automattic.com/wordpress/trunk@6323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-08 00:56:54 +00:00
ryan
964c6c72c1 Skip sanitization altogether for raw context. Props Quandary. fixes #5325
git-svn-id: http://svn.automattic.com/wordpress/trunk@6321 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-07 06:20:08 +00:00
ryan
1e320a469e has_action and has_filter. see #5231
git-svn-id: http://svn.automattic.com/wordpress/trunk@6320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-07 04:30:11 +00:00
ryan
902cc8e985 Add missing type arg on call to _wp_filter_build_unique_id(). see #5231
git-svn-id: http://svn.automattic.com/wordpress/trunk@6319 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-06 21:39:22 +00:00
ryan
0e63de02ca current_fiter() from tellyworth. fixes #5232
git-svn-id: http://svn.automattic.com/wordpress/trunk@6318 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-06 21:38:04 +00:00
ryan
f1a6553227 Typo fix
git-svn-id: http://svn.automattic.com/wordpress/trunk@6317 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-06 20:14:52 +00:00
ryan
07806ed56a Separate action and filter arrays. Get rid of filter merging. fixes #5231
git-svn-id: http://svn.automattic.com/wordpress/trunk@6316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-06 18:31:43 +00:00
ryan
35899c1201 Back out some changes from #5181. Props rubys. fixes #5307
git-svn-id: http://svn.automattic.com/wordpress/trunk@6315 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-06 18:23:16 +00:00
ryan
d10f9a825d Improve performance of seems_utf8() and uf8_uri_encode(). fixes #5320
git-svn-id: http://svn.automattic.com/wordpress/trunk@6314 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-05 17:13:43 +00:00
ryan
dd29614f60 Extract and save image metadata. Props tellyworth. fixes #5162
git-svn-id: http://svn.automattic.com/wordpress/trunk@6313 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-05 00:01:26 +00:00
ryan
6f761b1ef3 Update awaiting moderation count when comments are moderated through AJAX. Props mdawaffe. fixes #5315
git-svn-id: http://svn.automattic.com/wordpress/trunk@6312 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-04 06:23:03 +00:00
ryan
ad563a953f Fix raw context filtering for terms. see #5253
git-svn-id: http://svn.automattic.com/wordpress/trunk@6311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-03 19:06:43 +00:00
ryan
a2e0f3352f Disambiguate columns. Props lawrence123. fixes #5256
git-svn-id: http://svn.automattic.com/wordpress/trunk@6310 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-03 19:00:33 +00:00
westi
3d04ae4f29 Refactor of wp-admin/includes/image.php. Fixes #5312, #4151, #4709, #5304 props DD32.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6309 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-03 18:33:19 +00:00
westi
cc83c30953 Allow wp-links-opml.php to return the links for just one category. Fixes #5295 props vrypan.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6308 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-03 16:09:30 +00:00
ryan
43bb491419 Cache get_terms queries that return nothing.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6307 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-02 04:31:44 +00:00
ryan
52934a6cee Fix comment typo
git-svn-id: http://svn.automattic.com/wordpress/trunk@6306 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-02 00:58:15 +00:00
ryan
c148b6ce78 Make sure ID is set for later update() calls.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6305 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-02 00:47:04 +00:00
ryan
fbbbfb9a48 Typo fix from DD32. Fixes uploads. fixes #5302
git-svn-id: http://svn.automattic.com/wordpress/trunk@6304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-01 16:20:16 +00:00
ryan
f831731601 JS/AJAX form validation from mdawaffe. fixes #5299
git-svn-id: http://svn.automattic.com/wordpress/trunk@6303 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-01 06:23:16 +00:00
ryan
b982559380 Save user registration time. Props mdawaffe. fixes #5300
git-svn-id: http://svn.automattic.com/wordpress/trunk@6302 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-01 05:49:23 +00:00
ryan
d9bba52a5f Post timezone to lastpost filters. Props mdawaffe. fixes #5292
git-svn-id: http://svn.automattic.com/wordpress/trunk@6301 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-31 16:59:05 +00:00
ryan
d85d86db03 wpdb::set_prefix(). fixes #5287
git-svn-id: http://svn.automattic.com/wordpress/trunk@6300 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-31 03:59:18 +00:00
ryan
1d0bf72d2f AJAX for link category add and delete. Props mdawaffe. fixes #5291
git-svn-id: http://svn.automattic.com/wordpress/trunk@6299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-31 03:53:32 +00:00
ryan
24f0b83cae Fix comment delete links and ajax moderation. Props mdawaffe. fixes #5288
git-svn-id: http://svn.automattic.com/wordpress/trunk@6298 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-31 01:37:58 +00:00
westi
bccb7897d7 Add documentation for wp_version_check(). Fixes #5233 props darkdragon.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6297 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-30 21:40:30 +00:00
ryan
e236161cf9 wp_get_archives caching. fixes #5275
git-svn-id: http://svn.automattic.com/wordpress/trunk@6296 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-30 06:03:11 +00:00
ryan
b906aa0e86 Add is_wp_error check
git-svn-id: http://svn.automattic.com/wordpress/trunk@6295 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-28 21:33:03 +00:00
ryan
b4cdc4435d Strip term name and description before preparing for DB.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6294 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-26 19:44:57 +00:00
westi
1eac18dd69 Fix the require_once in install-helper.php so that it works when included from a plugin. Fixes #5090
git-svn-id: http://svn.automattic.com/wordpress/trunk@6291 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-25 17:35:35 +00:00
ryan
58d174004e Pass literal strings not vars to compact.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6290 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-25 07:15:02 +00:00
ryan
a34b0064ad get rid of old style ajax adder junk. Fixes adding cats from manage -> categories. Props mdawaffe
git-svn-id: http://svn.automattic.com/wordpress/trunk@6289 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-25 05:50:18 +00:00
ryan
85078df8c7 Update clean_object_term_cache() to clear for each taxonomy
git-svn-id: http://svn.automattic.com/wordpress/trunk@6288 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-24 17:07:04 +00:00
ryan
1920dc0390 Post filter fixes from mdawaffe. fixes #5249
git-svn-id: http://svn.automattic.com/wordpress/trunk@6287 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-23 23:02:24 +00:00
ryan
9db4d2042e Separate taxonomy relationships into separate cache buckets.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6286 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-23 20:33:50 +00:00
ryan
6e7729018e Remove unnecessary GROUP BY when getting max term_group. Props michelwp. fixes #5240
git-svn-id: http://svn.automattic.com/wordpress/trunk@6285 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-23 16:43:15 +00:00
ryan
0474421643 Add option for ordering retrieved terms by slug or term_group. Props michelwp. fixes #5245
git-svn-id: http://svn.automattic.com/wordpress/trunk@6284 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-23 16:39:03 +00:00
ryan
6566f35303 get_row() not fetch_row(). Props michelwp. fixes #5230
git-svn-id: http://svn.automattic.com/wordpress/trunk@6283 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-23 16:36:08 +00:00
ryan
a76f648e22 taxonomy phpdoc updates from darkdragon. see #4742
git-svn-id: http://svn.automattic.com/wordpress/trunk@6282 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-21 17:18:24 +00:00
ryan
a92c487cc0 Fix email address parsing in wp-mail.php. Props Bobcat. fixes #5169
git-svn-id: http://svn.automattic.com/wordpress/trunk@6281 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-21 06:18:59 +00:00
westi
c75ec2b48a Add atom:self link to rss2 feeds per RSS Best Practices Profile. Fixes #5205 props lexhair and rubys.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6278 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-20 10:35:44 +00:00
ryan
fbd325f037 AJAX list manipulation fixes for single post comment moderation. Props mdawaffe. fixes #5236
git-svn-id: http://svn.automattic.com/wordpress/trunk@6277 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-19 18:39:07 +00:00
ryan
babd1e1a7f phpdoc for plugin API. Props darkdragon. fixes #5225
git-svn-id: http://svn.automattic.com/wordpress/trunk@6276 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-19 17:45:08 +00:00
westi
5fb4d6ab00 Use a for loop where it's more appropriate. Fixes #5234 props darkdragon and DD32.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6275 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-19 16:32:56 +00:00
westi
5e0cf58bfb Add @since to the new phpdoc relates #5181 and [6273]
git-svn-id: http://svn.automattic.com/wordpress/trunk@6274 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-19 16:27:09 +00:00
westi
4c7bfb6a4f Refactor atom support to share code. Fixes #5181 props rubys
git-svn-id: http://svn.automattic.com/wordpress/trunk@6273 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-19 15:42:30 +00:00
ryan
c5dd16dd70 Remove debug cruft
git-svn-id: http://svn.automattic.com/wordpress/trunk@6272 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-18 22:09:56 +00:00
ryan
6edc7aed5c Catch WP_Error. Props tellyworth. fixes #5226
git-svn-id: http://svn.automattic.com/wordpress/trunk@6271 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-18 15:55:15 +00:00
ryan
0d3dc6f181 Group results when selecting from post2cat and link2cat to avoid dupes. fixes #5223 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6269 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-17 21:09:54 +00:00
markjaquith
d395d55a0e Stripslashes tag names to prevent double slashing in wp_insert_term(). fixes #5202
git-svn-id: http://svn.automattic.com/wordpress/trunk@6267 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-17 20:41:43 +00:00
westi
9ef11d81bd Set the Sender on emails as well as from. Fixes #5007 for trunk props mattyrob
git-svn-id: http://svn.automattic.com/wordpress/trunk@6265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-17 20:17:01 +00:00
markjaquith
875424adae Explicitly exclude previews from canonicalization. fixes #5203 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6263 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-17 20:14:38 +00:00
westi
fc33615fb5 Add Atom to the RSD. Fixes #5213 props rubys.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6262 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-17 19:50:56 +00:00
westi
99ae520d0d Fix atom version number in the classic theme. Relates #5213 props rubys
git-svn-id: http://svn.automattic.com/wordpress/trunk@6261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-17 19:37:21 +00:00
ryan
38a3758570 Remove refs to old, dead caches.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6260 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-17 17:37:21 +00:00
ryan
2c5016e8fa activate_plugin(), deactivate_plugins(), and deactivate_all_plugins() from Quandary. fixes #5210
git-svn-id: http://svn.automattic.com/wordpress/trunk@6259 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-17 17:14:58 +00:00
ryan
36caa9623c Prevent direct load of edit-post-rows.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-17 16:51:31 +00:00
ryan
2762527a1e Add current_user_can() checks to link.php. Props DD32. fixes #4627
git-svn-id: http://svn.automattic.com/wordpress/trunk@6255 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-16 16:09:01 +00:00
ryan
9c6dc8f1be More taxonomy phpdoc from darkdragon. see #4742
git-svn-id: http://svn.automattic.com/wordpress/trunk@6254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-15 22:49:31 +00:00
ryan
0e0ebbba23 Move all page and post caches to 'posts' cache group.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-15 20:11:30 +00:00
westi
1eb4758157 Fix typo in call to $wpdb->update. Fixes #5206 props zamoose
git-svn-id: http://svn.automattic.com/wordpress/trunk@6251 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-15 20:07:29 +00:00
ryan
20f655d83b Kill unused var.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6250 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-14 09:38:12 +00:00
ryan
808cd79992 Just cache the is_blog_installed value. If the options table goes away while the value is still cached, oh well. Very edge-case.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6249 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-14 07:57:56 +00:00
ryan
363eae9d76 Add some clean cache hooks
git-svn-id: http://svn.automattic.com/wordpress/trunk@6248 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-14 04:55:33 +00:00
ryan
bd5d107814 Allow single post ID and comma delimited list of post IDs to be passed to update_postmeta_cache(). Fix default cache to allow storage of empty array. see #5194
git-svn-id: http://svn.automattic.com/wordpress/trunk@6247 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-14 01:08:07 +00:00
ryan
24af93e9c0 If checking for term within taxonomy, just do the taxonomy specific query. Saves one query.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-13 19:04:39 +00:00
ryan
befa8f0f11 Eliminate extra query.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-13 18:53:28 +00:00
ryan
16411f9c7b Set global is_blog_installed flag so we don't query the DB more than once per load.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6244 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-13 18:39:28 +00:00
ryan
a8d380c32c Eliminate object_term_cache array. see #5182
git-svn-id: http://svn.automattic.com/wordpress/trunk@6243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-13 18:23:59 +00:00
markjaquith
4a43a0b353 Some foreach array casting
git-svn-id: http://svn.automattic.com/wordpress/trunk@6242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-13 05:33:39 +00:00
markjaquith
6f0cbc16a8 prepare(), insert(), update() for wp-includes/ taxonomy.php, rss.php, registration.php
git-svn-id: http://svn.automattic.com/wordpress/trunk@6241 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-13 03:51:11 +00:00
markjaquith
14c3ea37ca Forget about 4th update() param -- only accept named array. Roll out more insert()/update() and various cleanups.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6240 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-13 02:36:38 +00:00
markjaquith
f18e02b0f0 Allow wpdb->update() to optionally take a named array of where column/value pairs (which will be ANDed)
git-svn-id: http://svn.automattic.com/wordpress/trunk@6239 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-13 01:44:25 +00:00
markjaquith
1d883e1b9c Remove redundant "db_" from db_insert() and db_update() methods. Now just insert() and update(). see #5178
git-svn-id: http://svn.automattic.com/wordpress/trunk@6238 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-13 00:54:26 +00:00
markjaquith
05e68a8676 More use of db_insert()/db_update(). see #5178
git-svn-id: http://svn.automattic.com/wordpress/trunk@6237 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-13 00:48:52 +00:00
markjaquith
596db96326 Oops, within the class here.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6236 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-13 00:45:34 +00:00
ryan
6dea91b30b Use filename if no title. Props tellyworth. fixes #5080 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6235 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-12 22:15:54 +00:00
ryan
42fee85546 Fix category assigment during link import. fixes #5107 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6233 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-12 21:47:34 +00:00
ryan
a3846ef776 Fix category assigment during link import. fixes #5107 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6230 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-12 21:23:39 +00:00
ryan
62d3a12280 Eliminate , , and . see #5182
git-svn-id: http://svn.automattic.com/wordpress/trunk@6229 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-12 21:12:34 +00:00
westi
714742b70e Add is_page_template() function to allow theme developers to detect that they are is a page template. Fixes #3335
git-svn-id: http://svn.automattic.com/wordpress/trunk@6228 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-12 20:01:16 +00:00
westi
cd8dcf0046 Translation fix for wp_tag_cloud(). Fixes #5131 props webrocker
git-svn-id: http://svn.automattic.com/wordpress/trunk@6227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-12 19:49:25 +00:00
ryan
fe3b6ca4ac Lose Convert All Categories button. It is confusing people. Props foolswisdom. fixes #5058
git-svn-id: http://svn.automattic.com/wordpress/trunk@6225 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-11 17:50:56 +00:00
ryan
c674a475d7 Use inner joins instead of left joins for taxonomy. Inner is faster. fixes #5179
git-svn-id: http://svn.automattic.com/wordpress/trunk@6224 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-11 17:43:49 +00:00
markjaquith
a30ed0ded5 Code cleanup and standardization for functions.php
git-svn-id: http://svn.automattic.com/wordpress/trunk@6223 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-11 05:46:57 +00:00
markjaquith
c23352bedf Introducing absint() for casting to an absolute integer. see #4762
git-svn-id: http://svn.automattic.com/wordpress/trunk@6222 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-10 22:11:18 +00:00
markjaquith
c5f9186919 Introducing db_insert() and db_update(), with immediate usage in wp_insert_post(). fixes #5178
git-svn-id: http://svn.automattic.com/wordpress/trunk@6221 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-10 22:01:40 +00:00
markjaquith
dec5db7586 check for a match against a lowercase host in wp_safe_redirect(). props BoltClock. fixes #5114 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-10 19:25:23 +00:00
ryan
40a2a02cb1 Output localized strings before outputting js. Props mdawaffe. fixes #5177 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6218 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-10 18:51:12 +00:00
markjaquith
88735ac45a Strip From/Reply-To from e-mail before sanitizing in wp-mail.php. Props Bobcat. fixes #5169
git-svn-id: http://svn.automattic.com/wordpress/trunk@6217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-10 16:46:20 +00:00
markjaquith
90da0b6561 Revert partial prepare() implementation. Needs to be all or nothing. Props xknown. fixes #5145
git-svn-id: http://svn.automattic.com/wordpress/trunk@6216 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-09 23:16:35 +00:00
ryan
b6e04e6b83 Propset eol-style on new files
git-svn-id: http://svn.automattic.com/wordpress/trunk@6215 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-09 23:13:24 +00:00
ryan
44ca974c27 jquery for list manipulation. Round one, fight. Props mdawaffe. fixes #4805
git-svn-id: http://svn.automattic.com/wordpress/trunk@6214 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-09 22:51:25 +00:00
ryan
f8afc0b75d jquery for list manipulation. Round one, fight. Props mdawaffe. fixes #4805
git-svn-id: http://svn.automattic.com/wordpress/trunk@6213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-09 22:49:42 +00:00
markjaquith
1b7798d214 Properly sanitize e-mail addresses in wp-mail.php. Props giannis1. fixes #5169 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6212 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-09 22:15:37 +00:00
ryan
a8ede71d87 Force prototype to load before jquery. Props mdawaffe. fixes #5067 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-09 21:04:26 +00:00
markjaquith
c698c97198 IIS REQUEST_URI-setting fixes from snakefoot. fixes #5160 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6208 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-09 17:38:25 +00:00
markjaquith
60cde1b789 use type="text/javascript", not lang="javascript". Props dsiemon. fixes #5168
git-svn-id: http://svn.automattic.com/wordpress/trunk@6207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-09 04:13:36 +00:00
ryan
d4cefda518 Add some cache clearing to cat to tag converter.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6206 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-08 22:39:20 +00:00
ryan
b8febc8501 Apply filteres when returning empty array from get_pages. Props epper. fixes #4712 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-08 22:25:33 +00:00
markjaquith
c10999aec9 Check for ORIG_PATH_INFO on IIS. props brh, fixes #5160
git-svn-id: http://svn.automattic.com/wordpress/trunk@6203 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-08 20:48:29 +00:00
westi
8ff0a0659a Move the WLW manifest related files to have proper WordPress naming scheme.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6202 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-08 20:21:29 +00:00
westi
395fd9fc29 Define $constaint is all cases in get_attachment_icon() to fix E_NOTICE. Fixed #5159 props richcon.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-07 07:35:20 +00:00
westi
f6234acb5d Add documentation of _wp_filter_build_unique_id(). Fixed #5053 props darkdragon.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6200 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-07 07:31:14 +00:00
westi
e026d1dfa2 Move all calls to mysql_ functions to withiWPDB so that t we don't expect any mysql stuff when we are using a custo$wpdb class. Fixes #5127
props ComputerGuru.


git-svn-id: http://svn.automattic.com/wordpress/trunk@6199 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-06 08:40:54 +00:00
westi
61f8b8f569 Move database class loading to a shared function to ensure all of WordPress is wp-content/wp-db.php aware. Fixes #5128 props ComputerGuru.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6198 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-06 08:18:33 +00:00
westi
e9cfb43133 Centralise generator generation, move theme generator generation to wp-head hook. Fixes #5085, #4803. props docwhat, Viper007Bond.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-06 06:55:24 +00:00
westi
410b858509 Ensure we have the default category id. Fixes #5150 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6193 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-06 06:21:05 +00:00
ryan
60fdc763b6 WLW manifest from josephscott. fixes #5023 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6192 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-05 17:29:34 +00:00
ryan
7f61116c5b Add some spacing. fixes #5137 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6189 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-05 16:27:48 +00:00
markjaquith
6aa8345250 Some error message normalization from Viper007Bond and DD32. fixes #5139
git-svn-id: http://svn.automattic.com/wordpress/trunk@6188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-04 19:38:35 +00:00
ryan
fe60a3ab06 New taxonomy intersection queries from xknown. fixes #5137
git-svn-id: http://svn.automattic.com/wordpress/trunk@6186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-04 18:10:03 +00:00
ryan
3211ab1d54 Add page sanitization. Props xknown. fixes #5135 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6185 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-03 16:27:07 +00:00
ryan
5300ef20cf Add sanitize_url. Don't convert ampersands in URLs when saving to DB. fixes #4411 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6182 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-03 16:16:55 +00:00
westi
f3e26c6d98 s/WPDEBUG/WP_DEBUG/g Fixes #5033
git-svn-id: http://svn.automattic.com/wordpress/trunk@6181 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-02 20:34:29 +00:00
markjaquith
21c25b5566 prepare() for wp-includes/ link-template.php, post.php, general-template.php, pluggable.php, functions.php. see #4553
git-svn-id: http://svn.automattic.com/wordpress/trunk@6180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-02 18:45:47 +00:00
westi
2bcddfc042 Enable developers to turn on notices from wp-config.php. Relates #3155. Fixes #5033 props Ozh.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6179 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-30 11:09:47 +00:00
westi
6d2459f689 Add string descriptions to the translations of the user roles. Fixes #5102 props RanYanivHartstein
git-svn-id: http://svn.automattic.com/wordpress/trunk@6178 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-30 10:09:31 +00:00
westi
0b23746c72 We're working on bleeding edge 2.4 stuff now
git-svn-id: http://svn.automattic.com/wordpress/trunk@6177 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-29 10:56:53 +00:00
ryan
fbd6081f46 Spelling fix from zamoose. fixes #5095 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6174 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-28 17:37:16 +00:00
markjaquith
47955b3fae prepare() for wp-includes/ bookmark.php, canonical.php, comment.php, comment-template.php. see #4553
git-svn-id: http://svn.automattic.com/wordpress/trunk@6173 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-27 07:34:15 +00:00
ryan
e87e2508f5 Gettext fix from nbachiyski. fixes #5086 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6171 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-26 23:23:14 +00:00
ryan
649cff7dc2 Fix typo in category widget class name. Props joostdevalk. fixes #5079 for trunk.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-26 16:12:28 +00:00
ryan
65b2b51b63 Set TEST_COOKIE for SITECOOKIEPATH. see #5076
git-svn-id: http://svn.automattic.com/wordpress/trunk@6168 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-25 23:28:02 +00:00
matt
15372a22b6 bumpity
git-svn-id: http://svn.automattic.com/wordpress/trunk@6164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-25 00:34:43 +00:00
ryan
fd17fe449d Remove reference to importers and move the note about converting up to the Note section. fixes #5060
git-svn-id: http://svn.automattic.com/wordpress/trunk@6163 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-24 02:39:49 +00:00
ryan
6486085cf4 STP importer fixes from momo360modena. fixes #5059
git-svn-id: http://svn.automattic.com/wordpress/trunk@6162 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-24 01:57:55 +00:00
ryan
a48973211c Fix typo. fixes #5061
git-svn-id: http://svn.automattic.com/wordpress/trunk@6161 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-24 01:48:36 +00:00
ryan
8d349aa85c Add some filtering. Props jhodgdon. fixes #3595
git-svn-id: http://svn.automattic.com/wordpress/trunk@6160 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-23 19:25:15 +00:00
ryan
e76e370638 Fix term count padding.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6159 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-23 00:35:59 +00:00
markjaquith
5f4c602776 Cast to array in upgrade foreach(). props arnee. fixes #5047
git-svn-id: http://svn.automattic.com/wordpress/trunk@6158 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-22 23:14:38 +00:00
ryan
683db28b4c Term with slug that conflicts with existing term with different parent gets a new term entry with a unique slug. see #5034
git-svn-id: http://svn.automattic.com/wordpress/trunk@6157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-22 18:01:08 +00:00
ryan
add4250c0d Revert part of [5263] to fix downloading in Safari. fixes #5040
git-svn-id: http://svn.automattic.com/wordpress/trunk@6156 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-22 16:50:35 +00:00
ryan
72e74add8d Don't reset parent when updating attachment. Props filosofo and michelwp. fixes #5010
git-svn-id: http://svn.automattic.com/wordpress/trunk@6155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-22 16:30:40 +00:00
markjaquith
e56c1c2097 Bookend moderation links properly with right square bracket. highest omg bbq? Still, nice catch, ozh. fixes #5035
git-svn-id: http://svn.automattic.com/wordpress/trunk@6154 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-22 06:28:47 +00:00
markjaquith
0fb4233fdf Add tag_base to list of untrailingslashed options, and standardize the unslashing. Prevents /mytags//tagname/
git-svn-id: http://svn.automattic.com/wordpress/trunk@6153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-22 06:11:48 +00:00
markjaquith
c005340430 Fix PATH_INFO first page paging link. fixes #5039
git-svn-id: http://svn.automattic.com/wordpress/trunk@6152 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-22 06:07:03 +00:00
markjaquith
d3d447d6e9 Core and plugin update checking: make sure fsockopen() is available and check file resources with is_resource() -- both to prevent feof() infinite loops. Props xknown. fixes #5037
git-svn-id: http://svn.automattic.com/wordpress/trunk@6151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-22 00:08:50 +00:00
ryan
48813443db Revert [5969]. It can break permalinks. see #4739
git-svn-id: http://svn.automattic.com/wordpress/trunk@6150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-21 19:36:12 +00:00
ryan
a366ee01ef Export and import of post tags. fixes #4682
git-svn-id: http://svn.automattic.com/wordpress/trunk@6149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-21 18:34:28 +00:00
ryan
81482db30b Add checks for WP_Error. Props filosofo. see #4809
git-svn-id: http://svn.automattic.com/wordpress/trunk@6148 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-21 15:51:00 +00:00
ryan
2794b34f4a Add some filtering. Props jhodgdon. fixes #5030
git-svn-id: http://svn.automattic.com/wordpress/trunk@6147 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-21 15:04:13 +00:00
ryan
94349171ec Updated RTL CSS from mani_monaj. fixes #5025
git-svn-id: http://svn.automattic.com/wordpress/trunk@6146 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-20 23:36:45 +00:00
markjaquith
5177c0e5c7 Pass the attempted redirect host as a second parameter in the allowed_redirect_hosts filter. props mdawaffe.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6145 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-20 21:53:42 +00:00
ryan
40b7e58b82 Always remove index.php from request before contructing page links. fixes #5000
git-svn-id: http://svn.automattic.com/wordpress/trunk@6144 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-20 20:56:22 +00:00
markjaquith
3be5215e08 Remove trailing /index.php fixing from canonical.php ... Thanks chaoticmortalcom. fixes #5017
git-svn-id: http://svn.automattic.com/wordpress/trunk@6143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-20 20:25:43 +00:00
ryan
4a03a94051 Bail if post is empty. Props mdawaffe. fixes #5019
git-svn-id: http://svn.automattic.com/wordpress/trunk@6142 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-20 18:25:14 +00:00
ryan
3542e01f19 Don't specialchars markup in term description. fixes #5021
git-svn-id: http://svn.automattic.com/wordpress/trunk@6141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-20 18:23:33 +00:00
markjaquith
315a28c4b5 Remove non-functioning and misleading "Privacy" label on install. fixes #5012
git-svn-id: http://svn.automattic.com/wordpress/trunk@6140 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-19 21:45:23 +00:00
markjaquith
4f6b825b8b Make sure number_format_i18n() is available before calling it in timer_stop(). fixes #5016
git-svn-id: http://svn.automattic.com/wordpress/trunk@6139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-19 20:48:34 +00:00
ryan
9eb6351d24 Extra protection in check_ajax_referer from mdawaffe. fixes #4939
git-svn-id: http://svn.automattic.com/wordpress/trunk@6138 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-19 19:32:34 +00:00
ryan
3ac0df5170 Fix includes for setup-config so that wp_die is defined. Props DD32. fixes #4997
git-svn-id: http://svn.automattic.com/wordpress/trunk@6137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-19 04:27:56 +00:00
markjaquith
f25f33c4ba Put a filter in wp_safe_redirect() so people can whitelist other domains. see #4606
git-svn-id: http://svn.automattic.com/wordpress/trunk@6136 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-19 04:14:53 +00:00
ryan
192cb2dda5 RC1
git-svn-id: http://svn.automattic.com/wordpress/trunk@6135 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-19 04:14:27 +00:00
markjaquith
3c89a5c5d7 More robust wp_safe_redirect(). Introducing wp_sanitize_redirect() for use in wp_redirect() and wp_safe_redirect(). fixes #4606
git-svn-id: http://svn.automattic.com/wordpress/trunk@6134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-19 03:47:37 +00:00
ryan
deb7701a85 Script loader cleanup from mdawaffe. fixes #5003
git-svn-id: http://svn.automattic.com/wordpress/trunk@6133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-19 00:51:21 +00:00
ryan
1fa2f6df66 the_title_attribute(). Props Nazgul. fixes #4731
git-svn-id: http://svn.automattic.com/wordpress/trunk@6132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-18 22:50:59 +00:00
markjaquith
dbd3d07274 Introducing wp_safe_redirect(). fixes #4606 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-18 22:23:16 +00:00
ryan
bbe284b1d1 Fake being in the loop during export so that template tags work.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6130 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-18 18:01:47 +00:00
ryan
8eceaca349 Import tags. see #4682
git-svn-id: http://svn.automattic.com/wordpress/trunk@6129 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-18 17:50:21 +00:00
ryan
1d146b6153 Revert rename of more-link class. Props foolswisdom. fixes #4999
git-svn-id: http://svn.automattic.com/wordpress/trunk@6128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-18 16:44:35 +00:00
ryan
39152aff25 Replace faulty regex. Props tenpura. fixes #4820
git-svn-id: http://svn.automattic.com/wordpress/trunk@6127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-18 16:42:25 +00:00
ryan
c352f29893 Drop old tables. Props Nazgul. fixes #4995
git-svn-id: http://svn.automattic.com/wordpress/trunk@6126 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-18 16:37:21 +00:00
ryan
9bfccd6286 Add checks for WP_Error. Props filosofo. see #4809
git-svn-id: http://svn.automattic.com/wordpress/trunk@6125 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-18 16:32:22 +00:00
markjaquith
f30cd7acec Use maybe_unserialize() in get_usermeta(). Props filosofo. fixes #4993
git-svn-id: http://svn.automattic.com/wordpress/trunk@6124 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-17 19:19:55 +00:00
ryan
3ccba6071a Add tags-input class. Props momo360modena. fixes #4989
git-svn-id: http://svn.automattic.com/wordpress/trunk@6123 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-16 18:25:10 +00:00
ryan
6d53f77f31 gettext string. Props tai. fixes #4985
git-svn-id: http://svn.automattic.com/wordpress/trunk@6122 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-16 18:15:03 +00:00
ryan
76fee1da02 Don't lose tags when saving a post with attachments. Props filosofo. fixes #4532
git-svn-id: http://svn.automattic.com/wordpress/trunk@6121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-16 02:36:23 +00:00
matt
1e127b413c Sometimes the $page global is set but it's just an integer, like 1, not an object which we should try to address and put in the cache. The page would work but we'd do spurious wp_cache_add
git-svn-id: http://svn.automattic.com/wordpress/trunk@6120 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-15 21:52:37 +00:00
matt
4216f95b64 Because we're modifying an existing cache variable we need to do a _set, not an _add, like we do other places we stick multiple cache values in a single var and key.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6119 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-15 21:50:53 +00:00
westi
e08024d86e Set svn:eol-style on a few files.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6118 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-15 17:35:32 +00:00
matt
8bfcfae2f8 Incorrect cache group was causing terms never to get cached.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6117 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-15 16:48:29 +00:00
markjaquith
d3db272764 Properly name files with unknown extensions (for people with unfiltered_upload cap, natch). props Nazgul. fixes #4974 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6116 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-14 21:13:23 +00:00
markjaquith
8a6802ef00 Canonical fixes: Allow Pages to have /page/x/. Always trailing slash home when it is not paged. Strip extra trailing slashes off of /page/x///
git-svn-id: http://svn.automattic.com/wordpress/trunk@6115 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-14 19:41:23 +00:00
ryan
ec182d74a6 Deprecate fakeit arg. Props Nazgul. fixes #4439
git-svn-id: http://svn.automattic.com/wordpress/trunk@6114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-13 21:27:26 +00:00
westi
b36db5619b Switch to is_callable instead of function_exists to allow for class based importer plugins. Fixes #4614
git-svn-id: http://svn.automattic.com/wordpress/trunk@6113 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-13 20:36:31 +00:00
markjaquith
3d3846ee8a Handle ports for canonical redirects. Props driverkt and westi. fixes #4970
git-svn-id: http://svn.automattic.com/wordpress/trunk@6112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-13 19:24:05 +00:00
markjaquith
9ea001d704 Just some indent fixes in canonical.php
git-svn-id: http://svn.automattic.com/wordpress/trunk@6111 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-13 19:12:53 +00:00
markjaquith
b36471d4cf Use wp_die() for WPDB bails. Send 500 response and no-cache headers so wp_die()s are not cached. props DD32. fixes #3471
git-svn-id: http://svn.automattic.com/wordpress/trunk@6110 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-13 06:23:23 +00:00
ryan
9e61170004 s/onChange/onchange/. Props grubgirl, Nazgul. fixes #4630
git-svn-id: http://svn.automattic.com/wordpress/trunk@6109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-13 05:33:54 +00:00
markjaquith
3fc1d4f08d De-rabbit-hole compat.php
git-svn-id: http://svn.automattic.com/wordpress/trunk@6108 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-13 05:24:31 +00:00
markjaquith
76d0f29698 Check for apply_filters() in status_header() so that it can be called early on in load process
git-svn-id: http://svn.automattic.com/wordpress/trunk@6107 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-13 05:00:46 +00:00
ryan
103e793478 no follow callback
git-svn-id: http://svn.automattic.com/wordpress/trunk@6105 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-13 04:51:33 +00:00
markjaquith
95908afb48 Move $wp_header_to_desc array to get_status_header_desc() so that it can be called before vars.php is loaded.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6104 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-13 04:48:41 +00:00
markjaquith
1cae6a8691 Plugins are not loaded at this point, so the wp_header_to_desc_array filter is useless
git-svn-id: http://svn.automattic.com/wordpress/trunk@6103 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-13 04:13:32 +00:00
ryan
7bbd23f3c6 Don't strip slashes from pre. Props DelGurth and mdawaffe. fixes #2059
git-svn-id: http://svn.automattic.com/wordpress/trunk@6102 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-13 04:11:21 +00:00
markjaquith
b9dcf3c0c3 Don't set comment_author_email for pings in MT import. fixes #4461
git-svn-id: http://svn.automattic.com/wordpress/trunk@6101 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-13 04:10:36 +00:00
markjaquith
ec6416ec0b fix links generated by get_category_rss_link(). props gwagenknecht. fixes #4550 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-12 22:24:28 +00:00
markjaquith
791aec14b2 Set $theme_loc correctly when ABSPATH is "/". Props arabek. fixes #4541
git-svn-id: http://svn.automattic.com/wordpress/trunk@6099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-12 22:19:26 +00:00
markjaquith
0880ca8693 Set widget classname when passed string, object/method, object-reference/method. fixes #4910
git-svn-id: http://svn.automattic.com/wordpress/trunk@6098 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-12 20:48:21 +00:00
markjaquith
1f3ce09d52 Ignore HOST capitalization differences for canonical redirects. props jbctech. fixes #4773
git-svn-id: http://svn.automattic.com/wordpress/trunk@6097 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-12 20:44:41 +00:00
westi
d1acf020b5 Allow plugins to sanitize there own options easily.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6096 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-12 18:15:29 +00:00
westi
223182463d Ensure the parentlink is trailingslashed when building the url - don't trim / off the front. Fixes #2801 props Libertus
git-svn-id: http://svn.automattic.com/wordpress/trunk@6095 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-12 17:46:13 +00:00
westi
2f44508e9b Consolidate shared code in get_userdata and get_userdatabylogin. Fixes #2134 props johnjosephbachir
git-svn-id: http://svn.automattic.com/wordpress/trunk@6094 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-12 17:15:17 +00:00
westi
cf26b9d049 Make the atom feed updated field actually tell you when the post was updated. Fixes #4816 props lapcat.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6093 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-12 16:26:39 +00:00
ryan
60bec14a4e More phpdoc for taxonomy from darkdragon. see #4742
git-svn-id: http://svn.automattic.com/wordpress/trunk@6092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-12 02:56:44 +00:00
ryan
48b96208e2 Add echo or return option to wp_list_categories. Props Otto42. fixes #4182
git-svn-id: http://svn.automattic.com/wordpress/trunk@6091 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-12 02:53:27 +00:00
ryan
159ea09341 Resurrect admin-functions.php and upgrade-functions.php for back compat. fixes #4956
git-svn-id: http://svn.automattic.com/wordpress/trunk@6090 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-12 02:36:04 +00:00
ryan
8e5302b57f Add cat_row filter. Props johnbillion. fixes #4926
git-svn-id: http://svn.automattic.com/wordpress/trunk@6089 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-12 01:08:19 +00:00
ryan
a1046188b8 Deprecate old links functions. Props rob1n. fixes #3413
git-svn-id: http://svn.automattic.com/wordpress/trunk@6088 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-12 01:01:48 +00:00
ryan
98d52ab1f2 Resurrect count padding.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-12 00:49:16 +00:00
ryan
c06e70516a Remove duplicate code from wp_insert_attachment(). Update to use sanitize_post. Props Otto42. fixes #4946
git-svn-id: http://svn.automattic.com/wordpress/trunk@6086 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-11 22:27:36 +00:00
markjaquith
4bc7869c84 Always trailingslash the "home" URL. Protect against chained redirects. Thanks wantmoore. fixes #4773
git-svn-id: http://svn.automattic.com/wordpress/trunk@6085 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-11 21:21:40 +00:00
westi
ca4ddf50f8 Allow the wp_mail filter to change the passed data. Fixes #4511 props ryan.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6084 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-11 20:49:28 +00:00
westi
446c704af5 Ensure (next|previous)_post_link always have some content even when the post title is blank. Fixes #1835, props johnbillion
git-svn-id: http://svn.automattic.com/wordpress/trunk@6082 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-11 20:05:52 +00:00
ryan
e3db8369d0 Remove reference to the_quicktags. Props Nazgul. fixes #4925
git-svn-id: http://svn.automattic.com/wordpress/trunk@6081 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-11 19:56:40 +00:00
ryan
6d983b5bb5 If a category is already a tag, don't put it in the list of categories to convert. fixes #4955
git-svn-id: http://svn.automattic.com/wordpress/trunk@6080 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-11 19:54:19 +00:00
ryan
33953bc337 Retain default category when converting categories to tags. fixes #4845
git-svn-id: http://svn.automattic.com/wordpress/trunk@6079 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-11 19:33:35 +00:00
westi
c3155a54b2 Fix tab order when edit comments. Props Nazgul fixes #4726
git-svn-id: http://svn.automattic.com/wordpress/trunk@6078 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-11 19:08:26 +00:00
ryan
6df40aea78 Use setup_postdata instead of deprecated start_wp. fixes #3188
git-svn-id: http://svn.automattic.com/wordpress/trunk@6077 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-11 18:56:16 +00:00
ryan
87fcc363c1 Add tags to export. see #4682
git-svn-id: http://svn.automattic.com/wordpress/trunk@6076 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-11 18:35:21 +00:00
ryan
c8077169aa Add user_nicename key to users table. fixes #4937
git-svn-id: http://svn.automattic.com/wordpress/trunk@6075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-11 18:13:56 +00:00
ryan
368b18d383 Set tag_id to first tag in multi tag queries. Have single_cat_title() fallback to single_tag_title() if is_tag so that existing category templates will work with tags. fixes #4506
git-svn-id: http://svn.automattic.com/wordpress/trunk@6074 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-11 18:06:52 +00:00
ryan
9fbbf54462 beta3
git-svn-id: http://svn.automattic.com/wordpress/trunk@6073 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-11 01:43:49 +00:00
westi
a4a609093e Add importer for Bunny's Technorati Tags plugin. Fixes #4931
git-svn-id: http://svn.automattic.com/wordpress/trunk@6072 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-10 20:30:55 +00:00
ryan
d84f590203 References don't work inside foreach in php4. Props mdawaffe.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-10 19:37:00 +00:00
markjaquith
ba6e8f4a92 Actually, we always need to URLencode square brackets... or wp_redirect() will strip them out. see #4935. see #4878
git-svn-id: http://svn.automattic.com/wordpress/trunk@6070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-10 15:53:34 +00:00
markjaquith
51299852ef Forgot to use $lsb and $rsb in [6064]. Props mdawaffe. see #4935. see #4878
git-svn-id: http://svn.automattic.com/wordpress/trunk@6069 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-10 15:34:13 +00:00
markjaquith
d59743c972 Strip index.php/ before adding it in get_pagenum_link(). Insert index.php/ for the first page when blog is on a page. fixes #4945
git-svn-id: http://svn.automattic.com/wordpress/trunk@6068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-10 15:06:21 +00:00
markjaquith
7931d5eca5 Revert [6047] -- we await a better solution. see #4858
git-svn-id: http://svn.automattic.com/wordpress/trunk@6065 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-08 17:20:35 +00:00
markjaquith
79c4324e01 Only urlencode previously existing values in add_query_arg() (more backwards compatible). fixes #4935. see #4084. see #4878
git-svn-id: http://svn.automattic.com/wordpress/trunk@6064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-08 14:27:24 +00:00
markjaquith
23b1e871a1 Don't show a plugin author byline if no author name has been specified. Props Viper007Bond. fixes #4927
git-svn-id: http://svn.automattic.com/wordpress/trunk@6060 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-07 18:53:56 +00:00
markjaquith
229a52b3a1 focus the cursor when writing a new post. Props foolswisdom and Nazgul. fixes #3936
git-svn-id: http://svn.automattic.com/wordpress/trunk@6059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-07 02:56:05 +00:00
markjaquith
6a1c63e2f7 Correctly set REQUEST_URI for IIS setups that put that info into SCRIPT_NAME as well as PATH_INFO. props snakefoot and Nazgul. fixes #4853
git-svn-id: http://svn.automattic.com/wordpress/trunk@6058 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-07 02:43:00 +00:00
markjaquith
ead6bfebf7 Try more ways of getting wp-admin URL in wp_die(). props Nazgul. fixes #4006
git-svn-id: http://svn.automattic.com/wordpress/trunk@6057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-07 02:25:54 +00:00
markjaquith
6ecaec3d1f Skip deprecated option replacement in wp-mail.php. props Nazgul. fixes #4924
git-svn-id: http://svn.automattic.com/wordpress/trunk@6056 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-07 02:07:13 +00:00
markjaquith
95b86a22f5 Don't re-add the deprecated new_users_can_blog option. Props Nazgul. fixes #4923
git-svn-id: http://svn.automattic.com/wordpress/trunk@6055 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-07 01:44:24 +00:00
markjaquith
1ba81b4f02 Properly construct widget classname if second param is an array. Props f00f. fixes #4910
git-svn-id: http://svn.automattic.com/wordpress/trunk@6054 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-06 23:27:16 +00:00
markjaquith
eb2d6cea06 Upgrade the options table before calling populate_options() to avoid errors. Props Nazgul. fixes #4921
git-svn-id: http://svn.automattic.com/wordpress/trunk@6053 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-06 23:08:25 +00:00
markjaquith
445d7b077f Set guid when creating first post during install. Props Nazgul and rubys. fixes #4894
git-svn-id: http://svn.automattic.com/wordpress/trunk@6052 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-06 23:01:30 +00:00
ryan
8bbd1008f1 Fix term count calculation during upgrade. fixes #4922
git-svn-id: http://svn.automattic.com/wordpress/trunk@6051 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-06 22:56:03 +00:00
ryan
8d33c59576 Case terms to int so we don't try to create new terms with the term ids as the names. fixes #4920
git-svn-id: http://svn.automattic.com/wordpress/trunk@6050 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-06 22:07:23 +00:00
markjaquith
f851dc2257 Always put the author of the post in the authors dropdown, even if they have since been demoted to a role without post-saving capabilities. fixes #4458
git-svn-id: http://svn.automattic.com/wordpress/trunk@6049 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-06 04:46:56 +00:00
ryan
a428494291 Resurrect hide_empty
git-svn-id: http://svn.automattic.com/wordpress/trunk@6048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-06 04:34:06 +00:00
markjaquith
94973a275b Default to showing published posts on Manage Posts page. fixes #4858
git-svn-id: http://svn.automattic.com/wordpress/trunk@6047 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-06 04:33:35 +00:00
ryan
a40345190e Add missing instance var. Props filosofo. see #4806
git-svn-id: http://svn.automattic.com/wordpress/trunk@6046 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-05 23:17:41 +00:00
ryan
827ed61968 Remove redundant declaration ofedInsertContent. Props Viper007Bond. fixes #4902
git-svn-id: http://svn.automattic.com/wordpress/trunk@6045 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-05 23:14:39 +00:00
ryan
b5a2f7431e Update pop3 class to latest from squirrelmail. Props westi. see #4337
git-svn-id: http://svn.automattic.com/wordpress/trunk@6044 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-05 22:55:38 +00:00
ryan
2ee9183f8a Fix comment orphaning in blogger importer. Props andy. fixes #4406
git-svn-id: http://svn.automattic.com/wordpress/trunk@6043 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-05 22:48:58 +00:00
ryan
7bdf6d6c6e Remove redundant url filter. fixes #4663
git-svn-id: http://svn.automattic.com/wordpress/trunk@6042 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-05 22:44:58 +00:00
markjaquith
bdd9e5e1e4 Use post_date (not post_modified) to check for unpublished posts when showing post listings in admin. fixes #4914
git-svn-id: http://svn.automattic.com/wordpress/trunk@6041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-05 22:17:59 +00:00
ryan
c5d33cbebd Basic tag cloud widget. Props Stargazer. fixes #4130
git-svn-id: http://svn.automattic.com/wordpress/trunk@6040 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-05 21:50:52 +00:00
markjaquith
98a92950a3 Deprecate option_can_override, option_type, option_width, option_height, option_description, option_admin_level from options table. Props Nazgul. fixes #4390
git-svn-id: http://svn.automattic.com/wordpress/trunk@6039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-05 19:20:53 +00:00
markjaquith
c8215773ce Fix link to others' drafts from nag. fixes #4912
git-svn-id: http://svn.automattic.com/wordpress/trunk@6038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-05 18:40:40 +00:00
markjaquith
f396867f60 Show "Post #N" for posts without a title in the nag. Props Viper007Bond. fixes #4849
git-svn-id: http://svn.automattic.com/wordpress/trunk@6037 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-05 18:33:45 +00:00
ryan
1760555e8b Don't skip sanitization if 404. Add wp_title display filters.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-05 03:11:04 +00:00
ryan
64382fbdc9 mprove desriptions for I18N strings. Props nbachiyski. fixes #4906
git-svn-id: http://svn.automattic.com/wordpress/trunk@6034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-04 22:50:31 +00:00
westi
d7c37c0c02 Improve desriptions for I18N strings. Fixes #4906 props nbachiyski
git-svn-id: http://svn.automattic.com/wordpress/trunk@6033 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-04 20:56:08 +00:00
ryan
40527f6ac2 APP taxonomy fixes from rubys. fixes #4904
git-svn-id: http://svn.automattic.com/wordpress/trunk@6032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-04 17:09:57 +00:00
markjaquith
1e8e248b97 Actually, let's just drop that slash check altogether. Equals sign is the best indicator. fixes #4903 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6031 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-04 05:26:18 +00:00
markjaquith
ab71cc4a4f Require a slash AND the absence of an equals sign to designate the passed $uri as a base (without a query string). fixes #4903 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-04 05:21:54 +00:00
markjaquith
5913b16065 Better $pagenow determination. fixes #4748
git-svn-id: http://svn.automattic.com/wordpress/trunk@6029 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-04 03:21:04 +00:00
markjaquith
2f0e0c8760 Clean up Jerome's Keywords importer
git-svn-id: http://svn.automattic.com/wordpress/trunk@6028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-04 02:14:34 +00:00
ryan
a4f8a52b4e beta2
git-svn-id: http://svn.automattic.com/wordpress/trunk@6027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-04 01:01:01 +00:00
ryan
321c310717 Remove trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@6026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-03 23:32:58 +00:00
ryan
87c4f3a17f Strip lines that contain only whitespace down to newlines.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6025 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-03 23:19:20 +00:00
westi
d38d018ce9 Fix admin css link when installing in a directory. Fixes #4877
git-svn-id: http://svn.automattic.com/wordpress/trunk@6024 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-03 20:20:18 +00:00
ryan
8c8c1cb4f7 Remove unused var. Props johnjosephbachir. fixes #4764
git-svn-id: http://svn.automattic.com/wordpress/trunk@6023 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-03 20:06:27 +00:00
markjaquith
e468628526 Check for wp-admin case-insensitively in is_admin()
git-svn-id: http://svn.automattic.com/wordpress/trunk@6022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-03 19:56:09 +00:00
ryan
58c7ce91e3 Tag unions and intersections. fixes #4895
git-svn-id: http://svn.automattic.com/wordpress/trunk@6021 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-03 18:14:05 +00:00
markjaquith
6cfdd1934b trim() plugin URL before deciding whether to show a link. props Gary King. fixes #4633
git-svn-id: http://svn.automattic.com/wordpress/trunk@6020 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-03 16:55:10 +00:00
westi
03d6c4d0ba Change queries in get_{next|previous}_post so that plugins can INNER JOIN on other tables with an ID column. Fixes #4822 props Cimmo.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-03 16:46:31 +00:00
westi
36851becbd Switch to require_once for wp-includes/db.php when it exists. Fixes #4597 props intoxination.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6017 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-03 16:17:10 +00:00
westi
3235902cff urlencode the theme name and stylesheet name in the activate links so as to support directories with + in the name. Fixes #3279.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6016 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-03 16:11:10 +00:00
ryan
4726644b8b Don't strip @ from url. Fix scheme prefixing. Props pishmishy. fixes #3299
git-svn-id: http://svn.automattic.com/wordpress/trunk@6015 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-03 15:59:12 +00:00
ryan
97918578a4 Remove category parent dropdown from edit link category form since link categories are non-hierarchical. fixes #4896
git-svn-id: http://svn.automattic.com/wordpress/trunk@6013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-03 14:49:02 +00:00
ryan
986715f5b6 tag_id not tag__id. see #4895
git-svn-id: http://svn.automattic.com/wordpress/trunk@6012 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-03 03:26:57 +00:00
ryan
f87baf5b1f tag__in, tag__not_in, and tag_and queries. fixes #4895
git-svn-id: http://svn.automattic.com/wordpress/trunk@6011 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-03 03:24:23 +00:00
markjaquith
d723ff00d8 Escape text titles in AtomParser. Props Sam Ruby. fixes #4892
git-svn-id: http://svn.automattic.com/wordpress/trunk@6010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-02 20:42:00 +00:00
westi
2662be2098 Inform the user when cookies are disabled and login fails. Fixed #2039 props tellyworth.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6009 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-02 17:20:37 +00:00
markjaquith
7e45ed193a Eliminate double urlencode()ing in add_query_arg(). Move &amp;-to-& conversion to wp_nonce_url(). fixes #4884
git-svn-id: http://svn.automattic.com/wordpress/trunk@6008 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-02 05:49:54 +00:00
markjaquith
e26363a568 Correct variable name in clean_object_term_cache(). props arnee. fixes #4888
git-svn-id: http://svn.automattic.com/wordpress/trunk@6007 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-02 05:08:48 +00:00
markjaquith
747bd2cf21 urlencode() redirect_to param in login links for both themes. fixes #4873 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6006 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-01 23:05:11 +00:00
markjaquith
d60384b385 Turn &amp; to & in add_query_arg(). fixes #4878
git-svn-id: http://svn.automattic.com/wordpress/trunk@6005 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-01 22:12:17 +00:00
ryan
b04e8d39ee AtomPub fixes from Pete Lacey. fixes #4887
git-svn-id: http://svn.automattic.com/wordpress/trunk@6004 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-01 19:32:54 +00:00
westi
1290e8caed Tell the user what number comment they are editing. Fixes #4524 props momo360modena and Nazgul.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6003 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-01 16:33:55 +00:00
westi
7b9174524a Enable full translation of the Tags description. Fixes #4885 props nbachiyski.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6002 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-01 12:06:47 +00:00
westi
7612bc20b1 Fix RDF feeds to not contain invalid tag "category". Fixed #4643 props kztk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-01 08:33:08 +00:00
ryan
a43e37b8a1 get_tag() and get_tag_feed_link()
git-svn-id: http://svn.automattic.com/wordpress/trunk@6000 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-01 04:43:27 +00:00
markjaquith
0906863d2c Preserve query string arrays in add_query_arg(). fixes #4878 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@5999 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-01 03:41:50 +00:00
ryan
93840b1632 Add some filtering. Props jhodgdon. see #4516
git-svn-id: http://svn.automattic.com/wordpress/trunk@5998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-31 23:55:56 +00:00
ryan
277e5aa914 Don't use unavailable func. Props filosofo. fixes #4881
git-svn-id: http://svn.automattic.com/wordpress/trunk@5997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-31 22:36:16 +00:00
markjaquith
c8d7b27ed2 Use single_tag_title() on tag pages in the Default theme. Props Andy. fixes #4876
git-svn-id: http://svn.automattic.com/wordpress/trunk@5996 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-30 19:54:46 +00:00
markjaquith
a2cac0cf09 Kill %tag%-based permalinks. fixes #4875
git-svn-id: http://svn.automattic.com/wordpress/trunk@5995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-30 19:42:34 +00:00
markjaquith
0219651b96 Check manage_options for upgrade notification. Tailor message accordingly. Props johnbillion. fixes #4869
git-svn-id: http://svn.automattic.com/wordpress/trunk@5994 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-30 18:21:03 +00:00
markjaquith
bacbca924f Roll back [5986], [5988], [5989]. We are in a char class, so no escaping needed. Props mdawaffe. see #4873
git-svn-id: http://svn.automattic.com/wordpress/trunk@5993 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-30 18:13:48 +00:00
markjaquith
f0b39c1b5c Better %0d/%0a sanitization for wp_redirect() from hakre. fixes #4819 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@5990 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-30 17:46:09 +00:00
westi
f9e28418ce Ensure we always show the current version in the footer if the last update check failed. Fixes #4867 props Viper007Bond
git-svn-id: http://svn.automattic.com/wordpress/trunk@5987 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-30 16:25:50 +00:00
ryan
5a997f588b Escape special chars in regex. Props eightize and Otto42. fixes #4873
git-svn-id: http://svn.automattic.com/wordpress/trunk@5986 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-30 15:42:26 +00:00
markjaquith
88f73f7f41 Use "update" language to refer to new versions. Props johnbillion. fixes #4868
git-svn-id: http://svn.automattic.com/wordpress/trunk@5985 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-30 14:41:03 +00:00
ryan
8790a28916 Importer for Jerome's Keywords. fixes #4346
git-svn-id: http://svn.automattic.com/wordpress/trunk@5984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-30 01:39:46 +00:00
ryan
56dd1d2033 Make sure term cache is cleared when updating term counts.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5983 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-30 00:34:55 +00:00
ryan
b92227412a Trackback fxn cleanup from Otto42. fixes #4800
git-svn-id: http://svn.automattic.com/wordpress/trunk@5982 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-29 23:08:44 +00:00
ryan
560b73b9e3 mt_keywords support. Props westi and josephscott. fixes #900
git-svn-id: http://svn.automattic.com/wordpress/trunk@5981 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-29 23:01:48 +00:00
ryan
aac14d9531 Don't convert category to tag if tag of the same name already exists. fixes #4864
git-svn-id: http://svn.automattic.com/wordpress/trunk@5980 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-29 22:47:07 +00:00
ryan
395ee1acad Include tags in feeds. fixes #4537
git-svn-id: http://svn.automattic.com/wordpress/trunk@5979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-29 21:10:20 +00:00
markjaquith
816f89fb03 More cautious canonical-ness. Exclude IIS and POSTs. Better paging handling. Still a work in progress! see #4773
git-svn-id: http://svn.automattic.com/wordpress/trunk@5978 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-29 21:06:51 +00:00
ryan
440c4dedd6 Simple Tagging importer. Props bloertscher and joostdevalk. fixes #4247
git-svn-id: http://svn.automattic.com/wordpress/trunk@5977 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-29 19:55:39 +00:00
ryan
d330ec7e34 delete_post_meta_by_key() from Mark Jaquith. fixes #4178
git-svn-id: http://svn.automattic.com/wordpress/trunk@5976 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-29 19:12:20 +00:00
ryan
0f6dfb8b1f Remove hardcoded clean_url on comment_author_url since it is handled on the pre_comment_author_url filter. Props wnorris. fixes #4120
git-svn-id: http://svn.automattic.com/wordpress/trunk@5975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-29 19:04:14 +00:00
markjaquith
9e48d38752 Fix paging and preview links for canonical stuff. see #4773. fixes #4862
git-svn-id: http://svn.automattic.com/wordpress/trunk@5974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-29 18:10:11 +00:00
ryan
ef5caabe37 Limit recent entries query to published posts. fixes #4786
git-svn-id: http://svn.automattic.com/wordpress/trunk@5973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-29 18:02:19 +00:00
ryan
6a0629e717 Take port into consideration when spawning cron. Props bchecketts. fixes #4782
git-svn-id: http://svn.automattic.com/wordpress/trunk@5972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-29 17:57:06 +00:00
westi
ad90a8f560 CSS fix for IE7 so that the login button is in the box. Fixed #4828 props intoxination.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5971 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-29 17:39:41 +00:00
westi
51bde8f657 Remove dead code. Fixed #4791 props filosofo
git-svn-id: http://svn.automattic.com/wordpress/trunk@5970 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-29 17:36:46 +00:00
westi
5691b03700 Add utf8->ascii mappings for icelandic letters. Fixes #4739 props einare
git-svn-id: http://svn.automattic.com/wordpress/trunk@5969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-29 17:34:15 +00:00
westi
36ec45d7ff Fix xhtml output for RSS widget when feed contains no items. Fixed #4671 props brettz95 and Nazgul
git-svn-id: http://svn.automattic.com/wordpress/trunk@5968 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-29 17:28:07 +00:00
ryan
f78592cf01 Redirect back to post-new.php when doing a save and continue with empty post fields. fixes #4855
git-svn-id: http://svn.automattic.com/wordpress/trunk@5967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-29 17:24:42 +00:00
ryan
0cb5968afc Fix blogger auth. Props andy. fixes #4847
git-svn-id: http://svn.automattic.com/wordpress/trunk@5966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-28 23:31:51 +00:00
ryan
014915caea Make css cache busting and rtl inclusion uniform across admin. Props mdawaffe. fixes #4830
git-svn-id: http://svn.automattic.com/wordpress/trunk@5965 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-28 23:23:38 +00:00
ryan
c630733e1d Take post_max_size into account when determining the upload limit. Props mdawaffe. fixes #4240
git-svn-id: http://svn.automattic.com/wordpress/trunk@5964 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-28 23:13:16 +00:00
ryan
6050182157 Reorder post/page status dropdowns. Props mdawaffe. fixes #4848
git-svn-id: http://svn.automattic.com/wordpress/trunk@5963 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-28 21:04:17 +00:00
ryan
82705c845d Remove extraneous tag. Props nbachiyski. fixes #4838
git-svn-id: http://svn.automattic.com/wordpress/trunk@5962 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-28 20:25:57 +00:00
westi
67d21286a8 Ensure we flush the recent entries widget cache after a post has been deleted. Fixes #4825 props donncha
git-svn-id: http://svn.automattic.com/wordpress/trunk@5960 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-28 20:12:43 +00:00
westi
9b742b7959 Pass through the function argument so rules can actually be added to the top of the stack, props santos
git-svn-id: http://svn.automattic.com/wordpress/trunk@5959 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-28 19:55:11 +00:00
ryan
3fe16de587 explicitly check next() against FALSE in do_action_ref_array(). Props Denis-de-Bernardy, Otto42, Nazgul, santosj, DD32. fixes #4625 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@5958 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-28 19:06:56 +00:00
ryan
c0287d8f23 Update readme version to 2.3. Props Nazgul. fixes #4840
git-svn-id: http://svn.automattic.com/wordpress/trunk@5957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-28 19:01:20 +00:00
ryan
666bfd2d91 Don't return permalink for non-existent post. Props Viper007Bond. fixes #4834
git-svn-id: http://svn.automattic.com/wordpress/trunk@5956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-28 18:58:54 +00:00
ryan
5fc07fcd15 Gettext fixes from nbachiyski. fixes #4835
git-svn-id: http://svn.automattic.com/wordpress/trunk@5955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-28 18:57:55 +00:00
ryan
501833e41e beta1
git-svn-id: http://svn.automattic.com/wordpress/trunk@5954 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-28 00:18:36 +00:00
ryan
3d9dce3497 Update dotclear and textpattern importers to use taxonomy
git-svn-id: http://svn.automattic.com/wordpress/trunk@5953 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-28 00:08:58 +00:00
ryan
788512c881 Add clean_url filter. see #4570
git-svn-id: http://svn.automattic.com/wordpress/trunk@5952 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-27 23:31:09 +00:00
ryan
f8d09ad828 Bring in atomlib 0.4 and update wp-app to use it. Props eliast and placey. fixes #4191
git-svn-id: http://svn.automattic.com/wordpress/trunk@5951 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-27 19:52:58 +00:00
ryan
7aa077d6a0 Revert get_col behavior. Props mdawaffe. fixes #4826
git-svn-id: http://svn.automattic.com/wordpress/trunk@5950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-27 19:44:53 +00:00
matt
27f66be1cd Minor styling change for update notification.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-27 18:52:50 +00:00
ryan
5217cd1838 Trim before comparison. Props foolswisdom and Nazgul. fixes #4815
git-svn-id: http://svn.automattic.com/wordpress/trunk@5948 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-27 15:17:00 +00:00
matt
d9793c3e8d Make the entire comment flood check pluggable as it can cause load problems on large sites.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-27 06:34:18 +00:00
ryan
c89928a4c8 Escape parsed fields.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5946 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-26 22:13:54 +00:00
ryan
e80177b92b Display tag name, not slug, in title. Props ionfish. fixes #4812
git-svn-id: http://svn.automattic.com/wordpress/trunk@5945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-26 17:18:00 +00:00
ryan
86932908e3 Add missing global and remove unused var. Props JeremyVisser. fixes #4818
git-svn-id: http://svn.automattic.com/wordpress/trunk@5944 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-26 17:12:31 +00:00
ryan
62f60a666d Fix typo
git-svn-id: http://svn.automattic.com/wordpress/trunk@5943 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-25 18:41:12 +00:00
matt
77c64399d0 As the developer links are out of date and just used to attack us now, updating the blogroll to include links to WP resources.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5942 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-25 18:06:22 +00:00
ryan
a03073ef0a Add nonces to tag importers. Props xknown. fixes #4811
git-svn-id: http://svn.automattic.com/wordpress/trunk@5941 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-25 17:07:10 +00:00
ryan
a5fbb3f85f Fix blogroll upgrades from 2.0. fixes #4813
git-svn-id: http://svn.automattic.com/wordpress/trunk@5940 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-25 16:57:56 +00:00
ryan
4340c63de1 Update to jquery 1.1.4. Props mdawaffe. fixes #4810
git-svn-id: http://svn.automattic.com/wordpress/trunk@5939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-24 21:46:03 +00:00
ryan
51b6d6f6ea Don't pass cat as ref. Fix some term sanitization. fixes #4702
git-svn-id: http://svn.automattic.com/wordpress/trunk@5938 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-24 18:41:01 +00:00
ryan
ccdf20ef62 Update WP importer to use taxonomy and query cat based on slug. see #4613
git-svn-id: http://svn.automattic.com/wordpress/trunk@5937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-24 14:44:26 +00:00
ryan
c8723a4f3f Fix how wp_filter array is keyed. Props santosj/darkdragon. fixes #3875 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5936 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-24 14:18:08 +00:00
ryan
6db72e6e43 Allow plugins to register importers. Props westi and Nazgul. fixes #4614
git-svn-id: http://svn.automattic.com/wordpress/trunk@5935 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-23 23:09:03 +00:00
ryan
7c0ecf6202 jquery for widgets admin. Props filosofo. see #3824
git-svn-id: http://svn.automattic.com/wordpress/trunk@5934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-23 22:34:15 +00:00
ryan
f3ed626d52 eol-style
git-svn-id: http://svn.automattic.com/wordpress/trunk@5933 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-23 22:19:53 +00:00
westi
fcd0a36f09 Enable plugins to override the cockney replace array, fixes #4804 props andihit
git-svn-id: http://svn.automattic.com/wordpress/trunk@5930 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-23 21:02:31 +00:00
westi
31992bac0d Allow upload of all Open Office document types props nbachiyski fixes #4615
git-svn-id: http://svn.automattic.com/wordpress/trunk@5929 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-23 18:28:14 +00:00
westi
8047b60291 Give the view links in post/page listings the view class rather than the edit class, fixes #4058 props rgovostes
git-svn-id: http://svn.automattic.com/wordpress/trunk@5927 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-23 18:04:15 +00:00
ryan
ac46bc16c7 Don't allow private query vars in url_to_postid
git-svn-id: http://svn.automattic.com/wordpress/trunk@5925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-23 16:09:37 +00:00
westi
07ff444b6f Fix plugin basename for Windows servers. Fixes #3002 props Ozh
git-svn-id: http://svn.automattic.com/wordpress/trunk@5924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-23 16:07:21 +00:00
ryan
c6d79a79b0 Don't die with type
git-svn-id: http://svn.automattic.com/wordpress/trunk@5923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-23 15:53:25 +00:00
markjaquith
68501fd51b No canonical-ness for wp-admin. see #4773
git-svn-id: http://svn.automattic.com/wordpress/trunk@5921 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-23 03:40:51 +00:00
ryan
276b690c7e Add cat-item-id and page-item-id classes. Props Otto42. fixes #4703
git-svn-id: http://svn.automattic.com/wordpress/trunk@5920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-22 22:59:45 +00:00
ryan
f65528ed41 Fix get_post_comments_feed_link() to work with pages. fixes #4637
git-svn-id: http://svn.automattic.com/wordpress/trunk@5919 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-22 22:42:57 +00:00
ryan
200f0b020f Add get_lastpostdate and 'get_lastpostdatemodified filters. Props rob1n. fixes #4801
git-svn-id: http://svn.automattic.com/wordpress/trunk@5918 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-22 22:30:06 +00:00
ryan
02df4f722c Add class to tag cloud links. Props filosofo. fixes #4798
git-svn-id: http://svn.automattic.com/wordpress/trunk@5917 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-22 22:28:00 +00:00
ryan
cbad9a2993 posts_results and posts_selection hooks. fixes #4799
git-svn-id: http://svn.automattic.com/wordpress/trunk@5916 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-22 18:03:26 +00:00
ryan
1a2aa3fcc3 Sanitize a few options
git-svn-id: http://svn.automattic.com/wordpress/trunk@5914 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-22 17:57:36 +00:00
matt
27657cd8cf First pass plugin update notification, see #4795
git-svn-id: http://svn.automattic.com/wordpress/trunk@5913 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-22 10:48:48 +00:00
ryan
851ce58496 Some tag api additions from andy.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5912 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-21 18:39:45 +00:00
ryan
763f8b8821 commentsrss2_head action from joostdevalk. fixes #4694
git-svn-id: http://svn.automattic.com/wordpress/trunk@5911 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-21 18:32:39 +00:00
ryan
9b395107f4 Deprecate permalink_single_rss(). Add the_permalink_rss() with accompanying filter. Props joostdevalk and Otto42. fixes #4654
git-svn-id: http://svn.automattic.com/wordpress/trunk@5910 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-21 18:27:45 +00:00
ryan
d3754cc69b i18n fix from momo360modena and nbachiyski. fixes #4523
git-svn-id: http://svn.automattic.com/wordpress/trunk@5909 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-21 00:35:55 +00:00
ryan
eb30d086be Really make slugs unique during upgrade. fixes #4776
git-svn-id: http://svn.automattic.com/wordpress/trunk@5908 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-21 00:11:46 +00:00
ryan
567bc9d3f1 wp_reset_query() from mdawaffe. fixes #4741
git-svn-id: http://svn.automattic.com/wordpress/trunk@5907 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-20 22:55:43 +00:00
ryan
ba0f401390 bookmark sanitizer funcs and default filter cleanup. see #4546
git-svn-id: http://svn.automattic.com/wordpress/trunk@5906 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-20 22:50:04 +00:00
matt
7bacf89b7e Better styling for update notice, fixes #1476
git-svn-id: http://svn.automattic.com/wordpress/trunk@5904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-20 07:01:15 +00:00
matt
f273f7a17b Change IPs to link to local search instead of cryptic ARIN info
git-svn-id: http://svn.automattic.com/wordpress/trunk@5903 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-20 07:00:29 +00:00
ryan
645bbfa324 Formatting cleanups from johnjosephbachir. fixes #4775
git-svn-id: http://svn.automattic.com/wordpress/trunk@5901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-19 22:25:44 +00:00
matt
04558f4424 Don't run if installing, fixes $4772
git-svn-id: http://svn.automattic.com/wordpress/trunk@5900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-19 04:27:04 +00:00
ryan
b4cd7ba224 Add back compat to get_the_category. Props nbachiyski. fixes #4771
git-svn-id: http://svn.automattic.com/wordpress/trunk@5899 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-18 17:21:51 +00:00
ryan
4f183b4fe7 mt_allow_pings fix. Props Joseph Scott and Allan Odgaard. fixes #4770 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5898 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-17 23:32:49 +00:00
ryan
8d75bcef27 Revert accidental commit.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5897 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-17 21:23:39 +00:00
ryan
0458d919c0 First cut of taxonomy API phpdoc from darkdragon. see #4742
git-svn-id: http://svn.automattic.com/wordpress/trunk@5896 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-17 21:22:37 +00:00
matt
be96bdbdaa Missing image from earlier commit.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5895 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-17 13:34:26 +00:00
matt
096bece621 Switch to init action. Hat tip: westi. See #1476
git-svn-id: http://svn.automattic.com/wordpress/trunk@5894 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-17 13:28:45 +00:00
matt
242e21e732 Switch incoming links to use Google, fixes #4577
git-svn-id: http://svn.automattic.com/wordpress/trunk@5893 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-17 11:08:00 +00:00
matt
7c2dbb9cb1 First pass at upgrade notification for core, see #1476. Also includes some minor footer styling changes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5892 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-17 10:33:52 +00:00
markjaquith
410a3c5762 Oops... forgot the svn add. Thanks mdawaffe. see #4554
git-svn-id: http://svn.automattic.com/wordpress/trunk@5891 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-17 03:45:59 +00:00
markjaquith
6fc031de6b Canonical URLs, first swing. Props to Scott Yang, Ryan and Matt. see #4554 (and report bugs there, for now)
git-svn-id: http://svn.automattic.com/wordpress/trunk@5890 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-17 03:35:15 +00:00
markjaquith
54639a391b Set REQUEST_URI for IIS in more situations. props snakefoot. fixes #3514
git-svn-id: http://svn.automattic.com/wordpress/trunk@5889 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-17 03:32:19 +00:00
markjaquith
d55ac9708c Send dateCreated as local blog time, add date_created_gmt with GMT value. Props josephscott. fixes #4624. refs #4158, #4314
git-svn-id: http://svn.automattic.com/wordpress/trunk@5888 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-17 03:18:58 +00:00
markjaquith
e9c8915627 correct logic grouping when reading importers. fixes #4763
git-svn-id: http://svn.automattic.com/wordpress/trunk@5887 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-17 01:59:37 +00:00
ryan
84f43891f6 Don't trim option arrays on save. Props m0n5t3r, Nazgul. fixes #4571
git-svn-id: http://svn.automattic.com/wordpress/trunk@5886 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-16 19:55:19 +00:00
ryan
948284b296 Don't update comments feed last-modified header for unapproved comments. Props James Ballantine and Nazgul. fixes #4618 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5885 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-16 19:26:01 +00:00
ryan
96aba6a4c7 RTL CSS fixes from sewar. fixes #4655
git-svn-id: http://svn.automattic.com/wordpress/trunk@5884 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-16 18:49:32 +00:00
ryan
08e94676ef Add id to viewsite span. Props JeremyVisser. fixes #4666
git-svn-id: http://svn.automattic.com/wordpress/trunk@5883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-16 18:46:50 +00:00
ryan
19f1e721bb Use dc:creator instead of author for rss2 comment feeds. Props lexhair, Otto42. fixes #4704 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5881 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-16 18:34:57 +00:00
ryan
4ae69ee6a8 Advanced Toolbar shortcut hint fix from leonid. fixes #4707
git-svn-id: http://svn.automattic.com/wordpress/trunk@5880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-16 18:17:54 +00:00
ryan
aa1b4e8968 Set instead of add since the cache value has multiple keys that can change. Props josephscott. fixes #4743
git-svn-id: http://svn.automattic.com/wordpress/trunk@5879 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-16 18:12:12 +00:00
ryan
5e34cab763 Fix css path for readme.html. Props Stevie212, JeremyVisser. fixes #4751
git-svn-id: http://svn.automattic.com/wordpress/trunk@5878 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-16 18:09:30 +00:00
ryan
f478ddaa36 Pass args as array instead of query string.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5876 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-16 18:00:47 +00:00
ryan
eb3e9e6dc7 Display error message when attempting to edit post or page IDs that do not exist. Props Viper007Bond. fixes #4737
git-svn-id: http://svn.automattic.com/wordpress/trunk@5875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-15 22:31:19 +00:00
ryan
4ab52670e9 Remove extra paren. Props tmountjr. fixes #4752
git-svn-id: http://svn.automattic.com/wordpress/trunk@5874 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-15 22:26:54 +00:00
ryan
ff20fd6c17 Category union and intersection query vars. fixes #4750
git-svn-id: http://svn.automattic.com/wordpress/trunk@5873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-15 22:08:51 +00:00
ryan
8b205f4e87 Typo fix
git-svn-id: http://svn.automattic.com/wordpress/trunk@5872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-15 21:54:02 +00:00
ryan
951a41ad1e get_the_tag_list from andy. fixes #4733
git-svn-id: http://svn.automattic.com/wordpress/trunk@5871 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-14 03:44:49 +00:00
ryan
13b23aa20a Space before slash to properly close br tag. Props tmountjr. fixes #4717
git-svn-id: http://svn.automattic.com/wordpress/trunk@5870 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-14 03:12:24 +00:00
ryan
ddc05f60ea wp_update_comment_count hook from mdawaffe. fixes #4740
git-svn-id: http://svn.automattic.com/wordpress/trunk@5869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-14 03:08:44 +00:00
ryan
2ae70d7c72 Update in_category() to use object term cache API. Props technosailor. fixes #4442
git-svn-id: http://svn.automattic.com/wordpress/trunk@5868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-14 03:01:26 +00:00
ryan
dc1c54a35c Use opendir instead of dir. Props nbachiyski. fixes #4450
git-svn-id: http://svn.automattic.com/wordpress/trunk@5867 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-14 02:58:33 +00:00
ryan
638d5e6e39 wp_update_term_count fixes from cavemonkey50. fixes #4500
git-svn-id: http://svn.automattic.com/wordpress/trunk@5866 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-14 02:54:02 +00:00
ryan
7c1ce10fae sanitize the value, not the field. Props cavemonkey50. fixes #4651
git-svn-id: http://svn.automattic.com/wordpress/trunk@5865 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-14 02:46:06 +00:00
ryan
74fcc19b8e RTL fixes from mani_monaj. fixes #4730
git-svn-id: http://svn.automattic.com/wordpress/trunk@5863 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-13 15:36:26 +00:00
matt
98a674b2e9 A quick hook when an export is done
git-svn-id: http://svn.automattic.com/wordpress/trunk@5862 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-11 01:31:10 +00:00
matt
c13a667443 A more elegant way of doing get_col.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-10 19:30:24 +00:00
markjaquith
5b82b1c426 Prevent get_col() from returning an array of NULLs. see #4725
git-svn-id: http://svn.automattic.com/wordpress/trunk@5860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-10 18:08:04 +00:00
markjaquith
676ea2ea3c globalize wp_version so Magpie can use it. props Nazgul, hakre. fixes #3996
git-svn-id: http://svn.automattic.com/wordpress/trunk@5859 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-10 08:07:53 +00:00
matt
0311e61389 If you don't have anything nice to say, don't say anything at all. (And certainly don't return the results of a previous query to an empty query.)
git-svn-id: http://svn.automattic.com/wordpress/trunk@5858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-10 01:33:56 +00:00
markjaquith
b64ce2d0f0 explicitly check next() against FALSE when iterating through filters. Props Denis-de-Bernardy, Otto42, Nazgul, santosj (go team effort!). fixes #4625 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@5857 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-08 17:41:46 +00:00
markjaquith
48b20cf17d Specify our serif fonts for h2s. Props JeremyVisser. fixes #4713
git-svn-id: http://svn.automattic.com/wordpress/trunk@5856 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-08 12:08:28 +00:00
markjaquith
2af150e496 Avoid running get_posts filter twice. Props DD32. fixes #4712
git-svn-id: http://svn.automattic.com/wordpress/trunk@5855 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-08 04:24:44 +00:00
markjaquith
773e23d2e6 Don't tell users they have to update their .htaccess unless we're actually giving them something with which to update it. fixes #4706
git-svn-id: http://svn.automattic.com/wordpress/trunk@5854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-08 04:10:20 +00:00
markjaquith
5c83a39e33 Clear old future post cron entry before creating the authoritative one. Props Barry. fixes #4710
git-svn-id: http://svn.automattic.com/wordpress/trunk@5853 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-08 04:08:06 +00:00
markjaquith
44df30f2d6 Fix class-smtp.php typo. Props Nazgul, tension7. fixes #4700
git-svn-id: http://svn.automattic.com/wordpress/trunk@5852 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-05 18:13:24 +00:00
markjaquith
fa0dc110d9 Allow for hour/minute/second values in the QS that evaluate as false (like 0). Props Otto42 and agharbeia. fixes #4499
git-svn-id: http://svn.automattic.com/wordpress/trunk@5848 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-04 16:30:27 +00:00
matt
763b0b689e If no user ID for whatever reason, bail early.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5847 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-04 03:58:42 +00:00
markjaquith
9e21fb42fc function_exists() wrapper around fetch_rss() to allow for plugin replacement. Props Otto42. see #4547
git-svn-id: http://svn.automattic.com/wordpress/trunk@5845 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-03 01:39:36 +00:00
markjaquith
25abcd1338 More streamlined install process. Obeys WP_SITEURL if defined. fixes #4687 (props JeremyVisser, Nazgul), see #4685
git-svn-id: http://svn.automattic.com/wordpress/trunk@5844 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-03 01:08:59 +00:00
markjaquith
5897a90fd7 Consistently include wp-config.php. fixes #3349
git-svn-id: http://svn.automattic.com/wordpress/trunk@5843 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-03 00:45:06 +00:00
markjaquith
3ba71111de Allow pre_option_ filters to return values that evaluate as false. fixes #4695
git-svn-id: http://svn.automattic.com/wordpress/trunk@5842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-02 22:51:42 +00:00
markjaquith
f359dab72e More upload escaping. Props Brian Layman. fixes #4689 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@5837 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-01 20:58:19 +00:00
matt
f526180278 Absolute numbers where we will never allow negatives, fixes #4692
git-svn-id: http://svn.automattic.com/wordpress/trunk@5836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-01 19:41:44 +00:00
matt
0c1b4f93ca Sanitize cat_id, fixes #4691
git-svn-id: http://svn.automattic.com/wordpress/trunk@5835 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-01 19:40:30 +00:00
markjaquith
f28dad8261 Sanitize option names in option.php, use current escaping functions. for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@5832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-01 19:24:51 +00:00
markjaquith
ad81604c8c add_option()/update_option() should pass the option name to get_option() pre-escaped. fixes #4690 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@5829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-01 19:14:10 +00:00
markjaquith
e9b0e8284b attribute_escape() in upload form action. Props Nazgul. fixes #4689 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@5827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-01 17:20:01 +00:00
markjaquith
5a833d50ef Ending DIV was missing in edit-link-form.php. Props idle and Nazgul. fixes #4688
git-svn-id: http://svn.automattic.com/wordpress/trunk@5826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-01 16:14:46 +00:00
markjaquith
8c454d7909 Favor the term "blog" instead of "weblog." Props foolswisdom and Nazgul. fixes #4674
git-svn-id: http://svn.automattic.com/wordpress/trunk@5825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-30 16:32:12 +00:00
markjaquith
e06883dfcc Use "home," not "siteurl" for widget dropdown category URLs. Props Pastinakel. fixes #4683 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@5823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-30 16:23:04 +00:00
matt
51ce46e892 Shows pending moderation comments in title and bold comment numbers with comments that need attention.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-29 19:56:55 +00:00
markjaquith
764f50bd3d ABSPATH already has a trailing slash. Props Nazgul. fixes #4607
git-svn-id: http://svn.automattic.com/wordpress/trunk@5820 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-27 21:28:01 +00:00
ryan
343cbb9421 Set eol style
git-svn-id: http://svn.automattic.com/wordpress/trunk@5819 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-25 16:58:01 +00:00
ryan
f2223e6dc5 In your cats, making them back compat.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5818 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-25 03:04:46 +00:00
ryan
401f581879 Don't forget to filter post_category
git-svn-id: http://svn.automattic.com/wordpress/trunk@5817 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-24 22:29:41 +00:00
ryan
b01cbf1b76 fix FF bug in write screen: post status change on reload. Props mdawaffe. fixes #4664
git-svn-id: http://svn.automattic.com/wordpress/trunk@5816 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-24 21:40:58 +00:00
ryan
00ac511053 Recalculate counts
git-svn-id: http://svn.automattic.com/wordpress/trunk@5815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-21 21:52:35 +00:00
ryan
a7720182d1 First attempt at upgrading old releases that used the linkcategories table to taxonomy. Needs testing.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5814 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-21 20:53:19 +00:00
ryan
451ec5e6ec RTL styling from sewar. fixes #4653
git-svn-id: http://svn.automattic.com/wordpress/trunk@5813 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-21 18:55:36 +00:00
ryan
5f26b1b415 RTL styling from sewar. fixes #4653
git-svn-id: http://svn.automattic.com/wordpress/trunk@5812 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-21 18:55:11 +00:00
ryan
491ee1a1aa add title filter outside of the loop. Do we even need it?
git-svn-id: http://svn.automattic.com/wordpress/trunk@5811 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-21 00:05:28 +00:00
westi
75a3af7d17 Only enable gzip compression if it is not enabled in php.ini. Fixes #4426
git-svn-id: http://svn.automattic.com/wordpress/trunk@5810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-18 21:12:22 +00:00
westi
c510f1060d Update .htaccess file when rewrite rules are deleted if it exists.
Fixes #4018


git-svn-id: http://svn.automattic.com/wordpress/trunk@5809 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-18 20:46:54 +00:00
ryan
e7d71efdd9 Revert jcalendar date picker experiment. Save it for another day. fixes #4641
git-svn-id: http://svn.automattic.com/wordpress/trunk@5808 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-17 19:26:03 +00:00
ryan
7217266ca3 AND get_terms() field queries
git-svn-id: http://svn.automattic.com/wordpress/trunk@5807 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-17 02:02:52 +00:00
ryan
460ddd3a1d Eliminate post_pingback stuff since we always use default_pingback_flag. fixes pingback problems caused by [5797] for #4620
git-svn-id: http://svn.automattic.com/wordpress/trunk@5806 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-16 23:11:51 +00:00
ryan
db54c8c57d Make balanceTags() option independent. Props mdawaffe. fixes #4626
git-svn-id: http://svn.automattic.com/wordpress/trunk@5805 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-16 19:23:41 +00:00
ryan
714f8edd6c jquery data selector for post timestamps. Props tellyworth. fixes #4641
git-svn-id: http://svn.automattic.com/wordpress/trunk@5804 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-16 19:22:27 +00:00
ryan
05c0d6840b Return hook as null instead of empty string. Props DD32. fixes #4639
git-svn-id: http://svn.automattic.com/wordpress/trunk@5803 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-15 17:59:05 +00:00
ryan
b6978b2123 Don't slurp in entire file. Props tellyworth. see #4421
git-svn-id: http://svn.automattic.com/wordpress/trunk@5802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-15 17:55:12 +00:00
ryan
d8d651221c Show upload file size in upload browser. Props tellyworth. fixes #4561
git-svn-id: http://svn.automattic.com/wordpress/trunk@5801 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-15 17:52:50 +00:00
ryan
17a5de92fe Password reset usability improvements from tellyworth. fixes #4527
git-svn-id: http://svn.automattic.com/wordpress/trunk@5800 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-15 17:50:38 +00:00
ryan
22c16718c5 Add classes that indicate post status and author ownership. Props tellyworth. fixes #4628
git-svn-id: http://svn.automattic.com/wordpress/trunk@5799 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-15 17:48:01 +00:00
ryan
c140ccb72d Fix variable name. Props bgracewood. fixes #4621
git-svn-id: http://svn.automattic.com/wordpress/trunk@5797 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-12 16:00:51 +00:00
ryan
ebf520f0d7 Post filter rework. see #4546
git-svn-id: http://svn.automattic.com/wordpress/trunk@5796 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-11 19:57:43 +00:00
matt
9813daa487 Make this more specific so it can be more easily overridden with CSS.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5795 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-10 04:38:27 +00:00
ryan
b4557ec25b Don't load all includes by default. We have our own script loader. fixes #4512
git-svn-id: http://svn.automattic.com/wordpress/trunk@5794 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-09 21:22:38 +00:00
ryan
6eb4acd7fd Bump scriptaculous ver in script loader. fixes #4512
git-svn-id: http://svn.automattic.com/wordpress/trunk@5793 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-09 20:20:34 +00:00
ryan
e47dfd7529 Update to scriptaculous 1.7.1_beta3. Props Nazgul. fixes #4512
git-svn-id: http://svn.automattic.com/wordpress/trunk@5792 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-09 20:14:28 +00:00
markjaquith
76ed1bdad8 Undo pre-doublequoting in prepare(). Props JeremyVisser. see #4553
git-svn-id: http://svn.automattic.com/wordpress/trunk@5791 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-09 17:55:32 +00:00
ryan
97daaa0d03 Update jquery to 1.1.3.1. Fixes http://bugs.kde.org/show_bug.cgi?id=147661
git-svn-id: http://svn.automattic.com/wordpress/trunk@5790 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-08 21:10:14 +00:00
markjaquith
9b0c0d56db Properly unset notoptions cache in add_option() so that get_option() and update_option() work on the same load. fixes #4429 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@5788 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-07 04:06:29 +00:00
markjaquith
b721942f26 Pass extra args to pre_kses hook. Props mdawaffe. see #4409
git-svn-id: http://svn.automattic.com/wordpress/trunk@5787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-06 22:47:24 +00:00
ryan
d5842abd35 don't show Publish button when editing a future post. Props tellyworth.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5786 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-06 21:04:37 +00:00
ryan
4ba5f806d7 Reduce export mem usage. Props tellyworth. fixes #4589
git-svn-id: http://svn.automattic.com/wordpress/trunk@5785 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-06 20:57:28 +00:00
ryan
fd4c86f9a4 Resurrect noquery
git-svn-id: http://svn.automattic.com/wordpress/trunk@5784 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-06 20:45:46 +00:00
markjaquith
2304077c2b Entitize lone less-than characters. Props mdawaffe. fixes #4409
git-svn-id: http://svn.automattic.com/wordpress/trunk@5783 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-06 12:53:15 +00:00
ryan
821cf4b63f suggestCategories cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@5782 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-06 00:15:13 +00:00
ryan
0d05f746cf Don't richedit for comments. Props Joseph Scott. fixes #4587 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-05 20:11:32 +00:00
markjaquith
45db1a512a Automatically quote strings in $wpdb->prepare(). Use vsprintf(). see #4553
git-svn-id: http://svn.automattic.com/wordpress/trunk@5779 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-05 17:32:46 +00:00
markjaquith
fbdfcce157 Introducing "prepare", a WPDB method for sprintf()-prepared SQL statements. see #4553. Implementation details to follow.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5778 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-04 16:18:57 +00:00
markjaquith
c671554b03 Update wp-comments-post.php to WP coding conventions. props JeremyVisser. fixes #4573
git-svn-id: http://svn.automattic.com/wordpress/trunk@5777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-04 16:12:37 +00:00
markjaquith
6e0ef646b7 Make it possible for a plugin to replace the feed-parsing engine. see: #4547
git-svn-id: http://svn.automattic.com/wordpress/trunk@5776 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-03 18:10:20 +00:00
matt
d31029a026 Upgrade to jQuery 1.1.3, fixes #4576
git-svn-id: http://svn.automattic.com/wordpress/trunk@5775 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-02 23:57:52 +00:00
ryan
46110c7774 Delete term relationship only for the given object.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-02 15:47:27 +00:00
markjaquith
aec08dedad Use doublequotes so line break works. Props Lloyd. fixes #4557
git-svn-id: http://svn.automattic.com/wordpress/trunk@5773 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-28 23:08:23 +00:00
markjaquith
a2f7332558 Mark pingback as already pinged when the target site says it already got the pingback. props mdawaffe. fixes #4289
git-svn-id: http://svn.automattic.com/wordpress/trunk@5772 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-27 23:28:36 +00:00
markjaquith
83d0dab731 Correct grammatical error (comment splice). Props filosofo. fixes #4551
git-svn-id: http://svn.automattic.com/wordpress/trunk@5771 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-27 23:25:49 +00:00
ryan
c1adb3c7ad Allow rules to be added to the top of the rule stack.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-27 21:39:50 +00:00
markjaquith
0e2d9ff004 Fix typo in get_the_author_url(). props pgdx. fixes #4542
git-svn-id: http://svn.automattic.com/wordpress/trunk@5767 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-27 00:51:04 +00:00
markjaquith
4e9c69747b Check post type after upload. Props Alexander Concha
git-svn-id: http://svn.automattic.com/wordpress/trunk@5765 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-26 20:45:30 +00:00
markjaquith
64ef1ed841 Correctly grab Content-Type from old-school headers, skip blank headers. fixes #4296
git-svn-id: http://svn.automattic.com/wordpress/trunk@5764 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-26 20:18:56 +00:00
markjaquith
9a91481a2b Don't add MIME-Version header twice (PHPMailer already adds it). see #4296
git-svn-id: http://svn.automattic.com/wordpress/trunk@5763 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-26 19:11:23 +00:00
markjaquith
d9d5fde1e7 compare mail headers case-insensitively and actually use the Content-Type specified. Props Nazgul. see: #4296
git-svn-id: http://svn.automattic.com/wordpress/trunk@5762 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-26 18:28:56 +00:00
markjaquith
829ace3e68 strpos() is "haystack,needle", not "needle,haystack" Props pishmishy. fixes #4520
git-svn-id: http://svn.automattic.com/wordpress/trunk@5761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-26 18:06:17 +00:00
ryan
1d13d95eeb s/cat_name/name/
git-svn-id: http://svn.automattic.com/wordpress/trunk@5760 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-25 21:39:17 +00:00
ryan
3dc720588b Change cat_name, cat_ID to name, term_id.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5759 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-25 21:37:47 +00:00
ryan
5ebed51846 Eliminate cat select. Use API.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5758 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-25 21:34:06 +00:00
markjaquith
b1a12f6718 get_comment_to_edit() should return false when the comment does not exist or is marked as spam. props Westi. fixes #4533.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5757 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-25 21:30:18 +00:00
ryan
267997a4fd Add name_like query to get_terms(). Use it in suggestCategories.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5756 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-25 21:28:19 +00:00
ryan
0e7483cc5a s/cat_name/name/ see #4537
git-svn-id: http://svn.automattic.com/wordpress/trunk@5755 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-25 20:06:02 +00:00
ryan
a5e56dc9db s/cat_name/name/ see #4537
git-svn-id: http://svn.automattic.com/wordpress/trunk@5754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-25 19:51:26 +00:00
markjaquith
2fd0094ce3 Display fatal errors that prevent plugins from being activated. fixes #4508
git-svn-id: http://svn.automattic.com/wordpress/trunk@5753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-25 18:57:54 +00:00
ryan
ed549303d7 Move the_title filter to get_the_title. Props jhodgdon. fixes #4477
git-svn-id: http://svn.automattic.com/wordpress/trunk@5752 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-25 17:48:35 +00:00
markjaquith
1111b0c5fe Ordering and labeling niceties for the Manage > Posts screen. see #4446
git-svn-id: http://svn.automattic.com/wordpress/trunk@5751 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-24 06:25:49 +00:00
markjaquith
d50996b941 Order pending posts nag by post_modified ASC, drafts by post_modified DESC
git-svn-id: http://svn.automattic.com/wordpress/trunk@5750 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-24 05:58:38 +00:00
markjaquith
a05fcdcf23 Change to "and x more" for nags. see #4446
git-svn-id: http://svn.automattic.com/wordpress/trunk@5749 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-24 05:46:08 +00:00
markjaquith
3f154010f3 Only hide comments column for pending, future, and draft posts. see #4446
git-svn-id: http://svn.automattic.com/wordpress/trunk@5748 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-24 05:05:22 +00:00
markjaquith
ad9271f86f Don't init widgets if the blog isn't installed yet. fixes #4504
git-svn-id: http://svn.automattic.com/wordpress/trunk@5747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-23 05:32:16 +00:00
markjaquith
bf8b03a928 Matt requested that I revert this ([5742]). see #4254 for discussion
git-svn-id: http://svn.automattic.com/wordpress/trunk@5744 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-22 01:29:57 +00:00
markjaquith
eefdd4cef7 Upgrade to Prototype 1.5.1.1 (bugfix release). Props Nazgul. fixes #4502
git-svn-id: http://svn.automattic.com/wordpress/trunk@5743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-21 22:01:21 +00:00
markjaquith
37dbcc2a80 BrowseHappy is outdated. fixes #4254
git-svn-id: http://svn.automattic.com/wordpress/trunk@5742 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-21 21:53:41 +00:00
ryan
74bc9bb8a6 Term count fixes
git-svn-id: http://svn.automattic.com/wordpress/trunk@5741 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-21 15:46:49 +00:00
ryan
21e8f43f8c Don't create '0' categories. fixes #4413
git-svn-id: http://svn.automattic.com/wordpress/trunk@5739 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-20 22:06:29 +00:00
ryan
9d84bef608 js_escape improvements from Alexander Concha. Catches &#39 &#039 &#39; &#039; &#x27; &#X000027; &#x000027 etc.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5734 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-19 22:46:55 +00:00
ryan
fd5da3a85e Protect _wp_page_template too.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-19 22:42:25 +00:00
ryan
7ffc5ee8b0 Accept 'open' and 'closed' as valid values for mt_allow_comments and mt_allow_pings in XML-RPC. Props Joseph Scott. see #4469
git-svn-id: http://svn.automattic.com/wordpress/trunk@5729 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-19 19:12:24 +00:00
rob1n
7b09e504e7 Change references of get_object_terms() to wp_get_object_terms(). fixes #4490
git-svn-id: http://svn.automattic.com/wordpress/trunk@5728 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-19 18:03:12 +00:00
rob1n
0eb86404da Fix up wp_list_authors() SQL. fixes #4485
git-svn-id: http://svn.automattic.com/wordpress/trunk@5727 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-19 17:57:53 +00:00
ryan
e2dc2a8dd3 Add some taxonomy validation. Rearrange funcs.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-19 00:33:44 +00:00
ryan
e8dc080307 Prevent editing of protected meta keys.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-18 16:28:11 +00:00
ryan
c09f6ffbdb escape before extracting. Props Alexander Concha.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-18 00:18:18 +00:00
rob1n
3ca7762517 Add missing </em>. Props johnbillion. fixes #4479
git-svn-id: http://svn.automattic.com/wordpress/trunk@5720 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-16 17:52:08 +00:00
ryan
9fbb55032a Regex fix. Props tellyworth. fixes #4452
git-svn-id: http://svn.automattic.com/wordpress/trunk@5718 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-16 02:09:08 +00:00
ryan
e30a9ba012 Upgrade code for multiple category widgets. Props Andy. see #4285
git-svn-id: http://svn.automattic.com/wordpress/trunk@5717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-16 02:03:25 +00:00
ryan
64d3a54b85 Don't use permalinks for pending posts. see #4446
git-svn-id: http://svn.automattic.com/wordpress/trunk@5716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-15 22:11:01 +00:00
rob1n
404e50bfb3 Show the name, not the slug. fixes #4473
git-svn-id: http://svn.automattic.com/wordpress/trunk@5715 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-15 18:26:43 +00:00
ryan
e7890261e5 EXTR_SKIP. See #4468
git-svn-id: http://svn.automattic.com/wordpress/trunk@5712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-15 17:30:37 +00:00
ryan
2ea53cf51a Use CDATA escaping on fields. Props tellyworth. fixes #4452
git-svn-id: http://svn.automattic.com/wordpress/trunk@5711 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-15 17:22:38 +00:00
rob1n
560d294867 Fix reference to ocomment.php. Props alanjcastonguay and Lloyd. fixes #4471
git-svn-id: http://svn.automattic.com/wordpress/trunk@5710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-15 16:54:17 +00:00
ryan
aac03a2066 wp_parse_str() from mdawaffe. see #4467
git-svn-id: http://svn.automattic.com/wordpress/trunk@5709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-14 22:46:59 +00:00
ryan
9d3d20f063 Use EXTR_SKIP when extracting. see #4468
git-svn-id: http://svn.automattic.com/wordpress/trunk@5708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-14 22:45:40 +00:00
markjaquith
7f44512c5d Introducing post_status="pending". see #4446 and put any initial bug reports on that ticket
git-svn-id: http://svn.automattic.com/wordpress/trunk@5707 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-14 16:24:28 +00:00
markjaquith
e211aa64e7 use FALSE to designate lack of user-supplied URL in *_query_arg() funcs. fixes #4465 for 2.3 (trunk)
git-svn-id: http://svn.automattic.com/wordpress/trunk@5705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-14 05:12:22 +00:00
markjaquith
99f0971b73 only strip question marks from the RIGHT side of the query string. fixes #4464 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@5704 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-14 04:44:06 +00:00
rob1n
9fac8dcbae Use display_name instead. Props Pal Gronas Drange. fixes #4459
git-svn-id: http://svn.automattic.com/wordpress/trunk@5701 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-14 02:30:26 +00:00
ryan
2f09416258 Trim empty lines. Nothing but newline.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-14 02:25:30 +00:00
ryan
72c169c2f1 Don't output author uri tag if uri is empty.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-13 18:03:17 +00:00
rob1n
cbdc90759c wp_rss() updates. fixes #3834
git-svn-id: http://svn.automattic.com/wordpress/trunk@5698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-13 17:23:38 +00:00
rob1n
a14a68b216 Translate some strings in the classic theme that were missed. Props nbachiyski. fixes #4451
git-svn-id: http://svn.automattic.com/wordpress/trunk@5697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-13 16:41:21 +00:00
rob1n
ab2e725577 Translate the rest of the &raquo;'s. Props nbachiyski. fixes #3401
git-svn-id: http://svn.automattic.com/wordpress/trunk@5696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-13 16:29:55 +00:00
markjaquith
8187ddb3d7 correct CSS link for install. Props Viper007Bond. fixes #4443
git-svn-id: http://svn.automattic.com/wordpress/trunk@5694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-13 06:33:17 +00:00
matt
81dd1f1737 Update in_category to use the new object_term_cache, it wasn't so much with the working before.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5693 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-13 00:16:33 +00:00
markjaquith
6dca00cae6 Correct SQL query in [5691]. fixes #2316
git-svn-id: http://svn.automattic.com/wordpress/trunk@5692 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-12 23:44:45 +00:00
markjaquith
f1fa801385 Omit underscore-prefixed meta keys from dropdown list. fixes #2316
git-svn-id: http://svn.automattic.com/wordpress/trunk@5691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-12 23:22:38 +00:00
rob1n
d4f95b7fd4 Accidental commit. Props Nazgul. fixes #4437
git-svn-id: http://svn.automattic.com/wordpress/trunk@5690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-12 21:59:22 +00:00
rob1n
845ae5609d Add ID's to profile edit form's fieldsets. fixes #4434
git-svn-id: http://svn.automattic.com/wordpress/trunk@5689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-12 21:52:50 +00:00
rob1n
e3328ca20b Don't include HTML in gettext call. Props nbachiyski and Nazgul. fixes #4437
git-svn-id: http://svn.automattic.com/wordpress/trunk@5688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-12 21:48:55 +00:00
ryan
b26a66ced0 Fix image path
git-svn-id: http://svn.automattic.com/wordpress/trunk@5687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-12 21:47:12 +00:00
markjaquith
6d5da3e33c Force $autoload to be either "yes" or "no". see #4440. props Nazgul
git-svn-id: http://svn.automattic.com/wordpress/trunk@5686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-12 20:57:58 +00:00
markjaquith
cf2b700d93 Make sure post titles longer than 200 chars get unique slugs. fixes #4433. props AaronCampbell.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5685 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-12 20:49:40 +00:00
ryan
56272d8507 MT importer rework. see #4421
git-svn-id: http://svn.automattic.com/wordpress/trunk@5684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-12 19:49:30 +00:00
ryan
21dff0640c Add a prophylactic sanitize_user()
git-svn-id: http://svn.automattic.com/wordpress/trunk@5683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-12 18:11:06 +00:00
ryan
66e6a55c7e escapeshellarg the sender
git-svn-id: http://svn.automattic.com/wordpress/trunk@5682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-11 23:19:33 +00:00
ryan
81c90fcd76 attribute_escape REQUEST_URI
git-svn-id: http://svn.automattic.com/wordpress/trunk@5679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-11 22:41:47 +00:00
rob1n
ff6f1383d1 Maintain "Page order" for consistency. fixes #4431
git-svn-id: http://svn.automattic.com/wordpress/trunk@5677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-11 21:11:40 +00:00
rob1n
458b65a2f0 Translate &raquo;. see #3401
git-svn-id: http://svn.automattic.com/wordpress/trunk@5676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-11 21:05:50 +00:00
rob1n
6e5e54b5ae Revert multiple category stuff. see #4285
git-svn-id: http://svn.automattic.com/wordpress/trunk@5675 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-09 00:59:14 +00:00
rob1n
a79c4dbda3 Fix <!--generator--> line's time format. Props macbis. fixes #4424 for 2.3 and 2.2.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-08 23:06:10 +00:00
rob1n
32a890bd26 Some more multiple category widget stuff. see #4285
git-svn-id: http://svn.automattic.com/wordpress/trunk@5673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-08 22:50:37 +00:00
rob1n
d84178acd7 Check the user before overwriting the attachment. Props xknown and Joseph Scott. fixes #4422
git-svn-id: http://svn.automattic.com/wordpress/trunk@5671 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-08 17:07:59 +00:00
rob1n
64b91fc94b Add support for multiple instances of the category widget. see #4285
git-svn-id: http://svn.automattic.com/wordpress/trunk@5669 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-08 14:49:30 +00:00
ryan
b5598e2bda More comment caching. see #4387
git-svn-id: http://svn.automattic.com/wordpress/trunk@5667 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-08 06:56:34 +00:00
ryan
f2f6101e1c Comment caching. Reduce queries on edit-comments.php page. Add non-persistent cache groups. Hat tip to hovenko. fixes #4387
git-svn-id: http://svn.automattic.com/wordpress/trunk@5666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-08 00:20:22 +00:00
rob1n
fbfafcf27a Update CSS paths. see #4334
git-svn-id: http://svn.automattic.com/wordpress/trunk@5665 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-08 00:19:35 +00:00
rob1n
4d5baa0fad Use Older/Newer rather than Previous/Next for sake of clarity. fixes #4397
git-svn-id: http://svn.automattic.com/wordpress/trunk@5664 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-07 23:33:06 +00:00
rob1n
02959eb9d4 Move a stray <p> from a recent change.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-07 22:52:09 +00:00
matt
adda69e289 We prefer our own API. (Which MT/Typepad have cloned already.)
git-svn-id: http://svn.automattic.com/wordpress/trunk@5662 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-07 14:10:53 +00:00
matt
ff1e0f32fc No good reason to align the mark all in the center or move the metadata around.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-07 14:01:02 +00:00
ryan
a09031ecd0 Use get_term_children() and get_term_field(). see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-06 16:13:12 +00:00
ryan
d2188a7dde Fix category renaming. fixes #4415 see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5659 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-06 16:12:02 +00:00
ryan
bac1fccf3a Fix category renaming. fixes #4415 see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-06 16:10:52 +00:00
ryan
d5f3d0c2d7 Remove comment_text filter from get_comment_to_edit. fixes #4403 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-05 14:41:02 +00:00
ryan
539b2e48f0 First cut of link category management. Rough and ugly.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-05 05:08:27 +00:00
rob1n
1390f9deee Better use empty alt attribute than the filename. Props cpoteet. fixes #3100
git-svn-id: http://svn.automattic.com/wordpress/trunk@5653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-05 04:40:10 +00:00
ryan
9f46c4af44 Term sanitization. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5652 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-05 00:57:23 +00:00
ryan
f904142767 Add 'edit_posts' capability check to metaWeblog.newPost. Props Joseph Scott and Wei-Yeh Lee. fixes #4404 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5651 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-04 18:31:32 +00:00
ryan
e515401912 Run comment_text filter before format_to_edit() when getting a comment to edit. fixes #4403 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-04 17:43:22 +00:00
ryan
b8c0875ef0 Upgrade fixes. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5643 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-03 18:57:14 +00:00
ryan
16e8f842f5 Fix link category dropdown and filter. Add some back compat to get_categories. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-03 17:28:27 +00:00
rob1n
bf88d4adc0 Make visited links in the admin stand out more. Props ptvguy and Nazgul. fixes #2779
git-svn-id: http://svn.automattic.com/wordpress/trunk@5641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-03 01:00:03 +00:00
rob1n
9ce729e656 Content-Type, not Content-type, as headers are case sensitive. Props foolswisdom and Nazgul. fixes #3545
git-svn-id: http://svn.automattic.com/wordpress/trunk@5640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-02 05:21:18 +00:00
rob1n
64820ed1ae wp_mail() rewrite that handles HTML mail. fixes #4296
git-svn-id: http://svn.automattic.com/wordpress/trunk@5639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-02 03:18:24 +00:00
rob1n
026cdded71 phpDoc effort for wp-includes/author-template.php. fixes #4393
git-svn-id: http://svn.automattic.com/wordpress/trunk@5638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-02 03:04:01 +00:00
ryan
4214428322 Separate AJAX cat adder into post and link flavors. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5637 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-02 02:53:09 +00:00
rob1n
9828d17066 Don't queue Prototype or Interface, just jQuery.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-02 01:01:57 +00:00
rob1n
73e7d2ff2e Ugh. We need to consolidate these headers. see #4334
git-svn-id: http://svn.automattic.com/wordpress/trunk@5635 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-02 00:43:40 +00:00
rob1n
23057b57fb Revert some links. see #4334
git-svn-id: http://svn.automattic.com/wordpress/trunk@5634 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-02 00:42:32 +00:00
rob1n
16c43baa92 Don't more wp-admin.css and rtl.css for compat.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-02 00:41:37 +00:00
rob1n
5d27044a24 Whoops, forgot about wp-login.php. see #4334
git-svn-id: http://svn.automattic.com/wordpress/trunk@5632 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-02 00:40:23 +00:00
rob1n
cac67278d2 Move JavaScript to js subfolder, and CSS to css subfolder. see #4334
git-svn-id: http://svn.automattic.com/wordpress/trunk@5631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-02 00:37:51 +00:00
rob1n
c927ae3f37 Keep greedy regex's in control. fixes #4165
git-svn-id: http://svn.automattic.com/wordpress/trunk@5630 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-02 00:02:06 +00:00
rob1n
168c858844 Move uploads JS to jQuery. Props filosofo. see #3824
git-svn-id: http://svn.automattic.com/wordpress/trunk@5629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-01 23:52:27 +00:00
rob1n
f7ba6b94d9 A bit simpler.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5628 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-01 23:16:50 +00:00
rob1n
d9757a4426 phpDoc for wp-includes/registration.php. fixes #4383
git-svn-id: http://svn.automattic.com/wordpress/trunk@5627 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-01 23:13:41 +00:00
rob1n
82e3bf32c3 Fix a strpos typo. fixes #4390
git-svn-id: http://svn.automattic.com/wordpress/trunk@5626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-01 23:10:03 +00:00
rob1n
a437fa5e23 Fix wp_title single post title filters. Props jhodgdon. fixes #3755
git-svn-id: http://svn.automattic.com/wordpress/trunk@5625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-01 22:54:46 +00:00
markjaquith
06e670d043 Allow wp_list_authors() to optionally return. fixes #4323. see #3567.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5624 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-01 05:43:24 +00:00
rob1n
b8c26df7e0 Fix nestable HTML, including <blockquote>'s. Props anonymousbugger (!) and Nazgul. fixes #1170
git-svn-id: http://svn.automattic.com/wordpress/trunk@5623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-01 02:33:03 +00:00
ryan
9e8bfa7f7b query by parent, not child_of, in get_nested_categories(). see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-01 02:24:07 +00:00
ryan
fb6ce027e1 Use new term tables in wp_install_defaults(). see #4380, #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5621 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-31 22:50:47 +00:00
markjaquith
bd89b78f8d get_bloginfo("comments_atom_url") now works properly. fixes #4382 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@5619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-31 22:44:21 +00:00
markjaquith
09202da539 correct "type" in Atom comments feed alternate links. fixes #4381 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@5617 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-31 22:13:06 +00:00
ryan
fbe9b4d76e Abstract object term cache a bit more. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5616 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-31 21:38:33 +00:00
rob1n
71a095d0ee Don't translate "you haven't installed" text yet, because text domain isn't installed. Props nbachiyski.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-31 12:29:46 +00:00
rob1n
01af55cbf7 Bring tinyspell.php into sync. Props Nazgul. fixes #4368
git-svn-id: http://svn.automattic.com/wordpress/trunk@5614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-31 12:22:06 +00:00
rob1n
e836ded63b Fix variable typo. Props schulte. fixes #4374
git-svn-id: http://svn.automattic.com/wordpress/trunk@5613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-31 03:51:03 +00:00
ryan
e7e4c113fd If a term has no children, return an empty array for child_of queries. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5612 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-31 03:44:18 +00:00
rob1n
d268eae391 Some more get_pagenum_link() fixes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5611 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-31 03:36:40 +00:00
rob1n
544f18ce7d Fix get_pagenum_link() for query strings. fixes #3930
git-svn-id: http://svn.automattic.com/wordpress/trunk@5610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-31 03:29:44 +00:00
rob1n
fb2f7fb6b0 Fix some typos in query.php. Props schulte. fixes #4373
git-svn-id: http://svn.automattic.com/wordpress/trunk@5609 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-31 03:19:38 +00:00
ryan
48bfddf9fc Disable nesting until inifinite loop tracked down.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-31 03:09:58 +00:00
rob1n
ce8ddce5c4 Move the restrict_manage_posts hook to somewhere more reasonable. see #4359
git-svn-id: http://svn.automattic.com/wordpress/trunk@5607 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-31 02:12:04 +00:00
rob1n
990ca286c1 Localize the "you haven't installed WP yet" message. fixes #4370
git-svn-id: http://svn.automattic.com/wordpress/trunk@5606 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-31 02:03:22 +00:00
rob1n
ba3abf0733 Add option to exclude pages to pages widget. see #4259
git-svn-id: http://svn.automattic.com/wordpress/trunk@5605 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-31 01:57:10 +00:00
rob1n
fc76cc488d Prototype fix to keep Safari < 2 from blowing up. fixes #4363
git-svn-id: http://svn.automattic.com/wordpress/trunk@5604 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-31 01:38:11 +00:00
rob1n
ebee78ae54 Check that tinyMCE is defined. Props johnbillion. fixes #4257
git-svn-id: http://svn.automattic.com/wordpress/trunk@5602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-31 00:24:31 +00:00
rob1n
e83a798987 Upgrade TinyMCE spell checker to 1.0.5. fixes #4368
git-svn-id: http://svn.automattic.com/wordpress/trunk@5601 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-31 00:21:55 +00:00
rob1n
a8d5942028 Some comment edit form aesthetics. fixes #4367
git-svn-id: http://svn.automattic.com/wordpress/trunk@5600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-30 23:53:34 +00:00
ryan
7800ed531e Fix slug queries. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-30 21:50:57 +00:00
ryan
df1a8696d5 Some term caching. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-30 03:36:59 +00:00
ryan
7c39499aa0 Category hierarchy fixes. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-30 01:39:47 +00:00
ryan
facc7245fa Add ignore_empty option to wp_count_terms(). see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-30 01:05:44 +00:00
ryan
e2a9845a94 Add missing taxonomy argument. Props nbachiyski. fixes #4362 see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5595 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-29 23:06:46 +00:00
ryan
083dfb059b Fix listing of categories with parents. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5594 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-29 21:50:00 +00:00
ryan
3176f1acd2 get_term_children() and category query fixes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-29 21:27:49 +00:00
ryan
6a314d85d8 Use taxonomy instead of post2cat. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5592 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-29 16:52:31 +00:00
markjaquith
b0ffd98c95 switch to term_id and name for category sorting. see #4189. sort by term_id for category permalinks, by name for get_the_category(). fixes #4335 for trunk. Props Erik Barzeski for the find.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-29 04:54:45 +00:00
markjaquith
007e5937cf use clean_url(). Nice catch, g30rg3x. see #4333 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@5588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-29 04:35:23 +00:00
ryan
4efb612c1a Post and page management filter additions from mdawaffe. see #3945
git-svn-id: http://svn.automattic.com/wordpress/trunk@5587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-29 04:28:10 +00:00
ryan
c09ea05543 Use API instead of SELECT. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-29 04:26:36 +00:00
ryan
13a01467dc get_objects_in_term()
git-svn-id: http://svn.automattic.com/wordpress/trunk@5585 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-29 04:25:09 +00:00
ryan
283458e631 Nomenclature changes. see #3945
git-svn-id: http://svn.automattic.com/wordpress/trunk@5583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-28 22:31:31 +00:00
ryan
957cd7955b Show drafts that have a published parent. Props mdawaffe. fixes #4356
git-svn-id: http://svn.automattic.com/wordpress/trunk@5582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-28 21:55:12 +00:00
markjaquith
fcf640dd6b declare $user_ID global in load_template(). fixes #4354.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5581 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-28 21:32:35 +00:00
rob1n
16dab6f6db Move Dashboard's news to jQuery. see #3824
git-svn-id: http://svn.automattic.com/wordpress/trunk@5580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-28 20:46:03 +00:00
rob1n
4b9d4641be Add a is_user_logged_in() check.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5579 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-28 20:39:24 +00:00
rob1n
380d9c3487 Show me more!
git-svn-id: http://svn.automattic.com/wordpress/trunk@5578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-28 19:32:24 +00:00
rob1n
5aedce1521 Update TinyMCE to 2.1.1.1 (look at all those 1's...). fixes #4262
git-svn-id: http://svn.automattic.com/wordpress/trunk@5577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-28 19:30:05 +00:00
ryan
6621b8eed0 Fix category permalinks. Update cat_ID to term_id. fixes #4349 see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-28 18:47:08 +00:00
ryan
a438f8a92a Better draft, private, and future post/page management from mdawaffe. fixes #3945
git-svn-id: http://svn.automattic.com/wordpress/trunk@5575 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-28 18:34:06 +00:00
rob1n
a5e4caba87 Moderation cleaned up, add paging and various bug fixes. fixes #4317
git-svn-id: http://svn.automattic.com/wordpress/trunk@5574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-28 17:21:25 +00:00
rob1n
6800fa5564 Actually, this makes more sense.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5573 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-28 17:11:42 +00:00
rob1n
673cab8183 Turn string to upper. Props Donncha. fixes #4350
git-svn-id: http://svn.automattic.com/wordpress/trunk@5572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-28 17:05:46 +00:00
markjaquith
7e9cfad780 Fix category/tag base wording. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-28 06:46:39 +00:00
markjaquith
070d2fd62b Int cast. Props to Alexander Concha for the find, Joseph Scott for the patch.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5570 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-28 05:12:56 +00:00
markjaquith
6a41f63aae permalink_link() is deprecated, and should reference its replacement.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5569 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-28 04:39:40 +00:00
rob1n
0617eb51d0 Add rel="tag" to tag links. fixes #4159
git-svn-id: http://svn.automattic.com/wordpress/trunk@5568 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-28 02:07:59 +00:00
ryan
965e63b970 Register taxonomies as object instead of arrays. Fix tt_ids query in get_post_terms().
git-svn-id: http://svn.automattic.com/wordpress/trunk@5567 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-28 00:51:24 +00:00
ryan
e3f7055082 Set eol-style
git-svn-id: http://svn.automattic.com/wordpress/trunk@5566 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-28 00:04:33 +00:00
matt
0ee4823f71 A helpful pointer for a possible cause of this error.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5565 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-27 22:08:42 +00:00
ryan
ab1d417e55 Return true when deleting link to satisfy admin-ajax error check. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5564 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-27 19:43:44 +00:00
ryan
ee5ec0c505 Fix up exporter. Remove more refrences to the categories table. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-27 19:32:45 +00:00
ryan
2857b43d78 Fix default cat options. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5562 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-27 17:57:15 +00:00
ryan
333d77ea9c Typo fix from flinkflonk. fixes #4347 see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5561 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-27 17:45:31 +00:00
ryan
eb541a962f Link category fixes. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-27 17:21:04 +00:00
ryan
49953705f1 Delete term if no taxonomies use it. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-27 06:29:52 +00:00
ryan
128bbfa161 Change term count callback style. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-27 06:17:50 +00:00
ryan
3e59a81327 Remove debug. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-27 05:28:30 +00:00
ryan
c816b51b8c Fix object term relationship deletion and count updating.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5556 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-27 05:15:18 +00:00
ryan
2918f50e90 Term cache work. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-26 23:32:06 +00:00
ryan
474e769f07 cat2tag fixes. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-26 18:59:58 +00:00
ryan
80ce3031d1 Update cat2tag converter. Some term API tweaks. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5553 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-26 18:54:16 +00:00
ryan
b068bd6447 During upgrade, make slugs unique and put like slugs in a term group. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5552 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-26 17:47:20 +00:00
ryan
f24ed6715f Fix schema formatting to appease dbDelta. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5551 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-25 22:57:52 +00:00
rob1n
77a141151f Fix typo.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-25 16:27:34 +00:00
rob1n
a98bb3abda Fix Atom feeds' categories. fixes #4307
git-svn-id: http://svn.automattic.com/wordpress/trunk@5548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-25 15:55:30 +00:00
rob1n
8a3ed389bb More xmlrpc.php i18n fixes from nbachiyski. fixes #3997
git-svn-id: http://svn.automattic.com/wordpress/trunk@5547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-25 15:33:47 +00:00
rob1n
629dde868c Actually check for PHP 4.2. Props nbachiyski. fixes #4336
git-svn-id: http://svn.automattic.com/wordpress/trunk@5546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-25 14:51:33 +00:00
ryan
fa860d54c0 Fix include path. see #4334
git-svn-id: http://svn.automattic.com/wordpress/trunk@5545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-25 09:53:16 +00:00
ryan
f7e5557f6e Don't load category cache from old tables. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-25 09:45:55 +00:00
ryan
8e547a3677 attribute_escape()s and int casts. see #4333
git-svn-id: http://svn.automattic.com/wordpress/trunk@5543 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-25 09:41:04 +00:00
ryan
770613e763 Admin includes reorg. see #4334
git-svn-id: http://svn.automattic.com/wordpress/trunk@5542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-25 07:16:21 +00:00
ryan
92e7d3c3bc Make sure sanitize_option() is always called when updating options.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5541 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-25 02:22:30 +00:00
ryan
677b609ee2 Don't create old tables. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-24 22:55:33 +00:00
ryan
6445fc55a2 Category/tag to taxonomy upgrade. First cut.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-24 22:40:24 +00:00
ryan
fe5e71cfaa RSD link fixes from Joseph Scott. fixes #4329 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-24 17:09:39 +00:00
rob1n
315fcd5cd6 the_search_query() revamp. fixes #4327
git-svn-id: http://svn.automattic.com/wordpress/trunk@5536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-24 03:37:10 +00:00
rob1n
cf3f7ac197 Use selected() to clean that up. Thanks Mark. fixes #4291
git-svn-id: http://svn.automattic.com/wordpress/trunk@5535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-24 00:29:51 +00:00
ryan
76d2530a7e No more TAXONOMY bit fiels. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-23 22:11:02 +00:00
ryan
6251eb3ca6 wp_delete_term(). see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-23 22:03:24 +00:00
ryan
1b783b9b9a More rel_type elimination. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-23 20:59:11 +00:00
markjaquith
563c0ab7a2 Allow MT Importer to use FTP-uploaded file (to get around php.ini-set file upload size limit). fixes #4284
git-svn-id: http://svn.automattic.com/wordpress/trunk@5531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-23 19:36:35 +00:00
ryan
b00beb3027 Convert category queries and list cats to taxonomy. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-23 18:59:12 +00:00
ryan
0e05576999 Set and get post cats to taxonomy. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5529 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-23 18:07:53 +00:00
ryan
675cc0d029 wp_insert_category(), cat_rows(), and others using taxonomy. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-23 17:28:13 +00:00
rob1n
040263799f Filter max upload file size for import form. Props Donncha. fixes #4320
git-svn-id: http://svn.automattic.com/wordpress/trunk@5527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-23 15:45:28 +00:00
rob1n
4d9a6e1a98 Fix bloginfo() filtering when it comes to links. Props Nazgul. fixes #4116
git-svn-id: http://svn.automattic.com/wordpress/trunk@5526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-23 14:58:32 +00:00
ryan
42df47a478 Add get_term_by() and taxonomy registration bits. Move more category stuff to taxonomy. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5525 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-23 10:32:33 +00:00
ryan
557eafd82e Add some term hooks. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-23 07:26:52 +00:00
ryan
4bbddb6559 Start moving link categories to taxonomy. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-23 07:15:10 +00:00
ryan
b450105bfd wp_insert_term() and wp_update_term(). see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-23 05:42:31 +00:00
ryan
0b795ff92b Add get_terms() and get_term(). Move more of tagging to taxonomy. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-23 03:57:20 +00:00
rob1n
e623c78708 Run the i through the parseInt to avoid IE 7 errors. fixes #4268
git-svn-id: http://svn.automattic.com/wordpress/trunk@5520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-22 22:52:29 +00:00
rob1n
6a1b3fcd19 Run it through the filter. see #4259
git-svn-id: http://svn.automattic.com/wordpress/trunk@5519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-22 22:36:56 +00:00
ryan
c5967f3432 Remove the_content filter from widget text. see #4259
git-svn-id: http://svn.automattic.com/wordpress/trunk@5518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-22 21:32:07 +00:00
ryan
fe1178d848 Keep the old tables in the schema until everything is converted. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-22 20:59:00 +00:00
ryan
6ecc901391 Fix primary key on term_relationships. Add wp_set_object_terms(). Setting post tags working now. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-22 20:39:26 +00:00
markjaquith
0c80a47d13 explicitly state Zulu time for desktop editors. Props Erik Barzeski and Joseph Scott. fixes #4314 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@5513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-22 19:57:50 +00:00
markjaquith
9a75737897 Prevent current author from claiming authorship of posts from other authors when editing via desktop client. Props Erik Barzeski. fixes #4315 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@5511 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-22 19:53:16 +00:00
ryan
634a33c206 Very rough initial commit of taxonomy for everyone's hacking pleasure. There be dragons. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-22 05:12:38 +00:00
rob1n
3ed5b0a01e Don't show title if user leaves it blank. see #4259
git-svn-id: http://svn.automattic.com/wordpress/trunk@5509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-22 00:25:44 +00:00
rob1n
3fab6618e2 Fix accidental typo. fixes #4300
git-svn-id: http://svn.automattic.com/wordpress/trunk@5508 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-21 22:58:22 +00:00
rob1n
7048b27ede Don't call is_wp_error() in wp_die() if it hasn't been defined yet. fixes #4308
git-svn-id: http://svn.automattic.com/wordpress/trunk@5507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-21 22:50:32 +00:00
ryan
aeb569d93d Fix theme template field. fixes #4310 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5506 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-21 20:11:53 +00:00
ryan
b634b18433 Check if is_array before unsetting array index. fixes #4306 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-21 16:39:08 +00:00
rob1n
041135b01b Pass text widget text through format_to_edit. Props Ryan. fixes #4302
git-svn-id: http://svn.automattic.com/wordpress/trunk@5499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-21 13:13:22 +00:00
rob1n
b83c9dae09 Fix wp-ajax.js addArg's hashes. Props technosailor. fixes #4277
git-svn-id: http://svn.automattic.com/wordpress/trunk@5498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-21 12:56:39 +00:00
rob1n
69c2d56a31 Keep editing mode when paging through comments. fixes #4300
git-svn-id: http://svn.automattic.com/wordpress/trunk@5497 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-21 12:52:44 +00:00
rob1n
4e6e08e11d Doh. fixes #4292
git-svn-id: http://svn.automattic.com/wordpress/trunk@5496 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-19 23:44:37 +00:00
ryan
7a3c62d0dd Fix widget admin layout for IE7. Props Denis-de-Bernardy. fixes #4264 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5494 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-19 17:24:25 +00:00
rob1n
4a83568904 Check for switch_themes, not edit_themes. Props Denis de Bernardy. fixes #4292
git-svn-id: http://svn.automattic.com/wordpress/trunk@5492 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-19 04:38:51 +00:00
rob1n
a45c3a3f23 Don't fail when the user don't set WP-Cache up correctly. Props Denis de Bernardy. fixes #4293
git-svn-id: http://svn.automattic.com/wordpress/trunk@5491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-19 04:32:28 +00:00
rob1n
1d47f812cd Select the option if it's set to that. fixes #4291
git-svn-id: http://svn.automattic.com/wordpress/trunk@5490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-19 04:26:02 +00:00
ryan
90986b4697 s/2.1/2.2/
git-svn-id: http://svn.automattic.com/wordpress/trunk@5489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-19 00:24:08 +00:00
ryan
592c3c0767 Fix tinymce colorpicker. Props azaozz. fixes #4188 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5487 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-19 00:10:24 +00:00
rob1n
5d40bf562c Texturize and autop the text widgets, and allow pages to be sorted by a specified field. Props Denis de Bernardy. see #4259
git-svn-id: http://svn.automattic.com/wordpress/trunk@5486 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-18 02:29:11 +00:00
ryan
8da6590866 Restore crack-headed arg passing to register_sidebar_widget(). fixes #4275 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-16 17:49:32 +00:00
rob1n
349ba3a536 Fix some attribute misnamings. Props Erunafailaro. fixes #4274
git-svn-id: http://svn.automattic.com/wordpress/trunk@5483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-16 17:37:55 +00:00
rob1n
d6b4808d80 Update Prototype to 1.5.1 and script.aculo.us to 1.7.1-b2. Props zamoose. fixes #4265
git-svn-id: http://svn.automattic.com/wordpress/trunk@5482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-16 03:27:07 +00:00
rob1n
77b86e7c68 Fix get_pagenum_link(). fixes #3930
git-svn-id: http://svn.automattic.com/wordpress/trunk@5481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-16 02:47:24 +00:00
ryan
d4288b9aee Add nonce to avoid AYS when restoring image header.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-15 16:47:15 +00:00
ryan
a291731ed3 Theme screenshot fix from mdawaffe. fixes #4266 for 2.3.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-14 23:30:17 +00:00
ryan
1fbb89b1a0 Allow sidebar names to be passed to dynamic_sidebar(). fixes #4258 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5474 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-14 05:13:39 +00:00
matt
b0d60f0351 Show post name and bring organization in line with the edit comments page.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5472 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-14 03:41:03 +00:00
matt
537f72cffb This button gets buried, especially when you have a lot of widgets, and it needs to be at the top too.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-14 03:39:05 +00:00
rob1n
05c0fccdf9 Get rid of stray space.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5470 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-14 03:28:10 +00:00
matt
0e8598a256 Remove the generation time, it isn't terribly useful to users and gets confused with version
git-svn-id: http://svn.automattic.com/wordpress/trunk@5469 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-14 03:14:17 +00:00
ryan
d7e422644f More Kubrick custom color header i18n from nbachiyski. fixes #4256 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-13 18:46:17 +00:00
ryan
5b000b1507 Kubrick custin color header i18n from nbachiyski. fixes #4256 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5466 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-13 17:56:30 +00:00
ryan
f5b4234c59 Flush all output buffers during shutdown to avoid PHP 5 bustage. see #3354
git-svn-id: http://svn.automattic.com/wordpress/trunk@5462 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-12 22:06:31 +00:00
ryan
b820d101d6 Return proper protocol. fixes #3886 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5460 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-12 21:55:14 +00:00
rob1n
24399dcbfb Seeing double. Good spot momo360modena. fixes #4251 for 2.1, 2.2 and 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5459 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-12 19:47:47 +00:00
rob1n
f417e94b89 Don't make useless status_header() call. fixes #4249
git-svn-id: http://svn.automattic.com/wordpress/trunk@5458 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-12 19:30:38 +00:00
matt
a22990a56e The config file has been deliberately CRLF since [2370] to recognize that most people will be editing this file in a crappy windows editor.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5457 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-12 18:29:57 +00:00
rob1n
51ace86089 Don't call the function if it doesn't exist yet. fixes #4249
git-svn-id: http://svn.automattic.com/wordpress/trunk@5455 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-12 16:24:17 +00:00
rob1n
1fb3798eb5 Bring get_pagenum_link() into this century. Props Mark Jaquith. fixes #3930
git-svn-id: http://svn.automattic.com/wordpress/trunk@5454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-12 00:17:34 +00:00
rob1n
65454107d1 git-svn-id: http://svn.automattic.com/wordpress/trunk@5451 1a063a9b-81f0-0310-95a4-ce76da25c4cd 2007-05-11 04:02:30 +00:00
rob1n
492592d5ec Ugh. I thought I had fixed all of these.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-11 04:01:54 +00:00
rob1n
0b847d9933 Some fixes for the Textpattern importer.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-11 03:54:56 +00:00
rob1n
ac72ff2a42 Show authors' logins in alphabetical order. fixes #4232
git-svn-id: http://svn.automattic.com/wordpress/trunk@5448 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-11 03:51:21 +00:00
rob1n
b354bc3813 Filter get_theme_data() data through KSES to get rid of evil XSS things. fixes #4236
git-svn-id: http://svn.automattic.com/wordpress/trunk@5447 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-11 03:44:03 +00:00
rob1n
ee7d9e9e18 New status_header code, and WP-DB bail() errors send a 503 Service Unavailable. see #2409
Also, the new header code to text array has 302 as Found. fixes #4183


git-svn-id: http://svn.automattic.com/wordpress/trunk@5446 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-11 03:34:50 +00:00
rob1n
f432ed648a Fix for PHP version 5.2.2 where $HTTP_RAW_POST_DATA isn't set. fixes #4248
git-svn-id: http://svn.automattic.com/wordpress/trunk@5445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-11 03:21:06 +00:00
rob1n
e6c189902c Use wp_parse_args(). fixes #4237
git-svn-id: http://svn.automattic.com/wordpress/trunk@5444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-11 03:10:05 +00:00
ryan
70c17cc871 Escapage
git-svn-id: http://svn.automattic.com/wordpress/trunk@5441 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-11 00:56:12 +00:00
ryan
f7de9ede8a Handle local and remote blogroll imports. Props apokalyptik. fixes #4243 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-10 21:21:54 +00:00
ryan
272fbe5c8a Left, right, dragChange, hop. s/left/right/. Props Lawrence Pit. see #4169
git-svn-id: http://svn.automattic.com/wordpress/trunk@5437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-10 21:18:21 +00:00
ryan
58b1093938 Use correct var. Props charismabiz. fixes #4246 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5435 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-10 21:08:13 +00:00
ryan
93266da580 Add missing preg delimiter. see #4241
git-svn-id: http://svn.automattic.com/wordpress/trunk@5433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-10 16:37:44 +00:00
ryan
fec23e1837 Cast to array to avoid warning.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5432 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-10 16:32:11 +00:00
rob1n
b3165ed3c1 Make H2's in the admin wrap nice, and some CSS cleanup. Props JeremyVisser. fixes #4119
git-svn-id: http://svn.automattic.com/wordpress/trunk@5430 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-10 02:52:22 +00:00
rob1n
26dfd309f6 Show WP-Adv TinyMCE button by default. Props johnbillion. fixes #3171
git-svn-id: http://svn.automattic.com/wordpress/trunk@5429 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-10 02:42:00 +00:00
rob1n
56a1232923 Don't discard non-default args in wp_parse_args(). see #4237
git-svn-id: http://svn.automattic.com/wordpress/trunk@5428 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-10 02:33:01 +00:00
ryan
28f3106ee9 Var is an object var. Add missing this.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5427 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-10 02:31:16 +00:00
rob1n
58839706d0 Let WebKit 420 or above get in. And clean up that overgrown ternary. Props Andy. fixes #4241
git-svn-id: http://svn.automattic.com/wordpress/trunk@5425 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-10 01:31:12 +00:00
rob1n
ece3623070 Don't add port if port == 80 (default port). fixes #3993
git-svn-id: http://svn.automattic.com/wordpress/trunk@5424 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-10 01:26:56 +00:00
ryan
17be568a6d Don't preg_match_all when processing items. fixes #4239 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5423 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-10 00:05:21 +00:00
ryan
6f6062af97 Obey show_post_count for dropdown.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5421 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-09 21:54:30 +00:00
matt
1fbc800c8b Knowing the version of the theme is pretty useless in this context, it's clutter.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5419 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-09 17:14:23 +00:00
ryan
a8c91f6c0b Include plugin.php before calling wp_die. fixes #4238 for 2.3.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5418 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-09 16:18:11 +00:00
matt
49407420a2 Don't forget to center this cell as well.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5416 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-09 08:12:54 +00:00
rob1n
1e30a12eb5 Bit of clean-up.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5415 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-09 04:19:19 +00:00
ryan
627725be1a Make sure wp_actions is set before counting.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-08 17:59:52 +00:00
ryan
bbad336b10 Don't send header from wp_die() if admin header already sent. fixes #4234 for 2.3.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5411 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-07 23:24:44 +00:00
ryan
481e505d49 Fix did_action to properly account for actions that have no callbacks attached.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5409 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-07 23:22:50 +00:00
ryan
ef4ad331e1 Add nonces to importers
git-svn-id: http://svn.automattic.com/wordpress/trunk@5404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-07 15:56:53 +00:00
ryan
9b1b9b2084 attribute_escape for widgets. see #4169
git-svn-id: http://svn.automattic.com/wordpress/trunk@5403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-07 02:16:28 +00:00
ryan
9805be9f11 Make sure Widgets menu comes after Themes. see #4169
git-svn-id: http://svn.automattic.com/wordpress/trunk@5401 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-06 20:36:11 +00:00
ryan
23b99491a2 Fix widget registration back compat by splitting API. Fix feed widget. For 2.3. see #4169
git-svn-id: http://svn.automattic.com/wordpress/trunk@5399 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-06 07:08:11 +00:00
rob1n
b6fc2cacce Add in missing delimiter. fixes #4226 for 2.0, 2.2 and 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-05 02:51:20 +00:00
rob1n
f7f55f0883 Don't set URL options if WP_HOME and or WP_SITEURL are defined. Props filosofo. fixes #4199
git-svn-id: http://svn.automattic.com/wordpress/trunk@5395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-05 00:19:25 +00:00
rob1n
69f36791f1 Use WP_HOME and WP_SITEURL in upgrading. Props filosofo. fixes #4211
git-svn-id: http://svn.automattic.com/wordpress/trunk@5394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-05 00:17:05 +00:00
rob1n
8638b7ab3a Return based on whether the hook was removed or not. Props mdawaffe. fixes #4223
Note that this will almost definitely *not* affect existing implementations. The way most code is set up now is to just call remove_filter() or remove_action().


git-svn-id: http://svn.automattic.com/wordpress/trunk@5393 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-04 23:27:12 +00:00
rob1n
bc423b6e4c Use correct border order in classic theme's CSS. fixes #4225
git-svn-id: http://svn.automattic.com/wordpress/trunk@5392 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-04 23:23:41 +00:00
ryan
3768d8363d eol-style everywhere
git-svn-id: http://svn.automattic.com/wordpress/trunk@5391 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-04 21:48:43 +00:00
ryan
b33a7e9cfb Set eol-style
git-svn-id: http://svn.automattic.com/wordpress/trunk@5390 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-04 21:28:50 +00:00
ryan
e98183c527 Set eol-style
git-svn-id: http://svn.automattic.com/wordpress/trunk@5388 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-04 21:26:38 +00:00
ryan
b311e786fe Do a cap check at the top of widgets since it won't always inherit the menu cap check.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5385 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-04 17:52:22 +00:00
rob1n
48c85562b8 Don't reference old-style "levels," as they apparently used to call them back in the day.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5384 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-04 04:18:59 +00:00
rob1n
0a8b69c947 Don't take out class attribute for <abbr />, for hReview. fixes #3420
git-svn-id: http://svn.automattic.com/wordpress/trunk@5383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-04 03:52:11 +00:00
ryan
2cc75dbc63 Add 'Select' text to the dropdowns. Props Joseph Scott.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5381 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-04 02:23:49 +00:00
rob1n
ce488547e8 Sort page templates by name. Props Arrrr. see #2926
git-svn-id: http://svn.automattic.com/wordpress/trunk@5380 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-03 04:41:22 +00:00
rob1n
0b1ce5d4f8 Apply get_nested_cats filter. Props davidhouse and Nazgul. fixes #2623
git-svn-id: http://svn.automattic.com/wordpress/trunk@5379 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-03 04:34:07 +00:00
rob1n
7db9d9f6b2 Use fancy quotes instead of raw quotes (which should have been &quot; anyways).
git-svn-id: http://svn.automattic.com/wordpress/trunk@5378 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-03 01:23:14 +00:00
rob1n
f8b2a63e57 Load order fixed.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-03 00:52:14 +00:00
rob1n
ab530a67d5 Don't show Widgets admin page if core widgets aren't enabled. fixes #4218
git-svn-id: http://svn.automattic.com/wordpress/trunk@5376 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-03 00:43:57 +00:00
rob1n
2fff1e5671 Add lang and xml:lang attributes to allowed list for p, div and blockquote. fixes #4128
git-svn-id: http://svn.automattic.com/wordpress/trunk@5375 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-02 04:31:30 +00:00
rob1n
37745efcae Spring cleaning, extreme edition.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-02 04:26:57 +00:00
rob1n
e5fb2523b4 Clean that mess up so it's more easily managed.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5373 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-02 04:17:43 +00:00
ryan
9e54a128b8 Call get_option('siteurl') outside the loop to save a few dozen get_option calls. Props andissimo.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5370 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-02 00:32:22 +00:00
ryan
f20cad1508 Fix inline uploader page links. Props mdawaffe. fixes #4217 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5368 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-01 23:33:44 +00:00
ryan
b159bcacff Remove wp_ prefix from default widget class names. For back compat.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5366 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-01 22:51:52 +00:00
ryan
6658364b30 Set eol-style
git-svn-id: http://svn.automattic.com/wordpress/trunk@5365 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-01 17:46:55 +00:00
rob1n
b21f9bdc98 New way of loading widgets that works with PHP 5. Thanks to filosofo for testing. see #4169
git-svn-id: http://svn.automattic.com/wordpress/trunk@5363 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-01 01:58:18 +00:00
rob1n
5339481434 Typo.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5362 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-01 01:27:46 +00:00
rob1n
4c26ea65a1 Add clearer to edit-pages.php. Props Nazgul. fixes #4210
git-svn-id: http://svn.automattic.com/wordpress/trunk@5361 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-01 01:19:19 +00:00
rob1n
58d8ed1284 Move widget stuff around. see #4169
git-svn-id: http://svn.automattic.com/wordpress/trunk@5360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-01 01:13:06 +00:00
ryan
72a19935ff Widget registration fixes from Andy. For 2.3. see #4169
git-svn-id: http://svn.automattic.com/wordpress/trunk@5358 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-30 20:02:02 +00:00
ryan
8efa935340 When using the traditional list view of the categories,
make sure the wp_list_categories() doesn't add in another title. This
was causing a second Categories to show up on the category widget.  Props Jospeh Scott

git-svn-id: http://svn.automattic.com/wordpress/trunk@5356 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-30 17:43:11 +00:00
ryan
6c0b1d6a5f Fix typo breaking recent comment cache deletion for widgets.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5354 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-30 16:45:23 +00:00
ryan
f47ebf8582 unfiltered_upload fix from Nazgul. fixes #4136
git-svn-id: http://svn.automattic.com/wordpress/trunk@5353 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-30 15:54:50 +00:00
ryan
247d22682a Remove debug
git-svn-id: http://svn.automattic.com/wordpress/trunk@5351 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-30 03:47:14 +00:00
ryan
5fe0bd0c61 Don't use deprecated category API.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5349 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-30 03:32:33 +00:00
rob1n
a50e0e4c41 Bring back old behavior for sidebar ID's. Props filosofo. see #4169
git-svn-id: http://svn.automattic.com/wordpress/trunk@5348 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-30 02:35:28 +00:00
rob1n
9ddfc38833 Fix stupid error on my part. Props abbaanthony. fixes #4208
git-svn-id: http://svn.automattic.com/wordpress/trunk@5347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-30 02:28:06 +00:00
rob1n
6f0a508666 Filter dashboard URL's. fixes #2177
git-svn-id: http://svn.automattic.com/wordpress/trunk@5346 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-29 22:37:37 +00:00
rob1n
61059a3dc7 Check basename(). see #4169
git-svn-id: http://svn.automattic.com/wordpress/trunk@5345 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-29 21:00:54 +00:00
rob1n
32c3de1779 Automattically deactivate Automattic Widgets, if activated. see #4169
git-svn-id: http://svn.automattic.com/wordpress/trunk@5344 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-29 20:53:29 +00:00
rob1n
b06cdd876f Move widgets' JS into the <head> of widgets.php. Should fix text/rss widget controls. see #4169
git-svn-id: http://svn.automattic.com/wordpress/trunk@5343 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-29 20:16:26 +00:00
ryan
df9d590cbc Fix widget control registration where id is not passed in.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-28 17:04:16 +00:00
ryan
e5ea802c0c Fix edit comment links
git-svn-id: http://svn.automattic.com/wordpress/trunk@5340 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-28 16:45:47 +00:00
ryan
72f35d050c Create widget id from widget name when id not specified.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5338 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-28 06:08:27 +00:00
ryan
a59fcf3c3a Kick widgets init from init hook.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5336 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-28 00:35:47 +00:00
ryan
b028d6eaa3 Some widgets gettext.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5334 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-28 00:29:27 +00:00
rob1n
638337cf4a Don't double encode gzip output if gzip is already set in php.ini. Props
welcomb. fixes #4205


git-svn-id: http://svn.automattic.com/wordpress/trunk@5333 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-27 20:55:05 +00:00
matt
05996c589f Link it even if it's zero because it counts approved comments and you might want to go to that page even if there are no approved comments yet.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5331 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-27 05:30:23 +00:00
matt
8a486dfe60 Link that URL!
git-svn-id: http://svn.automattic.com/wordpress/trunk@5330 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-27 05:23:53 +00:00
ryan
8aaa48e041 Use the right field name ya idjit.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5329 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-27 04:34:44 +00:00
ryan
d44752d2ca Consult global comment in get_comment(). Don't show empty edit links.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-27 03:51:36 +00:00
rob1n
8d6b81e175 Whoops, forgot widgets-rtl.css.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-27 02:39:22 +00:00
rob1n
007a086bcd Use non-GMT date. fixes #3034
git-svn-id: http://svn.automattic.com/wordpress/trunk@5326 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-27 00:56:12 +00:00
rob1n
9843f9df79 Add Firefox bookmarking instructions. Props abelcheung. fixes #4203
git-svn-id: http://svn.automattic.com/wordpress/trunk@5325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-27 00:55:11 +00:00
rob1n
1f39b8dce7 Widgets RTL CSS, and a few little widget bugfixes. Props Sewar. fixes #4185
git-svn-id: http://svn.automattic.com/wordpress/trunk@5324 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-27 00:51:19 +00:00
rob1n
44088f5463 Add id attribute where it's only name. fixes #3696
git-svn-id: http://svn.automattic.com/wordpress/trunk@5323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-27 00:47:01 +00:00
matt
93bd5ffe05 I think this got accidentally reverted.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5322 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-26 22:17:13 +00:00
ryan
cb6d5b0c4b Fix text and rss widget registration. fixes #4204 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-26 17:49:11 +00:00
ryan
6a307367a8 Add dropdown option to archives and categories widgets. Props Joseph Scott. fixes #4194 for 2.2
git-svn-id: http://svn.automattic.com/wordpress/trunk@5319 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-26 17:17:30 +00:00
rob1n
85902939a7 Links widget fixes from Otto42. see #4169
git-svn-id: http://svn.automattic.com/wordpress/trunk@5317 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-26 03:43:59 +00:00
rob1n
309491de6d WordPress.com -> .org and change widgetize link to Automattic's site for now. We still need to make a Codex page, just to make it more "WordPressy."
Props foolswisdom. fixes #4200


git-svn-id: http://svn.automattic.com/wordpress/trunk@5316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-26 02:13:18 +00:00
rob1n
2a03779965 Firefox uses Alt+Shift for access keys. Props johnbillion. fixes #4193
git-svn-id: http://svn.automattic.com/wordpress/trunk@5315 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-26 02:02:59 +00:00
rob1n
b3d3d731ac Require once only. Props masquerade. fixes #4192
git-svn-id: http://svn.automattic.com/wordpress/trunk@5313 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-25 04:41:12 +00:00
rob1n
1657ad3db3 Housekeeping -- a misspelling.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5312 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-25 03:14:11 +00:00
rob1n
bc90e51a2f Variable name fix. Props filosofo. see #4169
git-svn-id: http://svn.automattic.com/wordpress/trunk@5310 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-25 03:02:28 +00:00
rob1n
129931fdcd Add admin_xml_ns to upload.php's <html>, since it doesn't use admin-header.php.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5309 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-25 00:56:22 +00:00
rob1n
d3f52c3b45 Allow number_format to be internationalized. Props nbachiyski. fixes #3677
git-svn-id: http://svn.automattic.com/wordpress/trunk@5308 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-25 00:49:57 +00:00
rob1n
56add54053 Housekeeping -- clean out debug calls.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5307 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-24 23:58:51 +00:00
rob1n
559fa91b8d Add ODT to allowed file types. Props Nazgul. fixes #4136
git-svn-id: http://svn.automattic.com/wordpress/trunk@5304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-24 23:28:39 +00:00
rob1n
ea9d389751 Add unfiltered_upload cap, and allow for admins. Props Nazgul. fixes #4136
git-svn-id: http://svn.automattic.com/wordpress/trunk@5303 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-24 23:27:20 +00:00
rob1n
534eeaf7bc get_edit_*_link() functions. fixes #4153
git-svn-id: http://svn.automattic.com/wordpress/trunk@5302 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-24 23:21:56 +00:00
ryan
c03e74ab48 Update widgets to latest bits. see #4169
git-svn-id: http://svn.automattic.com/wordpress/trunk@5301 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-24 21:36:17 +00:00
ryan
a0985c387b widgets.php be doubling down. Once is enough.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5300 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-24 18:41:42 +00:00
ryan
9426bb5642 Set eol-style on new files.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-24 18:40:02 +00:00
rob1n
03e6c2ed9a Widgets for 2.3. fixes #4186
git-svn-id: http://svn.automattic.com/wordpress/trunk@5297 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-24 01:05:17 +00:00
ryan
c28054301c Fix variable collission in _get_cat_children. see #3985
git-svn-id: http://svn.automattic.com/wordpress/trunk@5295 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-23 20:28:38 +00:00
rob1n
2e72244bde has_excerpt() template tag. fixes #4177 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5293 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-22 04:25:47 +00:00
ryan
be8f80d6d2 Use GMT in XML-RPC dateCreated fields. Props Joseph Scott. fixes #4158 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5292 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-22 03:07:34 +00:00
rob1n
eb2b42e800 Properly close the paragraph. Props zeo. fixes #4171 for both 2.2 and 2.3
git-svn-id: http://svn.automattic.com/wordpress/trunk@5290 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-20 03:52:41 +00:00
ryan
978cf8aee5 2.3-alpha
git-svn-id: http://svn.automattic.com/wordpress/trunk@5288 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-19 04:05:39 +00:00
660 changed files with 83304 additions and 41975 deletions

View File

@@ -1,5 +1,18 @@
<?php
/* Short and sweet */
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
?>

View File

@@ -1,280 +1,280 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
675 Mass Ave, Cambridge, MA 02139, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
675 Mass Ave, Cambridge, MA 02139, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS

View File

@@ -1,14 +1,14 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>WordPress &rsaquo; ReadMe</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="wp-admin/install.css" type="text/css" />
<title>WordPress &rsaquo; ReadMe</title>
<link rel="stylesheet" href="wp-admin/css/install.css" type="text/css" />
</head>
<body>
<h1 id="logo" style="text-align: center">
<img alt="WordPress" src="wp-admin/images/wordpress-logo.png" />
<br /> Version 2.1
<br /> Version 2.6
</h1>
<p style="text-align: center">Semantic Personal Publishing Platform</p>
@@ -29,7 +29,7 @@
<h1>Upgrading</h1>
<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>
<h2>Upgrading from any previous WordPress to 2.1:</h2>
<h2>Upgrading from any previous WordPress to 2.6:</h2>
<ol>
<li>Delete your old WP files, saving ones you've modified.</li>
<li>Upload the new files.</li>
@@ -56,7 +56,7 @@
<h1>System Recommendations</h1>
<ul>
<li>PHP version <strong>4.2</strong> or higher.</li>
<li>PHP version <strong>4.3</strong> or higher.</li>
<li>MySQL version <strong>4.0</strong> or higher.</li>
<li>... and a link to <a href="http://wordpress.org/">http://wordpress.org</a> on your site.</li>
</ul>
@@ -70,7 +70,7 @@
<h1>Post via Email</h1>
<p>You can post from an email client! To set this up go to your &quot;Writing&quot; options screen and fill in the connection details for your secret POP3 account. Then you need to set up <code>wp-mail.php</code> to execute periodically to check the mailbox for new posts. You can do it with Cron-jobs, or if your host doesn't support it you can look into the various website-monitoring services, and make them check your <code>wp-mail.php</code> URL.</p>
<p>Posting is easy: Any email sent to the address you specify will be posted, with the subject as the title. It is best to keep the address dicrete. The script will <i>delete</i> emails that are successfully posted.</p>
<p>Posting is easy: Any email sent to the address you specify will be posted, with the subject as the title. It is best to keep the address discrete. The script will <em>delete</em> emails that are successfully posted.</p>
<h1>User Roles</h1>
<p>We've eliminated user levels in order to make way for the much more flexible roles system introduced in 2.0. You can <a href="http://codex.wordpress.org/Roles_and_Capabilities">read more about Roles and Capabilities on the Codex</a>.</p>

View File

@@ -1,72 +1,130 @@
<?php
require_once('../wp-config.php');
require_once('admin-functions.php');
require_once('admin-db.php');
define('DOING_AJAX', true);
check_ajax_referer();
require_once('../wp-load.php');
require_once('includes/admin.php');
if ( !is_user_logged_in() )
die('-1');
function get_out_now() { exit; }
add_action( 'shutdown', 'get_out_now', -1 );
function wp_ajax_meta_row( $pid, $mid, $key, $value ) {
$value = attribute_escape($value);
$key_js = addslashes(wp_specialchars($key, 'double'));
$key = attribute_escape($key);
$r .= "<tr id='meta-$mid'><td valign='top'>";
$r .= "<input name='meta[$mid][key]' tabindex='6' onkeypress='return killSubmit(\"theList.ajaxUpdater(&#039;meta&#039;,&#039;meta-$mid&#039;);\",event);' type='text' size='20' value='$key' />";
$r .= "</td><td><textarea name='meta[$mid][value]' tabindex='6' rows='2' cols='30'>$value</textarea></td><td align='center'>";
$r .= "<input name='updatemeta' type='button' class='updatemeta' tabindex='6' value='".attribute_escape(__('Update'))."' onclick='return theList.ajaxUpdater(&#039;meta&#039;,&#039;meta-$mid&#039;);' /><br />";
$r .= "<input name='deletemeta[$mid]' type='submit' onclick=\"return deleteSomething( 'meta', $mid, '";
$r .= js_escape(sprintf(__("You are about to delete the '%s' custom field on this post.\n'OK' to delete, 'Cancel' to stop."), $key_js));
$r .= "' );\" class='deletemeta' tabindex='6' value='".attribute_escape(__('Delete'))."' /></td></tr>";
return $r;
}
$id = (int) $_POST['id'];
switch ( $_POST['action'] ) :
case 'delete-comment' :
if ( !$comment = get_comment( $id ) )
die('0');
if ( !current_user_can( 'edit_post', $comment->comment_post_ID ) )
die('-1');
if ( wp_delete_comment( $comment->comment_ID ) )
die('1');
else die('0');
break;
case 'delete-comment-as-spam' :
if ( !$comment = get_comment( $id ) )
die('0');
if ( !current_user_can( 'edit_post', $comment->comment_post_ID ) )
die('-1');
if ( wp_set_comment_status( $comment->comment_ID, 'spam' ) )
die('1');
else die('0');
break;
case 'delete-cat' :
if ( isset($_GET['action']) && 'ajax-tag-search' == $_GET['action'] ) {
if ( !current_user_can( 'manage_categories' ) )
die('-1');
$s = $_GET['q']; // is this slashed already?
if ( strstr( $s, ',' ) ) {
$s = explode( ',', $s );
$s = $s[count( $s ) - 1];
}
$s = trim( $s );
if ( strlen( $s ) < 2 )
die; // require 2 chars for matching
$results = $wpdb->get_col( "SELECT name FROM $wpdb->terms WHERE name LIKE ('%". $s . "%')" );
echo join( $results, "\n" );
die;
}
$id = isset($_POST['id'])? (int) $_POST['id'] : 0;
switch ( $action = $_POST['action'] ) :
case 'delete-comment' :
check_ajax_referer( "delete-comment_$id" );
if ( !$comment = get_comment( $id ) )
die('1');
if ( !current_user_can( 'edit_post', $comment->comment_post_ID ) )
die('-1');
if ( isset($_POST['spam']) && 1 == $_POST['spam'] ) {
if ( 'spam' == wp_get_comment_status( $comment->comment_ID ) )
die('1');
$r = wp_set_comment_status( $comment->comment_ID, 'spam' );
} else {
$r = wp_delete_comment( $comment->comment_ID );
}
die( $r ? '1' : '0' );
break;
case 'delete-cat' :
check_ajax_referer( "delete-category_$id" );
if ( !current_user_can( 'manage_categories' ) )
die('-1');
$cat = get_category( $id );
if ( !$cat || is_wp_error( $cat ) )
die('1');
if ( wp_delete_category( $id ) )
die('1');
else die('0');
else
die('0');
break;
case 'delete-tag' :
check_ajax_referer( "delete-tag_$id" );
if ( !current_user_can( 'manage_categories' ) )
die('-1');
$tag = get_term( $id, 'post_tag' );
if ( !$tag || is_wp_error( $tag ) )
die('1');
if ( wp_delete_term($id, 'post_tag'))
die('1');
else
die('0');
break;
case 'delete-link-cat' :
check_ajax_referer( "delete-link-category_$id" );
if ( !current_user_can( 'manage_categories' ) )
die('-1');
$cat = get_term( $id, 'link_category' );
if ( !$cat || is_wp_error( $cat ) )
die('1');
$cat_name = get_term_field('name', $id, 'link_category');
// Don't delete the default cats.
if ( $id == get_option('default_link_category') ) {
$x = new WP_AJAX_Response( array(
'what' => 'link-cat',
'id' => $id,
'data' => new WP_Error( 'default-link-cat', sprintf(__("Can&#8217;t delete the <strong>%s</strong> category: this is the default one"), $cat_name) )
) );
$x->send();
}
$r = wp_delete_term($id, 'link_category');
if ( !$r )
die('0');
if ( is_wp_error($r) ) {
$x = new WP_AJAX_Response( array(
'what' => 'link-cat',
'id' => $id,
'data' => $r
) );
$x->send();
}
die('1');
break;
case 'delete-link' :
check_ajax_referer( "delete-bookmark_$id" );
if ( !current_user_can( 'manage_links' ) )
die('-1');
$link = get_bookmark( $id );
if ( !$link || is_wp_error( $link ) )
die('1');
if ( wp_delete_link( $id ) )
die('1');
else die('0');
else
die('0');
break;
case 'delete-meta' :
check_ajax_referer( "delete-meta_$id" );
if ( !$meta = get_post_meta_by_id( $id ) )
die('0');
die('1');
if ( !current_user_can( 'edit_post', $meta->post_id ) )
die('-1');
if ( delete_meta( $meta->meta_id ) )
@@ -74,90 +132,265 @@ case 'delete-meta' :
die('0');
break;
case 'delete-post' :
check_ajax_referer( "{$action}_$id" );
if ( !current_user_can( 'delete_post', $id ) )
die('-1');
if ( wp_delete_post( $id ) )
if ( !get_post( $id ) )
die('1');
else die('0');
break;
case 'delete-page' :
if ( !current_user_can( 'delete_page', $id ) )
die('-1');
if ( wp_delete_post( $id ) )
die('1');
else die('0');
else
die('0');
break;
case 'delete-page' :
check_ajax_referer( "{$action}_$id" );
if ( !current_user_can( 'delete_page', $id ) )
die('-1');
if ( !get_page( $id ) )
die('1');
if ( wp_delete_post( $id ) )
die('1');
else
die('0');
break;
case 'dim-comment' :
if ( !$comment = get_comment( $id ) )
die('0');
if ( !current_user_can( 'edit_post', $comment->comment_post_ID ) )
die('-1');
if ( !current_user_can( 'moderate_comments' ) )
die('-1');
if ( 'unapproved' == wp_get_comment_status($comment->comment_ID) ) {
$current = wp_get_comment_status( $comment->comment_ID );
if ( $_POST['new'] == $current )
die('1');
if ( 'unapproved' == $current ) {
check_ajax_referer( "approve-comment_$id" );
if ( wp_set_comment_status( $comment->comment_ID, 'approve' ) )
die('1');
} else {
check_ajax_referer( "unapprove-comment_$id" );
if ( wp_set_comment_status( $comment->comment_ID, 'hold' ) )
die('1');
}
die('0');
break;
case 'add-category' : // On the Fly
check_ajax_referer( $action );
if ( !current_user_can( 'manage_categories' ) )
die('-1');
$names = explode(',', $_POST['newcat']);
if ( 0 > $parent = (int) $_POST['newcat_parent'] )
$parent = 0;
$post_category = isset($_POST['post_category'])? (array) $_POST['post_category'] : array();
$checked_categories = array_map( 'absint', (array) $post_category );
$popular_ids = isset( $_POST['popular_ids'] ) ?
array_map( 'absint', explode( ',', $_POST['popular_ids'] ) ) :
false;
$x = new WP_Ajax_Response();
foreach ( $names as $cat_name ) {
$cat_name = trim($cat_name);
$category_nicename = sanitize_title($cat_name);
if ( '' === $category_nicename )
continue;
$cat_id = wp_create_category( $cat_name, $parent );
$checked_categories[] = $cat_id;
if ( $parent ) // Do these all at once in a second
continue;
$category = get_category( $cat_id );
ob_start();
wp_category_checklist( 0, $cat_id, $checked_categories, $popular_ids );
$data = ob_get_contents();
ob_end_clean();
$x->add( array(
'what' => 'category',
'id' => $cat_id,
'data' => $data,
'position' => -1
) );
}
if ( $parent ) { // Foncy - replace the parent and all its children
$parent = get_category( $parent );
ob_start();
dropdown_categories( 0, $parent );
$data = ob_get_contents();
ob_end_clean();
$x->add( array(
'what' => 'category',
'id' => $parent->term_id,
'old_id' => $parent->term_id,
'data' => $data,
'position' => -1
) );
}
$x->send();
break;
case 'add-link-category' : // On the Fly
check_ajax_referer( $action );
if ( !current_user_can( 'manage_categories' ) )
die('-1');
$names = explode(',', $_POST['newcat']);
$x = new WP_Ajax_Response();
foreach ( $names as $cat_name ) {
$cat_name = trim($cat_name);
if ( !$category_nicename = sanitize_title($cat_name) )
die('0');
if ( !$cat_id = category_exists( $cat_name ) )
$cat_id = wp_create_category( $cat_name );
$slug = sanitize_title($cat_name);
if ( '' === $slug )
continue;
if ( !$cat_id = is_term( $cat_name, 'link_category' ) ) {
$cat_id = wp_insert_term( $cat_name, 'link_category' );
}
$cat_id = $cat_id['term_id'];
$cat_name = wp_specialchars(stripslashes($cat_name));
$x->add( array(
'what' => 'category',
'what' => 'link-category',
'id' => $cat_id,
'data' => "<li id='category-$cat_id'><label for='in-category-$cat_id' class='selectit'><input value='$cat_id' type='checkbox' checked='checked' name='post_category[]' id='in-category-$cat_id'/> $cat_name</label></li>"
'data' => "<li id='link-category-$cat_id'><label for='in-link-category-$cat_id' class='selectit'><input value='$cat_id' type='checkbox' checked='checked' name='link_category[]' id='in-link-category-$cat_id'/> $cat_name</label></li>",
'position' => -1
) );
}
$x->send();
break;
case 'add-cat' : // From Manage->Categories
check_ajax_referer( 'add-category' );
if ( !current_user_can( 'manage_categories' ) )
die('-1');
if ( !$cat = wp_insert_category( $_POST ) )
die('0');
if ( !$cat = get_category( $cat ) )
if ( '' === trim($_POST['cat_name']) ) {
$x = new WP_Ajax_Response( array(
'what' => 'cat',
'id' => new WP_Error( 'cat_name', __('You did not enter a category name.') )
) );
$x->send();
}
if ( category_exists( trim( $_POST['cat_name'] ) ) ) {
$x = new WP_Ajax_Response( array(
'what' => 'cat',
'id' => new WP_Error( 'cat_exists', __('The category you are trying to create already exists.'), array( 'form-field' => 'cat_name' ) ),
) );
$x->send();
}
$cat = wp_insert_category( $_POST, true );
if ( is_wp_error($cat) ) {
$x = new WP_Ajax_Response( array(
'what' => 'cat',
'id' => $cat
) );
$x->send();
}
if ( !$cat || (!$cat = get_category( $cat )) )
die('0');
$level = 0;
$cat_full_name = $cat->cat_name;
$cat_full_name = $cat->name;
$_cat = $cat;
while ( $_cat->category_parent ) {
$_cat = get_category( $_cat->category_parent );
$cat_full_name = $_cat->cat_name . ' &#8212; ' . $cat_full_name;
while ( $_cat->parent ) {
$_cat = get_category( $_cat->parent );
$cat_full_name = $_cat->name . ' &#8212; ' . $cat_full_name;
$level++;
}
$cat_full_name = attribute_escape($cat_full_name);
$x = new WP_Ajax_Response( array(
'what' => 'cat',
'id' => $cat->cat_ID,
'id' => $cat->term_id,
'data' => _cat_row( $cat, $level, $cat_full_name ),
'supplemental' => array('name' => $cat_full_name, 'show-link' => sprintf(__( 'Category <a href="#%s">%s</a> added' ), "cat-$cat->cat_ID", $cat_full_name))
'supplemental' => array('name' => $cat_full_name, 'show-link' => sprintf(__( 'Category <a href="#%s">%s</a> added' ), "cat-$cat->term_id", $cat_full_name))
) );
$x->send();
break;
case 'add-link-cat' : // From Blogroll -> Categories
check_ajax_referer( 'add-link-category' );
if ( !current_user_can( 'manage_categories' ) )
die('-1');
if ( '' === trim($_POST['name']) ) {
$x = new WP_Ajax_Response( array(
'what' => 'link-cat',
'id' => new WP_Error( 'name', __('You did not enter a category name.') )
) );
$x->send();
}
$r = wp_insert_term($_POST['name'], 'link_category', $_POST );
if ( is_wp_error( $r ) ) {
$x = new WP_AJAX_Response( array(
'what' => 'link-cat',
'id' => $r
) );
$x->send();
}
extract($r, EXTR_SKIP);
if ( !$link_cat = link_cat_row( $term_id ) )
die('0');
$x = new WP_Ajax_Response( array(
'what' => 'link-cat',
'id' => $term_id,
'data' => $link_cat
) );
$x->send();
break;
case 'add-tag' : // From Manage->Tags
check_ajax_referer( 'add-tag' );
if ( !current_user_can( 'manage_categories' ) )
die('-1');
if ( '' === trim($_POST['name']) ) {
$x = new WP_Ajax_Response( array(
'what' => 'tag',
'id' => new WP_Error( 'name', __('You did not enter a tag name.') )
) );
$x->send();
}
$tag = wp_insert_term($_POST['name'], 'post_tag', $_POST );
if ( is_wp_error($tag) ) {
$x = new WP_Ajax_Response( array(
'what' => 'tag',
'id' => $tag
) );
$x->send();
}
if ( !$tag || (!$tag = get_term( $tag['term_id'], 'post_tag' )) )
die('0');
$tag_full_name = $tag->name;
$tag_full_name = attribute_escape($tag_full_name);
$x = new WP_Ajax_Response( array(
'what' => 'tag',
'id' => $tag->term_id,
'data' => _tag_row( $tag ),
'supplemental' => array('name' => $tag_full_name, 'show-link' => sprintf(__( 'Tag <a href="#%s">%s</a> added' ), "tag-$tag->term_id", $tag_full_name))
) );
$x->send();
break;
case 'add-comment' :
check_ajax_referer( $action );
if ( !current_user_can( 'edit_post', $id ) )
die('-1');
$search = isset($_POST['s']) ? $_POST['s'] : false;
$start = isset($_POST['page']) ? intval($_POST['page']) * 25 : 25;
$start = isset($_POST['page']) ? intval($_POST['page']) * 25 - 1: 24;
$status = isset($_POST['comment_status']) ? $_POST['comment_status'] : false;
$mode = isset($_POST['mode']) ? $_POST['mode'] : 'detail';
list($comments, $total) = _wp_get_comment_list( $search, $start, 1 );
list($comments, $total) = _wp_get_comment_list( $status, $search, $start, 1 );
if ( !$comments )
die('1');
@@ -165,7 +398,7 @@ case 'add-comment' :
foreach ( (array) $comments as $comment ) {
get_comment( $comment );
ob_start();
_wp_comment_list_item( $comment->comment_ID );
_wp_comment_row( $comment->comment_ID, $mode, false );
$comment_list_item = ob_get_contents();
ob_end_clean();
$x->add( array(
@@ -177,93 +410,142 @@ case 'add-comment' :
$x->send();
break;
case 'add-meta' :
if ( !current_user_can( 'edit_post', $id ) )
die('-1');
if ( $id < 0 ) {
$now = current_time('timestamp', 1);
if ( $pid = wp_insert_post( array(
'post_title' => sprintf('Draft created on %s at %s', date(get_option('date_format'), $now), date(get_option('time_format'), $now))
) ) )
$mid = add_meta( $pid );
else
check_ajax_referer( 'add-meta' );
$c = 0;
$pid = (int) $_POST['post_id'];
if ( isset($_POST['metakeyselect']) || isset($_POST['metakeyinput']) ) {
if ( !current_user_can( 'edit_post', $pid ) )
die('-1');
if ( '#NONE#' == $_POST['metakeyselect'] && empty($_POST['metakeyinput']) )
die('1');
if ( $pid < 0 ) {
$now = current_time('timestamp', 1);
if ( $pid = wp_insert_post( array(
'post_title' => sprintf('Draft created on %s at %s', date(get_option('date_format'), $now), date(get_option('time_format'), $now))
) ) ) {
if ( is_wp_error( $pid ) ) {
$x = new WP_Ajax_Response( array(
'what' => 'meta',
'data' => $pid
) );
$x->send();
}
$mid = add_meta( $pid );
} else {
die('0');
}
} else if ( !$mid = add_meta( $pid ) ) {
die('0');
} else if ( !$mid = add_meta( $id ) ) {
die('0');
}
}
$meta = get_post_meta_by_id( $mid );
$key = $meta->meta_key;
$value = $meta->meta_value;
$pid = (int) $meta->post_id;
$x = new WP_Ajax_Response( array(
'what' => 'meta',
'id' => $mid,
'data' => wp_ajax_meta_row( $pid, $mid, $key, $value ),
'supplemental' => array('postid' => $pid)
) );
$x->send();
break;
case 'update-meta' :
$mid = (int) array_pop(array_keys($_POST['meta']));
$key = $_POST['meta'][$mid]['key'];
$value = $_POST['meta'][$mid]['value'];
if ( !$meta = get_post_meta_by_id( $mid ) )
die('0'); // if meta doesn't exist
if ( !current_user_can( 'edit_post', $meta->post_id ) )
die('-1');
if ( $u = update_meta( $mid, $key, $value ) ) {
$meta = get_post_meta_by_id( $mid );
$pid = (int) $meta->post_id;
$meta = get_object_vars( $meta );
$x = new WP_Ajax_Response( array(
'what' => 'meta',
'id' => $mid,
'data' => _list_meta_row( $meta, $c ),
'position' => 1,
'supplemental' => array('postid' => $pid)
) );
} else {
$mid = (int) array_pop(array_keys($_POST['meta']));
$key = $_POST['meta'][$mid]['key'];
$value = $_POST['meta'][$mid]['value'];
if ( !$meta = get_post_meta_by_id( $mid ) )
die('0'); // if meta doesn't exist
if ( !current_user_can( 'edit_post', $meta->post_id ) )
die('-1');
if ( !$u = update_meta( $mid, $key, $value ) )
die('1'); // We know meta exists; we also know it's unchanged (or DB error, in which case there are bigger problems).
$key = stripslashes($key);
$value = stripslashes($value);
$x = new WP_Ajax_Response( array(
'what' => 'meta',
'id' => $mid,
'data' => wp_ajax_meta_row( $meta->post_id, $mid, $key, $value ),
'id' => $mid, 'old_id' => $mid,
'data' => _list_meta_row( array(
'meta_key' => $key,
'meta_value' => $value,
'meta_id' => $mid
), $c ),
'position' => 0,
'supplemental' => array('postid' => $meta->post_id)
) );
$x->send();
}
die('1'); // We know meta exists; we also know it's unchanged (or DB error, in which case there are bigger problems).
$x->send();
break;
case 'add-user' :
if ( !current_user_can('edit_users') )
check_ajax_referer( $action );
if ( !current_user_can('create_users') )
die('-1');
require_once(ABSPATH . WPINC . '/registration.php');
if ( !$user_id = add_user() )
die('0');
elseif ( is_wp_error( $user_id ) ) {
foreach( $user_id->get_error_messages() as $message )
echo "<p>$message<p>";
exit;
$x = new WP_Ajax_Response( array(
'what' => 'user',
'id' => $user_id
) );
$x->send();
}
$user_object = new WP_User( $user_id );
$x = new WP_Ajax_Response( array(
'what' => 'user',
'id' => $user_id,
'data' => user_row( $user_object ),
'supplemental' => array('show-link' => sprintf(__( 'User <a href="#%s">%s</a> added' ), "user-$user_id", $user_object->user_login))
'data' => user_row( $user_object, '', $user_object->roles[0] ),
'supplemental' => array(
'show-link' => sprintf(__( 'User <a href="#%s">%s</a> added' ), "user-$user_id", $user_object->user_login),
'role' => $user_object->roles[0]
)
) );
$x->send();
break;
case 'autosave' : // The name of this action is hardcoded in edit_post()
$_POST['post_content'] = $_POST['content'];
$_POST['post_excerpt'] = $_POST['excerpt'];
$_POST['post_status'] = 'draft';
define( 'DOING_AUTOSAVE', true );
$nonce_age = check_ajax_referer( 'autosave', 'autosavenonce' );
global $current_user;
$_POST['post_category'] = explode(",", $_POST['catslist']);
$_POST['tags_input'] = explode(",", $_POST['tags_input']);
if($_POST['post_type'] == 'page' || empty($_POST['post_category']))
unset($_POST['post_category']);
$do_autosave = (bool) $_POST['autosave'];
$do_lock = true;
$data = '';
$message = sprintf( __('Draft Saved at %s.'), date( __('g:i:s a'), current_time( 'timestamp', true ) ) );
$supplemental = array();
$id = $revision_id = 0;
if($_POST['post_ID'] < 0) {
$_POST['post_status'] = 'draft';
$_POST['temp_ID'] = $_POST['post_ID'];
$id = wp_write_post();
if( is_wp_error($id) )
die($id->get_error_message());
else
die("$id");
if ( $do_autosave ) {
$id = wp_write_post();
$data = $message;
}
} else {
$post_ID = (int) $_POST['post_ID'];
$_POST['ID'] = $post_ID;
$post = get_post($post_ID);
if ( $last = wp_check_post_lock( $post->ID ) ) {
$do_autosave = $do_lock = false;
$last_user = get_userdata( $last );
$last_user_name = $last_user ? $last_user->display_name : __( 'Someone' );
$data = new WP_Error( 'locked', sprintf(
$_POST['post_type'] == 'page' ? __( 'Autosave disabled: %s is currently editing this page.' ) : __( 'Autosave disabled: %s is currently editing this post.' ),
wp_specialchars( $last_user_name )
) );
$supplemental['disable_autosave'] = 'disable';
}
if ( 'page' == $post->post_type ) {
if ( !current_user_can('edit_page', $post_ID) )
die(__('You are not allowed to edit this page.'));
@@ -271,11 +553,50 @@ case 'autosave' : // The name of this action is hardcoded in edit_post()
if ( !current_user_can('edit_post', $post_ID) )
die(__('You are not allowed to edit this post.'));
}
wp_update_post($_POST);
if ( $do_autosave ) {
// Drafts are just overwritten by autosave
if ( 'draft' == $post->post_status ) {
$id = edit_post();
} else { // Non drafts are not overwritten. The autosave is stored in a special post revision.
$revision_id = wp_create_post_autosave( $post->ID );
if ( is_wp_error($revision_id) )
$id = $revision_id;
else
$id = $post->ID;
}
$data = $message;
} else {
$id = $post->ID;
}
}
die('0');
break;
if ( $do_lock && $id && is_numeric($id) )
wp_set_post_lock( $id );
if ( $nonce_age == 2 ) {
$supplemental['replace-autosavenonce'] = wp_create_nonce('autosave');
$supplemental['replace-getpermalinknonce'] = wp_create_nonce('getpermalink');
$supplemental['replace-samplepermalinknonce'] = wp_create_nonce('samplepermalink');
$supplemental['replace-closedpostboxesnonce'] = wp_create_nonce('closedpostboxes');
if ( $id ) {
if ( $_POST['post_type'] == 'post' )
$supplemental['replace-_wpnonce'] = wp_create_nonce('update-post_' . $id);
elseif ( $_POST['post_type'] == 'page' )
$supplemental['replace-_wpnonce'] = wp_create_nonce('update-page_' . $id);
}
}
$x = new WP_Ajax_Response( array(
'what' => 'autosave',
'id' => $id,
'data' => $id ? $data : '',
'supplemental' => $supplemental
) );
$x->send();
break;
case 'autosave-generate-nonces' :
check_ajax_referer( 'autosave', 'autosavenonce' );
$ID = (int) $_POST['post_ID'];
if($_POST['post_type'] == 'post') {
if(current_user_can('edit_post', $ID))
@@ -286,7 +607,31 @@ case 'autosave-generate-nonces' :
die(wp_create_nonce('update-page_' . $ID));
}
}
die($_POST['post_type']);
die('0');
break;
case 'closed-postboxes' :
check_ajax_referer( 'closedpostboxes', 'closedpostboxesnonce' );
$closed = isset( $_POST['closed'] )? $_POST['closed'] : '';
$closed = explode( ',', $_POST['closed'] );
$page = isset( $_POST['page'] )? $_POST['page'] : '';
if ( !preg_match( '/^[a-z-]+$/', $page ) ) {
die(-1);
}
if (!is_array($closed)) break;
$current_user = wp_get_current_user();
update_usermeta($current_user->ID, 'closedpostboxes_'.$page, $closed);
break;
case 'get-permalink':
check_ajax_referer( 'getpermalink', 'getpermalinknonce' );
$post_id = isset($_POST['post_id'])? intval($_POST['post_id']) : 0;
die(add_query_arg(array('preview' => 'true'), get_permalink($post_id)));
break;
case 'sample-permalink':
check_ajax_referer( 'samplepermalink', 'samplepermalinknonce' );
$post_id = isset($_POST['post_id'])? intval($_POST['post_id']) : 0;
$title = isset($_POST['new_title'])? $_POST['new_title'] : '';
$slug = isset($_POST['new_slug'])? $_POST['new_slug'] : '';
die(get_sample_permalink_html($post_id, $title, $slug));
break;
default :
do_action( 'wp_ajax_' . $_POST['action'] );

View File

@@ -1,575 +0,0 @@
<?php
function get_users_drafts( $user_id ) {
global $wpdb;
$user_id = (int) $user_id;
$query = "SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'draft' AND post_author = $user_id ORDER BY ID DESC";
$query = apply_filters('get_users_drafts', $query);
return $wpdb->get_results( $query );
}
function get_others_drafts( $user_id ) {
global $wpdb;
$user = get_userdata( $user_id );
$level_key = $wpdb->prefix . 'user_level';
$editable = get_editable_user_ids( $user_id );
if( !$editable ) {
$other_drafts = '';
} else {
$editable = join(',', $editable);
$other_drafts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'draft' AND post_author IN ($editable) AND post_author != '$user_id' ");
}
return apply_filters('get_others_drafts', $other_drafts);
}
function get_editable_authors( $user_id ) {
global $wpdb;
$editable = get_editable_user_ids( $user_id );
if( !$editable ) {
return false;
} else {
$editable = join(',', $editable);
$authors = $wpdb->get_results( "SELECT * FROM $wpdb->users WHERE ID IN ($editable) ORDER BY display_name" );
}
return apply_filters('get_editable_authors', $authors);
}
function get_editable_user_ids( $user_id, $exclude_zeros = true ) {
global $wpdb;
$user = new WP_User( $user_id );
if ( ! $user->has_cap('edit_others_posts') ) {
if ( $user->has_cap('edit_posts') || $exclude_zeros == false )
return array($user->id);
else
return false;
}
$level_key = $wpdb->prefix . 'user_level';
$query = "SELECT user_id FROM $wpdb->usermeta WHERE meta_key = '$level_key'";
if ( $exclude_zeros )
$query .= " AND meta_value != '0'";
return $wpdb->get_col( $query );
}
function get_author_user_ids() {
global $wpdb;
$level_key = $wpdb->prefix . 'user_level';
$query = "SELECT user_id FROM $wpdb->usermeta WHERE meta_key = '$level_key' AND meta_value != '0'";
return $wpdb->get_col( $query );
}
function get_nonauthor_user_ids() {
global $wpdb;
$level_key = $wpdb->prefix . 'user_level';
$query = "SELECT user_id FROM $wpdb->usermeta WHERE meta_key = '$level_key' AND meta_value = '0'";
return $wpdb->get_col( $query );
}
function wp_insert_category($catarr) {
global $wpdb;
extract($catarr);
if( trim( $cat_name ) == '' )
return 0;
$cat_ID = (int) $cat_ID;
// Are we updating or creating?
if (!empty ($cat_ID))
$update = true;
else
$update = false;
$cat_name = apply_filters('pre_category_name', $cat_name);
if (empty ($category_nicename))
$category_nicename = sanitize_title($cat_name);
else
$category_nicename = sanitize_title($category_nicename);
$category_nicename = apply_filters('pre_category_nicename', $category_nicename);
if (empty ($category_description))
$category_description = '';
$category_description = apply_filters('pre_category_description', $category_description);
$category_parent = (int) $category_parent;
if ( empty($category_parent) || !get_category( $category_parent ) || ($cat_ID && cat_is_ancestor_of($cat_ID, $category_parent) ) )
$category_parent = 0;
if ( isset($posts_private) )
$posts_private = (int) $posts_private;
else
$posts_private = 0;
if ( isset($links_private) )
$links_private = (int) $links_private;
else
$links_private = 0;
if ( empty($type) )
$type = TAXONOMY_CATEGORY;
// Let's check if we have this category already, if so just do an update
if ( !$update && $cat_ID = category_object_exists( $category_nicename ) )
$update = true;
if (!$update) {
$wpdb->query("INSERT INTO $wpdb->categories (cat_ID, cat_name, category_nicename, category_description, category_parent, links_private, posts_private, type) VALUES ('0', '$cat_name', '$category_nicename', '$category_description', '$category_parent', '$links_private', '$posts_private', '$type')");
$cat_ID = (int) $wpdb->insert_id;
} else {
$wpdb->query ("UPDATE $wpdb->categories SET cat_name = '$cat_name', category_nicename = '$category_nicename', category_description = '$category_description', category_parent = '$category_parent', links_private = '$links_private', posts_private = '$posts_private', type = '$type' WHERE cat_ID = '$cat_ID'");
}
if ( $category_nicename == '' ) {
$category_nicename = sanitize_title($cat_name, $cat_ID );
$wpdb->query( "UPDATE $wpdb->categories SET category_nicename = '$category_nicename' WHERE cat_ID = '$cat_ID'" );
}
// Keep in mind when using this filter and altering the cat_ID that the two queries above
// have already taken place with the OLD cat_ID
// Also note that you may have post2cat entries with the old cat_ID if this is an update
if ($update) {
do_action('edit_category', $cat_ID);
} else {
do_action('create_category', $cat_ID);
do_action('add_category', $cat_ID);
}
$cat_ID = apply_filters('cat_id_filter', $cat_ID, $update);
clean_category_cache($cat_ID);
if ($update)
do_action('edited_category', $cat_ID);
else
do_action('created_category', $cat_ID);
return $cat_ID;
}
function wp_update_category($catarr) {
global $wpdb;
$cat_ID = (int) $catarr['cat_ID'];
if( $cat_ID == $catarr['category_parent'] )
return false;
// First, get all of the original fields
$category = get_category($cat_ID, ARRAY_A);
// Escape data pulled from DB.
$category = add_magic_quotes($category);
// Merge old and new fields with new fields overwriting old ones.
$catarr = array_merge($category, $catarr);
return wp_insert_category($catarr);
}
function wp_delete_category($cat_ID) {
global $wpdb;
$cat_ID = (int) $cat_ID;
$default_cat = get_option('default_category');
$default_link_cat = get_option('default_link_category');
// Don't delete either of the default cats
if ( $cat_ID == $default_cat || $cat_ID == $default_link_cat )
return 0;
$category = get_category($cat_ID);
$parent = $category->category_parent;
// Delete the category if it is not also a tag.
if ( 0 == ($category->type & TAXONOMY_TAG) ) {
if ( !$wpdb->query("DELETE FROM $wpdb->categories WHERE cat_ID = '$cat_ID'") )
return 0;
} else {
$wpdb->query("UPDATE $wpdb->categories SET type = type & ~" . TAXONOMY_CATEGORY . " WHERE cat_ID = '$cat_ID'");
}
// Update children to point to new parent
$wpdb->query("UPDATE $wpdb->categories SET category_parent = '$parent' WHERE category_parent = '$cat_ID'");
// Only set posts and links to the default category if they're not in another category already
$posts = $wpdb->get_col("SELECT post_id FROM $wpdb->post2cat WHERE category_id='$cat_ID' AND rel_type = 'category'");
foreach ( (array) $posts as $post_id ) {
$cats = wp_get_post_categories($post_id);
if ( 1 == count($cats) )
$cats = array($default_cat);
else
$cats = array_diff($cats, array($cat_ID));
wp_set_post_categories($post_id, $cats);
}
$links = $wpdb->get_col("SELECT link_id FROM $wpdb->link2cat WHERE category_id='$cat_ID'");
foreach ( (array) $links as $link_id ) {
$cats = wp_get_link_cats($link_id);
if ( 1 == count($cats) )
$cats = array($default_link_cat);
else
$cats = array_diff($cats, array($cat_ID));
wp_set_link_cats($link_id, $cats);
}
clean_category_cache($cat_ID);
do_action('delete_category', $cat_ID);
return 1;
}
function wp_create_category($cat_name) {
if ( $id = category_exists($cat_name) )
return $id;
$cat_array = array('cat_name' => $cat_name, 'type' => TAXONOMY_CATEGORY);
if ( $id = category_object_exists($cat_name) ) {
$category = get_category($id);
$cat_array['type'] = $category->type | $cat_array['type'];
$cat_array['cat_ID'] = $id;
return wp_update_category($cat_array);
} else {
return wp_insert_category($cat_array);
}
}
function wp_create_categories($categories, $post_id = '') {
$cat_ids = array ();
foreach ($categories as $category) {
if ($id = category_exists($category))
$cat_ids[] = $id;
else
if ($id = wp_create_category($category))
$cat_ids[] = $id;
}
if ($post_id)
wp_set_post_categories($post_id, $cat_ids);
return $cat_ids;
}
function category_object_exists($cat_name) {
global $wpdb;
if (!$category_nicename = sanitize_title($cat_name))
return 0;
return (int) $wpdb->get_var("SELECT cat_ID FROM $wpdb->categories WHERE category_nicename = '$category_nicename'");
}
function category_exists($cat_name) {
global $wpdb;
if (!$category_nicename = sanitize_title($cat_name))
return 0;
return (int) $wpdb->get_var("SELECT cat_ID FROM $wpdb->categories WHERE category_nicename = '$category_nicename' AND ( type & " . TAXONOMY_CATEGORY . " != 0 )");
}
function tag_exists($tag_name) {
global $wpdb;
if (! $tag_nicename = sanitize_title($tag_name))
return 0;
return (int) $wpdb->get_var("SELECT cat_ID FROM $wpdb->categories WHERE category_nicename = '$tag_nicename' AND ( type & " . TAXONOMY_TAG . " != 0 )");
}
function wp_create_tag($tag_name) {
if ( $id = tag_exists($tag_name) )
return $id;
$tag_array = array('cat_name' => $tag_name, 'type' => TAXONOMY_TAG);
if ( $id = category_object_exists($tag_name) ) {
$category = get_category($id);
$tag_array['type'] = $category->type | $tag_array['type'];
$tag_array['cat_ID'] = $id;
$id = wp_update_category($tag_array);
return $id;
} else {
return wp_insert_category($tag_array);
}
}
function wp_delete_user($id, $reassign = 'novalue') {
global $wpdb;
$id = (int) $id;
$user = get_userdata($id);
if ($reassign == 'novalue') {
$post_ids = $wpdb->get_col("SELECT ID FROM $wpdb->posts WHERE post_author = $id");
if ($post_ids) {
foreach ($post_ids as $post_id)
wp_delete_post($post_id);
}
// Clean links
$wpdb->query("DELETE FROM $wpdb->links WHERE link_owner = $id");
} else {
$reassign = (int) $reassign;
$wpdb->query("UPDATE $wpdb->posts SET post_author = {$reassign} WHERE post_author = {$id}");
$wpdb->query("UPDATE $wpdb->links SET link_owner = {$reassign} WHERE link_owner = {$id}");
}
// FINALLY, delete user
do_action('delete_user', $id);
$wpdb->query("DELETE FROM $wpdb->users WHERE ID = $id");
$wpdb->query("DELETE FROM $wpdb->usermeta WHERE user_id = '$id'");
wp_cache_delete($id, 'users');
wp_cache_delete($user->user_login, 'userlogins');
return true;
}
function wp_revoke_user($id) {
$id = (int) $id;
$user = new WP_User($id);
$user->remove_all_caps();
}
function wp_insert_link($linkdata) {
global $wpdb, $current_user;
extract($linkdata);
$update = false;
if ( !empty($link_id) )
$update = true;
$link_id = (int) $link_id;
if( trim( $link_name ) == '' )
return 0;
$link_name = apply_filters('pre_link_name', $link_name);
if( trim( $link_url ) == '' )
return 0;
$link_url = apply_filters('pre_link_url', $link_url);
if ( empty($link_rating) )
$link_rating = 0;
else
$link_rating = (int) $link_rating;
if ( empty($link_image) )
$link_image = '';
$link_image = apply_filters('pre_link_image', $link_image);
if ( empty($link_target) )
$link_target = '';
$link_target = apply_filters('pre_link_target', $link_target);
if ( empty($link_visible) )
$link_visible = 'Y';
$link_visibile = preg_replace('/[^YNyn]/', '', $link_visible);
if ( empty($link_owner) )
$link_owner = $current_user->id;
else
$link_owner = (int) $link_owner;
if ( empty($link_notes) )
$link_notes = '';
$link_notes = apply_filters('pre_link_notes', $link_notes);
if ( empty($link_description) )
$link_description = '';
$link_description = apply_filters('pre_link_description', $link_description);
if ( empty($link_rss) )
$link_rss = '';
$link_rss = apply_filters('pre_link_rss', $link_rss);
if ( empty($link_rel) )
$link_rel = '';
$link_rel = apply_filters('pre_link_rel', $link_rel);
// Make sure we set a valid category
if (0 == count($link_category) || !is_array($link_category)) {
$link_category = array(get_option('default_link_category'));
}
if ( $update ) {
$wpdb->query("UPDATE $wpdb->links SET link_url='$link_url',
link_name='$link_name', link_image='$link_image',
link_target='$link_target',
link_visible='$link_visible', link_description='$link_description',
link_rating='$link_rating', link_rel='$link_rel',
link_notes='$link_notes', link_rss = '$link_rss'
WHERE link_id='$link_id'");
} else {
$wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_image, link_target, link_description, link_visible, link_owner, link_rating, link_rel, link_notes, link_rss) VALUES('$link_url','$link_name', '$link_image', '$link_target', '$link_description', '$link_visible', '$link_owner', '$link_rating', '$link_rel', '$link_notes', '$link_rss')");
$link_id = (int) $wpdb->insert_id;
}
wp_set_link_cats($link_id, $link_category);
if ( $update )
do_action('edit_link', $link_id);
else
do_action('add_link', $link_id);
return $link_id;
}
function wp_update_link($linkdata) {
global $wpdb;
$link_id = (int) $linkdata['link_id'];
$link = get_link($link_id, ARRAY_A);
// Escape data pulled from DB.
$link = add_magic_quotes($link);
// Passed link category list overwrites existing category list if not empty.
if ( isset($linkdata['link_category']) && is_array($linkdata['link_category'])
&& 0 != count($linkdata['link_category']) )
$link_cats = $linkdata['link_category'];
else
$link_cats = $link['link_category'];
// Merge old and new fields with new fields overwriting old ones.
$linkdata = array_merge($link, $linkdata);
$linkdata['link_category'] = $link_cats;
return wp_insert_link($linkdata);
}
function wp_delete_link($link_id) {
global $wpdb;
do_action('delete_link', $link_id);
$categories = wp_get_link_cats($link_id);
if( is_array( $categories ) ) {
foreach ( $categories as $category ) {
$wpdb->query("UPDATE $wpdb->categories SET link_count = link_count - 1 WHERE cat_ID = '$category'");
wp_cache_delete($category, 'category');
do_action('edit_category', $cat_id);
}
}
$wpdb->query("DELETE FROM $wpdb->link2cat WHERE link_id = '$link_id'");
return $wpdb->query("DELETE FROM $wpdb->links WHERE link_id = '$link_id'");
do_action('deleted_link', $link_id);
}
function wp_get_link_cats($link_ID = 0) {
global $wpdb;
$sql = "SELECT category_id
FROM $wpdb->link2cat
WHERE link_id = $link_ID
ORDER BY category_id";
$result = $wpdb->get_col($sql);
if ( !$result )
$result = array();
return array_unique($result);
}
function wp_set_link_cats($link_ID = 0, $link_categories = array()) {
global $wpdb;
// If $link_categories isn't already an array, make it one:
if (!is_array($link_categories) || 0 == count($link_categories))
$link_categories = array(get_option('default_link_category'));
$link_categories = array_unique($link_categories);
// First the old categories
$old_categories = $wpdb->get_col("
SELECT category_id
FROM $wpdb->link2cat
WHERE link_id = '$link_ID'");
if (!$old_categories) {
$old_categories = array();
} else {
$old_categories = array_unique($old_categories);
}
// Delete any?
$delete_cats = array_diff($old_categories,$link_categories);
if ($delete_cats) {
foreach ($delete_cats as $del) {
$del = (int) $del;
$wpdb->query("
DELETE FROM $wpdb->link2cat
WHERE category_id = '$del'
AND link_id = '$link_ID'
");
}
}
// Add any?
$add_cats = array_diff($link_categories, $old_categories);
if ($add_cats) {
foreach ($add_cats as $new_cat) {
$new_cat = (int) $new_cat;
if ( !empty($new_cat) )
$wpdb->query("
INSERT INTO $wpdb->link2cat (link_id, category_id)
VALUES ('$link_ID', '$new_cat')");
}
}
// Update category counts.
$all_affected_cats = array_unique(array_merge($link_categories, $old_categories));
foreach ( $all_affected_cats as $cat_id ) {
$count = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->link2cat, $wpdb->links WHERE $wpdb->links.link_id = $wpdb->link2cat.link_id AND category_id = '$cat_id'");
$wpdb->query("UPDATE $wpdb->categories SET link_count = '$count' WHERE cat_ID = '$cat_id'");
wp_cache_delete($cat_id, 'category');
do_action('edit_category', $cat_id);
}
} // wp_set_link_cats()
function post_exists($title, $content = '', $post_date = '') {
global $wpdb;
if (!empty ($post_date))
$post_date = "AND post_date = '$post_date'";
if (!empty ($title))
return $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_title = '$title' $post_date");
else
if (!empty ($content))
return $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_content = '$content' $post_date");
return 0;
}
function comment_exists($comment_author, $comment_date) {
global $wpdb;
return $wpdb->get_var("SELECT comment_post_ID FROM $wpdb->comments
WHERE comment_author = '$comment_author' AND comment_date = '$comment_date'");
}
?>

View File

@@ -1,10 +1,14 @@
</div><!-- wpbody -->
</div><!-- wpcontent -->
</div><!-- wpwrap -->
<div id="footer">
<p class="logo"><a href="http://wordpress.org/" id="wordpress-logo"><img src="images/wordpress-logo.png" alt="WordPress" /></a></p>
<p class="docs"><?php _e('<a href="http://codex.wordpress.org/">Documentation</a>'); ?> &#8212; <?php _e('<a href="http://wordpress.org/support/">Support Forums</a>'); ?><br />
<?php bloginfo('version'); ?> &#8212; <?php printf(__('%s seconds'), timer_stop(0, 2)); ?></p>
<p><?php
do_action('in_admin_footer', '');
$upgrade = apply_filters( 'update_footer', '' );
echo __('Thank you for creating with <a href="http://wordpress.org/">WordPress</a>').' | '.__('<a href="http://codex.wordpress.org/">Documentation</a>').' | '.__('<a href="http://wordpress.org/support/forum/4">Feedback</a>').' '.$upgrade;
?></p>
</div>
<?php do_action('admin_footer', ''); ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
</html>

File diff suppressed because it is too large Load Diff

View File

@@ -1,13 +1,24 @@
<?php
@header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
if (!isset($_GET["page"])) require_once('admin.php');
if ( $editing ) {
wp_enqueue_script( array('dbx-admin-key?pagenow=' . attribute_escape($pagenow),'admin-custom-fields') );
if ( current_user_can('manage_categories') )
wp_enqueue_script( 'ajaxcat' );
if ( user_can_richedit() )
wp_enqueue_script( 'wp_tiny_mce' );
}
wp_enqueue_script( 'wp-gears' );
$min_width_pages = array( 'post.php', 'post-new.php', 'page.php', 'page-new.php', 'widgets.php', 'comment.php', 'link.php' );
$the_current_page = preg_replace('|^.*/wp-admin/|i', '', $_SERVER['PHP_SELF']);
$ie6_no_scrollbar = true;
function add_minwidth($c) {
return $c . 'minwidth ';
}
if ( in_array( $the_current_page, $min_width_pages ) ) {
$ie6_no_scrollbar = false;
add_filter( 'admin_body_class', 'add_minwidth' );
}
get_admin_page_title();
@@ -17,41 +28,95 @@ get_admin_page_title();
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
<title><?php bloginfo('name') ?> &rsaquo; <?php echo wp_specialchars( strip_tags( $title ) ); ?> &#8212; WordPress</title>
<link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" />
<?php if ( ('rtl' == $wp_locale->text_direction) ) : ?>
<link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" />
<?php endif; ?>
<?php
wp_admin_css( 'css/global' );
wp_admin_css();
wp_admin_css( 'css/colors' );
wp_admin_css( 'css/ie' );
?>
<script type="text/javascript">
//<![CDATA[
function addLoadEvent(func) {if ( typeof wpOnload!='function'){wpOnload=func;}else{ var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}
addLoadEvent = function(func) {if (typeof jQuery != "undefined") jQuery(document).ready(func); else if (typeof wpOnload!='function'){wpOnload=func;} else {var oldonload=wpOnload; wpOnload=function(){oldonload();func();}}};
//]]>
</script>
<?php if ( ($parent_file != 'link-manager.php') && ($parent_file != 'options-general.php') ) : ?>
<?php if ( ($parent_file != 'link-manager.php') && ($parent_file != 'options-general.php') && $ie6_no_scrollbar ) : ?>
<style type="text/css">* html { overflow-x: hidden; }</style>
<?php endif;
if ( isset($page_hook) )
do_action('admin_print_scripts-' . $page_hook);
else if ( isset($plugin_page) )
do_action('admin_print_scripts-' . $plugin_page);
do_action('admin_print_scripts');
$hook_suffixes = array();
if ( isset($page_hook) )
do_action('admin_head-' . $page_hook);
$hook_suffixes[] = "-$page_hook";
else if ( isset($plugin_page) )
do_action('admin_head-' . $plugin_page);
do_action('admin_head');
$hook_suffixes[] = "-$plugin_page";
else if ( isset($pagenow) )
$hook_suffixes[] = "-$pagenow";
$hook_suffixes[] = '';
foreach ( $hook_suffixes as $hook_suffix )
do_action("admin_print_styles$hook_suffix"); // do_action( 'admin_print_styles-XXX' ); do_action( 'admin_print_styles' );
foreach ( $hook_suffixes as $hook_suffix )
do_action("admin_print_scripts$hook_suffix"); // do_action( 'admin_print_scripts-XXX' ); do_action( 'admin_print_scripts' );
foreach ( $hook_suffixes as $hook_suffix )
do_action("admin_head$hook_suffix"); // do_action( 'admin_head-XXX' ); do_action( 'admin_head' );
unset($hook_suffixes, $hook_suffix);
?>
</head>
<body>
<body class="wp-admin <?php echo apply_filters( 'admin_body_class', '' ); ?>">
<div id="wpwrap">
<div id="wpcontent">
<div id="wphead">
<h1><?php bloginfo('name'); ?> <span>(<a href="<?php echo get_option('home') . '/'; ?>"><?php _e('View site &raquo;') ?></a>)</span></h1>
<h1><?php if ( '' == get_bloginfo('name', 'display') ) echo '&nbsp;'; else echo get_bloginfo('name', 'display'); ?><span id="viewsite"><a href="<?php echo trailingslashit( get_option('home') ); ?>"><?php _e('Visit Site') ?></a></span></h1>
</div>
<div id="user_info"><p><?php printf(__('Howdy, <strong>%s</strong>.'), $user_identity) ?> [<a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>"><?php _e('Sign Out'); ?></a>, <a href="profile.php"><?php _e('My Profile'); ?></a>] </p></div>
<?php
require(ABSPATH . '/wp-admin/menu-header.php');
$gears_compat = false;
if ( ($is_gecko || $is_winIE) && strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'webkit') === false ) {
$gears_compat = true;
?>
<div id="gears-info-box" class="info-box" style="display:none;">
<img src="images/gear.png" title="Gear" alt="" class="gears-img" />
<div id="gears-msg1">
<h3 class="info-box-title"><?php _e('Speed up WordPress'); ?></h3>
<p><?php _e('WordPress now has support for Gears, which adds new features to your web browser.'); ?><br />
<a href="http://gears.google.com/" target="_blank" style="font-weight:normal;"><?php _e('More information...'); ?></a></p>
<p><?php _e('After you install and enable Gears most of WordPress&#8217; images, scripts, and CSS files will be stored locally on your computer. This speeds up page load time.'); ?></p>
<p><strong><?php _e('Don&#8217;t install on a public or shared computer.'); ?></strong></p> <div class="submit"><button onclick="window.location = 'http://gears.google.com/?action=install&amp;return=<?php echo urlencode( admin_url() ); ?>';" class="button"><?php _e('Install Now'); ?></button>
<button class="button" style="margin-left:10px;" onclick="document.getElementById('gears-info-box').style.display='none';"><?php _e('Cancel'); ?></button></div>
</div>
<div id="gears-msg2" style="display:none;">
<h3 class="info-box-title"><?php _e('Gears Status'); ?></h3>
<p><?php _e('Gears is installed on this computer but is not enabled for use with WordPress.'); ?></p>
<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>
<p><strong><?php _e('However if this is a public or shared computer, Gears should not be enabled.'); ?></strong></p>
<div class="submit"><button class="button" onclick="wpGears.getPermission();"><?php _e('Enable Gears'); ?></button>
<button class="button" style="margin-left:10px;" onclick="document.getElementById('gears-info-box').style.display='none';"><?php _e('Cancel'); ?></button></div>
</div>
<div id="gears-msg3" style="display:none;">
<h3 class="info-box-title"><?php _e('Gears Status'); ?></h3>
<p><?php _e('Gears is installed and enabled on this computer. You can disable it from your browser Tools menu.'); ?></p>
<p><?php _e('If there are any errors, try disabling Gears, then reload the page and enable it again.'); ?></p>
<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>
<div class="submit"><button class="button" onclick="document.getElementById('gears-info-box').style.display='none';"><?php _e('Close'); ?></button></div>
</div>
</div>
<?php } ?>
<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>
<?php
require(ABSPATH . 'wp-admin/menu-header.php');
if ( $parent_file == 'options-general.php' ) {
require(ABSPATH . '/wp-admin/options-head.php');
require(ABSPATH . 'wp-admin/options-head.php');
}
?>
<div id="wpbody">

24
wp-admin/admin-post.php Normal file
View File

@@ -0,0 +1,24 @@
<?php
define('WP_ADMIN', TRUE);
if ( defined('ABSPATH') )
require_once(ABSPATH . 'wp-load.php');
else
require_once('../wp-load.php');
require_once(ABSPATH . 'wp-admin/includes/admin.php');
if ( !wp_validate_auth_cookie() )
wp_die(__('Cheatin&#8217; uh?'));
nocache_headers();
do_action('admin_init');
$action = 'admin_post';
if ( !empty($_REQUEST['action']) )
$action .= '_' . $_REQUEST['action'];
do_action($action);
?>

View File

@@ -1,17 +1,17 @@
<?php
define('WP_ADMIN', TRUE);
if ( defined('ABSPATH') )
require_once( ABSPATH . 'wp-config.php');
require_once(ABSPATH . 'wp-load.php');
else
require_once('../wp-config.php');
require_once('../wp-load.php');
if ( get_option('db_version') != $wp_db_version ) {
wp_redirect(get_option('siteurl') . '/wp-admin/upgrade.php?_wp_http_referer=' . urlencode(stripslashes($_SERVER['REQUEST_URI'])));
wp_redirect(admin_url('upgrade.php?_wp_http_referer=' . urlencode(stripslashes($_SERVER['REQUEST_URI']))));
exit;
}
require_once(ABSPATH . 'wp-admin/admin-functions.php');
require_once(ABSPATH . 'wp-admin/admin-db.php');
require_once(ABSPATH . WPINC . '/registration.php');
require_once(ABSPATH . 'wp-admin/includes/admin.php');
auth_redirect();
@@ -19,8 +19,6 @@ nocache_headers();
update_category_cache();
wp_get_current_user();
$posts_per_page = get_option('posts_per_page');
$what_to_show = get_option('what_to_show');
$date_format = get_option('date_format');
@@ -28,7 +26,11 @@ $time_format = get_option('time_format');
wp_reset_vars(array('profile', 'redirect', 'redirect_url', 'a', 'popuptitle', 'popupurl', 'text', 'trackback', 'pingback'));
wp_enqueue_script( 'fat' );
wp_admin_css_color('classic', __('Classic'), admin_url("css/colors-classic.css"), array('#07273E', '#14568A', '#D54E21', '#2683AE'));
wp_admin_css_color('fresh', __('Fresh'), admin_url("css/colors-fresh.css"), array('#464646', '#CEE1EF', '#D54E21', '#2683AE'));
wp_enqueue_script( 'common' );
wp_enqueue_script( 'jquery-color' );
$editing = false;
@@ -37,7 +39,9 @@ if (isset($_GET['page'])) {
$plugin_page = plugin_basename($plugin_page);
}
require(ABSPATH . '/wp-admin/menu.php');
require(ABSPATH . 'wp-admin/menu.php');
do_action('admin_init');
// Handle plugin admin pages.
if (isset($plugin_page)) {
@@ -46,7 +50,7 @@ if (isset($plugin_page)) {
if ( $page_hook ) {
do_action('load-' . $page_hook);
if (! isset($_GET['noheader']))
require_once(ABSPATH . '/wp-admin/admin-header.php');
require_once(ABSPATH . 'wp-admin/admin-header.php');
do_action($page_hook);
} else {
@@ -54,15 +58,15 @@ if (isset($plugin_page)) {
wp_die(__('Invalid plugin page'));
}
if (! file_exists(ABSPATH . PLUGINDIR . "/$plugin_page"))
if (! ( file_exists(WP_PLUGIN_DIR . "/$plugin_page") && is_file(WP_PLUGIN_DIR . "/$plugin_page") ) )
wp_die(sprintf(__('Cannot load %s.'), htmlentities($plugin_page)));
do_action('load-' . $plugin_page);
if (! isset($_GET['noheader']))
require_once(ABSPATH . '/wp-admin/admin-header.php');
require_once(ABSPATH . 'wp-admin/admin-header.php');
include(ABSPATH . PLUGINDIR . "/$plugin_page");
include(WP_PLUGIN_DIR . "/$plugin_page");
}
include(ABSPATH . 'wp-admin/admin-footer.php');
@@ -79,10 +83,15 @@ if (isset($plugin_page)) {
wp_die(__('Invalid importer.'));
}
if (! file_exists(ABSPATH . "wp-admin/import/$importer.php"))
wp_die(__('Cannot load importer.'));
include(ABSPATH . "wp-admin/import/$importer.php");
// Allow plugins to define importers as well
if (! is_callable($wp_importers[$importer][2]))
{
if (! file_exists(ABSPATH . "wp-admin/import/$importer.php"))
{
wp_die(__('Cannot load importer.'));
}
include(ABSPATH . "wp-admin/import/$importer.php");
}
$parent_file = 'edit.php';
$submenu_file = 'import.php';
@@ -91,7 +100,7 @@ if (isset($plugin_page)) {
if (! isset($_GET['noheader']))
require_once(ABSPATH . 'wp-admin/admin-header.php');
require_once(ABSPATH . 'wp-admin/upgrade-functions.php');
require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
define('WP_IMPORTING', true);
@@ -104,4 +113,7 @@ if (isset($plugin_page)) {
do_action("load-$pagenow");
}
if ( !empty($_REQUEST['action']) )
do_action('admin_action_' . $_REQUEST['action']);
?>

49
wp-admin/async-upload.php Normal file
View File

@@ -0,0 +1,49 @@
<?php
/* This accepts file uploads from swfupload or other asynchronous upload methods.
*/
if ( defined('ABSPATH') )
require_once(ABSPATH . 'wp-load.php');
else
require_once('../wp-load.php');
// Flash often fails to send cookies with the POST or upload, so we need to pass it in GET or POST instead
if ( is_ssl() && empty($_COOKIE[SECURE_AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
$_COOKIE[SECURE_AUTH_COOKIE] = $_REQUEST['auth_cookie'];
elseif ( empty($_COOKIE[AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
$_COOKIE[AUTH_COOKIE] = $_REQUEST['auth_cookie'];
unset($current_user);
require_once('admin.php');
header('Content-Type: text/plain; charset=' . get_option('blog_charset'));
if ( !current_user_can('upload_files') )
wp_die(__('You do not have permission to upload files.'));
// just fetch the detail form for that attachment
if ( ($id = intval($_REQUEST['attachment_id'])) && $_REQUEST['fetch'] ) {
echo get_media_item($id);
exit;
}
check_admin_referer('media-form');
$id = media_handle_upload('async-upload', $_REQUEST['post_id']);
if (is_wp_error($id)) {
echo '<div id="media-upload-error">'.wp_specialchars($id->get_error_message()).'</div>';
exit;
}
if ( $_REQUEST['short'] ) {
// short form response - attachment ID only
echo $id;
}
else {
// long form response - big chunk o html
$type = $_REQUEST['type'];
echo apply_filters("async_upload_{$type}", $id);
}
?>

View File

@@ -1,104 +0,0 @@
<?php
$mode = 'bookmarklet';
require_once('admin.php');
if ( ! current_user_can('edit_posts') )
wp_die(__('Cheatin&#8217; uh?'));
if ('b' == $a):
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
<!--
window.close()
-->
</script>
</head>
<body></body>
</html>
<?php
exit;
endif;
$post = get_default_post_to_edit();
$popuptitle = wp_specialchars(stripslashes($popuptitle));
$text = wp_specialchars(stripslashes(urldecode($text)));
$popuptitle = funky_javascript_fix($popuptitle);
$text = funky_javascript_fix($text);
$post_title = wp_specialchars($_REQUEST['post_title']);
if (!empty($post_title))
$post->post_title = stripslashes($post_title);
else
$post->post_title = $popuptitle;
$content = wp_specialchars($_REQUEST['content']);
$popupurl = clean_url($_REQUEST['popupurl']);
if ( !empty($content) ) {
$post->post_content = wp_specialchars( stripslashes($_REQUEST['content']) );
} else {
$post->post_content = '<a href="'.$popupurl.'">'.$popuptitle.'</a>'."\n$text";
}
/* /big funky fixes */
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php bloginfo('name') ?> &rsaquo; Bookmarklet &#8212; WordPress</title>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
<link rel="stylesheet" href="wp-admin.css" type="text/css" />
<style type="text/css">
<!--
#wpbookmarklet textarea,input,select {
border-width: 1px;
border-color: #cccccc;
border-style: solid;
padding: 2px;
margin: 1px;
}
#wpbookmarklet .checkbox {
background-color: #ffffff;
border-width: 0px;
padding: 0px;
margin: 0px;
}
#wpbookmarklet textarea {
font-family: Verdana, Geneva, Arial, Helvetica;
font-size: 0.9em;
}
#wpbookmarklet .wrap {
border: 0px;
}
#wpbookmarklet #postdiv {
margin-bottom: 0.5em;
}
#wpbookmarklet #titlediv {
margin-bottom: 1em;
}
-->
</style>
</head>
<body id="wpbookmarklet">
<div id="wphead">
<h1><?php bloginfo('name') ?></h1>
</div>
<?php require('edit-form.php'); ?>
<?php do_action('admin_footer', ''); ?>
</body>
</html>

View File

@@ -1,10 +0,0 @@
addLoadEvent(function(){catList=new listMan('categorychecklist');catList.ajaxRespEl='jaxcat';catList.topAdder=1;catList.alt=0;catList.showLink=0;});
addLoadEvent(newCatAddIn);
function newCatAddIn() {
var jaxcat = $('jaxcat');
if ( !jaxcat )
return false;
Element.update(jaxcat,'<span id="ajaxcat"><input type="text" name="newcat" id="newcat" size="16" autocomplete="off"/><input type="button" name="Button" id="catadd" value="' + catL10n.add + '"/><input type="hidden"/><span id="howto">' + catL10n.how + '</span></span>');
$('newcat').onkeypress = function(e) { return killSubmit("catList.ajaxAdder('category','jaxcat');", e); };
$('catadd').onclick = function() { catList.ajaxAdder('category', 'jaxcat'); };
}

View File

@@ -1,16 +0,0 @@
addLoadEvent(function() {
if (!theList.theList) return false;
document.forms.addcat.submit.onclick = function(e) {return killSubmit('theList.ajaxAdder("cat", "addcat");', e); };
theList.addComplete = function(what, where, update, transport) {
var name = getNodeValue(transport.responseXML, 'name').unescapeHTML();
var id = transport.responseXML.getElementsByTagName(what)[0].getAttribute('id');
var options = document.forms['addcat'].category_parent.options;
options[options.length] = new Option(name, id);
};
theList.delComplete = function(what, id) {
var options = document.forms['addcat'].category_parent.options;
for ( var o = 0; o < options.length; o++ )
if ( id == options[o].value )
options[o] = null;
};
});

View File

@@ -6,6 +6,9 @@ $parent_file = 'edit.php';
wp_reset_vars(array('action', 'cat'));
if ( isset($_GET['deleteit']) && isset($_GET['delete']) )
$action = 'bulk-delete';
switch($action) {
case 'addcat':
@@ -36,9 +39,6 @@ case 'delete':
if ( $cat_ID == get_option('default_category') )
wp_die(sprintf(__("Can&#8217;t delete the <strong>%s</strong> category: this is the default one"), $cat_name));
if ( $cat_ID == get_option('default_link_category') )
wp_die(sprintf(__("Can&#8217;t delete the <strong>%s</strong> category: this is the default one for links"), $cat_name));
wp_delete_category($cat_ID);
wp_redirect('categories.php?message=2');
@@ -46,6 +46,29 @@ case 'delete':
break;
case 'bulk-delete':
check_admin_referer('bulk-categories');
if ( !current_user_can('manage_categories') )
wp_die( __('You are not allowed to delete categories.') );
foreach ( (array) $_GET['delete'] as $cat_ID ) {
$cat_name = get_catname($cat_ID);
// Don't delete the default cats.
if ( $cat_ID == get_option('default_category') )
wp_die(sprintf(__("Can&#8217;t delete the <strong>%s</strong> category: this is the default one"), $cat_name));
wp_delete_category($cat_ID);
}
$sendback = wp_get_referer();
$sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback);
wp_redirect($sendback);
exit();
break;
case 'edit':
require_once ('admin-header.php');
@@ -63,16 +86,23 @@ case 'editedcat':
wp_die(__('Cheatin&#8217; uh?'));
if ( wp_update_category($_POST) )
wp_redirect('categories.php?message=3');
wp_redirect('categories.php?message=3');
else
wp_redirect('categories.php?message=5');
wp_redirect('categories.php?message=5');
exit;
break;
default:
if ( !empty($_GET['_wp_http_referer']) ) {
wp_redirect(remove_query_arg(array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI'])));
exit;
}
wp_enqueue_script( 'admin-categories' );
wp_enqueue_script('admin-forms');
require_once ('admin-header.php');
$messages[1] = __('Category added.');
@@ -84,49 +114,92 @@ $messages[5] = __('Category not updated.');
<?php if (isset($_GET['message'])) : ?>
<div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div>
<?php endif; ?>
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
endif; ?>
<div class="wrap">
<form id="posts-filter" action="" method="get">
<?php if ( current_user_can('manage_categories') ) : ?>
<h2><?php printf(__('Categories (<a href="%s">add new</a>)'), '#addcat') ?> </h2>
<h2><?php printf(__('Manage Categories (<a href="%s">add new</a>)'), '#addcat') ?> </h2>
<?php else : ?>
<h2><?php _e('Categories') ?> </h2>
<h2><?php _e('Manage Categories') ?> </h2>
<?php endif; ?>
<p id="post-search">
<label class="hidden" for="post-search-input"><?php _e('Search Categories'); ?>:</label>
<input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
<input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" />
</p>
<br class="clear" />
<div class="tablenav">
<?php
$pagenum = absint( $_GET['pagenum'] );
if ( empty($pagenum) )
$pagenum = 1;
if( !$catsperpage || $catsperpage < 0 )
$catsperpage = 20;
$page_links = paginate_links( array(
'base' => add_query_arg( 'pagenum', '%#%' ),
'format' => '',
'total' => ceil(wp_count_terms('category') / $catsperpage),
'current' => $pagenum
));
if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>";
?>
<div class="alignleft">
<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary delete" />
<?php wp_nonce_field('bulk-categories'); ?>
</div>
<br class="clear" />
</div>
<br class="clear" />
<table class="widefat">
<thead>
<tr>
<th scope="col" style="text-align: center"><?php _e('ID') ?></th>
<th scope="col" class="check-column"><input type="checkbox" /></th>
<th scope="col"><?php _e('Name') ?></th>
<th scope="col"><?php _e('Description') ?></th>
<th scope="col" width="90" style="text-align: center"><?php _e('Posts') ?></th>
<th scope="col" width="90" style="text-align: center"><?php _e('Links') ?></th>
<th colspan="2" style="text-align: center"><?php _e('Action') ?></th>
<th scope="col" class="num"><?php _e('Posts') ?></th>
</tr>
</thead>
<tbody id="the-list">
<tbody id="the-list" class="list:cat">
<?php
cat_rows();
cat_rows(0, 0, 0, $pagenum, $catsperpage);
?>
</tbody>
</table>
</form>
<div class="tablenav">
<?php
if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>";
?>
<br class="clear" />
</div>
<br class="clear" />
</div>
<?php if ( current_user_can('manage_categories') ) : ?>
<div class="wrap">
<p><?php printf(__('<strong>Note:</strong><br />Deleting a category does not delete the posts and links in that category. Instead, posts that were only assigned to the deleted category are set to the category <strong>%s</strong> and links that were only assigned to the deleted category are set to <strong>%s</strong>.'), apply_filters('the_category', get_catname(get_option('default_category'))), apply_filters('the_category', get_catname(get_option('default_link_category')))) ?></p>
<p><?php printf(__('<strong>Note:</strong><br />Deleting a category does not delete the posts in that category. Instead, posts that were only assigned to the deleted category are set to the category <strong>%s</strong>.'), apply_filters('the_category', get_catname(get_option('default_category')))) ?></p>
<p><?php printf(__('Categories can be selectively converted to tags using the <a href="%s">category to tag converter</a>.'), 'admin.php?import=wp-cat2tag') ?></p>
</div>
<?php include('edit-category-form.php'); ?>
<div class="wrap">
<h3><?php _e('Importers &amp; Converters'); ?></h3>
<ul>
<li><a href="admin.php?import=wp-cat2tag"><?php _e('Selectively convert categories to tags'); ?></a></li>
<li><a href="admin.php?import=utw"><?php _e('Import Ultimate Tag Warrior tags'); ?></a></li>
</ul>
</div>
<?php endif; ?>
<?php

View File

@@ -4,70 +4,86 @@ require_once('admin.php');
$parent_file = 'edit-comments.php';
$submenu_file = 'edit-comments.php';
wp_reset_vars(array('action'));
wp_reset_vars( array('action') );
if ( isset( $_POST['deletecomment'] ) )
$action = 'deletecomment';
switch($action) {
case 'editcomment':
function comment_footer_die( $msg ) { // $msg is assumed to contain HTML and be sanitized
echo "<div class='wrap'><p>$msg</p></div>";
include('admin-footer.php');
die;
}
switch( $action ) {
case 'editcomment' :
$title = __('Edit Comment');
require_once ('admin-header.php');
wp_enqueue_script('comment');
$comment = (int) $_GET['c'];
require_once('admin-header.php');
if ( ! $comment = get_comment($comment) )
wp_die(__('Oops, no comment with this ID.').sprintf(' <a href="%s">'.__('Go back').'</a>!', 'javascript:history.go(-1)'));
$comment_id = absint( $_GET['c'] );
if ( !$comment = get_comment( $comment_id ) )
comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">'.__('Go back').'</a>!', 'javascript:history.go(-1)') );
if ( !current_user_can('edit_post', $comment->comment_post_ID) )
wp_die( __('You are not allowed to edit comments on this post.') );
comment_footer_die( __('You are not allowed to edit comments on this post.') );
$comment = get_comment_to_edit($comment);
$comment = get_comment_to_edit( $comment_id );
include('edit-form-comment.php');
break;
case 'cdc':
case 'mac':
case 'cdc' :
case 'mac' :
require_once('./admin-header.php');
require_once('admin-header.php');
$comment = (int) $_GET['c'];
$comment_id = absint( $_GET['c'] );
$formaction = 'cdc' == $action ? 'deletecomment' : 'approvecomment';
$nonce_action = 'cdc' == $action ? 'delete-comment_' : 'approve-comment_';
$nonce_action .= $comment;
$nonce_action .= $comment_id;
if ( ! $comment = get_comment($comment) )
wp_die(__('Oops, no comment with this ID.').sprintf(' <a href="%s">'.__('Go back').'</a>!', 'edit.php'));
if ( !$comment = get_comment_to_edit( $comment_id ) )
comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">'.__('Go back').'</a>!', 'edit.php') );
if ( !current_user_can('edit_post', $comment->comment_post_ID) )
wp_die( 'cdc' == $action ? __('You are not allowed to delete comments on this post.') : __('You are not allowed to edit comments on this post, so you cannot approve this comment.') );
if ( !current_user_can( 'edit_post', $comment->comment_post_ID ) )
comment_footer_die( 'cdc' == $action ? __('You are not allowed to delete comments on this post.') : __('You are not allowed to edit comments on this post, so you cannot approve this comment.') );
?>
<div class='wrap'>
<div class="narrow">
<?php if ( 'spam' == $_GET['dt'] ) { ?>
<p><?php echo '<strong>'.__('Caution:').'</strong> '.__('You are about to mark the following comment as spam:'); ?></p>
<?php } elseif ( 'cdc' == $action ) { ?>
<p><?php echo '<strong>'.__('Caution:').'</strong> '.__('You are about to delete the following comment:'); ?></p>
<?php } else { ?>
<p><?php echo '<strong>'.__('Caution:').'</strong> '.__('You are about to approve the following comment:'); ?></p>
<?php } ?>
<?php
if ( 'spam' == $_GET['dt'] ) {
$caution_msg = __('You are about to mark the following comment as spam:');
$button = __('Spam Comment');
} elseif ( 'cdc' == $action ) {
$caution_msg = __('You are about to delete the following comment:');
$button = __('Delete Comment');
} else {
$caution_msg = __('You are about to approve the following comment:');
$button = __('Approve Comment');
}
?>
<p><strong><?php _e('Caution:'); ?></strong> <?php echo $caution_msg; ?></p>
<p><?php _e('Are you sure you want to do that?'); ?></p>
<form action='<?php echo get_option('siteurl'); ?>/wp-admin/comment.php' method='get'>
<form action='comment.php' method='get'>
<table width="100%">
<tr>
<td><input type='button' value='<?php _e('No'); ?>' onclick="self.location='<?php echo get_option('siteurl'); ?>/wp-admin/edit-comments.php';" /></td>
<td align="right"><input type='submit' value='<?php _e('Yes'); ?>' /></td>
<td><input type='button' class="button" value='<?php _e('No'); ?>' onclick="self.location='<?php echo admin_url('edit-comments.php'); ?>" /></td>
<td class="textright"><input type='submit' class="button" value='<?php echo $button; ?>' /></td>
</tr>
</table>
<?php wp_nonce_field($nonce_action); ?>
<?php wp_nonce_field( $nonce_action ); ?>
<input type='hidden' name='action' value='<?php echo $formaction; ?>' />
<?php if ( 'spam' == $_GET['dt'] ) { ?>
<input type='hidden' name='dt' value='spam' />
@@ -77,26 +93,26 @@ case 'mac':
<input type='hidden' name='noredir' value='1' />
</form>
<table class="editform" cellpadding="5">
<table class="form-table" cellpadding="5">
<tr class="alt">
<th scope="row"><?php _e('Author:'); ?></th>
<th scope="row"><?php _e('Author'); ?></th>
<td><?php echo $comment->comment_author; ?></td>
</tr>
<?php if ( $comment->comment_author_email ) { ?>
<tr>
<th scope="row"><?php _e('E-mail:'); ?></th>
<th scope="row"><?php _e('E-mail'); ?></th>
<td><?php echo $comment->comment_author_email; ?></td>
</tr>
<?php } ?>
<?php if ( $comment->comment_author_url ) { ?>
<tr>
<th scope="row"><?php _e('URL:'); ?></th>
<td><?php echo $comment->comment_author_url; ?></td>
<th scope="row"><?php _e('URL'); ?></th>
<td><a href='<?php echo $comment->comment_author_url; ?>'><?php echo $comment->comment_author_url; ?></a></td>
</tr>
<?php } ?>
<tr>
<th scope="row" valign="top"><p><?php _e('Comment:'); ?></p></th>
<td><?php echo apply_filters( 'comment_text', $comment->comment_content ); ?></td>
<th scope="row" valign="top"><?php _e('Comment'); ?></th>
<td><?php echo $comment->comment_content; ?></td>
</tr>
</table>
@@ -105,107 +121,106 @@ case 'mac':
<?php
break;
case 'deletecomment':
$comment = (int) $_REQUEST['c'];
check_admin_referer('delete-comment_' . $comment);
case 'deletecomment' :
$comment_id = absint( $_REQUEST['c'] );
check_admin_referer( 'delete-comment_' . $comment_id );
if ( isset($_REQUEST['noredir']) ) {
if ( isset( $_REQUEST['noredir'] ) )
$noredir = true;
} else {
else
$noredir = false;
}
if ( ! $comment = get_comment($comment) )
wp_die(__('Oops, no comment with this ID.').sprintf(' <a href="%s">'.__('Go back').'</a>!', 'edit-comments.php'));
if ( !$comment = get_comment( $comment_id ) )
comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">'.__('Go back').'</a>!', 'edit-comments.php') );
if ( !current_user_can('edit_post', $comment->comment_post_ID) )
wp_die( __('You are not allowed to edit comments on this post.') );
if ( !current_user_can( 'edit_post', $comment->comment_post_ID ) )
comment_footer_die( __('You are not allowed to edit comments on this post.') );
if ( 'spam' == $_REQUEST['dt'] )
wp_set_comment_status($comment->comment_ID, 'spam');
wp_set_comment_status( $comment->comment_ID, 'spam' );
else
wp_delete_comment($comment->comment_ID);
wp_delete_comment( $comment->comment_ID );
if ( '' != wp_get_referer() && false == $noredir && false === strpos(wp_get_referer(), 'comment.php' ) )
wp_redirect( wp_get_referer() );
else if ( '' != wp_get_original_referer() && false == $noredir )
wp_redirect( wp_get_original_referer() );
else
wp_redirect( admin_url('edit-comments.php') );
die;
break;
case 'unapprovecomment' :
$comment_id = absint( $_GET['c'] );
check_admin_referer( 'unapprove-comment_' . $comment_id );
if ( isset( $_GET['noredir'] ) )
$noredir = true;
else
$noredir = false;
if ( !$comment = get_comment( $comment_id ) )
comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">'.__('Go back').'</a>!', 'edit.php') );
if ( !current_user_can( 'edit_post', $comment->comment_post_ID ) )
comment_footer_die( __('You are not allowed to edit comments on this post, so you cannot disapprove this comment.') );
wp_set_comment_status( $comment->comment_ID, 'hold' );
if ( '' != wp_get_referer() && false == $noredir )
wp_redirect( wp_get_referer() );
else
wp_redirect( admin_url('edit.php?p=' . absint( $comment->comment_post_ID ) . '#comments') );
if ((wp_get_referer() != '') && (false == $noredir)) {
wp_redirect(wp_get_referer());
} else {
wp_redirect(get_option('siteurl') .'/wp-admin/edit-comments.php');
}
exit();
break;
case 'unapprovecomment':
$comment = (int) $_GET['c'];
check_admin_referer('unapprove-comment_' . $comment);
case 'approvecomment' :
$comment_id = absint( $_GET['c'] );
check_admin_referer( 'approve-comment_' . $comment_id );
if (isset($_GET['noredir'])) {
if ( isset( $_GET['noredir'] ) )
$noredir = true;
} else {
else
$noredir = false;
}
if ( ! $comment = get_comment($comment) )
wp_die(__('Oops, no comment with this ID.').sprintf(' <a href="%s">'.__('Go back').'</a>!', 'edit.php'));
if ( !$comment = get_comment( $comment_id ) )
comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">'.__('Go back').'</a>!', 'edit.php') );
if ( !current_user_can('edit_post', $comment->comment_post_ID) )
wp_die( __('You are not allowed to edit comments on this post, so you cannot disapprove this comment.') );
comment_footer_die( __('You are not allowed to edit comments on this post, so you cannot approve this comment.') );
wp_set_comment_status($comment->comment_ID, "hold");
wp_set_comment_status( $comment->comment_ID, 'approve' );
if ( '' != wp_get_referer() && false == $noredir )
wp_redirect( wp_get_referer() );
else
wp_redirect( admin_url('edit.php?p=' . absint( $comment->comment_post_ID ) . '#comments') );
if ((wp_get_referer() != "") && (false == $noredir)) {
wp_redirect(wp_get_referer());
} else {
wp_redirect(get_option('siteurl') .'/wp-admin/edit.php?p='.$comment->comment_post_ID.'&c=1#comments');
}
exit();
break;
case 'approvecomment':
$comment = (int) $_GET['c'];
check_admin_referer('approve-comment_' . $comment);
case 'editedcomment' :
if (isset($_GET['noredir'])) {
$noredir = true;
} else {
$noredir = false;
}
$comment_id = absint( $_POST['comment_ID'] );
$comment_post_id = absint( $_POST['comment_post_id'] );
if ( ! $comment = get_comment($comment) )
wp_die(__('Oops, no comment with this ID.').sprintf(' <a href="%s">'.__('Go back').'</a>!', 'edit.php'));
if ( !current_user_can('edit_post', $comment->comment_post_ID) )
wp_die( __('You are not allowed to edit comments on this post, so you cannot approve this comment.') );
wp_set_comment_status($comment->comment_ID, "approve");
if (get_option("comments_notify") == true) {
wp_notify_postauthor($comment->comment_ID);
}
if ((wp_get_referer() != "") && (false == $noredir)) {
wp_redirect(wp_get_referer());
} else {
wp_redirect(get_option('siteurl') .'/wp-admin/edit.php?p='.$comment->comment_post_ID.'&c=1#comments');
}
exit();
break;
case 'editedcomment':
$comment_ID = (int) $_POST['comment_ID'];
$comment_post_ID = (int) $_POST['comment_post_id'];
check_admin_referer('update-comment_' . $comment_ID);
check_admin_referer( 'update-comment_' . $comment_id );
edit_comment();
$location = ( empty($_POST['referredby']) ? "edit.php?p=$comment_post_ID&c=1" : $_POST['referredby'] ) . '#comment-' . $comment_ID;
$location = apply_filters('comment_edit_redirect', $location, $comment_ID);
wp_redirect($location);
$location = ( empty( $_POST['referredby'] ) ? "edit.php?p=$comment_post_id" : $_POST['referredby'] ) . '#comment-' . $comment_id;
$location = apply_filters( 'comment_edit_redirect', $location, $comment_id );
wp_redirect( $location );
exit();
break;
default:
wp_die( __('Unknown action.') );
break;
} // end switch
include('admin-footer.php');

View File

@@ -0,0 +1,3 @@
#poststuff .closed .togbox, #poststuff .togbox {
background-image: url(../images/toggle-arrow-rtl.gif) !important;
}

View File

@@ -0,0 +1,730 @@
a.page-numbers:hover {
border-color: #999;
}
body, .form-table .pre {
background-color: #fff;
color: #333;
}
body > #upload-menu {
border-bottom-color: #fff;
}
div#current-widgets, #postcustomstuff table, #your-profile fieldset, a.page-numbers, #rightnow, div.dashboard-widget, .widefat {
border-color: #ccc;
}
div.dashboard-widget-error {
background-color: #c43;
}
div.dashboard-widget-notice {
background-color: #F0F6FB;
}
div.dashboard-widget-submit, ul.widget-control-list div.widget-control-actions {
border-top-color: #ccc;
}
input.disabled, textarea.disabled {
background-color: #ccc;
}
#user_info a:hover, li.widget-list-control-item h4.widget-title a:hover, .submit a, #dashmenu a:hover, #footer a, #upload-menu li a.upload-tab-link, 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, .login #backtoblog a:hover {
color: #fff;
}
ul#category-tabs li.ui-tabs-selected, li.widget-list-control-item, div.nav, .tablenav, .submitbox, h3.dashboard-widget-title, h3.dashboard-widget-title span, h3.dashboard-widget-title small, ul.view-switch li.current, .form-table tr, #poststuff h3, .login form, h3.info-box-title {
background-color: #cfebf7;
}
div.ui-tabs-panel {
border-color: #cfebf7;
}
select {
background-color: #fff;
border-color: #ddd;
}
strong .post-com-count span {
background-color: #2583ad;
}
.button-secondary, #login form .submit input {
background-color: #8ebddc !important;
}
ul#widget-list li.widget-list-item h4.widget-title {
background-color: #f0f0f0;
color: #000;
}
.sorthelper {
background-color: #ccf3fa;
}
.ac_match, .subsubsub a.current, h2 {
color: #000;
}
.ac_over {
background-color: #f0f0b8;
}
.ac_results {
background-color: #fff;
border-color: #808080;
}
.ac_results li {
color: #101010;
}
.alternate {
background-color: #f9f9f9;
}
.available-theme a.screenshot {
background-color: #f1f1f1;
border-color: #ccc;
}
.bar {
background-color: #e8e8e8;
border-right-color: #99d;
}
.describe {
border-top-color: #d0d0d0;
}
.error, #login #login_error {
background-color: #ffebe8;
border-color: #c00;
}
.error a {
color: #c00;
}
.form-invalid {
background-color: #ffebe8 !important;
}
.form-invalid input {
border-color: #c00 !important;
}
.form-table input, .form-table textarea {
border-color: #c6d9e9;
}
.form-table td, .form-table th {
border-bottom-color: #fff;
}
.highlight {
background-color: #cfebf7;
color: #d54e21;
}
.howto, .nonessential, #sidemenu, #edit-slug-box, .form-input-tip, #dashboard_primary span.rss-date, .subsubsub, #dashboard_secondary div.dashboard-widget-content ul li a cite {
color: #999;
}
#dashmenu a, #user_info a {
color: #88b4d7;
}
.media-item {
border-bottom-color: #d0d0d0;
}
.media-upload-form label.form-help, td.help {
color: #9a9a9a;
}
.page-numbers {
background-color: #fff;
border-color: #fff;
}
.page-numbers.current {
background-color: #328ab2;
border-color: #328ab2;
color: #fff;
}
.post-com-count {
background-image: url(../images/bubble_bg.gif);
color: #fff;
}
.post-com-count span {
background-color: #bbb;
color: #fff;
}
.post-com-count:hover span {
background-color: #d54e21;
}
.quicktags, .search {
background-color: #ccc;
color: #000;
}
.side-info h5, .bordertitle {
border-bottom-color: #dadada;
}
.side-info ul, .widget-description {
color: #666;
}
.submit input, .button, .button-secondary, #login form .submit input, div.dashboard-widget-submit input, #edit-slug-buttons a.save {
background-color: #e5e5e5;
color: #07273e;
border-color: #a3a3a3;
}
.button[disabled], .button:disabled {
background-color: #999;
}
.tablenav .button-secondary {
border-color: #5396c5;
}
.submit input:hover, .button:hover, #edit-slug-buttons a.save:hover {
border-color: #535353;
}
.submit input:hover, .button:hover, .button-secondary:hover, #wphead #viewsite a:hover, #submenu a.current, #submenu a:hover, .submitbox #previewview a:hover, #the-comment-list .comment a:hover, #rightnow a:hover, a:hover, .subsubsub a:hover, .subsubsub a.current:hover, #login form .submit input:hover, div.dashboard-widget-submit input:hover, #edit-slug-buttons a.save:hover, #media-upload a.del-link:hover {
color: #d54e21;
}
#adminmenu a:hover, #sidemenu a:hover, .ui-tabs-nav a:hover {
color: #97c4d8;
}
.button-secondary:hover, #login form .submit input:hover {
border-color: #328ab2;
background-color: #a6d2e5 !important;
}
.submitbox #autosave .error, ul.view-switch li.current a {
color: #333;
}
.submitbox #previewview {
background-color: #5488af;
}
.submitbox #previewview a, #rightnow .rbutton {
background-color: #ebebeb;
color: #264761;
}
.submitbox .submit {
background-color: #464646;
color: #ccc;
}
.submitbox .submitdelete {
border-bottom-color: #999;
}
.submitbox .submitdelete:hover,
#media-upload a.delete:hover {
color: #fff;
background-color: #f00;
border-bottom-color: #f00;
}
.tablenav .dots {
background-color: #cfebf7;
border-color: #cfebf7;
}
.tablenav .next, .tablenav .prev{
background-color: #cfebf7;
border-bottom-color: #cfebf7;
border-color: #cfebf7;
color: #2583ad;
}
.tablenav .next:hover, .tablenav .prev:hover {
border-bottom-color: #d54e21;
border-color: #cfebf7;
color: #d54e21;
}
.updated, .login #login_error, .login .message {
background-color: #ffffe0;
border-color: #e6db55;
}
.updated a {
border-bottom-color: #2583ad;
}
.widefat td, .widefat th, div#available-widgets-filter, ul#widget-list li.widget-list-item, .commentlist li {
border-bottom-color: #ccc;
}
.widefat thead, .thead {
background-color: #464646;
color: #d7d7d7;
}
.widget-control-save, .widget-control-remove {
background-color: #83b4d5;
color: #246;
}
.wrap h2 {
border-bottom-color: #dadada;
color: #5a5a5a;
}
#poststuff #edButtonPreview, #poststuff #edButtonHTML, #the-comment-list p.comment-author strong a, #media-upload a.del-link, #media-upload a.delete, a {
color: #2e7ca0;
}
#adminmenu a, .ui-tabs-nav a {
color: #cfebf6;
}
#submenu a {
color: #2782af
}
/* Because we don't want visited on these links */
#adminmenu a.current, #sidemenu a.current, body.press-this .ui-tabs-selected a, body.press-this .ui-tabs-selected a:hover {
background-color: #fff;
border-color: #07273e;
border-bottom-color: #fff;
color: #d54e21;
font-weight: bold;
}
#adminmenu li a #awaiting-mod, #sidemenu li a #update-plugins {
background-image: url(../images/comment-stalk-classic.gif);
}
#adminmenu li a #awaiting-mod span, #sidemenu li a #update-plugins span {
background-color: #d54e21;
color: #fff;
}
#rightnow .reallynow {
background-color: #114973;
color: #fff;
}
#adminmenu li a:hover #awaiting-mod span, #sidemenu li a:hover #update-plugins span {
background-color: #07273E;
}
#adminmenu, div#media-upload-header {
background-color: #14568a;
border-bottom-color: #07273e;
}
#currenttheme img {
border-color: #666;
}
#current-widgets .drop-widget-here {
background-color: #ffc;
}
#dashboard_secondary div.dashboard-widget-content ul li a {
background-color: #f9f9f9;
}
input.readonly {
background-color: #ddd;
}
#dashmenu a.current {
background-color: #14568a;
color: #cfebf6;
}
#dragHelper h4.widget-title, li.widget-list-control-item h4, #dragHelper li.widget-list-control-item h4 {
background-color: #2683ae;
color: #fff;
}
#ed_toolbar input {
background: url( ../images/fade-butt.png ) #fff repeat-x 0 -2px;
}
#editable-post-name {
background-color: #fffbcc;
}
#edit-slug-box strong, .login #nav a {
color: #777;
}
#edit-slug-buttons a.save {
background-color: #ebebeb;
}
#footer {
background: url(../images/logo-ghost.png) #464646 no-repeat 20px 10px;
color: #999;
}
#media-items {
border-color: #c0c0c0;
}
#pass-strength-result {
background-color: #e3e3e3;
border-color: #000;
}
#pass-strength-result.bad {
background-color: #ffeff7;
border-color: #c69;
}
#pass-strength-result.good {
background-color: #effff4;
border-color: #66cc87;
}
#pass-strength-result.short {
background-color: #e3e3e3;
}
#pass-strength-result.strong {
background-color: #59ef86;
border-color: #319f52;
}
.checkbox, .side-info, #your-profile #rich_editing {
background-color: #fff;
}
.plugins .active {
background-color: #BBEEBB;
}
.plugins .togl {
border-right-color: #ccc;
}
#the-comment-list .unapproved {
background-color: #ffffe0;
}
.plugins tr {
background-color: #fff;
}
#poststuff #editor-toolbar .active {
background-color: #83b4d5;
color: #333;
}
#poststuff .closed .togbox {
background-color: #2583ad;
background-image: url(../images/toggle-arrow.gif);
}
#poststuff .postbox, #titlediv, #poststuff .postarea, #poststuff .stuffbox {
border-color: #ebebeb;
border-right-color: #ccc;
border-bottom-color: #ccc;
}
#poststuff .togbox {
background-color: #b2b2b2;
background-image: url(../images/toggle-arrow.gif);
}
#quicktags #ed_link {
color: #00f;
}
#rightnow .youhave {
background-color: #f0f6fb;
}
#rightnow a {
color: #448abd;
}
#sidemenu a {
background-color: #14568a;
border-bottom-color: #07273e;
border-top-color: #14568a;
color: #cfebf6;
}
#tagchecklist span a {
background: url(../images/xit.gif) no-repeat;
}
#tagchecklist span a:hover {
background: url(../images/xit.gif) no-repeat -10px 0;
}
#the-comment-list .comment a {
border-bottom-color: #ababab;
color: #666;
}
#update-nag, .plugin-update {
background-color: #fffeeb;
border-bottom-color: #ccc;
border-top-color: #ccc;
color: #555;
}
#upload-files a.file-link {
background-color: #d1e2ef;
}
#upload-file-view a img {
border-bottom-color: #69c;
}
#upload-menu li #current-tab-nav, #upload-file {
background-color: #f9fcfe;
}
#upload-menu li span a.page-numbers {
color: #00019b;
}
#upload-menu li.current {
border-right-color: #448abd;
color: #000;
}
#upload-menu li.current a.upload-tab-link, #upload-menu li a:hover {
background-color: #f9fcfe;
color: #000;
}
#upload-menu, #upload-menu li {
border-top-color: #247fab;
}
#user_info, .login #backtoblog a {
color: #ccc;
}
#wphead {
background-color: #14568a;
}
#wphead, body.login {
border-top-color: #07273e;
}
#wphead #viewsite a {
background-color: #5488af;
color: #cfebf7;
border-color: #0b3d64;
}
#wphead #viewsite a:hover {
color: #07273e;
}
#wphead h1, #dashmenu a.current:hover {
color: #cfebf6;
}
div#media-upload-error, .file-error, abbr.required, .widget-control-remove:hover, .delete:hover {
color: #f00;
}
/* TinyMCE */
.wp_themeSkin *,
.wp_themeSkin a:hover,
.wp_themeSkin a:link,
.wp_themeSkin a:visited,
.wp_themeSkin a:active {
color: #000;
}
/* Containers */
.wp_themeSkin table, #wp_editbtns {
background: #83B4D5;
}
.wp_themeSkin iframe {
background: #fff;
}
/* Layout */
.wp_themeSkin .mceStatusbar {
color:#000;
background-color: #eaf3fa;
}
/* Button */
.wp_themeSkin .mceButton {
background-color: #e9e8e8;
border-color: #83B4D5;
}
.wp_themeSkin a.mceButtonEnabled:hover,
.wp_themeSkin a.mceButtonActive,
.wp_themeSkin a.mceButtonSelected {
background-color: #d6d8da;
border-color: #7789ba !important;
}
.wp_themeSkin .mceButtonDisabled {
border-color: #83B4D5 !important;
}
/* ListBox */
.wp_themeSkin .mceListBox .mceText,
.wp_themeSkin .mceListBox .mceOpen {
border-color: #83B4D5;
background-color: #e9e8e8;
}
.wp_themeSkin table.mceListBoxEnabled:hover .mceOpen,
.wp_themeSkin .mceListBoxHover .mceOpen,
.wp_themeSkin .mceListBoxSelected .mceOpen,
.wp_themeSkin .mceListBoxSelected .mceText {
border-color: #7789ba !important;
background-color: #d6d8da;
}
.wp_themeSkin table.mceListBoxEnabled:hover .mceText,
.wp_themeSkin .mceListBoxHover .mceText {
border-color: #7789ba !important;
}
.wp_themeSkin select.mceListBox {
border-color: #b3c7e1;
background-color: #fff;
}
/* SplitButton */
.wp_themeSkin .mceSplitButton a.mceAction,
.wp_themeSkin .mceSplitButton a.mceOpen {
background-color: #e9e8e8;
border-color: #83B4D5;
}
.wp_themeSkin .mceSplitButton a.mceOpen:hover,
.wp_themeSkin .mceSplitButtonSelected a.mceOpen,
.wp_themeSkin table.mceSplitButtonEnabled:hover a.mceAction,
.wp_themeSkin .mceSplitButton a.mceAction:hover {
background-color: #d6d8da;
border-color: #7789ba !important;
}
.wp_themeSkin .mceSplitButtonActive {
background-color: #d6d8da;
}
/* ColorSplitButton */
.wp_themeSkin div.mceColorSplitMenu table {
background-color: #ebeaeb;
border-color: #808080;
}
.wp_themeSkin .mceColorSplitMenu a {
border-color: #808080;
}
.wp_themeSkin .mceColorSplitMenu a.mceMoreColors {
border-color: #fff;
}
.wp_themeSkin .mceColorSplitMenu a.mceMoreColors:hover {
border-color: #0A246A;
background-color: #B6BDD2;
}
.wp_themeSkin a.mceMoreColors:hover {
border-color: #0A246A;
}
/* Menu */
.wp_themeSkin .mceMenu {
border-color: #ddd;
}
.wp_themeSkin .mceMenu table {
background-color: #ebeaeb;
}
.wp_themeSkin .mceMenu .mceText {
color: #000;
}
.wp_themeSkin .mceMenu .mceMenuItemEnabled a:hover,
.wp_themeSkin .mceMenu .mceMenuItemActive, #quicktags {
background-color: #83B4D5;
}
.wp_themeSkin td.mceMenuItemSeparator {
background-color: #aaa;
}
.wp_themeSkin .mceMenuItemTitle a {
background-color: #ccc;
border-bottom-color: #aaa;
}
.wp_themeSkin .mceMenuItemTitle span.mceText {
color: #000;
}
.wp_themeSkin .mceMenuItemDisabled .mceText {
color: #888;
}
/* pop-up */
.clearlooks2 .mceTop .mceLeft, .clearlooks2 .mceTop .mceRight {
background-color: #cee1ef;
border-color: #c6d9e9;
}
.clearlooks2 .mceFocus .mceTop .mceLeft, .clearlooks2 .mceFocus .mceTop .mceRight {
background-color: #5488AF;
border-color: #464646;
}
#editorcontainer {
border-color: #ccc;
}
#poststuff #titlewrap {
border-color: #ccc;
}
#tTips p#tTips_inside {
background-color: #ddd;
color: #333;
}
/* Diff */
table.diff .diff-deletedline {
background-color: #ffdddd;
}
table.diff .diff-deletedline del {
background-color: #ff9999;
}
table.diff .diff-addedline {
background-color: #ddffdd;
}
table.diff .diff-addedline ins {
background-color: #99ff99;
}

View File

@@ -0,0 +1,3 @@
#poststuff .closed .togbox, #poststuff .togbox {
background-image: url(../images/toggle-arrow-rtl.gif) !important;
}

View File

@@ -0,0 +1,706 @@
a.page-numbers:hover {
border-color: #999;
}
body, .form-table .pre {
background-color: #fff;
color: #333;
}
body > #upload-menu {
border-bottom-color: #fff;
}
div#current-widgets, #postcustomstuff table, #your-profile fieldset, a.page-numbers, #rightnow, div.dashboard-widget, .widefat {
border-color: #ccc;
}
div.dashboard-widget-error {
background-color: #c43;
}
div.dashboard-widget-notice {
background-color: #cfe1ef;
}
div.dashboard-widget-submit, ul.widget-control-list div.widget-control-actions {
border-top-color: #ccc;
}
div.ui-tabs-panel {
border-color: #cee1ef;
}
input.disabled, textarea.disabled {
background-color: #ccc;
}
#user_info a:hover, li.widget-list-control-item h4.widget-title a:hover, .submit a, #dashmenu a:hover, #footer a, #upload-menu li a.upload-tab-link, 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, .login #backtoblog a:hover {
color: #fff;
}
li.widget-list-control-item, div.nav, .tablenav, .submitbox, h3.dashboard-widget-title, h3.dashboard-widget-title span, h3.dashboard-widget-title small, ul.view-switch li.current, .form-table tr, #poststuff h3, .login form, h3.info-box-title {
background-color: #eaf3fa;
}
select {
background-color: #fff;
border-color: #ddd;
}
strong .post-com-count span {
background-color: #2583ad;
}
ul#category-tabs li.ui-tabs-selected, .button-secondary, #quicktags, #login form .submit input {
background-color: #cee1ef !important;
}
ul#widget-list li.widget-list-item h4.widget-title {
background-color: #f0f0f0;
color: #000;
}
.sorthelper {
background-color: #ccf3fa;
}
.ac_match, .subsubsub a.current, h2 {
color: #000;
}
.ac_over {
background-color: #f0f0b8;
}
.ac_results {
background-color: #fff;
border-color: #808080;
}
.ac_results li {
color: #101010;
}
.alternate {
background-color: #f9f9f9;
}
.available-theme a.screenshot {
background-color: #f1f1f1;
border-color: #ccc;
}
.bar {
background-color: #e8e8e8;
border-right-color: #99d;
}
.describe {
border-top-color: #d0d0d0;
}
.error, #login #login_error {
background-color: #ffebe8;
border-color: #c00;
}
.error a {
color: #c00;
}
.form-invalid {
background-color: #ffebe8 !important;
}
.form-invalid input {
border-color: #c00 !important;
}
.form-table input, .form-table textarea {
border-color: #c6d9e9;
}
.form-table td, .form-table th {
border-bottom-color: #fff;
}
.highlight {
background-color: #e4f2fd;
color: #d54e21;
}
#user_info, .howto, .nonessential, #dashmenu a, #sidemenu, #edit-slug-box, .form-input-tip, #dashboard_primary span.rss-date, .subsubsub, #dashboard_secondary div.dashboard-widget-content ul li a cite {
color: #999;
}
.media-item {
border-bottom-color: #d0d0d0;
}
.media-upload-form label.form-help, td.help {
color: #9a9a9a;
}
.page-numbers {
background-color: #fff;
border-color: #fff;
}
.page-numbers.current {
background-color: #328ab2;
border-color: #328ab2;
color: #fff;
}
.post-com-count {
background-image: url(../images/bubble_bg.gif);
color: #fff;
}
.post-com-count span {
background-color: #bbb;
color: #fff;
}
.post-com-count:hover span {
background-color: #d54e21;
}
.quicktags, .search {
background-color: #ccc;
color: #000;
}
.side-info h5, .bordertitle {
border-bottom-color: #dadada;
}
.side-info ul, .widget-description {
color: #666;
}
.submit input, .button, .button-secondary, #login form .submit input, div.dashboard-widget-submit input, #edit-slug-buttons a.save {
background-color: #e5e5e5;
color: #246;
border-color: #80b5d0;
}
.button[disabled], .button:disabled {
background-color: #999;
}
.submit input:hover, .button:hover, #edit-slug-buttons a.save:hover {
border-color: #535353;
}
.submit input:hover, .button:hover, .button-secondary:hover, #wphead #viewsite a:hover, #adminmenu a:hover, #sidemenu a:hover, #submenu a.current, #submenu a:hover, .submitbox #previewview a:hover, #the-comment-list .comment a:hover, #rightnow a:hover, a:hover, .subsubsub a:hover, .subsubsub a.current:hover, #login form .submit input:hover, div.dashboard-widget-submit input:hover, #edit-slug-buttons a.save:hover, #media-upload a.delete:hover, #media-upload a.del-link:hover, .ui-tabs-nav a:hover {
color: #d54e21;
}
.button-secondary:hover, #login form .submit input:hover {
border-color: #328ab2;
}
.submitbox #autosave .error, ul.view-switch li.current a {
color: #333;
}
.submitbox #previewview {
background-color: #2683ae;
}
.submitbox #previewview a, #rightnow .rbutton {
background-color: #ebebeb;
color: #264761;
}
.submitbox .submit {
background-color: #464646;
color: #ccc;
}
.submitbox .submitdelete {
border-bottom-color: #999;
}
.submitbox .submitdelete:hover,
#media-upload a.delete:hover {
color: #fff;
background-color: #f00;
border-bottom-color: #f00;
}
.tablenav .dots {
background-color: #e4f2fd;
border-color: #e4f2fd;
}
.tablenav .next, .tablenav .prev{
background-color: #e4f2fd;
border-bottom-color: #2583ad;
border-color: #e4f2fd;
color: #2583ad;
}
.tablenav .next:hover, .tablenav .prev:hover {
border-bottom-color: #d54e21;
border-color: #e4f2fd;
color: #d54e21;
}
.updated, .login #login_error, .login .message {
background-color: #ffffe0;
border-color: #e6db55;
}
.updated a {
border-bottom-color: #2583ad;
}
.widefat td, .widefat th, div#available-widgets-filter, ul#widget-list li.widget-list-item, .commentlist li {
border-bottom-color: #ccc;
}
.widefat thead, .thead {
background-color: #464646;
color: #d7d7d7;
}
.widget-control-save, .widget-control-remove {
background-color: #cee1ef;
color: #246;
}
.wrap h2 {
border-bottom-color: #dadada;
color: #666;
}
#adminmenu a, #submenu a, #poststuff #edButtonPreview, #poststuff #edButtonHTML, #the-comment-list p.comment-author strong a, #media-upload a.del-link, #media-upload a.delete, .ui-tabs-nav a, a {
color: #2583ad;
}
/* Because we don't want visited on these links */
#adminmenu a.current, #sidemenu a.current, body.press-this .ui-tabs-selected a, body.press-this .ui-tabs-selected a:hover {
background-color: #fff;
border-color: #c6d9e9;
border-bottom-color: #fff;
color: #d54e21;
}
#adminmenu li a #awaiting-mod, #sidemenu li a #update-plugins {
background-image: url(../images/comment-stalk-fresh.gif);
}
#adminmenu li a #awaiting-mod span, #sidemenu li a #update-plugins span, #rightnow .reallynow {
background-color: #d54e21;
color: #fff;
}
#adminmenu li a:hover #awaiting-mod span, #sidemenu li a:hover #update-plugins span {
background-color: #264761;
}
#adminmenu, div#media-upload-header {
background-color: #e4f2fd;
border-bottom-color: #c6d9e9;
}
#currenttheme img {
border-color: #666;
}
#current-widgets .drop-widget-here {
background-color: #ffc;
}
#dashboard_secondary div.dashboard-widget-content ul li a {
background-color: #f9f9f9;
}
input.readonly {
background-color: #ddd;
}
#dashmenu a.current {
background-color: #e4f2fd;
color: #555;
}
#dragHelper h4.widget-title, li.widget-list-control-item h4, #dragHelper li.widget-list-control-item h4 {
background-color: #2683ae;
color: #fff;
}
#ed_toolbar input {
background: url( ../images/fade-butt.png ) #fff repeat-x 0 -2px;
}
#editable-post-name {
background-color: #fffbcc;
}
#edit-slug-box strong, .login #nav a {
color: #777;
}
#footer {
background: url(../images/logo-ghost.png) #464646 no-repeat 20px 10px;
color: #999;
}
#media-items {
border-color: #c0c0c0;
}
#pass-strength-result {
background-color: #e3e3e3;
border-color: #000;
}
#pass-strength-result.bad {
background-color: #ffeff7;
border-color: #c69;
}
#pass-strength-result.good {
background-color: #effff4;
border-color: #66cc87;
}
#pass-strength-result.short {
background-color: #e3e3e3;
}
#pass-strength-result.strong {
background-color: #59ef86;
border-color: #319f52;
}
.checkbox, .side-info, #your-profile #rich_editing {
background-color: #fff;
}
.plugins .active {
background-color: #e7f7d3;
}
.plugins .togl {
border-right-color: #ccc;
}
#the-comment-list .unapproved {
background-color: #ffffe0;
}
.plugins tr {
background-color: #fff;
}
#poststuff #editor-toolbar .active {
background-color: #cee1ef;
color: #333;
}
#poststuff .closed .togbox {
background-color: #2583ad;
background-image: url(../images/toggle-arrow.gif);
}
#poststuff .postbox, #titlediv, #poststuff .postarea, #poststuff .stuffbox {
border-color: #ebebeb;
border-right-color: #ccc;
border-bottom-color: #ccc;
}
#poststuff .togbox {
background-color: #b2b2b2;
background-image: url(../images/toggle-arrow.gif);
}
#quicktags #ed_link {
color: #00f;
}
#rightnow .youhave {
background-color: #f0f6fb;
}
#rightnow a {
color: #448abd;
}
#sidemenu a {
background-color: #e4f2fd;
border-bottom-color: #c6d9e9;
border-top-color: #e4f2fd;
}
#tagchecklist span a {
background: url(../images/xit.gif) no-repeat;
}
#tagchecklist span a:hover {
background: url(../images/xit.gif) no-repeat -10px 0;
}
#the-comment-list .comment a {
border-bottom-color: #ababab;
color: #666;
}
#update-nag, .plugin-update {
background-color: #fffeeb;
border-bottom-color: #ccc;
border-top-color: #ccc;
color: #555;
}
#upload-files a.file-link {
background-color: #d1e2ef;
}
#upload-file-view a img {
border-bottom-color: #69c;
}
#upload-menu li #current-tab-nav, #upload-file {
background-color: #f9fcfe;
}
#upload-menu li span a.page-numbers {
color: #00019b;
}
#upload-menu li.current {
border-right-color: #448abd;
color: #000;
}
#upload-menu li.current a.upload-tab-link, #upload-menu li a:hover {
background-color: #f9fcfe;
color: #000;
}
#upload-menu, #upload-menu li {
border-top-color: #247fab;
}
.login #backtoblog a, .curtime, #user_info a {
color: #ccc;
}
#wphead {
background-color: #e4f2fd;
}
#wphead, body.login {
border-top-color: #464646;
}
#wphead #viewsite a {
background-color: #c6d9e9;
color: #246;
border-color: #80b5d0;
}
#wphead #viewsite a:hover {
border-color: #328ab2;
}
#wphead h1, #dashmenu a.current:hover, #login form input {
color: #555;
}
div#media-upload-error, .file-error, abbr.required, .widget-control-remove:hover, .delete:hover {
color: #f00;
}
#media-upload a.delete {
color: #888;
}
/* TinyMCE */
.wp_themeSkin *,
.wp_themeSkin a:hover,
.wp_themeSkin a:link,
.wp_themeSkin a:visited,
.wp_themeSkin a:active {
color: #000;
}
/* Containers */
.wp_themeSkin table, #wp_editbtns {
background: #cee1ef;
}
.wp_themeSkin iframe {
background: #fff;
}
/* Layout */
.wp_themeSkin .mceStatusbar {
color:#000;
background-color: #eaf3fa;
}
/* Button */
.wp_themeSkin .mceButton {
background-color: #e9e8e8;
border-color: #abc0fb;
}
.wp_themeSkin a.mceButtonEnabled:hover,
.wp_themeSkin a.mceButtonActive,
.wp_themeSkin a.mceButtonSelected {
background-color: #d6d8da;
border-color: #7789ba !important;
}
.wp_themeSkin .mceButtonDisabled {
border-color: #bdd !important;
}
/* ListBox */
.wp_themeSkin .mceListBox .mceText,
.wp_themeSkin .mceListBox .mceOpen {
border-color: #abc0fb;
background-color: #e9e8e8;
}
.wp_themeSkin table.mceListBoxEnabled:hover .mceOpen,
.wp_themeSkin .mceListBoxHover .mceOpen,
.wp_themeSkin .mceListBoxSelected .mceOpen,
.wp_themeSkin .mceListBoxSelected .mceText {
border-color: #7789ba !important;
background-color: #d6d8da;
}
.wp_themeSkin table.mceListBoxEnabled:hover .mceText,
.wp_themeSkin .mceListBoxHover .mceText {
border-color: #7789ba !important;
}
.wp_themeSkin select.mceListBox {
border-color: #b3c7e1;
background-color: #fff;
}
/* SplitButton */
.wp_themeSkin .mceSplitButton a.mceAction,
.wp_themeSkin .mceSplitButton a.mceOpen {
background-color: #e9e8e8;
border-color: #abc0fb;
}
.wp_themeSkin .mceSplitButton a.mceOpen:hover,
.wp_themeSkin .mceSplitButtonSelected a.mceOpen,
.wp_themeSkin table.mceSplitButtonEnabled:hover a.mceAction,
.wp_themeSkin .mceSplitButton a.mceAction:hover {
background-color: #d6d8da;
border-color: #7789ba !important;
}
.wp_themeSkin .mceSplitButtonActive {
background-color: #d6d8da;
}
/* ColorSplitButton */
.wp_themeSkin div.mceColorSplitMenu table {
background-color: #ebeaeb;
border-color: #808080;
}
.wp_themeSkin .mceColorSplitMenu a {
border-color: #808080;
}
.wp_themeSkin .mceColorSplitMenu a.mceMoreColors {
border-color: #fff;
}
.wp_themeSkin .mceColorSplitMenu a.mceMoreColors:hover {
border-color: #0A246A;
background-color: #B6BDD2;
}
.wp_themeSkin a.mceMoreColors:hover {
border-color: #0A246A;
}
/* Menu */
.wp_themeSkin .mceMenu {
border-color: #ddd;
}
.wp_themeSkin .mceMenu table {
background-color: #ebeaeb;
}
.wp_themeSkin .mceMenu .mceText {
color: #000;
}
.wp_themeSkin .mceMenu .mceMenuItemEnabled a:hover,
.wp_themeSkin .mceMenu .mceMenuItemActive {
background-color: #CEE1EF;
}
.wp_themeSkin td.mceMenuItemSeparator {
background-color: #aaa;
}
.wp_themeSkin .mceMenuItemTitle a {
background-color: #ccc;
border-bottom-color: #aaa;
}
.wp_themeSkin .mceMenuItemTitle span.mceText {
color: #000;
}
.wp_themeSkin .mceMenuItemDisabled .mceText {
color: #888;
}
/* pop-up */
.clearlooks2 .mceTop .mceLeft, .clearlooks2 .mceTop .mceRight {
background-color: #cee1ef;
border-color: #c6d9e9;
}
.clearlooks2 .mceFocus .mceTop .mceLeft, .clearlooks2 .mceFocus .mceTop .mceRight {
background-color: #2683ae;
border-color: #464646;
}
#editorcontainer {
border-color: #ccc;
}
#poststuff #titlewrap {
border-color: #ccc;
}
.curtime {
color: #666;
}
#tTips p#tTips_inside {
background-color: #ddd;
color: #333;
}
/* Diff */
table.diff .diff-deletedline {
background-color: #ffdddd;
}
table.diff .diff-deletedline del {
background-color: #ff9999;
}
table.diff .diff-addedline {
background-color: #ddffdd;
}
table.diff .diff-addedline ins {
background-color: #99ff99;
}

View File

@@ -0,0 +1,79 @@
#rightnow {
margin-left: 15px;
}
#rightnow .reallynow span {
text-align: right;
float: right;
}
#rightnow .reallynow a {
text-align: left;
float: left;
margin: 1px 0 0 6px;
}
div.dashboard-widget-holder {
float: right;
}
h3.dashboard-widget-title span {
text-align: right;
float: right;
}
div.dashboard-widget-submit input {
font-family: sans-serif !important;
}
#dashboard-widgets .widget_rss ul li a {
float:right;
font-weight:bold;
margin:0pt 0pt 0.2em 0.5em;
}
#dashboard-widgets .widget_rss ul li span.rss-date {
float: right;
}
h3.dashboard-widget-title small {
text-align: left;
float: left;
}
div.dashboard-widget-content ul,
div.dashboard-widget-content ol,
div.dashboard-widget-content dl {
padding-left:0;
padding-right:15px;
}
div#dashboard-widgets-wrap
{
margin-right:0;
margin-left:-10px;
}
div.dashboard-widget {
margin-right:0;
margin-left:20px;
}
#dashboard-widgets .widget_rss ul li span.rss-date {
float:right;
}
#dashboard-widgets .widget_rss ul li a {
float:right;
margin:0 0 0.2em 0.5em;
}
#dashboard_secondary div.dashboard-widget-content ul li {
float: right;
}
#dashboard_secondary div.dashboard-widget-content ul li .post {
font-family: sans-serif !important;
}
#dashboard_secondary div.dashboard-widget-content ul li a {
border-right:0 none;
border-left:1px solid #DADADA;
}
#dashboard_secondary div.dashboard-widget-content ul li a cite {
font-family: sans-serif;
}

282
wp-admin/css/dashboard.css Normal file
View File

@@ -0,0 +1,282 @@
/* Right Now */
#rightnow {
border-width: 1px;
border-style: solid;
padding: 2px;
margin-top: 10px;
margin-right: 7px;
}
#rightnow .reallynow {
padding: 6px;
font-size: 15px;
line-height: 2;
margin: 0;
}
#rightnow .rbutton {
font-weight: normal;
padding: 6px;
border-bottom: none;
-moz-border-radius: 2px;
-khtml-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
text-decoration: none;
}
#rightnow .reallynow span {
display: block;
text-align: left;
float: left;
padding: 0 6px;
}
#rightnow .reallynow a {
display: block;
text-align: right;
float: right;
padding: 0 6px;
font-size: 14px;
margin: 1px 6px 0 0;
}
#rightnow .youhave {
font-size: 14px;
padding: 10px;
}
#rightnow h3, #rightnow p {
padding: 0 10px;
}
#rightnow a {
font-weight: bold;
}
/* Widgets */
div#dashboard-widgets-wrap {
margin-top: -20px;
margin-right: -13px; /* 20 (div.dashboard-widget margin-right) - 7 (#rightnow margin-right) */
}
div#dashboard-widgets {
width: 100%;
}
div.dashboard-widget-holder {
margin-top: 20px;
width: 50%;
float: left;
}
div.dashboard-widget-holder.third {
width: 33.3%;
}
div.dashboard-widget-holder.fourth {
width: 25%;
}
div.dashboard-widget-holder.full {
width: 100%;
}
div.dashboard-widget-holder.double div.dashboard-widget {
height: 54em;
padding-bottom: 28px /* lame */
}
div.dashboard-widget {
position: relative;
margin-right: 20px;
border-width: 1px;
border-style: solid;
padding: 2px;
height: 27em;
overflow: auto;
font-size: 11px;
}
h3.dashboard-widget-title {
margin: 0;
padding: 0 7px;
font-size: 14px;
line-height: 2;
}
h3.dashboard-widget-title span {
display: block;
text-align: left;
float: left;
}
h3.dashboard-widget-title small {
display: block;
text-align: right;
float: right;
font-size: 75%;
line-height: 2.67; /* math: it works, bitches */
}
h3.dashboard-widget-title img.rss-icon {
vertical-align: middle;
margin: .5em 0;
}
div.dashboard-widget-notice {
padding: 0 14px;
font-size: 1.2em;
line-height: 2;
}
div.dashboard-widget-error {
padding: 0 20px;
font-size: 1.2em;
line-height: 2;
}
div.dashboard-widget-content {
padding: 10px 15px;
}
div.dashboard-widget-submit {
border-top: 1px solid #ccc;
padding: 1em 0 0 0;
margin: 10px 0 0 0;
}
div.dashboard-widget-submit input {
font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
padding: 4px 6px;
border: none;
font-size: 13px;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
cursor: pointer;
text-decoration: none;
}
div.dashboard-widget-content ul, div.dashboard-widget-content ol, div.dashboard-widget-content dl {
margin: 0;
text-indent: 0;
padding-left: 15px;
}
div.dashboard-widget-content li {
margin: .5em 0 1em;
}
div.dashboard-widget-content blockquote {
margin: -1em 0;
}
div#dashboard_recent_comments p {
font-size: 14px;
}
div.dashboard-widget-content p.comment-meta {
font-size: 11px !important;
}
#dashboard_secondary div.dashboard-widget {
height: auto;
}
#dashboard_secondary div.dashboard-widget-content ul {
list-style: none;
padding: 0;
}
#dashboard_secondary div.dashboard-widget-content ul li {
display: block;
width: 19.95%;
padding-bottom: 10px;
margin: 0;
float: left;
font-size: 95%;
}
#dashboard_secondary div.dashboard-widget-content {
margin: 10px 5px;
padding: 0;
}
#dashboard_secondary div.dashboard-widget-content ul li .post {
display:block;
font-family:Georgia,"Times New Roman",Times,serif;
font-size:18px;
line-height: 1.2em;
height:90px;
overflow:hidden;
}
#dashboard_secondary div.dashboard-widget-content ul li a {
display: block;
height:100%;
overflow:hidden;
margin: 5px 10px;
text-decoration: none;
padding: .5em;
border-right: 1px solid #dadada;
border-bottom: 1px solid #dadada;
}
#dashboard_secondary div.dashboard-widget-content ul li a cite {
display: block;
font-family: "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
}
#dashboard-widgets .widget_rss ul {
list-style: none;
padding: 0;
}
#dashboard-widgets .widget_rss ul li {
clear: both;
}
#dashboard-widgets .widget_rss ul li span.rss-date {
float: left;
margin: 0;
}
#dashboard-widgets .widget_rss ul li a {
float: left;
margin: 0 .5em .2em 0;
font-weight: bold;
}
#dashboard-widgets .widget_rss ul li div {
clear: both;
line-height: 1.5em;
}
#dashboard_primary a.rsswidget, #dashboard_plugins h5 {
font-size: 14px;
}
#dashboard_primary span.rss-date {
font-size: 14px;
}
#dashboard_plugins h4 {
font-size: 1em;
margin: 0 0 .1em;
}
#dashboard_plugins h5 {
margin: 0;
display: inline;
line-height: 1.4em;
}
#dashboard_plugins p {
margin: 0 0 1em;
line-height: 1.5em;
}
.widget-loading {
}

View File

@@ -0,0 +1,34 @@
//* styles for use by people extending the WordPress interface */
body, td { font-family: sans-serif; }
textarea, input, select { font-family: sans-serif; }
.alignleft { float: right; }
.alignright { float: left; }
.textleft { text-align: right; }
.textright { text-align: left; }
.wrap h2 { font-family: sans-serif; }
.widefat td {
padding: 7px 10px 9px 15px;
}
.widefat th {
padding: 9px 10px 6px 15px;
text-align: right;
}
.widefat th input {
margin: 0 8px 0 0;
}
.widefat .check-column {
text-align: left;
}
.wrap h2 {
margin: 5px -4px 0 0;
padding: 0 0 7px 280px;
}

200
wp-admin/css/global.css Normal file
View File

@@ -0,0 +1,200 @@
/* styles for use by people extending the WordPress interface */
body {
margin: 0;
padding: 0;
}
body, td {
font: 13px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
}
form, label input { margin: 0; padding: 0; }
img { border: 0; }
label { cursor: pointer; }
li, dd { margin-bottom: 6px; }
p, li, dl, dd, dt { line-height: 140%; }
textarea, input, select {
font: 13px Verdana, Arial, Helvetica, sans-serif;
margin: 1px;
padding: 3px;
}
.alignleft { float: left; }
.alignright { float: right; }
.textleft { text-align: left; }
.textright { text-align: right; }
.clear { clear: both; height: 2px; }
.hidden { display: none; }
h1 {
display: block;
font-size: 2em;
font-weight: bold;
margin: .67em 0;
}
h2 {
display: block;
font-size: 1.5em;
font-weight: bold;
margin: .83em 0;
}
h3 {
display: block;
font-size: 1.17em;
font-weight: bold;
margin: 1em 0;
}
h4 {
display: block;
font-weight: bold;
margin: 1.33em 0;
}
h5 {
display: block;
font-size: 0.83em;
font-weight: bold;
margin: 1.67em 0;
}
h6 {
display: block;
font-size: 0.67em;
font-weight: bold;
margin: 2.33em 0;
}
.subsubsub {
list-style: none;
margin: 14px 0 8px 0;
padding: 0;
white-space: nowrap;
font-size: 12px;
}
.subsubsub a { line-height: 200%; padding: 3px; text-decoration: none; }
.subsubsub a.current { font-weight: bold; background: none; border: none;}
.subsubsub li { display: inline; margin: 0; padding: 0; }
.widefat {
border-width: 1px;
border-style: solid;
border-collapse: collapse;
width: 100%;
clear: both;
margin: 0;
}
.widefat a {
text-decoration: none;
}
.widefat abbr {
white-space: nowrap;
}
.widefat td, .widefat th {
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #ccc;
font-size: 11px;
vertical-align: text-top;
}
.widefat td {
padding: 7px 15px 9px 10px;
vertical-align: top;
}
.widefat th {
padding: 9px 15px 6px 10px;
text-align: left;
line-height: 1.3em;
}
.widefat th input {
margin: 0 0 0 8px;
padding: 0;
}
.widefat .check-column {
text-align: right;
width: 1.5em;
padding: 0;
}
.widefat tbody th.check-column {
padding: 8px 0 22px;
}
/*
th.check-column + th, th.check-column + td {
padding-left: 5px;
}
*/
.widefat .num {
text-align: center;
}
.wrap, .updated, .error {
margin: 0;
margin-left: 15px;
margin-right: 15px;
padding: 0;
max-width: 980px;
}
.updated, .error {
border-width: 1px;
border-style: solid;
padding: 0 0.6em;
max-width: 950px;
margin-bottom: 1em;
}
.updated p, .error p {
margin: 0.6em 0;
}
.wrap .updated, .wrap .error {
margin: auto 0 0;
}
.updated a, .error a {
text-decoration: underline;
}
.updated a {
text-decoration: none;
padding-bottom: 2px;
}
.wrap h2 {
border-bottom-width: 1px;
border-bottom-style: solid;
clear: both;
font: 24px Georgia, "Times New Roman", Times, serif;
margin: 5px 0 0 -4px;
padding: 0;
padding-bottom: 7px;
padding-right: 280px;
}
.wrap h2.long-header {
padding-right: 0;
}

53
wp-admin/css/ie-rtl.css Normal file
View File

@@ -0,0 +1,53 @@
/* footer */
body, td {
font-family: Tahoma,Verdana,sans-serif;
}
.wrap {
text-align: right;
}
.wrap h2 {
margin: 5px 0 0 4px;
}
#footer {
padding-left:50px;
}
#footer p {
background:none;
height:auto;
padding: 5px 5px 0;
}
#bh {
padding-left: 15px;
padding-right: 0px;
}
/* write post */
#poststuff .togbox {
margin-right:-16px;
}
#poststuff h3 {
padding-right:20px;
}
p#widget-search, p#post-search {
padding-left: 15px;
}
.widefat th {
padding-bottom: 8px;
}
/* template editor */
#template textarea {
float:left;
}
/* Editor */
.mceToolbar {
direction: ltr;
text-align: left;
}

144
wp-admin/css/ie.css Normal file
View File

@@ -0,0 +1,144 @@
/* Fixes for IE bugs */
#poststuff .postbox h3 {
padding-left: 23px;
}
#submenu li a.current {
background:none;
border:none;
}
* html body.minwidth {
_width: expression(document.documentElement.clientWidth < 810 ? "808px" : "99.9%");
}
* html #wpbody {
_width: expression(document.documentElement.clientWidth > 982 ? "980px" : "99.9%");
}
* html #poststuff .postarea, * html #poststuff #titlediv {
width: 95%;
margin-left: 3%;
}
.submitbox {
margin-top: 10px;
}
* html div.widget-liquid-left-holder, * html div.widget-liquid-right {
display: block;
position: relative;
}
#wpwrap, #wpcontent, #post, #wrap, #postdivrich, #postdiv, #poststuff, #titlediv, #post-body, #editorcontainer, .tablenav, .widget-control-list, li.widget-list-control-item, #dragHelper, li.widget-list-control-item h4, .widget-sortable, .widget-control-actions {
display: block;
zoom: 100%;
}
* html #editorcontainer {
padding: 0;
}
* html #editorcontainer #content {
position: relative;
overflow: auto;
padding: 6px;
margin: auto;
width: 98%;
}
form#template div {
width: 100%;
}
#ed_toolbar input {
overflow: visible;
padding: 0 4px;
}
#poststuff h2 {
font-size: 1.6em;
}
* html #poststuff h2 {
margin-left: 0;
}
#bh {
padding-right: 15px;
}
/* without this dashboard widgets appear in one column for some screen widths */
div#dashboard-widgets {
padding-right: 1px;
}
#tagchecklist {
display: block;
zoom: 100%;
}
#tagchecklist span, #tagchecklist span a {
display: inline-block;
display: block;
}
#tagchecklist span a {
margin: 4px 0 0 -9px;
}
#poststuff .togbox {
margin-left: -19px;
}
.tablenav .button-secondary, .nav .button-secondary {
padding: 0 1px;
vertical-align: middle;
}
.tablenav select {
font-size: 13px;
display: inline-block;
vertical-align: top;
margin-top: 2px;
}
.tablenav-pages .page-numbers {
display: inline-block;
}
.tablenav-pages {
display: block;
margin-top: -3px;
}
table.ie-fixed {
table-layout: fixed;
}
#post-search .button, #widget-search .button {
padding: 1px;
}
.widefat tr, .widefat th {
margin-bottom: 0;
border-spacing: 0;
}
.widefat th input {
margin: 0 0 0 5px;
}
.widefat .check-column {
padding: 6px 0 2px;
}
.widefat tbody th.check-column {
padding: 4px 0 22px;
}
.tablenav a.button-secondary {
display: inline-block;
padding: 2px 5px;
}

View File

@@ -0,0 +1,26 @@
body {
font-size: 11px;
font-family: sans-serif !important;
}
ul, ol {
padding: 5px 22px 5px 5px;
}
.form-table th {
text-align: right;
}
input {
padding: 1px
}
#logo {
text-align: left;
}
#admin_email {
direction: ltr;
text-align: left;
}
.submit input, .button, .button-secondary {
font-family: sans-serif !important;
}
h1 {
font-family: sans-serif;
}

142
wp-admin/css/install.css Normal file
View File

@@ -0,0 +1,142 @@
html { background: #f1f1f1; }
body {
background: #fff;
color: #333;
font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
margin: 2em auto 0 auto;
width: 700px;
padding: 1em 2em;
-moz-border-radius: 12px;
-khtml-border-radius: 12px;
-webkit-border-radius: 12px;
border-radius: 12px;
}
a { color: #2583ad; text-decoration: none; }
a:hover { color: #d54e21; }
h1 {
font-size: 18px;
margin-bottom: 0;
}
h2 { font-size: 16px; }
p, li {
padding-bottom: 2px;
font-size: 13px;
line-height: 18px;
}
code {
font-size: 13px;
}
ul, ol { padding: 5px 5px 5px 22px; }
#logo { margin: 6px 0 14px 0px; border-bottom: none;}
.step {
margin: 20px 0 15px;
}
.step input {
font-size: 18px;
}
a.button {
font-size: 18px;
}
.step, th { text-align: left; padding: 0; }
.submit input, .button, .button-secondary {
font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
padding: 5px 7px 7px;
border: 1px solid #a3a3a3;
margin-left: 0;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
color: #246;
background: #e5e5e5;
}
.button-secondary {
background: #cee1ef;
}
.submit input:hover, .button:hover, .button-secondary:hover {
color: #d54e21;
border-color: #535353;
}
.form-table {
border-collapse: collapse;
margin-top: 1em;
width: 100%;
}
.form-table td {
margin-bottom: 9px;
padding: 10px;
border-bottom: 8px solid #fff;
font-size: 12px;
}
.form-table th {
font-size: 13px;
text-align: left;
padding: 16px 10px 10px 10px;
border-bottom: 8px solid #fff;
width: 110px;
vertical-align: top;
}
.form-table tr {
background: #eaf3fa;
}
.form-table code {
line-height: 18px;
font-size: 18px;
}
.form-table p {
margin: 4px 0 0 0;
font-size: 11px;
}
.form-table input {
line-height: 20px;
font-size: 15px;
padding: 2px;
}
h1 {
border-bottom: 1px solid #dadada;
clear: both;
color: #666666;
font: 24px Georgia, "Times New Roman", Times, serif;
margin: 5px 0 0 -4px;
padding: 0;
padding-bottom: 7px;
}
#error-page {
margin-top: 50px;
}
#error-page p {
font-size: 14px;
line-height: 16px;
margin: 25px 0 20px;
}
#error-page code {
font-size: 15px;
}

View File

@@ -0,0 +1,35 @@
body {
font-family: sans-serif;
direction: rtl;
}
#login form .submit input {
font-family: sans-serif !important;
}
form {
margin-left:0;
margin-right:8px;
}
form .forgetmenot {
float:right;
}
form .submit {
float:left;
}
#login_error, .message {
margin:0 8px 16px 0;
}
#nav {
margin: 0 8px 0 0;
}
#user_pass, #user_login, #user_email {
margin-right:0;
margin-left: 6px;
direction:ltr;
}
h1 a {
text-decoration:none;
}
#backtoblog a {
left: auto;
right: 15px;
}

74
wp-admin/css/login.css Normal file
View File

@@ -0,0 +1,74 @@
* { margin: 0; padding: 0; }
body {
border-top-width: 30px;
border-top-style: solid;
font: 12px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
}
form {
margin-left: 8px;
padding: 16px 16px 40px 16px;
font-weight: bold;
-moz-border-radius: 5px;
-khtml-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
form .forgetmenot { font-weight: normal; float: left; margin-bottom: 0;}
#login form .submit input {
font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
padding: 3px 5px;
border: none;
font-size: 13px;
border-width: 1px;
border-style: solid;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
cursor: default;
text-decoration: none;
margin-top: -6px;
}
form .submit { float: right; }
form p { margin-bottom: 24px; }
h1 a {
background: url(../images/logo-login.gif) no-repeat;
width: 292px;
height: 66px;
text-indent: -9999px;
overflow: hidden;
padding-bottom: 15px;
display: block;
}
#backtoblog a {
position: absolute;
top: 7px;
left: 15px;
text-decoration: none;
}
#login { width: 292px; margin: 7em auto; }
#login_error, .message {
margin: 0 0 16px 8px;
border-width: 1px;
border-style: solid;
padding: 12px;
}
#nav { margin: 0 0 0 8px; padding: 16px; }
#user_pass, #user_login, #user_email {
font-size: 20px;
width: 97%;
padding: 3px;
margin-right: 6px;
}

View File

@@ -0,0 +1,21 @@
ul#sidemenu {
left: auto;
right: 0;
}
.align .field label {
display: block;
float: right;
padding: 0 25px 0 0;
margin: 5px 3px 5px 5px;
}
.align .field input {
display: block;
float: right;
margin: 5px 15px 5px 0;
}
.image-align-none-label,
.image-align-left-label,
.image-align-center-label,
.image-align-right-label {
background-position: center right;
}

315
wp-admin/css/media.css Normal file
View File

@@ -0,0 +1,315 @@
div#media-upload-header {
margin: 0;
padding: 0 5px;
font-weight: bold;
position: relative;
border-bottom-width: 1px;
border-bottom-style: solid;
height: 2.5em;
}
body#media-upload ul#sidemenu {
font-weight: normal;
margin: 0 5px;
position: absolute;
left: 0px;
bottom: -1px;
}
div#media-upload-error {
margin: 1em;
font-weight: bold;
}
form {
margin: 1em;
}
#search-filter {
text-align: right;
}
.media-upload-form label, .media-upload-form legend {
display:block;
font-weight: bold;
font-size: 13px;
margin-bottom: 0.5em;
margin: 0 0 0.5em 0;
}
th { position: relative; }
.media-upload-form label.form-help, td.help {
font-style: italic;
font-weight: normal;
}
.media-upload-form p.help {
margin: 0;
padding: 0;
}
.media-upload-form fieldset {
width: 100%;
border: none;
text-align: justify;
margin: 0 0 1em 0;
padding: 0;
}
/* specific to the image upload form */
.align .field label {
display: inline;
padding: 0 0 0 28px;
margin: 0 1em 0 0;
}
.image-align-none-label {
background: url(../images/align-none.png) no-repeat center left;
}
.image-align-left-label {
background: url(../images/align-left.png) no-repeat center left;
}
.image-align-center-label {
background: url(../images/align-center.png) no-repeat center left;
}
.image-align-right-label {
background: url(../images/align-right.png) no-repeat center left;
}
#flash-upload-ui, .insert-gallery {
display: none;
}
tr.image-size label {
display: inline;
margin: 0 1em 0 0;
}
.pinkynail {
max-width: 40px;
max-height: 40px;
}
.filename.original {
float: left;
}
.crunching {
display: block;
line-height: 32px;
text-align: right;
margin-right: 5px;
}
button.dismiss {
position: absolute;
top: 5px;
right: 5px;
z-index: 4;
}
.file-error {
margin: 0 0 5px 50px;
font-weight: bold;
}
.progress {
position: absolute;
top: 0px;
left: 0px;
width: 623px;
height: 36px;
}
.bar {
width: 0px;
height: 100%;
border-right-width: 3px;
border-right-style: solid;
}
#library-form .progress, #gallery-form .progress {
display: none;
}
.media-item .thumbnail {
max-width: 128px;
max-height: 128px;
}
.media-item .pinkynail {
float: left;
margin: 2px;
height: 32px;
max-width: 40px;
}
thead.media-item-info tr {
background-color: transparent;
}
thead.media-item-info th, thead.media-item-info td {
border: none;
margin: 0;
}
.form-table thead.media-item-info {
border: 8px solid #fff;
}
.describe.startopen, .describe.startclosed {
display: none;
}
abbr.required {
text-decoration: none;
border: none;
}
.describe label {
display: inline;
}
.describe td {
vertical-align: middle;
}
.describe td.A1 {
width: 132px;
}
.describe input[type="text"], .describe textarea {
width: 460px;
}
.describe-toggle-on, .describe-toggle-off {
display: block;
line-height: 36px;
float: right;
margin-right: 20px;
}
.describe-toggle-off {
display: none;
}
.clickmask {
}
.hidden {
height: 0px;
width: 0px;
overflow: hidden;
border: none;
}
/* Specific to Uploader */
#media-upload .media-upload-form p {
margin: 0 1em 1em 0;
}
#media-upload .media-upload-form p.ml-submit {
padding: 1em 0;
}
#media-upload p.help {
font-style: italic;
font-weight: normal;
}
#media-upload tr.image-size td.field {
text-align: center;
}
#media-upload #media-items {
border-width: 1px;
border-style: solid;
border-bottom: none;
width: 623px;
}
#media-upload .media-item {
position: relative;
border-bottom-width: 1px;
border-bottom-style: solid;
min-height: 36px;
width: 100%;
}
#media-upload .ui-sortable .media-item {
cursor: move;
}
.filename {
float: left;
line-height: 36px;
margin-left: 10px;
overflow: hidden;
max-width: 430px;
}
#media-upload .describe {
border-top-width: 1px;
border-top-style: solid;
padding: 5px;
width: 100%;
clear: both;
cursor: default;
}
#media-upload .describe th.label {
padding-top: .5em;
text-align: left;
}
#media-upload tr.align td.field {
text-align: center;
}
#media-upload tr.image-size {
margin-bottom: 1em;
height: 3em;
}
#media-upload #filter {
width: 623px;
}
#media-upload #filter .subsubsub {
margin: 8px 0;
}
#filter .tablenav select {
border-style:solid;
border-width:1px;
padding:2px;
vertical-align:top;
}
#media-upload a.delete,
#media-upload a.del-link {
padding: 0 3px 1px;
}
#media-upload .del-attachment {
display: none;
margin: 5px 0;
}
.menu_order {
float: right;
font-size: 11px;
margin: 10px 10px 0;
}
.menu_order_input {
border: 1px solid #DDDDDD;
font-size: 10px;
padding: 1px;
width: 23px;
}
.ui-sortable-helper {
background-color: #fff;
border: 1px solid #aaa;
opacity: 0.6;
filter: alpha(opacity=60);
}
#media-upload th.order-head {
width: 25%;
text-align: center;
}
#media-upload .widefat {
width: 626px;
border-style: solid solid none;
}
.sorthelper {
z-index: -1;
}

View File

@@ -0,0 +1,7 @@
#menu { margin-right: 8px !important; }
p.submit input { text-align: right !important; }
li.ui-tabs-selected a { height: 25px; }
#photo_directions span { right: 200px; left: auto; height: 8px; }

View File

@@ -0,0 +1,8 @@
#posting {
position: static !important;
}
.ui-tabs-nav {
margin-left: 0;
border: 0 !important;
}

View File

@@ -0,0 +1,59 @@
body {
font-family: sans-serif;
}
#viewsite {
right:auto; left: 8px;
}
ul#menu {
padding-right: 8px;
}
.ui-tabs-nav li {
float: right;
}
div#posting {
padding-right:16px; padding-left: 0;
}
div#categories {
right: auto; left: 16px;
}
div#categories h2 {
margin:0.5em 1em 0.5em 0;
}
#jaxtag {
padding-right :1em; padding-left: 0;
}
input#newtag {
margin-left: 4px; width: 100px;
}
#photo_directions span {
right: auto; left: 3px
}
#TB_ajaxContent #options {
right: auto; left: 25px;
}
#TB_ajaxContent {
text-align: right;
}
#TB_ajaxContent #this_photo {
direction: ltr;
}
.video_split #extra_fields {
float: right;
}
.video_split .editor_area {
float: left;
}

519
wp-admin/css/press-this.css Normal file
View File

@@ -0,0 +1,519 @@
body {
font: 13px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
color: #333;
margin: 0px;
padding: 0px;
}
/* Tabs */
@media projection , screen {
.ui-tabs-hide {
display: none;
}
}
@media print {
.ui-tabs-nav {
display: none;
}
}
.ui-tabs-nav {
list-style: none;
border-bottom: 1px solid #C6D9E9;
padding-left: 8px;
margin-bottom: .5em;
margin-top: -2em;
}
/* Additional IE specific bug fixes... */
* html .ui-tabs-nav { /* auto clear, @ IE 6 & IE 7 Quirks Mode */
display: inline-block;
}
* :first-child+html .ui-tabs-nav {
/* @ IE 7 Standards Mode - do not group selectors, otherwise IE 6 will ignore complete rule (because of the unknown + combinator)... */
display: inline-block;
}
.ui-tabs-nav:after {
/* clearing without presentational markup, IE gets extra treatment */
display: block;
clear: both;
content: " ";
}
.ui-tabs-nav li {
float: left;
margin: 0;
height: 2em;
line-height: 2em;
}
.ui-tabs-nav a,.ui-tabs-nav a span {
display: block;
}
.ui-tabs-nav a {
margin: 1px 0 0;
/* position: relative makes opacity fail for disabled tab in IE */
padding-left: 0;
color: #27537a;
font-weight: bold;
line-height: 2em;
text-align: center;
text-decoration: none;
white-space: nowrap; /* required in IE 6 */
outline: 0; /* prevent dotted border in Firefox */
padding: 0 1em;
}
.ui-tabs-nav .ui-tabs-selected a {
position: relative;
top: 1px;
z-index: 2;
margin-top: 0;
-moz-border-radius-topleft: 4px;
-moz-border-radius-topright: 4px;
-webkit-border-top-left-radius: 4px;
-webkit-border-top-right-radius: 4px;
border-style: solid;
border-width: 1px;
background: white;
border-bottom-width: 2px;
margin-top: -2px;
}
.ui-tabs-nav a:hover,.ui-tabs-nav a:focus,.ui-tabs-nav a:active,
.ui-tabs-nav .ui-tabs-selected a:link,.ui-tabs-nav .ui-tabs-selected a:visited {
cursor: pointer;
}
/* Header */
#wphead {
border-top: none;
height: 2em;
padding-top: 8px;
}
.button {
font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
padding: 3px 5px;
font-size: 12px;
line-height: 1.5em;
border-width: 1px;
border-style: solid;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
cursor: pointer;
margin-left: 5px;
text-decoration: none;
}
.howto {
font-size: 11px;
font-style: italic;
display: block;
}
#wphead #viewsite {
position: absolute;
margin-top: 12px;
margin-left: 10px;
}
#viewsite {
position: relative;
right: 8px;
top: 6px;
margin: 0 !important;
}
#wphead #viewsite a {
font: 12px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
padding: 3px 4px;
display: block;
letter-spacing: normal;
border-width: 1px;
border-style: solid;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
text-decoration: none;
}
#previewview {
padding-top: 8px !important;
padding-bottom: 8px !important;
}
h1 {
font-size: .75em;
line-height: 2.666em;
top: .5em;
right: 0;
margin: 0 !important;
padding: 0 !important;
width: 236px;
background: none;
}
input.text {
border: 0pt none;
outline-color: -moz-use-text-color;
outline-style: none;
outline-width: medium;
padding: 0pt;
width: 100%;
border-style: solid;
color: #333333;
}
/* Editor/Main Column */
div#container {
margin: 0;
min-width: 500px;
}
div#container form {
margin: 0px;
padding: 0px;
}
div#posting {
padding-left: 16px;
position: absolute;
z-index: 1;
width: 66%;
}
#post_title {
width: 99%;
}
.titlewrap {
border-style: solid;
border-width: 1px;
padding: 2px 3px;
border-color: #CCCCCC;
}
div#posting h2 {
margin: .5em 0 .25em 0;
font-size: 12px;
padding: 3px;
background: ;
}
.editor-container {
border-width: 1px;
border-color: #ccc;
border-style: solid;
margin-bottom: 1em;
}
/* Photo Styles */
#photo_directions {
margin-top: .25em;
display: block;
position: relative;
}
#photo_directions span {
display: block;
position: absolute;
top: 0;
right: 3px;
}
#photo_saving {
margin: 0 8px 8px;
vertical-align: middle;
}
#img_container {
background-color: #fff;
overflow: auto;
height: 100px;
}
#img_container a {
display: block;
width: 79px;
height: 79px;
float: left;
}
#img_container img {
width: 75px;
height: 75px;
border: 0px;
padding: 2px;
background-color: #f4f4f4;
cursor: pointer;
}
#img_container a, #img_container a:link, #img_container a:visited {
border: 2px solid #ccc;
margin: 0 4px 4px 0;
}
#img_container a:hover, #img_container a:active {
border: 2px solid #000;
}
/* Submit Column */
div#categories {
font-size: 85%;
position: absolute;
top: 50px;
right: 16px;
width: 27%;
z-index: 2;
}
div#categories h2 {
color: #333;
font-size: 12px;
margin: .5em 0 .5em 1em;
padding: 0;
}
#categories-all {
overflow: auto;
padding: 0 1em 1em 1em;
height: 15em;
}
#categories ul {
list-style: none;
padding: 0;
margin: 0;
}
#tagsdiv #newtag {
padding: 3px;
margin-right: 5px;
width: 16em;
}
#jaxtag {
clear: both;
padding-left: 1em;
margin: 0;
}
#tagchecklist {
padding-left: 1em;
margin-bottom: 1em;
font-size: 12px;
overflow: auto;
}
#tagchecklist strong {
position: absolute;
font-size: .75em;
}
#tagchecklist span {
margin-right: .5em;
margin-left: 10px;
display: block;
float: left;
font-size: 11px;
line-height: 1.8em;
white-space: nowrap;
cursor: default;
}
#tagchecklist span a {
margin: 6px 0pt 0pt -9px;
cursor: pointer;
width: 10px;
height: 10px;
display: block;
float: left;
text-indent: -9999px;
overflow: hidden;
position: absolute;
}
.submit {
-moz-border-radius-bottomleft: 3px;
-khtml-border-bottom-left-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
border-bottom-left-radius: 3px;
-moz-border-radius-bottomright: 3px;
-khtml-border-bottom-right-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
border-bottom-right-radius: 3px;
margin: 0;
padding: 10px;
}
.submitbox {
width: 100%;
float: right;
}
.submitbox .submit a:hover {
border-bottom-width: 1px;
border-bottom-style: solid;
}
.submitbox .submit input {
border: none;
text-align: left;
padding: 6px 4px;
font-size: 12px;
margin: 2px;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
cursor: pointer;
}
.submitbox #previewview {
padding: 15px 10px;
-moz-border-radius-topleft: 3px;
-khtml-border-top-left-radius: 3px;
-webkit-border-top-left-radius: 3px;
border-top-left-radius: 3px;
-moz-border-radius-topright: 3px;
-khtml-border-top-right-radius: 3px;
-webkit-border-top-right-radius: 3px;
border-top-right-radius: 3px;
}
/* Video Styles */
.video_split #extra_fields {
width: 27%;
height: 300px;
float: left;
}
#embed_code {
border: 0;
width: 99%;
height: 200px;
}
.video_split .editor_area {
width: 70%;
float: right;
}
.ac_results {
padding: 0;
margin: 0;
list-style: none;
position: absolute;
z-index: 10000;
display: none;
border-width: 1px;
border-style: solid;
}
.ac_results li {
padding: 2px 5px;
white-space: nowrap;
text-align: left;
}
.ac_over {
cursor: pointer;
}
.ac_match {
text-decoration: underline;
}
.photolist {
display: none;
}
#extra_fields small {
display: block;
margin-top: .5em;
padding-bottom: .25em;
}
#TB_ajaxContent #options {
position: absolute;
top: 20px;
right: 25px;
padding: 5px;
}
#TB_ajaxContent h3 {
margin-bottom: .25em;
}
.updated {
margin: 0;
margin-left: 15px;
margin-right: 15px;
padding: 0;
max-width: 980px;
border-width: 1px;
border-style: solid;
padding: 0 0.6em;
max-width: 950px;
margin-top: 1em;
margin-bottom: 1em;
}
.updated p, .error p {
margin: 0.6em 0;
}
.updated a, .error a {
text-decoration: underline;
}
.updated a {
text-decoration: none;
padding-bottom: 2px;
}
#post_status {
margin-left: 10px;
margin-bottom: 1em;
display: block;
}
/* Footer */
#footer {
height: 65px;
display: block;
width: 640px;
padding: 10px 0 0 60px;
margin: 0;
position: absolute;
bottom: 0;
font-size: 12px;
}
#footer p {
margin: 0;
padding: 7px 0;
}
#footer p a {
text-decoration: none;
}
#footer p a:hover {
text-decoration: underline;
}
/* Utility Classes */
.centered {
text-align: center;
}
.hidden {
display: none;
}

View File

@@ -0,0 +1,14 @@
#template textarea {
font-family: monospace !important;
}
#templateside {
float:left;
}
#themeselector {
padding-right:0;
padding-left:5px;
}
div.tablenav {
margin-left:210px;
margin-right:0;
}

View File

@@ -0,0 +1,66 @@
#template textarea {
font-family: 'Courier New', Courier, monospace;
font-size: 12px;
width: 97%;
}
#template p {
width: 97%;
}
#templateside {
float: right;
width: 190px;
margin-top:-3.4em;
}
#templateside h3, #postcustomstuff p.submit {
margin: 0;
}
h3#bordertitle {
margin-bottom: 10px;
}
#templateside h4 {
margin-bottom: 0px;
}
#templateside ol, #templateside ul {
list-style: none;
margin: .5em;
padding: 0;
}
#templateside ol li, #templateside ul li {
margin: 1px 0px;
}
#themeselector {
padding-right: 5px;
float: right;
position: relative;
bottom: 25px;
}
#themeselector select {
margin: 0;
padding: 0;
}
.nonessential {
font-size: small;
}
.highlight {
padding: 1px;
}
div.bordertitle h2 {
border: none;
padding-bottom: 0px;
}
div.tablenav {
margin-right: 210px;
}

View File

@@ -0,0 +1,12 @@
html {
direction: ltr;
}
#uploadoptions, table {
direction: rtl;
}
td {
padding: 1px 6px 0;
}
.submit {
text-align: left;
}

View File

@@ -0,0 +1,51 @@
div.widget-liquid-left-holder {
clear:right;
float:right;
margin-right:0;
margin-left:-310px;
}
div.widget-liquid-left {
margin-right:0;
margin-left:310px;
}
div.widget-liquid-right {
clear:left;
float:left;
}
p#widget-search {
left:0;
right:auto
}
ul#widget-list li.widget-list-item h4.widget-title {
float:right;
text-align:right;
}
ul#widget-list li.widget-list-item div.widget-description {
margin:0 200px 0 0;
padding:0 4em 0 0;
}
.widget-control-save, .widget-control-remove {
float:right;
margin-right:0;
margin-left:8px;
}
h4.widget-title span {
float: right;
}
h4.widget-title a {
float: left;
margin: 0 1em 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 {
right:auto;
left:1em;
}
ul.widget-control-list div.widget-control-actions {
margin-right:0;
margin-left:-10px;
}
ul.widget-control-list h4.widget-title,
#dragHelper h4.widget-title {
text-align: right;
}

188
wp-admin/css/widgets.css Normal file
View File

@@ -0,0 +1,188 @@
/* 2 column liquid layout */
div.widget-liquid-left-holder {
float: left;
clear: left;
width: 100%;
margin-right: -310px;
}
div.widget-liquid-left {
margin-right: 320px;
}
div.widget-liquid-right {
float: right;
clear: right;
width: 300px;
position: relative;
}
/* pasitioning etc. */
form#widgets-filter {
position: relative;
}
div#available-widgets-filter {
border-bottom-width: 1px;
border-bottom-style: solid;
}
p#widget-search {
position: absolute;
right: 0;
top: 0;
margin: 0;
}
ul#widget-list {
list-style: none;
margin: 0;
padding: 0;
}
ul#widget-list li.widget-list-item {
padding: .7em 0.9em;
margin: 0;
border-bottom-width: 1px;
border-bottom-style: solid;
line-height: 1;
}
h4.widget-title span {
float: left;
}
h4.widget-title a {
float: right;
text-decoration: underline;
border-bottom: none;
margin-left: 1em;
}
ul#widget-list li.widget-list-item h4.widget-title {
position: relative;
margin: 0;
padding: .5em 1em;
width: 200px;
float: left;
font-size: 13px;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
#dragHelper h4.widget-title {
padding: .5em 1em;
margin: 0;
}
ul#widget-list li.widget-list-item div.widget-description {
display: block;
margin: 0 0 0 200px;
padding: 0 0 0 4em;
font-size: 11px;
}
ul#widget-list li.widget-list-item ul.widget-control-info {
display: none;
}
div#sidebar-info {
padding: 0 1em;
margin-bottom: 1em;
font-size: 11px;
}
ul.widget-control-list {
list-style: none;
margin: 0;
padding: 0 1em;
}
div#current-widgets p.submit {
padding: 1em;
}
li.widget-list-control-item {
margin: 1em 0;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
li.widget-list-control-item h4,
#dragHelper li.widget-list-control-item h4,
li.widget-sortable h4 {
margin: 0;
cursor: move;
font-size: 13px;
padding: 0.4em 0.8em;
position: relative;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.widget-control-save, .widget-control-remove {
padding: 3px 5px;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
margin-right: 8px;
float: left;
text-decoration: none;
}
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 {
right: 1em;
}
li.widget-list-control-item h4.widget-title a:hover {
text-decoration: none;
border-bottom: none;
}
li.widget-list-control-item div.widget-control {
display: none;
padding: 15px;
font-size: 11px;
position: relative;
}
li.widget-list-control-item div.widget-control p {
margin: 0 0 1em;
padding: 0;
}
ul.widget-control-list div.widget-control-actions {
border-top-width: 1px;
border-top-style: solid;
padding: 0.5em 0 0;
}
.widget-control-edit {
font-size: 10px;
font-weight: normal;
}
div#current-widgets {
padding-top: 1em;
border-width: 1px;
border-style: solid none none;
}
#widget-controls .widefat {
width: 92%;
padding: 3px;
}
#widget-controls select.widefat {
width: auto;
display: block;
}

View File

@@ -1,26 +0,0 @@
function customFieldsOnComplete( what, where, update, transport ) {
var pidEl = $('post_ID');
pidEl.name = 'post_ID';
pidEl.value = getNodeValue(transport.responseXML, 'postid');
var aEl = $('hiddenaction')
if ( aEl.value == 'post' ) aEl.value = 'postajaxpost';
}
addLoadEvent(customFieldsAddIn);
function customFieldsAddIn() {
theList.showLink=0;
theList.addComplete = customFieldsOnComplete;
if (!theList.theList) return false;
inputs = theList.theList.getElementsByTagName('input');
for ( var i=0; i < inputs.length; i++ ) {
if ('text' == inputs[i].type) {
inputs[i].setAttribute('autocomplete', 'off');
inputs[i].onkeypress = function(e) {return killSubmit('theList.ajaxUpdater("meta", "meta-' + parseInt(this.name.slice(5),10) + '");', e); };
}
if ('updatemeta' == inputs[i].className) {
inputs[i].onclick = function(e) {return killSubmit('theList.ajaxUpdater("meta", "meta-' + parseInt(this.parentNode.parentNode.id.slice(5),10) + '");', e); };
}
}
$('metakeyinput').onkeypress = function(e) {return killSubmit('theList.inputData+="&id="+$("post_ID").value;theList.ajaxAdder("meta", "newmeta");', e); };
$('updatemetasub').onclick = function(e) {return killSubmit('theList.inputData+="&id="+$("post_ID").value;theList.ajaxAdder("meta", "newmeta");', e); };
}

View File

@@ -1,323 +1,364 @@
<?php
class Custom_Image_Header {
var $admin_header_callback;
function Custom_Image_Header($admin_header_callback) {
$this->admin_header_callback = $admin_header_callback;
}
function init() {
$page = add_theme_page(__('Custom Image Header'), __('Custom Image Header'), 'edit_themes', 'custom-header', array(&$this, 'admin_page'));
add_action("admin_print_scripts-$page", array(&$this, 'js_includes'));
add_action("admin_head-$page", array(&$this, 'js'), 50);
add_action("admin_head-$page", $this->admin_header_callback, 51);
}
function js_includes() {
wp_enqueue_script('cropper');
wp_enqueue_script('colorpicker');
}
function js() {
if ( isset( $_POST['textcolor'] ) ) {
if ( 'blank' == $_POST['textcolor'] ) {
set_theme_mod('header_textcolor', 'blank');
} else {
$color = preg_replace('/[^0-9a-fA-F]/', '', $_POST['textcolor']);
if ( strlen($color) == 6 || strlen($color) == 3 )
set_theme_mod('header_textcolor', $color);
}
}
if ( isset($_POST['resetheader']) )
remove_theme_mods();
?>
<script type="text/javascript">
function onEndCrop( coords, dimensions ) {
$( 'x1' ).value = coords.x1;
$( 'y1' ).value = coords.y1;
$( 'x2' ).value = coords.x2;
$( 'y2' ).value = coords.y2;
$( 'width' ).value = dimensions.width;
$( 'height' ).value = dimensions.height;
}
// with a supplied ratio
Event.observe(
window,
'load',
function() {
var xinit = <?php echo HEADER_IMAGE_WIDTH; ?>;
var yinit = <?php echo HEADER_IMAGE_HEIGHT; ?>;
var ratio = xinit / yinit;
var ximg = $('upload').width;
var yimg = $('upload').height;
if ( yimg < yinit || ximg < xinit ) {
if ( ximg / yimg > ratio ) {
yinit = yimg;
xinit = yinit * ratio;
} else {
xinit = ximg;
yinit = xinit / ratio;
}
}
new Cropper.Img(
'upload',
{
ratioDim: { x: xinit, y: yinit },
displayOnInit: true,
onEndCrop: onEndCrop
}
)
}
);
var cp = new ColorPicker();
function pickColor(color) {
$('name').style.color = color;
$('desc').style.color = color;
$('textcolor').value = color;
}
function PopupWindow_hidePopup(magicword) {
if ( magicword != 'prettyplease' )
return false;
if (this.divName != null) {
if (this.use_gebi) {
document.getElementById(this.divName).style.visibility = "hidden";
}
else if (this.use_css) {
document.all[this.divName].style.visibility = "hidden";
}
else if (this.use_layers) {
document.layers[this.divName].visibility = "hidden";
}
}
else {
if (this.popupWindow && !this.popupWindow.closed) {
this.popupWindow.close();
this.popupWindow = null;
}
}
return false;
}
function colorSelect(t,p) {
if ( cp.p == p && document.getElementById(cp.divName).style.visibility != "hidden" ) {
cp.hidePopup('prettyplease');
} else {
cp.p = p;
cp.select(t,p);
}
}
function colorDefault() {
pickColor('<?php echo HEADER_TEXTCOLOR; ?>');
}
function hide_text() {
$('name').style.display = 'none';
$('desc').style.display = 'none';
$('pickcolor').style.display = 'none';
$('defaultcolor').style.display = 'none';
$('textcolor').value = 'blank';
$('hidetext').value = '<?php _e('Show Text'); ?>';
// $('hidetext').onclick = 'show_text()';
Event.observe( $('hidetext'), 'click', show_text );
}
function show_text() {
$('name').style.display = 'block';
$('desc').style.display = 'block';
$('pickcolor').style.display = 'inline';
$('defaultcolor').style.display = 'inline';
$('textcolor').value = '<?php echo HEADER_TEXTCOLOR; ?>';
$('hidetext').value = '<?php _e('Hide Text'); ?>';
Event.stopObserving( $('hidetext'), 'click', show_text );
Event.observe( $('hidetext'), 'click', hide_text );
}
<?php if ( 'blank' == get_theme_mod('header_textcolor', HEADER_TEXTCOLOR) ) { ?>
Event.observe( window, 'load', hide_text );
<?php } ?>
</script>
<?php
}
function step_1() {
if ( $_GET['updated'] ) { ?>
<div id="message" class="updated fade">
<p><?php _e('Header updated.') ?></p>
</div>
<?php } ?>
<div class="wrap">
<h2><?php _e('Your Header Image'); ?></h2>
<p><?php _e('This is your header image. You can change the text color or upload and crop a new image.'); ?></p>
<div id="headimg" style="background: url(<?php header_image() ?>) no-repeat;">
<h1><a onclick="return false;" href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>" id="name"><?php bloginfo('name'); ?></a></h1>
<div id="desc"><?php bloginfo('description');?></div>
</div>
<?php if ( !defined( 'NO_HEADER_TEXT' ) ) { ?>
<form method="post" action="<?php echo get_option('siteurl') ?>/wp-admin/themes.php?page=custom-header&amp;updated=true">
<input type="button" value="<?php _e('Hide Text'); ?>" onclick="hide_text()" id="hidetext" />
<input type="button" value="<?php _e('Select a Text Color'); ?>" onclick="colorSelect($('textcolor'), 'pickcolor')" id="pickcolor" /><input type="button" value="<?php _e('Use Original Color'); ?>" onclick="colorDefault()" id="defaultcolor" />
<input type="hidden" name="textcolor" id="textcolor" value="#<?php header_textcolor() ?>" /><input name="submit" type="submit" value="<?php _e('Save Changes'); ?> &raquo;" /></form>
<?php } ?>
<div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;visibility:hidden;"> </div>
</div>
<div class="wrap">
<h2><?php _e('Upload New Header Image'); ?></h2><p><?php _e('Here you can upload a custom header image to be shown at the top of your blog instead of the default one. On the next screen you will be able to crop the image.'); ?></p>
<p><?php printf(__('Images of exactly <strong>%1$d x %2$d pixels</strong> will be used as-is.'), HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT); ?></p>
<form enctype="multipart/form-data" id="uploadForm" method="POST" action="<?php echo attribute_escape(add_query_arg('step', 2)) ?>" style="margin: auto; width: 50%;">
<label for="upload"><?php _e('Choose an image from your computer:'); ?></label><br /><input type="file" id="upload" name="import" />
<input type="hidden" name="action" value="save" />
<p class="submit">
<input type="submit" value="<?php _e('Upload'); ?> &raquo;" />
</p>
</form>
</div>
<?php if ( get_theme_mod('header_image') || get_theme_mod('header_textcolor') ) : ?>
<div class="wrap">
<h2><?php _e('Reset Header Image and Color'); ?></h2>
<p><?php _e('This will restore the original header image and color. You will not be able to retrieve any customizations.') ?></p>
<form method="post" action="<?php echo attribute_escape(add_query_arg('step', 1)) ?>">
<input type="submit" name="resetheader" value="<?php _e('Restore Original Header'); ?>" />
</form>
</div>
<?php endif;
}
function step_2() {
$overrides = array('test_form' => false);
$file = wp_handle_upload($_FILES['import'], $overrides);
if ( isset($file['error']) )
die( $file['error'] );
$url = $file['url'];
$file = $file['file'];
$filename = basename($file);
// Construct the object array
$object = array(
'post_title' => $filename,
'post_content' => $url,
'post_mime_type' => 'import',
'guid' => $url);
// Save the data
$id = wp_insert_attachment($object, $file);
$upload = array('file' => $file, 'id' => $id);
list($width, $height, $type, $attr) = getimagesize( $file );
if ( $width == HEADER_IMAGE_WIDTH && $height == HEADER_IMAGE_HEIGHT ) {
set_theme_mod('header_image', $url);
$header = apply_filters('wp_create_file_in_uploads', $file, $id); // For replication
return $this->finished();
} elseif ( $width > HEADER_IMAGE_WIDTH ) {
$oitar = $width / HEADER_IMAGE_WIDTH;
$image = wp_crop_image($file, 0, 0, $width, $height, HEADER_IMAGE_WIDTH, $height / $oitar, false, str_replace(basename($file), 'midsize-'.basename($file), $file));
$image = apply_filters('wp_create_file_in_uploads', $image, $id); // For replication
$url = str_replace(basename($url), basename($image), $url);
$width = $width / $oitar;
$height = $height / $oitar;
} else {
$oitar = 1;
}
?>
<div class="wrap">
<form method="POST" action="<?php echo attribute_escape(add_query_arg('step', 3)) ?>">
<p><?php _e('Choose the part of the image you want to use as your header.'); ?></p>
<div id="testWrap">
<img src="<?php echo $url; ?>" id="upload" width="<?php echo $width; ?>" height="<?php echo $height; ?>" />
</div>
<p class="submit">
<input type="hidden" name="x1" id="x1" />
<input type="hidden" name="y1" id="y1" />
<input type="hidden" name="x2" id="x2" />
<input type="hidden" name="y2" id="y2" />
<input type="hidden" name="width" id="width" />
<input type="hidden" name="height" id="height" />
<input type="hidden" name="attachment_id" id="attachment_id" value="<?php echo $id; ?>" />
<input type="hidden" name="oitar" id="oitar" value="<?php echo $oitar; ?>" />
<input type="submit" value="<?php _e('Crop Header &raquo;'); ?>" />
</p>
</form>
</div>
<?php
}
function step_3() {
if ( $_POST['oitar'] > 1 ) {
$_POST['x1'] = $_POST['x1'] * $_POST['oitar'];
$_POST['y1'] = $_POST['y1'] * $_POST['oitar'];
$_POST['width'] = $_POST['width'] * $_POST['oitar'];
$_POST['height'] = $_POST['height'] * $_POST['oitar'];
}
$header = wp_crop_image($_POST['attachment_id'], $_POST['x1'], $_POST['y1'], $_POST['width'], $_POST['height'], HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT);
$header = apply_filters('wp_create_file_in_uploads', $header); // For replication
$parent = get_post($_POST['attachment_id']);
$parent_url = $parent->guid;
$url = str_replace(basename($parent_url), basename($header), $parent_url);
set_theme_mod('header_image', $url);
// cleanup
$file = get_attached_file( $_POST['attachment_id'] );
$medium = str_replace(basename($file), 'midsize-'.basename($file), $file);
@unlink( apply_filters( 'wp_delete_file', $medium ) );
wp_delete_attachment( $_POST['attachment_id'] );
return $this->finished();
}
function finished() {
?>
<div class="wrap">
<h2><?php _e('Header complete!'); ?></h2>
<p><?php _e('Visit your site and you should see the new header now.'); ?></p>
</div>
<?php
}
function admin_page() {
if ( !isset( $_GET['step'] ) )
$step = 1;
else
$step = (int) $_GET['step'];
if ( 1 == $step ) {
$this->step_1();
} elseif ( 2 == $step ) {
$this->step_2();
} elseif ( 3 == $step ) {
$this->step_3();
}
}
}
?>
<?php
class Custom_Image_Header {
var $admin_header_callback;
function Custom_Image_Header($admin_header_callback) {
$this->admin_header_callback = $admin_header_callback;
}
function init() {
$page = add_theme_page(__('Custom Image Header'), __('Custom Image Header'), 'edit_themes', 'custom-header', array(&$this, 'admin_page'));
add_action("admin_print_scripts-$page", array(&$this, 'js_includes'));
add_action("admin_head-$page", array(&$this, 'take_action'), 50);
add_action("admin_head-$page", array(&$this, 'js'), 50);
add_action("admin_head-$page", $this->admin_header_callback, 51);
}
function step() {
$step = (int) @$_GET['step'];
if ( $step < 1 || 3 < $step )
$step = 1;
return $step;
}
function js_includes() {
$step = $this->step();
if ( 1 == $step )
wp_enqueue_script('colorpicker');
elseif ( 2 == $step )
wp_enqueue_script('cropper');
}
function take_action() {
if ( isset( $_POST['textcolor'] ) ) {
check_admin_referer('custom-header');
if ( 'blank' == $_POST['textcolor'] ) {
set_theme_mod('header_textcolor', 'blank');
} else {
$color = preg_replace('/[^0-9a-fA-F]/', '', $_POST['textcolor']);
if ( strlen($color) == 6 || strlen($color) == 3 )
set_theme_mod('header_textcolor', $color);
}
}
if ( isset($_POST['resetheader']) ) {
check_admin_referer('custom-header');
remove_theme_mods();
}
}
function js() {
$step = $this->step();
if ( 1 == $step )
$this->js_1();
elseif ( 2 == $step )
$this->js_2();
}
function js_1() { ?>
<script type="text/javascript">
var cp = new ColorPicker();
function pickColor(color) {
$('name').style.color = color;
$('desc').style.color = color;
$('textcolor').value = color;
}
function PopupWindow_hidePopup(magicword) {
if ( magicword != 'prettyplease' )
return false;
if (this.divName != null) {
if (this.use_gebi) {
document.getElementById(this.divName).style.visibility = "hidden";
}
else if (this.use_css) {
document.all[this.divName].style.visibility = "hidden";
}
else if (this.use_layers) {
document.layers[this.divName].visibility = "hidden";
}
}
else {
if (this.popupWindow && !this.popupWindow.closed) {
this.popupWindow.close();
this.popupWindow = null;
}
}
return false;
}
function colorSelect(t,p) {
if ( cp.p == p && document.getElementById(cp.divName).style.visibility != "hidden" ) {
cp.hidePopup('prettyplease');
} else {
cp.p = p;
cp.select(t,p);
}
}
function colorDefault() {
pickColor('#<?php echo HEADER_TEXTCOLOR; ?>');
}
function hide_text() {
$('name').style.display = 'none';
$('desc').style.display = 'none';
$('pickcolor').style.display = 'none';
$('defaultcolor').style.display = 'none';
$('textcolor').value = 'blank';
$('hidetext').value = '<?php _e('Show Text'); ?>';
// $('hidetext').onclick = 'show_text()';
Event.observe( $('hidetext'), 'click', show_text );
}
function show_text() {
$('name').style.display = 'block';
$('desc').style.display = 'block';
$('pickcolor').style.display = 'inline';
$('defaultcolor').style.display = 'inline';
$('textcolor').value = '<?php echo HEADER_TEXTCOLOR; ?>';
$('hidetext').value = '<?php _e('Hide Text'); ?>';
Event.stopObserving( $('hidetext'), 'click', show_text );
Event.observe( $('hidetext'), 'click', hide_text );
}
<?php if ( 'blank' == get_theme_mod('header_textcolor', HEADER_TEXTCOLOR) ) { ?>
Event.observe( window, 'load', hide_text );
<?php } ?>
</script>
<?php
}
function js_2() { ?>
<script type="text/javascript">
function onEndCrop( coords, dimensions ) {
$( 'x1' ).value = coords.x1;
$( 'y1' ).value = coords.y1;
$( 'x2' ).value = coords.x2;
$( 'y2' ).value = coords.y2;
$( 'width' ).value = dimensions.width;
$( 'height' ).value = dimensions.height;
}
// with a supplied ratio
Event.observe(
window,
'load',
function() {
var xinit = <?php echo HEADER_IMAGE_WIDTH; ?>;
var yinit = <?php echo HEADER_IMAGE_HEIGHT; ?>;
var ratio = xinit / yinit;
var ximg = $('upload').width;
var yimg = $('upload').height;
if ( yimg < yinit || ximg < xinit ) {
if ( ximg / yimg > ratio ) {
yinit = yimg;
xinit = yinit * ratio;
} else {
xinit = ximg;
yinit = xinit / ratio;
}
}
new Cropper.Img(
'upload',
{
ratioDim: { x: xinit, y: yinit },
displayOnInit: true,
onEndCrop: onEndCrop
}
)
}
);
</script>
<?php
}
function step_1() {
if ( $_GET['updated'] ) { ?>
<div id="message" class="updated fade">
<p><?php _e('Header updated.') ?></p>
</div>
<?php } ?>
<div class="wrap">
<h2><?php _e('Your Header Image'); ?></h2>
<p><?php _e('This is your header image. You can change the text color or upload and crop a new image.'); ?></p>
<div id="headimg" style="background-image: url(<?php clean_url(header_image()) ?>);">
<h1><a onclick="return false;" href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>" id="name"><?php bloginfo('name'); ?></a></h1>
<div id="desc"><?php bloginfo('description');?></div>
</div>
<?php if ( !defined( 'NO_HEADER_TEXT' ) ) { ?>
<form method="post" action="<?php echo admin_url('themes.php?page=custom-header&amp;updated=true') ?>">
<input type="button" value="<?php _e('Hide Text'); ?>" onclick="hide_text()" id="hidetext" />
<input type="button" value="<?php _e('Select a Text Color'); ?>" onclick="colorSelect($('textcolor'), 'pickcolor')" id="pickcolor" /><input type="button" value="<?php _e('Use Original Color'); ?>" onclick="colorDefault()" id="defaultcolor" />
<?php wp_nonce_field('custom-header') ?>
<input type="hidden" name="textcolor" id="textcolor" value="#<?php attribute_escape(header_textcolor()) ?>" /><input name="submit" type="submit" value="<?php _e('Save Changes'); ?>" /></form>
<?php } ?>
<div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;visibility:hidden;"> </div>
</div>
<div class="wrap">
<h2><?php _e('Upload New Header Image'); ?></h2><p><?php _e('Here you can upload a custom header image to be shown at the top of your blog instead of the default one. On the next screen you will be able to crop the image.'); ?></p>
<p><?php printf(__('Images of exactly <strong>%1$d x %2$d pixels</strong> will be used as-is.'), HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT); ?></p>
<form enctype="multipart/form-data" id="uploadForm" method="POST" action="<?php echo attribute_escape(add_query_arg('step', 2)) ?>" style="margin: auto; width: 50%;">
<label for="upload"><?php _e('Choose an image from your computer:'); ?></label><br /><input type="file" id="upload" name="import" />
<input type="hidden" name="action" value="save" />
<?php wp_nonce_field('custom-header') ?>
<p class="submit">
<input type="submit" value="<?php _e('Upload'); ?>" />
</p>
</form>
</div>
<?php if ( get_theme_mod('header_image') || get_theme_mod('header_textcolor') ) : ?>
<div class="wrap">
<h2><?php _e('Reset Header Image and Color'); ?></h2>
<p><?php _e('This will restore the original header image and color. You will not be able to retrieve any customizations.') ?></p>
<form method="post" action="<?php echo attribute_escape(add_query_arg('step', 1)) ?>">
<?php wp_nonce_field('custom-header'); ?>
<input type="submit" name="resetheader" value="<?php _e('Restore Original Header'); ?>" />
</form>
</div>
<?php endif;
}
function step_2() {
check_admin_referer('custom-header');
$overrides = array('test_form' => false);
$file = wp_handle_upload($_FILES['import'], $overrides);
if ( isset($file['error']) )
die( $file['error'] );
$url = $file['url'];
$type = $file['type'];
$file = $file['file'];
$filename = basename($file);
// Construct the object array
$object = array(
'post_title' => $filename,
'post_content' => $url,
'post_mime_type' => $type,
'guid' => $url);
// Save the data
$id = wp_insert_attachment($object, $file);
list($width, $height, $type, $attr) = getimagesize( $file );
if ( $width == HEADER_IMAGE_WIDTH && $height == HEADER_IMAGE_HEIGHT ) {
// Add the meta-data
wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) );
set_theme_mod('header_image', clean_url($url));
do_action('wp_create_file_in_uploads', $file, $id); // For replication
return $this->finished();
} elseif ( $width > HEADER_IMAGE_WIDTH ) {
$oitar = $width / HEADER_IMAGE_WIDTH;
$image = wp_crop_image($file, 0, 0, $width, $height, HEADER_IMAGE_WIDTH, $height / $oitar, false, str_replace(basename($file), 'midsize-'.basename($file), $file));
$image = apply_filters('wp_create_file_in_uploads', $image, $id); // For replication
$url = str_replace(basename($url), basename($image), $url);
$width = $width / $oitar;
$height = $height / $oitar;
} else {
$oitar = 1;
}
?>
<div class="wrap">
<form method="POST" action="<?php echo attribute_escape(add_query_arg('step', 3)) ?>">
<p><?php _e('Choose the part of the image you want to use as your header.'); ?></p>
<div id="testWrap" style="position: relative">
<img src="<?php echo $url; ?>" id="upload" width="<?php echo $width; ?>" height="<?php echo $height; ?>" />
</div>
<p class="submit">
<input type="hidden" name="x1" id="x1" />
<input type="hidden" name="y1" id="y1" />
<input type="hidden" name="x2" id="x2" />
<input type="hidden" name="y2" id="y2" />
<input type="hidden" name="width" id="width" />
<input type="hidden" name="height" id="height" />
<input type="hidden" name="attachment_id" id="attachment_id" value="<?php echo $id; ?>" />
<input type="hidden" name="oitar" id="oitar" value="<?php echo $oitar; ?>" />
<?php wp_nonce_field('custom-header') ?>
<input type="submit" value="<?php _e('Crop Header'); ?>" />
</p>
</form>
</div>
<?php
}
function step_3() {
check_admin_referer('custom-header');
if ( $_POST['oitar'] > 1 ) {
$_POST['x1'] = $_POST['x1'] * $_POST['oitar'];
$_POST['y1'] = $_POST['y1'] * $_POST['oitar'];
$_POST['width'] = $_POST['width'] * $_POST['oitar'];
$_POST['height'] = $_POST['height'] * $_POST['oitar'];
}
$original = get_attached_file( $_POST['attachment_id'] );
$cropped = wp_crop_image($_POST['attachment_id'], $_POST['x1'], $_POST['y1'], $_POST['width'], $_POST['height'], HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT);
$cropped = apply_filters('wp_create_file_in_uploads', $cropped, $_POST['attachment_id']); // For replication
$parent = get_post($_POST['attachment_id']);
$parent_url = $parent->guid;
$url = str_replace(basename($parent_url), basename($cropped), $parent_url);
// Construct the object array
$object = array(
'ID' => $_POST['attachment_id'],
'post_title' => basename($cropped),
'post_content' => $url,
'post_mime_type' => 'image/jpeg',
'guid' => $url
);
// Update the attachment
wp_insert_attachment($object, $cropped);
wp_update_attachment_metadata( $_POST['attachment_id'], wp_generate_attachment_metadata( $_POST['attachment_id'], $cropped ) );
set_theme_mod('header_image', $url);
// cleanup
$medium = str_replace(basename($original), 'midsize-'.basename($original), $original);
@unlink( apply_filters( 'wp_delete_file', $medium ) );
@unlink( apply_filters( 'wp_delete_file', $original ) );
return $this->finished();
}
function finished() {
?>
<div class="wrap">
<h2><?php _e('Header complete!'); ?></h2>
<p><?php _e('Visit your site and you should see the new header now.'); ?></p>
</div>
<?php
}
function admin_page() {
$step = $this->step();
if ( 1 == $step )
$this->step_1();
elseif ( 2 == $step )
$this->step_2();
elseif ( 3 == $step )
$this->step_3();
}
}
?>

View File

@@ -1,47 +0,0 @@
addLoadEvent( function() {var manager = new dbxManager( dbxL10n.manager );} );
addLoadEvent( function()
{
//create new docking boxes group
var meta = new dbxGroup(
'grabit', // container ID [/-_a-zA-Z0-9/]
'vertical', // orientation ['vertical'|'horizontal']
'10', // drag threshold ['n' pixels]
'no', // restrict drag movement to container axis ['yes'|'no']
'10', // animate re-ordering [frames per transition, or '0' for no effect]
'yes', // include open/close toggle buttons ['yes'|'no']
'closed', // default state ['open'|'closed']
dbxL10n.open, // word for "open", as in "open this box"
dbxL10n.close, // word for "close", as in "close this box"
dbxL10n.moveMouse, // sentence for "move this box" by mouse
dbxL10n.toggleMouse, // pattern-match sentence for "(open|close) this box" by mouse
dbxL10n.moveKey, // sentence for "move this box" by keyboard
dbxL10n.toggleKey, // pattern-match sentence-fragment for "(open|close) this box" by keyboard
'%mytitle% [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts
);
// Boxes are closed by default. Open the Category box if the cookie isn't already set.
var catdiv = document.getElementById('categorydiv');
if ( catdiv ) {
var button = catdiv.getElementsByTagName('A')[0];
if ( dbx.cookiestate == null && /dbx\-toggle\-closed/.test(button.className) )
meta.toggleBoxState(button, true);
}
var advanced = new dbxGroup(
'advancedstuff',
'vertical',
'10',
'yes', // restrict drag movement to container axis ['yes'|'no']
'10',
'yes',
'closed',
dbxL10n.open,
dbxL10n.close,
dbxL10n.moveMouse,
dbxL10n.toggleMouse,
dbxL10n.moveKey,
dbxL10n.toggleKey,
'%mytitle% [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts
);
});

View File

@@ -0,0 +1,152 @@
<?php if ( ! defined('ABSPATH') ) die(); ?>
<table class="widefat">
<thead>
<tr>
<?php $posts_columns = wp_manage_media_columns(); ?>
<?php foreach($posts_columns as $post_column_key => $column_display_name) {
if ( 'cb' === $post_column_key )
$class = ' class="check-column"';
elseif ( 'comments' === $post_column_key )
$class = ' class="num"';
else
$class = '';
?>
<th scope="col"<?php echo $class; ?>><?php echo $column_display_name; ?></th>
<?php } ?>
</tr>
</thead>
<tbody id="the-list" class="list:post">
<?php
if ( have_posts() ) {
$bgcolor = '';
add_filter('the_title','wp_specialchars');
while (have_posts()) : the_post();
$class = 'alternate' == $class ? '' : 'alternate';
global $current_user;
$post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' );
$att_title = get_the_title();
if ( empty($att_title) )
$att_title = __('(no title)');
?>
<tr id='post-<?php echo $id; ?>' class='<?php echo trim( $class . ' author-' . $post_owner . ' status-' . $post->post_status ); ?>' valign="top">
<?php
foreach($posts_columns as $column_name=>$column_display_name) {
switch($column_name) {
case 'cb':
?>
<th scope="row" class="check-column"><input type="checkbox" name="delete[]" value="<?php the_ID(); ?>" /></th>
<?php
break;
case 'icon':
?>
<td class="media-icon"><?php echo wp_get_attachment_link($post->ID, array(80, 60), false, true); ?></td>
<?php
// TODO
break;
case 'media':
?>
<td><strong><a href="media.php?action=edit&amp;attachment_id=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br />
<?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?>
<?php do_action('manage_media_media_column', $post->ID); ?>
</td>
<?php
break;
case 'desc':
?>
<td><?php echo has_excerpt() ? $post->post_excerpt : ''; ?></td>
<?php
break;
case 'date':
if ( '0000-00-00 00:00:00' == $post->post_date && 'date' == $column_name ) {
$t_time = $h_time = __('Unpublished');
} else {
$t_time = get_the_time(__('Y/m/d g:i:s A'));
$m_time = $post->post_date;
$time = get_post_time( 'G', true );
if ( ( abs($t_diff = time() - $time) ) < 86400 ) {
if ( $t_diff < 0 )
$h_time = sprintf( __('%s from now'), human_time_diff( $time ) );
else
$h_time = sprintf( __('%s ago'), human_time_diff( $time ) );
} else {
$h_time = mysql2date(__('Y/m/d'), $m_time);
}
}
?>
<td><?php echo $h_time ?></td>
<?php
break;
case 'parent':
$title = __('(no title)'); // override below
if ( $post->post_parent > 0 ) {
if ( get_post($post->post_parent) ) {
$parent_title = get_the_title($post->post_parent);
if ( !empty($parent_title) )
$title = $parent_title;
}
?>
<td><strong><a href="post.php?action=edit&amp;post=<?php echo $post->post_parent; ?>"><?php echo $title ?></a></strong></td>
<?php
} else {
?>
<td>&nbsp;</td>
<?php
}
break;
case 'comments':
?>
<td class="num"><div class="post-com-count-wrapper">
<?php
$left = get_pending_comments_num( $post->ID );
$pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
if ( $left )
echo '<strong>';
comments_number("<a href='upload.php?attachment_id=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('0') . '</span></a>', "<a href='upload.php?attachment_id=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('1') . '</span></a>', "<a href='upload.php?attachment_id=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('%') . '</span></a>');
if ( $left )
echo '</strong>';
?>
</div></td>
<?php
break;
case 'location':
?>
<td><a href="<?php the_permalink(); ?>"><?php _e('Permalink'); ?></a></td>
<?php
break;
default:
?>
<td><?php do_action('manage_media_custom_column', $column_name, $id); ?></td>
<?php
break;
}
}
?>
</tr>
<?php
endwhile;
} else {
?>
<tr style='background-color: <?php echo $bgcolor; ?>'>
<td colspan="8"><?php _e('No posts found.') ?></td>
</tr>
<?php
} // end if ( have_posts() )
?>
</tbody>
</table>

View File

@@ -1,15 +1,15 @@
<?php
if ( ! empty($cat_ID) ) {
$heading = __('Edit Category');
$submit_text = __('Edit Category &raquo;');
$form = '<form name="editcat" id="editcat" method="post" action="categories.php">';
$submit_text = __('Edit Category');
$form = '<form name="editcat" id="editcat" method="post" action="categories.php" class="validate">';
$action = 'editedcat';
$nonce_action = 'update-category_' . $cat_ID;
do_action('edit_category_form_pre', $category);
} else {
$heading = __('Add Category');
$submit_text = __('Add Category &raquo;');
$form = '<form name="addcat" id="addcat" method="post" action="categories.php">';
$submit_text = __('Add Category');
$form = '<form name="addcat" id="addcat" method="post" action="categories.php" class="add:the-list: validate">';
$action = 'addcat';
$nonce_action = 'add-category';
do_action('add_category_form_pre', $category);
@@ -21,29 +21,33 @@ if ( ! empty($cat_ID) ) {
<div id="ajax-response"></div>
<?php echo $form ?>
<input type="hidden" name="action" value="<?php echo $action ?>" />
<input type="hidden" name="cat_ID" value="<?php echo $category->cat_ID ?>" />
<input type="hidden" name="cat_ID" value="<?php echo $category->term_id ?>" />
<?php wp_nonce_field($nonce_action); ?>
<table class="editform" width="100%" cellspacing="2" cellpadding="5">
<tr>
<th width="33%" scope="row" valign="top"><label for="cat_name"><?php _e('Category name:') ?></label></th>
<td width="67%"><input name="cat_name" id="cat_name" type="text" value="<?php echo attribute_escape($category->cat_name); ?>" size="40" /></td>
<table class="form-table">
<tr class="form-field form-required">
<th scope="row" valign="top"><label for="cat_name"><?php _e('Category Name') ?></label></th>
<td><input name="cat_name" id="cat_name" type="text" value="<?php echo attribute_escape($category->name); ?>" size="40" aria-required="true" /><br />
<?php _e('The name is used to identify the category almost everywhere, for example under the post or in the category widget.'); ?></td>
</tr>
<tr>
<th scope="row" valign="top"><label for="category_nicename"><?php _e('Category slug:') ?></label></th>
<td><input name="category_nicename" id="category_nicename" type="text" value="<?php echo attribute_escape($category->category_nicename); ?>" size="40" /></td>
<tr class="form-field">
<th scope="row" valign="top"><label for="category_nicename"><?php _e('Category Slug') ?></label></th>
<td><input name="category_nicename" id="category_nicename" type="text" value="<?php echo attribute_escape(apply_filters('editable_slug', $category->slug)); ?>" size="40" /><br />
<?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></td>
</tr>
<tr>
<th scope="row" valign="top"><label for="category_parent"><?php _e('Category parent:') ?></label></th>
<td>
<?php wp_dropdown_categories('hide_empty=0&name=category_parent&orderby=name&selected=' . $category->category_parent . '&hierarchical=1&show_option_none=' . __('None')); ?>
<tr class="form-field">
<th scope="row" valign="top"><label for="category_parent"><?php _e('Category Parent') ?></label></th>
<td>
<?php wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'category_parent', 'orderby' => 'name', 'selected' => $category->parent, 'hierarchical' => true, 'show_option_none' => __('None'))); ?><br />
<?php _e('Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.'); ?>
</td>
</tr>
<tr>
<th scope="row" valign="top"><label for="category_description"><?php _e('Description: (optional)') ?></label></th>
<td><textarea name="category_description" id="category_description" rows="5" cols="50" style="width: 97%;"><?php echo wp_specialchars($category->category_description); ?></textarea></td>
<tr class="form-field">
<th scope="row" valign="top"><label for="category_description"><?php _e('Description') ?></label></th>
<td><textarea name="category_description" id="category_description" rows="5" cols="50" style="width: 97%;"><?php echo wp_specialchars($category->description); ?></textarea><br />
<?php _e('The description is not prominent by default, however some themes may show it.'); ?></td>
</tr>
</table>
<p class="submit"><input type="submit" name="submit" value="<?php echo $submit_text ?>" /></p>
<p class="submit"><input type="submit" class="button" name="submit" value="<?php echo $submit_text ?>" /></p>
<?php do_action('edit_category_form', $category); ?>
</form>
</div>

View File

@@ -1,59 +0,0 @@
addLoadEvent(function() {
theCommentList = new listMan('the-comment-list');
if ( !theCommentList )
return false;
theExtraCommentList = new listMan('the-extra-comment-list');
if ( theExtraCommentList ) {
theExtraCommentList.showLink = 0;
theExtraCommentList.altOffset = 1;
if ( theExtraCommentList.theList && theExtraCommentList.theList.childNodes )
var commentNum = $A(theExtraCommentList.theList.childNodes).findAll( function(i) { return Element.visible(i) } ).length;
else
var commentNum = 0;
var urlQ = document.location.href.split('?');
var params = urlQ[1] ? urlQ[1].toQueryParams() : [];
var search = params['s'] ? params['s'] : '';
var page = params['apage'] ? params['apage'] : 1;
}
theCommentList.dimComplete = function(what,id,dimClass) {
var m = document.getElementById('awaitmod');
if ( document.getElementById(what + '-' + id).className.match(dimClass) )
m.innerHTML = parseInt(m.innerHTML,10) + 1;
else
m.innerHTML = parseInt(m.innerHTML,10) - 1;
}
theCommentList.delComplete = function(what,id) {
var m = document.getElementById('awaitmod');
what = what.split('-')[0];
if ( document.getElementById(what + '-' + id).className.match('unapproved') )
m.innerHTML = parseInt(m.innerHTML,10) - 1;
if ( theExtraCommentList && commentNum ) {
var theMover = theExtraCommentList.theList.childNodes[0];
Element.removeClassName(theMover,'alternate');
theCommentList.theList.appendChild(theMover);
theExtraCommentList.inputData += '&page=' + page;
if ( search )
theExtraCommentList.inputData += '&s=' + search; // trust the URL not the search box
theExtraCommentList.addComplete = function() {
if ( theExtraCommentList.theList.childNodes )
var commentNum = $A(theExtraCommentList.theList.childNodes).findAll( function(i) { return Element.visible(i) } ).length;
else
var commentNum = 0;
}
theExtraCommentList.ajaxAdder( 'comment', 'ajax-response' ); // Dummy Request
}
}
if ( theList ) // the post list: edit.php
theList.delComplete = function() {
var comments = document.getElementById('comments');
var commdel = encloseFunc(function(a){a.parentNode.removeChild(a);},comments);
var listdel = encloseFunc(function(a){a.parentNode.removeChild(a);},theCommentList.theList);
setTimeout(commdel,705);
setTimeout(listdel,705);
}
});

View File

@@ -4,197 +4,243 @@ require_once('admin.php');
$title = __('Edit Comments');
$parent_file = 'edit-comments.php';
wp_enqueue_script( 'admin-comments' );
wp_enqueue_script('admin-forms');
require_once('admin-header.php');
if (empty($_GET['mode'])) $mode = 'view';
else $mode = attribute_escape($_GET['mode']);
?>
<script type="text/javascript">
<!--
function checkAll(form)
{
for (i = 0, n = form.elements.length; i < n; i++) {
if(form.elements[i].type == "checkbox") {
if(form.elements[i].checked == true)
form.elements[i].checked = false;
else
form.elements[i].checked = true;
}
}
}
function getNumChecked(form)
{
var num = 0;
for (i = 0, n = form.elements.length; i < n; i++) {
if(form.elements[i].type == "checkbox") {
if(form.elements[i].checked == true)
num++;
}
}
return num;
}
//-->
</script>
<div class="wrap">
<h2><?php _e('Comments'); ?></h2>
<form name="searchform" action="" method="get" id="editcomments">
<fieldset>
<legend><?php _e('Show Comments That Contain...') ?></legend>
<input type="text" name="s" value="<?php if (isset($_GET['s'])) echo attribute_escape($_GET['s']); ?>" size="17" />
<input type="submit" name="submit" value="<?php _e('Search') ?>" />
<input type="hidden" name="mode" value="<?php echo $mode; ?>" />
<?php _e('(Searches within comment text, e-mail, URL, and IP address.)') ?>
</fieldset>
</form>
<p><a href="?mode=view"><?php _e('View Mode') ?></a> | <a href="?mode=edit"><?php _e('Mass Edit Mode') ?></a></p>
<?php
if ( !empty( $_POST['delete_comments'] ) ) :
if ( !empty( $_REQUEST['delete_comments'] ) ) {
check_admin_referer('bulk-comments');
$i = 0;
foreach ($_POST['delete_comments'] as $comment) : // Check the permissions on each
$comments_deleted = $comments_approved = $comments_unapproved = $comments_spammed = 0;
foreach ($_REQUEST['delete_comments'] as $comment) : // Check the permissions on each
$comment = (int) $comment;
$post_id = (int) $wpdb->get_var("SELECT comment_post_ID FROM $wpdb->comments WHERE comment_ID = $comment");
// $authordata = get_userdata( $wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $post_id") );
if ( current_user_can('edit_post', $post_id) ) {
if ( !empty( $_POST['spam_button'] ) )
wp_set_comment_status($comment, 'spam');
else
wp_set_comment_status($comment, 'delete');
++$i;
$post_id = (int) $wpdb->get_var( $wpdb->prepare( "SELECT comment_post_ID FROM $wpdb->comments WHERE comment_ID = %d", $comment) );
if ( !current_user_can('edit_post', $post_id) )
continue;
if ( !empty( $_REQUEST['spamit'] ) ) {
wp_set_comment_status($comment, 'spam');
$comments_spammed++;
} elseif ( !empty( $_REQUEST['deleteit'] ) ) {
wp_set_comment_status($comment, 'delete');
$comments_deleted++;
} elseif ( !empty( $_REQUEST['approveit'] ) ) {
wp_set_comment_status($comment, 'approve');
$comments_approved++;
} elseif ( !empty( $_REQUEST['unapproveit'] ) ) {
wp_set_comment_status($comment, 'hold');
$comments_unapproved++;
}
endforeach;
echo '<div style="background-color: rgb(207, 235, 247);" id="message" class="updated fade"><p>';
if ( !empty( $_POST['spam_button'] ) ) {
printf(__ngettext('%s comment marked as spam', '%s comments marked as spam.', $i), $i);
} else {
printf(__ngettext('%s comment deleted.', '%s comments deleted.', $i), $i);
$redirect_to = basename( __FILE__ ) . '?deleted=' . $comments_deleted . '&approved=' . $comments_approved . '&spam=' . $comments_spammed . '&unapproved=' . $comments_unapproved;
if ( !empty($_REQUEST['mode']) )
$redirect_to = add_query_arg('mode', $_REQUEST['mode'], $redirect_to);
if ( !empty($_REQUEST['comment_status']) )
$redirect_to = add_query_arg('comment_status', $_REQUEST['comment_status'], $redirect_to);
if ( !empty($_REQUEST['s']) )
$redirect_to = add_query_arg('s', $_REQUEST['s'], $redirect_to);
wp_redirect( $redirect_to );
} elseif ( !empty($_GET['_wp_http_referer']) ) {
wp_redirect(remove_query_arg(array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI'])));
exit;
}
require_once('admin-header.php');
if ( empty($_GET['mode']) )
$mode = 'detail';
else
$mode = attribute_escape($_GET['mode']);
if ( isset($_GET['comment_status']) )
$comment_status = attribute_escape($_GET['comment_status']);
else
$comment_status = '';
if ( isset($_GET['s']) )
$search_dirty = $_GET['s'];
else
$search_dirty = '';
$search = attribute_escape( $search_dirty );
?>
<?php
if ( isset( $_GET['approved'] ) || isset( $_GET['deleted'] ) || isset( $_GET['spam'] ) ) {
$approved = isset( $_GET['approved'] ) ? (int) $_GET['approved'] : 0;
$deleted = isset( $_GET['deleted'] ) ? (int) $_GET['deleted'] : 0;
$spam = isset( $_GET['spam'] ) ? (int) $_GET['spam'] : 0;
if ( $approved > 0 || $deleted > 0 || $spam > 0 ) {
echo '<div id="moderated" class="updated fade"><p>';
if ( $approved > 0 ) {
printf( __ngettext( '%s comment approved', '%s comments approved', $approved ), $approved );
echo '<br />';
}
if ( $deleted > 0 ) {
printf( __ngettext( '%s comment deleted', '%s comments deleted', $deleted ), $deleted );
echo '<br />';
}
if ( $spam > 0 ) {
printf( __ngettext( '%s comment marked as spam', '%s comments marked as spam', $spam ), $spam );
echo '<br />';
}
echo '</p></div>';
}
echo '</p></div>';
endif;
}
?>
<div class="wrap">
<form id="posts-filter" action="" method="get">
<h2><?php _e('Manage Comments'); ?></h2>
<ul class="subsubsub">
<?php
$status_links = array();
$num_comments = wp_count_comments();
$stati = array('moderated' => sprintf(__ngettext('Awaiting Moderation (%s)', 'Awaiting Moderation (%s)', number_format_i18n($num_comments->moderated) ), "<span class='comment-count'>" . number_format_i18n($num_comments->moderated) . "</span>"), 'approved' => _c('Approved|plural'));
$class = ( '' === $comment_status ) ? ' class="current"' : '';
$status_links[] = "<li><a href=\"edit-comments.php\"$class>".__('Show All Comments')."</a>";
foreach ( $stati as $status => $label ) {
$class = '';
if ( $status == $comment_status )
$class = ' class="current"';
$status_links[] = "<li><a href=\"edit-comments.php?comment_status=$status\"$class>" . $label . '</a>';
}
$status_links = apply_filters( 'comment_status_links', $status_links );
echo implode(' | </li>', $status_links) . '</li>';
unset($status_links);
?>
</ul>
<p id="post-search">
<label class="hidden" for="post-search-input"><?php _e( 'Search Comments' ); ?>:</label>
<input type="text" id="post-search-input" name="s" value="<?php echo $search; ?>" />
<input type="submit" value="<?php _e( 'Search Comments' ); ?>" class="button" />
</p>
<input type="hidden" name="mode" value="<?php echo $mode; ?>" />
<input type="hidden" name="comment_status" value="<?php echo $comment_status; ?>" />
</form>
<ul class="view-switch">
<li <?php if ( 'detail' == $mode ) echo "class='current'" ?>><a href="<?php echo clean_url(add_query_arg('mode', 'detail', $_SERVER['REQUEST_URI'])) ?>"><?php _e('Detail View') ?></a></li>
<li <?php if ( 'list' == $mode ) echo "class='current'" ?>><a href="<?php echo clean_url(add_query_arg('mode', 'list', $_SERVER['REQUEST_URI'])) ?>"><?php _e('List View') ?></a></li>
</ul>
<?php
$comments_per_page = apply_filters('comments_per_page', 20, $comment_status);
if ( isset( $_GET['apage'] ) )
$page = (int) $_GET['apage'];
$page = abs( (int) $_GET['apage'] );
else
$page = 1;
$start = $offset = ( $page - 1 ) * 20;
list($_comments, $total) = _wp_get_comment_list( isset($_GET['s']) ? $_GET['s'] : false, $start, 25 ); // Grab a few extra
$start = $offset = ( $page - 1 ) * $comments_per_page;
$comments = array_slice($_comments, 0, 20);
$extra_comments = array_slice($_comments, 20);
list($_comments, $total) = _wp_get_comment_list( $comment_status, $search_dirty, $start, $comments_per_page + 5 ); // Grab a few extra
$comments = array_slice($_comments, 0, $comments_per_page);
$extra_comments = array_slice($_comments, $comments_per_page);
$page_links = paginate_links( array(
'base' => 'edit-comments.php?%_%',
'format' => 'apage=%#%',
'total' => ceil($total / 20),
'base' => add_query_arg( 'apage', '%#%' ),
'format' => '',
'total' => ceil($total / $comments_per_page),
'current' => $page
));
if ( $page_links )
echo "<p class='pagenav'>$page_links</p>";
if ('view' == $mode) {
if ($comments) {
$offset = $offset + 1;
$start = " start='$offset'";
echo "<ol id='the-comment-list' class='commentlist' $start>\n";
$i = 0;
foreach ( $comments as $comment ) {
get_comment( $comment ); // Cache it
_wp_comment_list_item( $comment->comment_ID, ++$i );
}
echo "</ol>\n\n";
if ( $extra_comments ) : ?>
<div id="extra-comments" style="display:none">
<ul id="the-extra-comment-list" class="commentlist">
<?php
foreach ( $extra_comments as $comment ) {
get_comment( $comment ); // Cache it
_wp_comment_list_item( $comment->comment_ID, ++$i );
}
?>
</ul>
</div>
<?php endif; // $extra_comments ?>
<div id="ajax-response"></div>
<form id="comments-form" action="" method="post">
<div class="tablenav">
<?php
} else { //no comments to show
if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>";
?>
?>
<p>
<strong><?php _e('No comments found.') ?></strong></p>
<div class="alignleft">
<?php if ( 'approved' != $comment_status ): ?>
<input type="submit" value="<?php _e('Approve'); ?>" name="approveit" class="button-secondary" />
<?php endif; ?>
<input type="submit" value="<?php _e('Mark as Spam'); ?>" name="spamit" class="button-secondary" />
<?php if ( 'moderated' != $comment_status ): ?>
<input type="submit" value="<?php _e('Unapprove'); ?>" name="unapproveit" class="button-secondary" />
<?php endif; ?>
<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary delete" />
<?php do_action('manage_comments_nav', $comment_status); ?>
<?php wp_nonce_field('bulk-comments'); ?>
</div>
<?php
} // end if ($comments)
} elseif ('edit' == $mode) {
<br class="clear" />
if ($comments) {
echo '<form name="deletecomments" id="deletecomments" action="" method="post"> ';
wp_nonce_field('bulk-comments');
echo '<table class="widefat">
</div>
<br class="clear" />
<?php
if ($comments) {
?>
<table class="widefat">
<thead>
<tr>
<th scope="col" style="text-align: center"><input type="checkbox" onclick="checkAll(document.getElementById(\'deletecomments\'));" /></th>
<th scope="col">' . __('Name') . '</th>
<th scope="col">' . __('E-mail') . '</th>
<th scope="col">' . __('IP') . '</th>
<th scope="col">' . __('Comment Excerpt') . '</th>
<th scope="col" colspan="3" style="text-align: center">' . __('Actions') . '</th>
<th scope="col" class="check-column"><input type="checkbox" /></th>
<th scope="col"><?php _e('Comment') ?></th>
<th scope="col"><?php _e('Date') ?></th>
<th scope="col" class="action-links"><?php _e('Actions') ?></th>
</tr>
</thead>';
foreach ($comments as $comment) {
$authordata = get_userdata($wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $comment->comment_post_ID"));
$comment_status = wp_get_comment_status($comment->comment_ID);
$class = ('alternate' == $class) ? '' : 'alternate';
$class .= ('unapproved' == $comment_status) ? ' unapproved' : '';
</thead>
<tbody id="the-comment-list" class="list:comment">
<?php
foreach ($comments as $comment)
_wp_comment_row( $comment->comment_ID, $mode, $comment_status );
?>
<tr id="comment-<?php echo $comment->comment_ID; ?>" class='<?php echo $class; ?>'>
<td><?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) { ?><input type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" /><?php } ?></td>
<td><?php comment_author_link() ?></td>
<td><?php comment_author_email_link() ?></td>
<td><a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a></td>
<td><?php comment_excerpt(); ?></td>
<td>
<?php if ('unapproved' == $comment_status) { ?>
(Unapproved)
<?php } else { ?>
<a href="<?php echo get_permalink($comment->comment_post_ID); ?>#comment-<?php comment_ID() ?>" class="edit"><?php _e('View') ?></a>
<?php } ?>
</td>
<td><?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
echo "<a href='comment.php?action=editcomment&amp;c=$comment->comment_ID' class='edit'>" . __('Edit') . "</a>"; } ?></td>
<td><?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
echo "<a href=\"comment.php?action=deletecomment&amp;p=".$comment->comment_post_ID."&amp;c=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . js_escape(sprintf(__("You are about to delete this comment by '%s'. \n 'Cancel' to stop, 'OK' to delete."), $comment->comment_author )) . "', theCommentList );\" class='delete'>" . __('Delete') . "</a> ";
} ?></td>
</tr>
<?php
} // end foreach
?></table>
<p class="submit"><input type="submit" name="delete_button" class="delete" value="<?php _e('Delete Checked Comments &raquo;') ?>" onclick="var numchecked = getNumChecked(document.getElementById('deletecomments')); if(numchecked < 1) { alert('<?php echo js_escape(__("Please select some comments to delete")); ?>'); return false } return confirm('<?php echo sprintf(js_escape(__("You are about to delete %s comments permanently \n 'Cancel' to stop, 'OK' to delete.")), "' + numchecked + '"); ?>')" />
<input type="submit" name="spam_button" value="<?php _e('Mark Checked Comments as Spam &raquo;') ?>" onclick="var numchecked = getNumChecked(document.getElementById('deletecomments')); if(numchecked < 1) { alert('<?php echo js_escape(__("Please select some comments to mark as spam")); ?>'); return false } return confirm('<?php echo sprintf(js_escape(__("You are about to mark %s comments as spam \n 'Cancel' to stop, 'OK' to mark as spam.")), "' + numchecked + '"); ?>')" /></p>
</form>
</tbody>
<tbody id="the-extra-comment-list" class="list:comment" style="display: none;">
<?php
foreach ($extra_comments as $comment)
_wp_comment_row( $comment->comment_ID, $mode, $comment_status );
?>
</tbody>
</table>
</form>
<form id="get-extra-comments" method="post" action="" class="add:the-extra-comment-list:" style="display: none;">
<input type="hidden" name="s" value="<?php echo $search; ?>" />
<input type="hidden" name="mode" value="<?php echo $mode; ?>" />
<input type="hidden" name="comment_status" value="<?php echo $comment_status; ?>" />
<input type="hidden" name="page" value="<?php echo isset($_REQUEST['page']) ? absint( $_REQUEST['page'] ) : 1; ?>" />
<?php wp_nonce_field( 'add-comment', '_ajax_nonce', false ); ?>
</form>
<div id="ajax-response"></div>
<?php
} else {
} elseif ( 'moderated' == $_GET['comment_status'] ) {
?>
<p>
<strong><?php _e('No results found.') ?></strong>
<?php _e('No comments awaiting moderation&hellip; yet.') ?>
</p>
<?php
} // end if ($comments)
}
if ( $page_links )
echo "<p class='pagenav'>$page_links</p>";
} else {
?>
<p>
<?php _e('No results found.') ?>
</p>
<?php
}
?>
<div class="tablenav">
<?php
if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>";
?>
<br class="clear" />
</div>
</div>

View File

@@ -1,8 +1,44 @@
<?php
$messages[1] = __('Post updated');
$messages[2] = __('Custom field updated');
$action = isset($action) ? $action : '';
if ( isset($_GET['message']) )
$_GET['message'] = absint( $_GET['message'] );
$messages[1] = sprintf( __( 'Post updated. Continue editing below or <a href="%s">go back</a>.' ), attribute_escape( stripslashes( $_GET['_wp_original_http_referer'] ) ) );
$messages[2] = __('Custom field updated.');
$messages[3] = __('Custom field deleted.');
$messages[4] = __('Post updated.');
$messages[5] = sprintf( __('Post restored to revision from %s'), wp_post_revision_title( $_GET['revision'], false ) );
$notice = false;
$notices[1] = __( 'There is an autosave of this post that is more recent than the version below. <a href="%s">View the autosave</a>.' );
if ( !isset($post_ID) || 0 == $post_ID ) {
$form_action = 'post';
$temp_ID = -1 * time(); // don't change this formula without looking at wp_write_post()
$form_extra = "<input type='hidden' id='post_ID' name='temp_ID' value='$temp_ID' />";
$autosave = false;
} else {
$post_ID = (int) $post_ID;
$form_action = 'editpost';
$form_extra = "<input type='hidden' id='post_ID' name='post_ID' value='$post_ID' />";
$autosave = wp_get_post_autosave( $post_id );
// Detect if there exists an autosave newer than the post and if that autosave is different than the post
if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt ) > mysql2date( 'U', $post->post_modified_gmt ) ) {
foreach ( _wp_post_revision_fields() as $autosave_field => $_autosave_field ) {
if ( wp_text_diff( $autosave->$autosave_field, $post->$autosave_field ) ) {
$notice = sprintf( $notices[1], get_edit_post_link( $autosave->ID ) );
break;
}
}
unset($autosave_field, $_autosave_field);
}
}
?>
<?php if ( $notice ) : ?>
<div id="notice" class="error"><p><?php echo $notice ?></p></div>
<?php endif; ?>
<?php if (isset($_GET['message'])) : ?>
<div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div>
<?php endif; ?>
@@ -13,230 +49,267 @@ $messages[3] = __('Custom field deleted.');
<?php endif; ?>
<div class="wrap">
<h2><?php _e('Write Post') ?></h2>
<?php
if (0 == $post_ID) {
$form_action = 'post';
$temp_ID = -1 * time(); // don't change this formula without looking at wp_write_post()
$form_extra = "<input type='hidden' id='post_ID' name='temp_ID' value='$temp_ID' />";
if ( !isset($post_ID) || 0 == $post_ID)
wp_nonce_field('add-post');
} else {
$form_action = 'editpost';
$form_extra = "<input type='hidden' id='post_ID' name='post_ID' value='$post_ID' />";
else
wp_nonce_field('update-post_' . $post_ID);
}
$form_pingback = '<input type="hidden" name="post_pingback" value="' . get_option('default_pingback_flag') . '" id="post_pingback" />';
$form_pingback = '<input type="hidden" name="post_pingback" value="' . (int) get_option('default_pingback_flag') . '" id="post_pingback" />';
$form_prevstatus = '<input type="hidden" name="prev_status" value="' . $post->post_status . '" />';
$form_prevstatus = '<input type="hidden" name="prev_status" value="' . attribute_escape( $post->post_status ) . '" />';
$form_trackback = '<input type="text" name="trackback_url" style="width: 415px" id="trackback" tabindex="7" value="'. str_replace("\n", ' ', $post->to_ping) .'" />';
if ('' != $post->pinged) {
$pings = '<p>'. __('Already pinged:') . '</p><ul>';
$already_pinged = explode("\n", trim($post->pinged));
foreach ($already_pinged as $pinged_url) {
$pings .= "\n\t<li>" . wp_specialchars($pinged_url) . "</li>";
}
$pings .= '</ul>';
}
$saveasdraft = '<input name="save" type="submit" id="save" tabindex="3" value="' . __('Save and Continue Editing') . '" />';
if (empty($post->post_status)) $post->post_status = 'draft';
$saveasdraft = '<input name="save" type="submit" id="save" class="button" tabindex="3" value="' . attribute_escape( __('Save and Continue Editing') ) . '" />';
?>
<input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" />
<input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" />
<input type="hidden" id="hiddenaction" name="action" value="<?php echo $form_action ?>" />
<input type="hidden" id="originalaction" name="originalaction" value="<?php echo $form_action ?>" />
<input type="hidden" name="post_author" value="<?php echo $post->post_author ?>" />
<input type="hidden" id="post_type" name="post_type" value="post" />
<input type="hidden" id="post_author" name="post_author" value="<?php echo attribute_escape( $post->post_author ); ?>" />
<input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" />
<input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo $post->post_status ?>" />
<input name="referredby" type="hidden" id="referredby" value="<?php
if ( !empty($_REQUEST['popupurl']) )
echo clean_url(stripslashes($_REQUEST['popupurl']));
else if ( strpos( wp_get_referer(), '/wp-admin/' ) === false && $post_ID && url_to_postid(wp_get_referer()) === $post_ID )
echo 'redo';
else
echo clean_url(stripslashes(wp_get_referer()));
?>" />
<?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?>
<?php echo $form_extra ?>
<?php if (isset($_GET['message']) && 2 > $_GET['message']) : ?>
<script type="text/javascript">
function focusit() {
// focus on first input field
document.post.title.focus();
}
addLoadEvent(focusit);
</script>
<?php endif; ?>
<div id="poststuff">
<div id="moremeta">
<div id="grabit" class="dbx-group">
<fieldset id="categorydiv" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Categories') ?></h3>
<div class="dbx-content">
<p id="jaxcat"></p>
<ul id="categorychecklist"><?php dropdown_categories(); ?></ul></div>
</fieldset>
<fieldset id="commentstatusdiv" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Discussion') ?></h3>
<div class="dbx-content">
<input name="advanced_view" type="hidden" value="1" />
<label for="comment_status" class="selectit">
<input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($post->comment_status, 'open'); ?> />
<?php _e('Allow Comments') ?></label>
<label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($post->ping_status, 'open'); ?> /> <?php _e('Allow Pings') ?></label>
</div>
</fieldset>
<fieldset id="passworddiv" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Post Password') ?></h3>
<div class="dbx-content"><input name="post_password" type="text" size="13" id="post_password" value="<?php echo $post->post_password ?>" /></div>
</fieldset>
<fieldset id="slugdiv" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Post Slug') ?></h3>
<div class="dbx-content"><input name="post_name" type="text" size="13" id="post_name" value="<?php echo $post->post_name ?>" /></div>
</fieldset>
<fieldset id="poststatusdiv" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Post Status') ?></h3>
<div class="dbx-content"><?php if ( current_user_can('publish_posts') ) : ?>
<label for="post_status_publish" class="selectit"><input id="post_status_publish" name="post_status" type="radio" value="publish" <?php checked($post->post_status, 'publish'); checked($post->post_status, 'future'); ?> /> <?php _e('Published') ?></label>
<?php endif; ?>
<label for="post_status_draft" class="selectit"><input id="post_status_draft" name="post_status" type="radio" value="draft" <?php checked($post->post_status, 'draft'); ?> /> <?php _e('Draft') ?></label>
<label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="radio" value="private" <?php checked($post->post_status, 'private'); ?> /> <?php _e('Private') ?></label></div>
</fieldset>
<?php if ( current_user_can('edit_posts') ) : ?>
<fieldset id="posttimestampdiv" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Post Timestamp'); ?></h3>
<div class="dbx-content"><?php touch_time(($action == 'edit')); ?></div>
</fieldset>
<?php endif; ?>
<?php
$authors = get_editable_authors( $current_user->id ); // TODO: ROLE SYSTEM
if ( $authors && count( $authors ) > 1 ) :
?>
<fieldset id="authordiv" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Post Author'); ?></h3>
<div class="dbx-content">
<select name="post_author_override" id="post_author_override">
<?php
foreach ($authors as $o) :
$o = get_userdata( $o->ID );
if ( $post->post_author == $o->ID || ( empty($post_ID) && $user_ID == $o->ID ) ) $selected = 'selected="selected"';
else $selected = '';
echo "<option value='$o->ID' $selected>$o->display_name</option>";
endforeach;
?>
</select>
</div>
</fieldset>
<?php endif; ?>
<?php do_action('dbx_post_sidebar'); ?>
</div>
</div>
<fieldset id="titlediv">
<legend><?php _e('Title') ?></legend>
<div><input type="text" name="post_title" size="30" tabindex="1" value="<?php echo $post->post_title; ?>" id="title" /></div>
</fieldset>
<fieldset id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>">
<legend><?php _e('Post') ?>
<div class="submitbox" id="submitpost">
<div id="previewview">
<?php if ( 'publish' == $post->post_status ) { ?>
<a href="<?php echo clean_url(get_permalink($post->ID)); ?>" class="view-link" target="_blank"><?php _e('View &raquo;'); ?></a>
<a href="<?php echo clean_url(get_permalink($post->ID)); ?>" target="_blank" tabindex="4"><?php _e('View this Post'); ?></a>
<?php } elseif ( 'edit' == $action ) { ?>
<a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" class="view-link" target="_blank"><?php _e('Preview &raquo;'); ?></a>
<a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" target="_blank" tabindex="4"><?php _e('Preview this Post'); ?></a>
<?php } ?>
</legend>
</div>
<?php the_editor($post->post_content); ?>
</fieldset>
<div class="inside">
<p><strong><label for='post_status'><?php _e('Publish Status') ?></label></strong></p>
<p>
<select name='post_status' id='post_status' tabindex='4'>
<?php
// only show the publish menu item if they are allowed to publish posts or they are allowed to edit this post (accounts for 'edit_published_posts' capability)
if ( current_user_can('publish_posts') OR ( $post->post_status == 'publish' AND current_user_can('edit_post', $post->ID) ) ) :
?>
<option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='publish'><?php _e('Published') ?></option>
<?php if ( 'future' == $post->post_status ) : ?>
<option<?php selected( $post->post_status, 'future' ); ?> value='future'><?php _e('Scheduled') ?></option>
<?php endif; ?>
<?php endif; ?>
<option<?php selected( $post->post_status, 'pending' ); ?> value='pending'><?php _e('Pending Review') ?></option>
<option<?php selected( $post->post_status, 'draft' ); ?> value='draft'><?php _e('Unpublished') ?></option>
</select>
</p>
<?php if ( current_user_can( 'publish_posts' ) ) : ?>
<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>
<?php endif; ?>
<?php
if ($post_ID) {
if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date
$stamp = __('Scheduled for:<br />%1$s at %2$s');
} else if ( 'publish' == $post->post_status ) { // already published
$stamp = __('Published on:<br />%1$s at %2$s');
} else if ( '0000-00-00 00:00:00' == $post->post_date ) { // draft, 1 or more saves, no date specified
$stamp = __('Publish immediately');
} else { // draft, 1 or more saves, date specified
$stamp = __('Publish on:<br />%1$s at %2$s');
}
$date = mysql2date(get_option('date_format'), $post->post_date);
$time = mysql2date(get_option('time_format'), $post->post_date);
} else { // draft (no saves, and thus no date specified)
$stamp = __('Publish immediately');
$date = mysql2date(get_option('date_format'), current_time('mysql'));
$time = mysql2date(get_option('time_format'), current_time('mysql'));
}
?>
<?php if ( current_user_can( 'publish_posts' ) ) : // Contributors don't get to choose the date of publish ?>
<p class="curtime"><?php printf($stamp, $date, $time); ?>
&nbsp;<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a></p>
<div id='timestampdiv' class='hide-if-js'><?php touch_time(($action == 'edit'),1,4); ?></div>
<?php endif; ?>
</div>
<p class="submit">
<input type="submit" name="save" id="save-post" value="<?php _e('Save'); ?>" tabindex="4" class="button button-highlighted" />
<?php
if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_ID ) {
?>
<?php if ( current_user_can('publish_posts') ) : ?>
<input name="publish" type="submit" class="button" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" />
<?php else : ?>
<input name="publish" type="submit" class="button" id="publish" tabindex="5" accesskey="p" value="<?php _e('Submit for Review') ?>" />
<?php endif; ?>
<?php
}
if ( ( 'edit' == $action) && current_user_can('delete_post', $post_ID) )
echo "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=delete&amp;post=$post_ID", 'delete-post_' . $post_ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this post '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete&nbsp;post') . "</a>";
?>
<br class="clear" />
<?php if ($post_ID): ?>
<?php if ( $last_id = get_post_meta($post_ID, '_edit_last', true) ) {
$last_user = get_userdata($last_id);
printf(__('Last edited by %1$s on %2$s at %3$s'), wp_specialchars( $last_user->display_name ), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified));
} else {
printf(__('Last edited on %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified));
}
?>
<br class="clear" />
<?php endif; ?>
<span id="autosave"></span>
<span id="wp-word-count"></span>
</p>
<div class="side-info">
<h5><?php _e('Related') ?></h5>
<ul>
<?php if ($post_ID): ?>
<li><a href="edit.php?p=<?php echo $post_ID ?>"><?php _e('See Comments on this Post') ?></a></li>
<?php endif; ?>
<li><a href="edit-comments.php"><?php _e('Manage All Comments') ?></a></li>
<li><a href="edit.php"><?php _e('Manage All Posts') ?></a></li>
<li><a href="categories.php"><?php _e('Manage All Categories') ?></a></li>
<li><a href="edit-tags.php"><?php _e('Manage All Tags') ?></a></li>
<li><a href="edit.php?post_status=draft"><?php _e('View Drafts'); ?></a></li>
<?php do_action('post_relatedlinks_list'); ?>
</ul>
<h5><?php _e('Shortcuts') ?></h5>
<p><?php _e('Drag-and-drop the following link to your bookmarks bar or right click it and add it to your favorites for a posting shortcut.') ?> <a href="<?php echo get_shortcut_link(); ?>" title="<?php echo attribute_escape(__('Press This')) ?>"><?php _e('Press This') ?></a></p>
</div>
<?php do_action('submitpost_box'); ?>
</div>
<div id="post-body">
<div id="titlediv">
<h3><label for="title"><?php _e('Title') ?></label></h3>
<div id="titlewrap">
<input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape($post->post_title); ?>" id="title" autocomplete="off" />
</div>
<div class="inside">
<?php $sample_permalink_html = get_sample_permalink_html($post->ID); ?>
<div id="edit-slug-box">
<?php if ( ! empty($post->ID) && ! empty($sample_permalink_html) ) :
echo $sample_permalink_html;
endif; ?>
</div>
</div>
</div>
<div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea">
<h3><label for="content"><?php _e('Post') ?></label></h3>
<?php the_editor($post->post_content); ?>
<?php wp_nonce_field( 'autosave', 'autosavenonce', false ); ?>
<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
<?php wp_nonce_field( 'getpermalink', 'getpermalinknonce', false ); ?>
<?php wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false ); ?>
</div>
<?php echo $form_pingback ?>
<?php echo $form_prevstatus ?>
<fieldset id="tagdiv">
<legend><?php _e('Tags (separate multiple tags with commas: cats, pet food, dogs)'); ?></legend>
<div><input type="text" name="tags_input" id="tags-input" size="30" tabindex="3" value="<?php echo get_tags_to_edit( $post_ID ); ?>" /></div>
</fieldset>
<p class="submit">
<span id="autosave"></span>
<?php echo $saveasdraft; ?>
<input type="submit" name="submit" value="<?php _e('Save') ?>" style="font-weight: bold;" tabindex="4" />
<?php
if ('publish' != $post->post_status || 0 == $post_ID) {
<?php
function post_tags_meta_box($post) {
?>
<?php if ( current_user_can('publish_posts') ) : ?>
<input name="publish" type="submit" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" />
<?php endif; ?>
<p id="jaxtag"><label class="hidden" for="newtag"><?php _e('Tags'); ?></label><input type="text" name="tags_input" class="tags-input" id="tags-input" size="40" tabindex="3" value="<?php echo get_tags_to_edit( $post->ID ); ?>" /></p>
<div id="tagchecklist"></div>
<?php
}
add_meta_box('tagsdiv', __('Tags'), 'post_tags_meta_box', 'post', 'normal', 'core');
function post_categories_meta_box($post) {
?>
<input name="referredby" type="hidden" id="referredby" value="<?php
if ( !empty($_REQUEST['popupurl']) )
echo clean_url(stripslashes($_REQUEST['popupurl']));
else if ( url_to_postid(wp_get_referer()) == $post_ID )
echo 'redo';
else
echo clean_url(stripslashes(wp_get_referer()));
?>" /></p>
<div id="category-adder" class="wp-hidden-children">
<h4><a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a></h4>
<p id="category-add" class="wp-hidden-child">
<label class="hidden" for="newcat"><?php _e( 'Add New Category' ); ?></label><input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" tabindex="3" aria-required="true"/>
<label class="hidden" for="newcat_parent"><?php _e('Parent category'); ?>:</label><?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?>
<input type="button" id="category-add-sumbit" class="add:categorychecklist:category-add button" value="<?php _e( 'Add' ); ?>" tabindex="3" />
<?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?>
<span id="category-ajax-response"></span>
</p>
</div>
<ul id="category-tabs">
<li class="ui-tabs-selected"><a href="#categories-all" tabindex="3"><?php _e( 'All Categories' ); ?></a></li>
<li class="wp-no-js-hidden"><a href="#categories-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li>
</ul>
<div id="categories-pop" class="ui-tabs-panel" style="display: none;">
<ul id="categorychecklist-pop" class="categorychecklist form-no-clear" >
<?php $popular_ids = wp_popular_terms_checklist('category'); ?>
</ul>
</div>
<div id="categories-all" class="ui-tabs-panel">
<ul id="categorychecklist" class="list:category categorychecklist form-no-clear">
<?php wp_category_checklist($post->ID, false, false, $popular_ids) ?>
</ul>
</div>
<?php
}
add_meta_box('categorydiv', __('Categories'), 'post_categories_meta_box', 'post', 'normal', 'core');
?>
<?php do_meta_boxes('post', 'normal', $post); ?>
<?php do_action('edit_form_advanced'); ?>
<h2><?php _e('Advanced Options'); ?></h2>
<?php
if (current_user_can('upload_files')) {
$uploading_iframe_ID = (0 == $post_ID ? $temp_ID : $post_ID);
$uploading_iframe_src = wp_nonce_url("upload.php?style=inline&amp;tab=upload&amp;post_id=$uploading_iframe_ID", 'inlineuploading');
$uploading_iframe_src = apply_filters('uploading_iframe_src', $uploading_iframe_src);
if ( false != $uploading_iframe_src )
echo '<iframe id="uploading" frameborder="0" src="' . $uploading_iframe_src . '">' . __('This feature requires iframe support.') . '</iframe>';
}
function post_excerpt_meta_box($post) {
?>
<label class="hidden" for="excerpt"><?php _e('Excerpt') ?></label><textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt"><?php echo $post->post_excerpt ?></textarea>
<p><?php _e('Excerpts are optional hand-crafted summaries of your content. You can <a href="http://codex.wordpress.org/Template_Tags/the_excerpt" target="_blank">use them in your template</a>'); ?></p>
<?php
}
add_meta_box('postexcerpt', __('Excerpt'), 'post_excerpt_meta_box', 'post', 'advanced', 'core');
<div id="advancedstuff" class="dbx-group" >
function post_trackback_meta_box($post) {
$form_trackback = '<input type="text" name="trackback_url" style="width: 415px" id="trackback" tabindex="7" value="'. attribute_escape( str_replace("\n", ' ', $post->to_ping) ) .'" />';
if ('' != $post->pinged) {
$pings = '<p>'. __('Already pinged:') . '</p><ul>';
$already_pinged = explode("\n", trim($post->pinged));
foreach ($already_pinged as $pinged_url) {
$pings .= "\n\t<li>" . wp_specialchars($pinged_url) . "</li>";
}
$pings .= '</ul>';
}
<div class="dbx-b-ox-wrapper">
<fieldset id="postexcerpt" class="dbx-box">
<div class="dbx-h-andle-wrapper">
<h3 class="dbx-handle"><?php _e('Optional Excerpt') ?></h3>
</div>
<div class="dbx-c-ontent-wrapper">
<div class="dbx-content"><textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt"><?php echo $post->post_excerpt ?></textarea></div>
</div>
</fieldset>
</div>
<div class="dbx-b-ox-wrapper">
<fieldset id="trackbacksdiv" class="dbx-box">
<div class="dbx-h-andle-wrapper">
<h3 class="dbx-handle"><?php _e('Trackbacks') ?></h3>
</div>
<div class="dbx-c-ontent-wrapper">
<div class="dbx-content"><?php _e('Send trackbacks to:'); ?> <?php echo $form_trackback; ?> (<?php _e('Separate multiple URLs with spaces'); ?>)
?>
<p><label for="trackback"><?php _e('Send trackbacks to:'); ?></label> <?php echo $form_trackback; ?><br /> (<?php _e('Separate multiple URLs with spaces'); ?>)</p>
<p><?php _e('Trackbacks are a way to notify legacy blog systems that you&#8217;ve linked to them. If you link other WordPress blogs they&#8217;ll be notified automatically using <a href="http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">pingbacks</a>, no other action necessary.'); ?></p>
<?php
if ( ! empty($pings) )
echo $pings;
?>
</div>
</div>
</fieldset>
</div>
}
add_meta_box('trackbacksdiv', __('Trackbacks'), 'post_trackback_meta_box', 'post', 'advanced', 'core');
<div class="dbx-b-ox-wrapper">
<fieldset id="postcustom" class="dbx-box">
<div class="dbx-h-andle-wrapper">
<h3 class="dbx-handle"><?php _e('Custom Fields') ?></h3>
</div>
<div class="dbx-c-ontent-wrapper">
<div id="postcustomstuff" class="dbx-content">
function post_custom_meta_box($post) {
?>
<div id="postcustomstuff">
<table cellpadding="3">
<?php
$metadata = has_meta($post_ID);
$metadata = has_meta($post->ID);
list_meta($metadata);
?>
@@ -246,20 +319,76 @@ list_meta($metadata);
?>
<div id="ajax-response"></div>
</div>
<p><?php _e('Custom fields can be used to add extra metadata to a post that you can <a href="http://codex.wordpress.org/Using_Custom_Fields" target="_blank">use in your theme</a>.'); ?></p>
<?php
}
add_meta_box('postcustom', __('Custom Fields'), 'post_custom_meta_box', 'post', 'advanced', 'core');
do_action('dbx_post_advanced');
function post_comment_status_meta_box($post) {
?>
<input name="advanced_view" type="hidden" value="1" />
<p><label for="comment_status" class="selectit">
<input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($post->comment_status, 'open'); ?> />
<?php _e('Allow Comments') ?></label></p>
<p><label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($post->ping_status, 'open'); ?> /> <?php _e('Allow Pings') ?></label></p>
<p><?php _e('These settings apply to this post only. &#8220;Pings&#8221; are <a href="http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">trackbacks and pingbacks</a>.'); ?></p>
<?php
}
add_meta_box('commentstatusdiv', __('Comments &amp; Pings'), 'post_comment_status_meta_box', 'post', 'advanced', 'core');
function post_password_meta_box($post) {
?>
<p><label class="hidden" for="post_password"><?php _e('Password Protect This Post') ?></label><input name="post_password" type="text" size="25" id="post_password" value="<?php echo attribute_escape( $post->post_password ); ?>" /></p>
<p><?php _e('Setting a password will require people who visit your blog to enter the above password to view this post and its comments.'); ?></p>
<?php
}
add_meta_box('passworddiv', __('Password Protect This Post'), 'post_password_meta_box', 'post', 'advanced', 'core');
function post_slug_meta_box($post) {
?>
<label class="hidden" for="post_name"><?php _e('Post Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo attribute_escape( $post->post_name ); ?>" />
<?php
}
add_meta_box('slugdiv', __('Post Slug'), 'post_slug_meta_box', 'post', 'advanced', 'core');
$authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM
if ( $post->post_author && !in_array($post->post_author, $authors) )
$authors[] = $post->post_author;
if ( $authors && count( $authors ) > 1 ) :
function post_author_meta_box($post) {
global $current_user, $user_ID;
$authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM
if ( $post->post_author && !in_array($post->post_author, $authors) )
$authors[] = $post->post_author;
?>
<label class="hidden" for="post_author_override"><?php _e('Post Author'); ?></label><?php wp_dropdown_users( array('include' => $authors, 'name' => 'post_author_override', 'selected' => empty($post->ID) ? $user_ID : $post->post_author) ); ?>
<?php
}
add_meta_box('authordiv', __('Post Author'), 'post_author_meta_box', 'post', 'advanced', 'core');
endif;
if ( isset($post_ID) && 0 < $post_ID && wp_get_post_revisions( $post_ID ) ) :
function post_revisions_meta_box($post) {
wp_list_post_revisions();
}
add_meta_box('revisionsdiv', __('Post Revisions'), 'post_revisions_meta_box', 'post', 'advanced', 'core');
endif;
do_meta_boxes('post', 'advanced', $post);
do_action('dbx_post_sidebar');
?>
</div>
</fieldset>
</div>
<?php do_action('dbx_post_advanced'); ?>
</div>
<?php if ('edit' == $action) : $delete_nonce = wp_create_nonce( 'delete-post_' . $post_ID ); ?>
<input name="deletepost" class="button delete" type="submit" id="deletepost" tabindex="10" value="<?php echo ( 'draft' == $post->post_status ) ? __('Delete this draft') : __('Delete this post'); ?>" <?php echo "onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this post '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { document.forms.post._wpnonce.value = '$delete_nonce'; return true;}return false;\""; ?> />
<?php endif; ?>
</div>
</div>
</form>
<?php if ((isset($post->post_title) && '' == $post->post_title) || (isset($_GET['message']) && 2 > $_GET['message'])) : ?>
<script type="text/javascript">
try{document.post.title.focus();}catch(e){}
</script>
<?php endif; ?>

View File

@@ -1,80 +1,108 @@
<?php
$submitbutton_text = __('Edit Comment &raquo;');
$submitbutton_text = __('Edit Comment');
$toprow_title = sprintf(__('Editing Comment # %s'), $comment->comment_ID);
$form_action = 'editedcomment';
$form_extra = "' />\n<input type='hidden' name='comment_ID' value='" . $comment->comment_ID . "' />\n<input type='hidden' name='comment_post_ID' value='".$comment->comment_post_ID;
$form_extra = "' />\n<input type='hidden' name='comment_ID' value='" . $comment->comment_ID . "' />\n<input type='hidden' name='comment_post_ID' value='" . $comment->comment_post_ID;
?>
<form name="post" action="comment.php" method="post" id="post">
<?php wp_nonce_field('update-comment_' . $comment->comment_ID) ?>
<div class="wrap">
<input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" />
<h2><?php echo $toprow_title; ?></h2>
<input type="hidden" name="user_ID" value="<?php echo (int) $user_ID ?>" />
<input type="hidden" name="action" value='<?php echo $form_action . $form_extra ?>' />
<script type="text/javascript">
function focusit() { // focus on first input field
document.post.name.focus();
}
addLoadEvent(focusit);
</script>
<fieldset id="namediv">
<legend><label for="name"><?php _e('Name:') ?></label></legend>
<div>
<input type="text" name="newcomment_author" size="25" value="<?php echo $comment->comment_author ?>" tabindex="1" id="name" />
</div>
</fieldset>
<fieldset id="emaildiv">
<legend><label for="email"><?php _e('E-mail:') ?></label></legend>
<div>
<input type="text" name="newcomment_author_email" size="20" value="<?php echo $comment->comment_author_email ?>" tabindex="2" id="email" />
</div>
</fieldset>
<fieldset id="uridiv">
<legend><label for="newcomment_author_url"><?php _e('URL:') ?></label></legend>
<div>
<input type="text" id="newcomment_author_url" name="newcomment_author_url" size="35" value="<?php echo $comment->comment_author_url ?>" tabindex="3" />
</div>
</fieldset>
<div id="poststuff">
<fieldset style="clear: both;">
<legend><?php _e('Comment') ?></legend>
<?php the_editor($comment->comment_content, 'content', 'newcomment_author_url'); ?>
</fieldset>
<div class="submitbox" id="submitcomment">
<p class="submit"><input type="submit" name="editcomment" id="editcomment" value="<?php echo $submitbutton_text ?>" style="font-weight: bold;" tabindex="6" />
<input name="referredby" type="hidden" id="referredby" value="<?php echo wp_get_referer(); ?>" />
<div id="previewview">
<a href="<?php echo get_comment_link(); ?>" target="_blank"><?php _e('View this Comment'); ?></a>
</div>
<div class="inside">
<p><strong><label for='comment_status'><?php _e('Approval Status') ?></label></strong></p>
<p>
<select name='comment_status' id='comment_status'>
<option<?php selected( $comment->comment_approved, '1' ); ?> value='1'><?php _e('Approved') ?></option>
<option<?php selected( $comment->comment_approved, '0' ); ?> value='0'><?php _e('Moderated') ?></option>
<option<?php selected( $comment->comment_approved, 'spam' ); ?> value='spam'><?php _e('Spam') ?></option>
</select>
</p>
<?php
$stamp = __('%1$s at %2$s');
$date = mysql2date(get_option('date_format'), $comment->comment_date);
$time = mysql2date(get_option('time_format'), $comment->comment_date);
?>
<p class="curtime"><?php printf($stamp, $date, $time); ?>
&nbsp;<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><?php _e('Edit') ?></a></p>
<div id='timestampdiv' class='hide-if-js'><?php touch_time(('editcomment' == $action), 0, 5); ?></div>
</div>
<div class="wrap">
<h2><?php _e('Advanced'); ?></h2>
<p class="submit">
<input type="submit" name="save" value="<?php _e('Save'); ?>" tabindex="4" class="button button-highlighted" />
<?php
echo "<a class='submitdelete' href='" . wp_nonce_url("comment.php?action=deletecomment&amp;c=$comment->comment_ID&amp;_wp_original_http_referer=" . wp_get_referer(), 'delete-comment_' . $comment->comment_ID) . "' onclick=\"if ( confirm('" . js_escape(__("You are about to delete this comment. \n 'Cancel' to stop, 'OK' to delete.")) . "') ) { return true;}return false;\">" . __('Delete comment') . "</a>";
?>
</p>
<table width="100%" cellspacing="2" cellpadding="5" class="editform">
<tr>
<th scope="row" valign="top"><?php _e('Comment Status') ?>:</th>
<td><label for="comment_status_approved" class="selectit"><input id="comment_status_approved" name="comment_status" type="radio" value="1" <?php checked($comment->comment_approved, '1'); ?> /> <?php _e('Approved') ?></label><br />
<label for="comment_status_moderated" class="selectit"><input id="comment_status_moderated" name="comment_status" type="radio" value="0" <?php checked($comment->comment_approved, '0'); ?> /> <?php _e('Moderated') ?></label><br />
<label for="comment_status_spam" class="selectit"><input id="comment_status_spam" name="comment_status" type="radio" value="spam" <?php checked($comment->comment_approved, 'spam'); ?> /> <?php _e('Spam') ?></label></td>
</tr>
<div class="side-info">
<h5><?php _e('Related') ?></h5>
<?php if ( current_user_can('edit_posts') ) : ?>
<tr>
<th scope="row" valign="top"><?php _e('Edit time'); ?>:</th>
<td><?php touch_time(('editcomment' == $action), 0); ?> </td>
</tr>
<?php endif; ?>
<ul>
<li><a href="edit-comments.php"><?php _e('Manage All Comments') ?></a></li>
<li><a href="edit-comments.php?comment_status=moderated"><?php _e('Moderate Comments') ?></a></li>
<?php do_action('comment_relatedlinks_list'); ?>
</ul>
</div>
<?php do_action('submitcomment_box'); ?>
</div>
<tr>
<th scope="row" valign="top"><?php _e('Delete'); $delete_nonce = wp_create_nonce( 'delete-comment_' . $comment->comment_ID ); ?>:</th>
<td><input name="deletecomment" class="button delete" type="submit" id="deletecomment" tabindex="10" value="<?php _e('Delete this comment') ?>" <?php echo "onclick=\"if ( confirm('" . js_escape(__("You are about to delete this comment. \n 'Cancel' to stop, 'OK' to delete.")) . "') ) { document.forms.post._wpnonce.value = '$delete_nonce'; return true; } return false;\""; ?> />
<input type="hidden" name="c" value="<?php echo $comment->comment_ID ?>" />
<input type="hidden" name="p" value="<?php echo $comment->comment_post_ID ?>" />
<input type="hidden" name="noredir" value="1" />
</td>
</tr>
</table>
<div id="post-body">
<div id="namediv" class="stuffbox">
<h3><label for="name"><?php _e('Name') ?></label></h3>
<div class="inside">
<input type="text" name="newcomment_author" size="30" value="<?php echo attribute_escape( $comment->comment_author ); ?>" tabindex="1" id="name" />
</div>
</div>
<div id="emaildiv" class="stuffbox">
<h3><label for="email"><?php _e('E-mail') ?></label></h3>
<div class="inside">
<input type="text" name="newcomment_author_email" size="30" value="<?php echo attribute_escape( $comment->comment_author_email ); ?>" tabindex="2" id="email" />
</div>
</div>
<div id="uridiv" class="stuffbox">
<h3><label for="newcomment_author_url"><?php _e('URL') ?></label></h3>
<div class="inside">
<input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" value="<?php echo attribute_escape( $comment->comment_author_url ); ?>" tabindex="3" />
</div>
</div>
<div id="postdiv" class="postarea">
<h3><label for="content"><?php _e('Comment') ?></label></h3>
<?php the_editor($comment->comment_content, 'content', 'newcomment_author_url', false, 4); ?>
<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
</div>
<?php do_meta_boxes('comment', 'normal', $comment); ?>
<input type="hidden" name="c" value="<?php echo $comment->comment_ID ?>" />
<input type="hidden" name="p" value="<?php echo $comment->comment_post_ID ?>" />
<input name="referredby" type="hidden" id="referredby" value="<?php echo wp_get_referer(); ?>" />
<?php wp_original_referer_field(true, 'previous'); ?>
<input type="hidden" name="noredir" value="1" />
</div>
</div>
</div>
</form>
<script type="text/javascript">
try{document.post.name.focus();}catch(e){}
</script>

View File

@@ -6,33 +6,23 @@
<?php if (isset($mode) && 'bookmarklet' == $mode) : ?>
<input type="hidden" name="mode" value="bookmarklet" />
<?php endif; ?>
<input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" />
<input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" />
<input type="hidden" name="action" value='post' />
<script type="text/javascript">
<!--
function focusit() { // focus on first input field
document.getElementById('title').focus();
}
addLoadEvent(focusit);
//-->
</script>
<div id="poststuff">
<fieldset id="titlediv">
<legend><a href="http://wordpress.org/docs/reference/post/#title" title="<?php _e('Help on titles') ?>"><?php _e('Title') ?></a></legend>
<div><input type="text" name="post_title" size="30" tabindex="1" value="<?php echo $post->post_title; ?>" id="title" /></div>
<legend><a href="http://wordpress.org/docs/reference/post/#title" title="<?php _e('Help on titles') ?>"><?php _e('Title') ?></a></legend>
<div><input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape( $post->post_title ); ?>" id="title" /></div>
</fieldset>
<fieldset id="categorydiv">
<legend><a href="http://wordpress.org/docs/reference/post/#category" title="<?php _e('Help on categories') ?>"><?php _e('Categories') ?></a></legend>
<legend><a href="http://wordpress.org/docs/reference/post/#category" title="<?php _e('Help on categories') ?>"><?php _e('Categories') ?></a></legend>
<div><?php dropdown_categories($post->post_category); ?></div>
</fieldset>
<br />
<fieldset id="postdiv">
<legend><a href="http://wordpress.org/docs/reference/post/#post" title="<?php _e('Help with post field') ?>"><?php _e('Post') ?></a></legend>
<?php the_quicktags(); ?>
<?php
$rows = get_option('default_post_edit_rows');
if (($rows < 3) || ($rows > 100)) {
@@ -40,6 +30,7 @@ addLoadEvent(focusit);
}
?>
<div><textarea rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="4" id="content"><?php echo $post->post_content ?></textarea></div>
<?php wp_nonce_field( 'autosave', 'autosavenonce', false ); ?>
</fieldset>
@@ -49,7 +40,7 @@ edCanvas = document.getElementById('content');
//-->
</script>
<input type="hidden" name="post_pingback" value="<?php echo get_option('default_pingback_flag') ?>" id="post_pingback" />
<input type="hidden" name="post_pingback" value="<?php echo (int) get_option('default_pingback_flag') ?>" id="post_pingback" />
<p><label for="trackback"> <?php printf(__('<a href="%s" title="Help on trackbacks"><strong>TrackBack</strong> a <abbr title="Universal Resource Locator">URL</abbr></a>:</label> (Separate multiple <abbr title="Universal Resource Locator">URL</abbr>s with spaces.)'), 'http://wordpress.org/docs/reference/post/#trackback'); echo '<br />'; ?>
<input type="text" name="trackback_url" style="width: 360px" id="trackback" tabindex="7" /></p>
@@ -58,13 +49,13 @@ edCanvas = document.getElementById('content');
<input name="saveasprivate" type="submit" id="saveasprivate" tabindex="10" value="<?php _e('Save as Private') ?>" />
<?php if ( current_user_can('edit_posts') ) : ?>
<input name="publish" type="submit" id="publish" tabindex="6" style="font-weight: bold;" value="<?php _e('Publish') ?>" />
<input name="publish" type="submit" id="publish" tabindex="6" value="<?php _e('Publish') ?>" class="button button-highlighted" />
<?php endif; ?>
<?php if ('bookmarklet' != $mode) {
echo '<input name="advanced" type="submit" id="advancededit" tabindex="7" value="' . __('Advanced Editing &raquo;') . '" />';
echo '<input name="advanced" type="submit" id="advancededit" tabindex="7" value="' . __('Advanced Editing') . '" />';
} ?>
<input name="referredby" type="hidden" id="referredby" value="<?php if ( wp_get_referer() ) echo urlencode(wp_get_referer()); ?>" />
<input name="referredby" type="hidden" id="referredby" value="<?php if ( $refby = wp_get_referer() ) echo urlencode($refby); ?>" />
</p>
<?php do_action('simple_edit_form', ''); ?>
@@ -72,4 +63,7 @@ edCanvas = document.getElementById('content');
</div>
</form>
<script type="text/javascript">
try{document.getElementById('title').focus();}catch(e){}
</script>
</div>

View File

@@ -0,0 +1,156 @@
<?php
require_once('admin.php');
// Handle bulk deletes
if ( isset($_GET['deleteit']) && isset($_GET['delete']) ) {
check_admin_referer('bulk-link-categories');
if ( !current_user_can('manage_categories') )
wp_die(__('Cheatin&#8217; uh?'));
foreach( (array) $_GET['delete'] as $cat_ID ) {
$cat_name = get_term_field('name', $cat_ID, 'link_category');
// Don't delete the default cats.
if ( $cat_ID == get_option('default_link_category') )
wp_die(sprintf(__("Can&#8217;t delete the <strong>%s</strong> category: this is the default one"), $cat_name));
wp_delete_term($cat_ID, 'link_category');
}
$location = 'edit-link-categories.php';
if ( $referer = wp_get_referer() ) {
if ( false !== strpos($referer, 'edit-link-categories.php') )
$location = $referer;
}
$location = add_query_arg('message', 6, $location);
wp_redirect($location);
exit();
} elseif ( !empty($_GET['_wp_http_referer']) ) {
wp_redirect(remove_query_arg(array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI'])));
exit;
}
$title = __('Link Categories');
$parent_file = 'edit.php';
wp_enqueue_script( 'admin-categories' );
wp_enqueue_script('admin-forms');
require_once ('admin-header.php');
$messages[1] = __('Category added.');
$messages[2] = __('Category deleted.');
$messages[3] = __('Category updated.');
$messages[4] = __('Category not added.');
$messages[5] = __('Category not updated.');
$messages[6] = __('Categories deleted.');
if (isset($_GET['message'])) : ?>
<div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div>
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
endif; ?>
<div class="wrap">
<form id="posts-filter" action="" method="get">
<?php if ( current_user_can('manage_categories') ) : ?>
<h2><?php printf(__('Manage Link Categories (<a href="%s">add new</a>)'), '#addcat') ?> </h2>
<?php else : ?>
<h2><?php _e('Manage Link Categories') ?> </h2>
<?php endif; ?>
<p id="post-search">
<label class="hidden" for="post-search-input"><?php _e( 'Search Categories' ); ?>:</label>
<input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
<input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" />
</p>
<br class="clear" />
<div class="tablenav">
<?php
$pagenum = absint( $_GET['pagenum'] );
if ( empty($pagenum) )
$pagenum = 1;
if( !$catsperpage || $catsperpage < 0 )
$catsperpage = 20;
$page_links = paginate_links( array(
'base' => add_query_arg( 'pagenum', '%#%' ),
'format' => '',
'total' => ceil(wp_count_terms('link_category') / $catsperpage),
'current' => $pagenum
));
if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>";
?>
<div class="alignleft">
<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary delete" />
<?php wp_nonce_field('bulk-link-categories'); ?>
</div>
<br class="clear" />
</div>
<br class="clear" />
<table class="widefat">
<thead>
<tr>
<th scope="col" class="check-column"><input type="checkbox" /></th>
<th scope="col"><?php _e('Name') ?></th>
<th scope="col"><?php _e('Description') ?></th>
<th scope="col" class="num" style="width: 90px;"><?php _e('Links') ?></th>
</tr>
</thead>
<tbody id="the-list" class="list:link-cat">
<?php
$start = ($pagenum - 1) * $catsperpage;
$args = array('offset' => $start, 'number' => $catsperpage, 'hide_empty' => 0);
if ( !empty( $_GET['s'] ) )
$args['search'] = $_GET['s'];
$categories = get_terms( 'link_category', $args );
if ( $categories ) {
$output = '';
foreach ( $categories as $category ) {
$category = sanitize_term($category, 'link_category', 'display');
$output .= link_cat_row($category);
}
$output = apply_filters('cat_rows', $output);
echo $output;
unset($category);
}
?>
</tbody>
</table>
</form>
<div class="tablenav">
<?php
if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>";
?>
<br class="clear" />
</div>
<br class="clear" />
</div>
<?php if ( current_user_can('manage_categories') ) : ?>
<div class="wrap">
<p><?php printf(__('<strong>Note:</strong><br />Deleting a category does not delete the links in that category. Instead, links that were only assigned to the deleted category are set to the category <strong>%s</strong>.'), get_term_field('name', get_option('default_link_category'), 'link_category')) ?></p>
</div>
<?php include('edit-link-category-form.php'); ?>
<?php endif; ?>
<?php include('admin-footer.php'); ?>

View File

@@ -0,0 +1,44 @@
<?php
if ( ! empty($cat_ID) ) {
$heading = __('Edit Category');
$submit_text = __('Edit Category');
$form = '<form name="editcat" id="editcat" method="post" action="link-category.php" class="validate">';
$action = 'editedcat';
$nonce_action = 'update-link-category_' . $cat_ID;
do_action('edit_link_category_form_pre', $category);
} else {
$heading = __('Add Category');
$submit_text = __('Add Category');
$form = '<form name="addcat" id="addcat" class="add:the-list: validate" method="post" action="link-category.php">';
$action = 'addcat';
$nonce_action = 'add-link-category';
do_action('add_link_category_form_pre', $category);
}
?>
<div class="wrap">
<h2><?php echo $heading ?></h2>
<div id="ajax-response"></div>
<?php echo $form ?>
<input type="hidden" name="action" value="<?php echo $action ?>" />
<input type="hidden" name="cat_ID" value="<?php echo $category->term_id ?>" />
<?php wp_original_referer_field(true, 'previous'); wp_nonce_field($nonce_action); ?>
<table class="form-table">
<tr class="form-field form-required">
<th scope="row" valign="top"><label for="name"><?php _e('Category name') ?></label></th>
<td><input name="name" id="name" type="text" value="<?php echo $category->name; ?>" size="40" aria-required="true" /></td>
</tr>
<tr class="form-field">
<th scope="row" valign="top"><label for="slug"><?php _e('Category slug') ?></label></th>
<td><input name="slug" id="slug" type="text" value="<?php echo attribute_escape(apply_filters('editable_slug', $category->slug)); ?>" size="40" />
<?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></td>
</tr>
<tr class="form-field">
<th scope="row" valign="top"><label for="description"><?php _e('Description (optional)') ?></label></th>
<td><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;"><?php echo $category->description; ?></textarea></td>
</tr>
</table>
<p class="submit"><input type="submit" class="button" name="submit" value="<?php echo $submit_text ?>" /></p>
<?php do_action('edit_link_category_form', $category); ?>
</form>
</div>

View File

@@ -1,17 +1,17 @@
<?php
if ( ! empty($link_id) ) {
$heading = __('Edit Link');
$submit_text = __('Save Changes &raquo;');
$submit_text = __('Save Changes');
$form = '<form name="editlink" id="editlink" method="post" action="link.php">';
$nonce_action = 'update-bookmark_' . $link_id;
} else {
$heading = __('Add Link');
$submit_text = __('Add Link &raquo;');
$submit_text = __('Add Link');
$form = '<form name="addlink" id="addlink" method="post" action="link.php">';
$nonce_action = 'add-bookmark';
}
function xfn_check($class, $value = '', $type = 'check') {
function xfn_check($class, $value = '', $deprecated = '') {
global $link;
$link_rel = $link->link_rel;
@@ -30,97 +30,148 @@ function xfn_check($class, $value = '', $type = 'check') {
}
?>
<div class="wrap">
<h2><?php echo $heading ?></h2>
<?php echo $form ?>
<?php wp_nonce_field($nonce_action); ?>
<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
<div class="wrap">
<h2><?php echo $heading; ?></h2>
<div id="poststuff">
<div id="moremeta">
<div id="grabit" class="dbx-group">
<fieldset id="categorydiv" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Categories') ?></h3>
<div class="dbx-content">
<p id="jaxcat"></p>
<ul id="categorychecklist"><?php dropdown_link_categories(get_option('default_link_category')); ?></ul>
<div class="submitbox" id="submitlink">
<div id="previewview">
<?php if ( !empty($link_id) ) { ?>
<a href="<?php echo $link->link_url; ?>" target="_blank"><?php _e('Visit Link'); ?></a>
<?php } ?>
</div>
</fieldset>
<fieldset class="dbx-box">
<h3 class="dbx-handle"><?php _e('Target') ?></h3>
<div class="dbx-content">
<div class="inside">
<p><label for="link_private" class="selectit"><input id="link_private" name="link_visible" type="checkbox" value="N" <?php checked($link->link_visible, 'N'); ?> /> <?php _e('Keep this link private') ?></label></p>
</div>
<p class="submit">
<input type="submit" class="button button-highlighted" name="save" value="<?php _e('Save'); ?>" tabindex="4" />
<?php
if ( ( 'edit' == $action) && current_user_can('manage_links') )
echo "<a class='submitdelete' href='" . wp_nonce_url("link.php?action=delete&amp;link_id=$link_id", 'delete-bookmark_' . $link_id) . "' onclick=\"if ( confirm('" . js_escape( sprintf( __("You are about to delete this link '%s'\n'Cancel' to stop, 'OK' to delete."), $link->link_name )) . "') ) { return true;}return false;\">" . __('Delete&nbsp;link') . "</a>";
?>
</p>
<div class="side-info">
<h5><?php _e('Related') ?></h5>
<ul>
<li><a href="link-manager.php"><?php _e('Manage All Links') ?></a></li>
<li><a href="edit-link-categories.php"><?php _e('Manage All Link Categories') ?></a></li>
<li><a href="link-import.php"><?php _e('Import Links') ?></a></li>
<?php do_action('link_relatedlinks_list'); ?>
</ul>
</div>
<?php do_action('submitlink_box'); ?>
</div>
<div id="post-body">
<div id="namediv" class="stuffbox">
<h3><label for="link_name"><?php _e('Name') ?></label></h3>
<div class="inside">
<input type="text" name="link_name" size="30" tabindex="1" value="<?php echo $link->link_name; ?>" id="link_name" /><br />
<?php _e('Example: Nifty blogging software'); ?>
</div>
</div>
<div id="addressdiv" class="stuffbox">
<h3><label for="link_url"><?php _e('Web Address') ?></label></h3>
<div class="inside">
<input type="text" name="link_url" size="30" tabindex="1" value="<?php echo $link->link_url; ?>" id="link_url" /><br />
<?php _e('Example: <code>http://wordpress.org/</code> &#8212; don&#8217;t forget the <code>http://</code>'); ?>
</div>
</div>
<div id="descriptiondiv" class="stuffbox">
<h3><label for="link_description"><?php _e('Description') ?></label></h3>
<div class="inside">
<input type="text" name="link_description" size="30" tabindex="1" value="<?php echo $link->link_description; ?>" id="link_description" /><br />
<?php _e('This will be shown when someone hovers over the link in the blogroll, or optionally below the link.'); ?>
</div>
</div>
<?php function link_categories_meta_box($link) { ?>
<div id="category-adder" class="wp-hidden-children">
<h4><a id="category-add-toggle" href="#category-add"><?php _e( '+ Add New Category' ); ?></a></h4>
<p id="link-category-add" class="wp-hidden-child">
<label class="hidden" for="newcat"><?php _e( '+ Add New Category' ); ?></label>
<input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" aria-required="true" />
<input type="button" id="category-add-sumbit" class="add:categorychecklist:linkcategorydiv button" value="<?php _e( 'Add' ); ?>" />
<?php wp_nonce_field( 'add-link-category', '_ajax_nonce', false ); ?>
<span id="category-ajax-response"></span>
</p>
</div>
<ul id="category-tabs">
<li class="ui-tabs-selected"><a href="#categories-all"><?php _e( 'All Categories' ); ?></a></li>
<li class="wp-no-js-hidden"><a href="#categories-pop"><?php _e( 'Most Used' ); ?></a></li>
</ul>
<div id="categories-all" class="ui-tabs-panel">
<ul id="categorychecklist" class="list:category categorychecklist form-no-clear">
<?php wp_link_category_checklist($link->link_id); ?>
</ul>
</div>
<div id="categories-pop" class="ui-tabs-panel" style="display: none;">
<ul id="categorychecklist-pop" class="categorychecklist form-no-clear">
<?php wp_popular_terms_checklist('link_category'); ?>
</ul>
</div>
<?php
}
add_meta_box('linkcategorydiv', __('Categories'), 'link_categories_meta_box', 'link', 'normal', 'core');
?>
<?php do_meta_boxes('link', 'normal', $link); ?>
<h2><?php _e('Advanced Options'); ?></h2>
<?php function link_target_meta_box($link) { ?>
<fieldset><legend class="hidden"><?php _e('Target') ?></legend>
<label for="link_target_blank" class="selectit">
<input id="link_target_blank" type="radio" name="link_target" value="_blank" <?php echo(($link->link_target == '_blank') ? 'checked="checked"' : ''); ?> />
<code>_blank</code></label>
<code>_blank</code></label><br />
<label for="link_target_top" class="selectit">
<input id="link_target_top" type="radio" name="link_target" value="_top" <?php echo(($link->link_target == '_top') ? 'checked="checked"' : ''); ?> />
<code>_top</code></label>
<code>_top</code></label><br />
<label for="link_target_none" class="selectit">
<input id="link_target_none" type="radio" name="link_target" value="" <?php echo(($link->link_target == '') ? 'checked="checked"' : ''); ?> />
<?php _e('none') ?></label>
</div>
</fieldset>
<p><?php _e('Choose the frame your link targets. Essentially this means if you choose <code>_blank</code> your link will open in a new window.'); ?></p>
<?php
}
add_meta_box('linktargetdiv', __('Target'), 'link_target_meta_box', 'link', 'advanced', 'core');
<fieldset class="dbx-box">
<h3 class="dbx-handle"><?php _e('Visible') ?></h3>
<div class="dbx-content">
<label for="link_visible_yes" class="selectit">
<input id="link_visible_yes" type="radio" name="link_visible" <?php if ($link->link_visible == 'Y') echo "checked='checked'"; ?> value="Y" />
<?php _e('Yes') ?></label>
<label for="link_visible_no" class="selectit">
<input id="link_visible_no" type="radio" name="link_visible" <?php if ($link->link_visible == 'N') echo "checked='checked'"; ?> value="N" />
<?php _e('No') ?></label>
</div>
</fieldset>
</div>
</div>
<table class="editform" width="100%" cellspacing="2" cellpadding="5">
<tr>
<th scope="row" valign="top"><label for="link_name"><?php _e('Name:') ?></label></th>
<td><input type="text" name="link_name" value="<?php echo $link->link_name; ?>" style="width: 95%" /></td>
</tr>
<tr>
<th width="20%" scope="row" valign="top"><label for="link_url"><?php _e('Address:') ?></label></th>
<td width="80%"><input type="text" name="link_url" value="<?php echo $link->link_url; if ( empty( $link->link_url ) ) echo 'http://'; ?>" style="width: 95%" /></td>
</tr>
<tr>
<th scope="row" valign="top"><label for="link_description"><?php _e('Description:') ?></label></th>
<td><input type="text" name="link_description" value="<?php echo $link->link_description; ?>" style="width: 95%" /></td>
</tr>
</table>
<p class="submit">
<input type="submit" name="submit" value="<?php echo $submit_text ?>" />
</p>
<div id="advancedstuff" class="dbx-group" >
<fieldset id="xfn" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Link Relationship (XFN)') ?></h3>
<div class="dbx-content">
<table class="editform" width="100%" cellspacing="2" cellpadding="5">
function link_xfn_meta_box($link) {
?>
<table class="editform" style="width: 100%;" cellspacing="2" cellpadding="5">
<tr>
<th width="20%" scope="row"><?php _e('rel:') ?></th>
<td width="80%"><input type="text" name="link_rel" id="link_rel" size="50" value="<?php echo $link->link_rel; ?>" /></td>
<th style="width: 20%;" scope="row"><label for="link_rel"><?php _e('rel:') ?></label></th>
<td style="width: 80%;"><input type="text" name="link_rel" id="link_rel" size="50" value="<?php echo $link->link_rel; ?>" /></td>
</tr>
<tr>
<th scope="row"><?php _e('<a href="http://gmpg.org/xfn/">XFN</a> Creator:') ?></th>
<td>
<table cellpadding="3" cellspacing="5">
<td colspan="2">
<table cellpadding="3" cellspacing="5" class="form-table">
<tr>
<th scope="row"> <?php _e('identity') ?> </th>
<td>
<td><fieldset><legend class="hidden"> <?php _e('identity') ?> </legend>
<label for="me">
<input type="checkbox" name="identity" value="me" id="me" <?php xfn_check('identity', 'me'); ?> />
<?php _e('another web address of mine') ?></label>
</td>
</fieldset></td>
</tr>
<tr>
<th scope="row"> <?php _e('friendship') ?> </th>
<td>
<td><fieldset><legend class="hidden"> <?php _e('friendship') ?> </legend>
<label for="contact">
<input class="valinp" type="radio" name="friendship" value="contact" id="contact" <?php xfn_check('friendship', 'contact', 'radio'); ?> /> <?php _e('contact') ?></label>
<label for="acquaintance">
@@ -129,30 +180,30 @@ function xfn_check($class, $value = '', $type = 'check') {
<input class="valinp" type="radio" name="friendship" value="friend" id="friend" <?php xfn_check('friendship', 'friend', 'radio'); ?> /> <?php _e('friend') ?></label>
<label for="friendship">
<input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check('friendship', '', 'radio'); ?> /> <?php _e('none') ?></label>
</td>
</fieldset></td>
</tr>
<tr>
<th scope="row"> <?php _e('physical') ?> </th>
<td>
<td><fieldset><legend class="hidden"> <?php _e('physical') ?> </legend>
<label for="met">
<input class="valinp" type="checkbox" name="physical" value="met" id="met" <?php xfn_check('physical', 'met'); ?> />
<?php _e('met') ?></label>
</td>
</fieldset></td>
</tr>
<tr>
<th scope="row"> <?php _e('professional') ?> </th>
<td>
<td><fieldset><legend class="hidden"> <?php _e('professional') ?> </legend>
<label for="co-worker">
<input class="valinp" type="checkbox" name="professional" value="co-worker" id="co-worker" <?php xfn_check('professional', 'co-worker'); ?> />
<?php _e('co-worker') ?></label>
<label for="colleague">
<input class="valinp" type="checkbox" name="professional" value="colleague" id="colleague" <?php xfn_check('professional', 'colleague'); ?> />
<?php _e('colleague') ?></label>
</td>
</fieldset></td>
</tr>
<tr>
<th scope="row"> <?php _e('geographical') ?> </th>
<td>
<td><fieldset><legend class="hidden"> <?php _e('geographical') ?> </legend>
<label for="co-resident">
<input class="valinp" type="radio" name="geographical" value="co-resident" id="co-resident" <?php xfn_check('geographical', 'co-resident', 'radio'); ?> />
<?php _e('co-resident') ?></label>
@@ -162,11 +213,11 @@ function xfn_check($class, $value = '', $type = 'check') {
<label for="geographical">
<input class="valinp" type="radio" name="geographical" value="" id="geographical" <?php xfn_check('geographical', '', 'radio'); ?> />
<?php _e('none') ?></label>
</td>
</fieldset></td>
</tr>
<tr>
<th scope="row"> <?php _e('family') ?> </th>
<td>
<td><fieldset><legend class="hidden"> <?php _e('family') ?> </legend>
<label for="child">
<input class="valinp" type="radio" name="family" value="child" id="child" <?php xfn_check('family', 'child', 'radio'); ?> />
<?php _e('child') ?></label>
@@ -185,11 +236,11 @@ function xfn_check($class, $value = '', $type = 'check') {
<label for="family">
<input class="valinp" type="radio" name="family" value="" id="family" <?php xfn_check('family', '', 'radio'); ?> />
<?php _e('none') ?></label>
</td>
</fieldset></td>
</tr>
<tr>
<th scope="row"> <?php _e('romantic') ?> </th>
<td>
<td><fieldset><legend class="hidden"> <?php _e('romantic') ?> </legend>
<label for="muse">
<input class="valinp" type="checkbox" name="romantic" value="muse" id="muse" <?php xfn_check('romantic', 'muse'); ?> />
<?php _e('muse') ?></label>
@@ -202,34 +253,35 @@ function xfn_check($class, $value = '', $type = 'check') {
<label for="romantic">
<input class="valinp" type="checkbox" name="romantic" value="sweetheart" id="romantic" <?php xfn_check('romantic', 'sweetheart'); ?> />
<?php _e('sweetheart') ?></label>
</td>
</fieldset></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</fieldset>
<p><?php _e('If the link is to a person, you can specify your relationship with them using the above form. If you would like to learn more about the idea check out <a href="http://gmpg.org/xfn/">XFN</a>.'); ?></p>
<?php
}
add_meta_box('linkxfndiv', __('Link Relationship (XFN)'), 'link_xfn_meta_box', 'link', 'advanced', 'core');
<fieldset id="advanced" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Advanced') ?></h3>
<div class="dbx-content">
<table class="editform" width="100%" cellspacing="2" cellpadding="5">
<tr>
<th width="20%" scope="row"><?php _e('Image Address:') ?></th>
<td width="80%"><input type="text" name="link_image" size="50" value="<?php echo $link->link_image; ?>" style="width: 95%" /></td>
function link_advanced_meta_box($link) {
?>
<table class="form-table" style="width: 100%;" cellspacing="2" cellpadding="5">
<tr class="form-field">
<th valign="top" scope="row"><label for="link_image"><?php _e('Image Address') ?></label></th>
<td><input type="text" name="link_image" id="link_image" size="50" value="<?php echo $link->link_image; ?>" style="width: 95%" /></td>
</tr>
<tr>
<th scope="row"><?php _e('RSS Address:') ?> </th>
<tr class="form-field">
<th valign="top" scope="row"><label for="rss_uri"><?php _e('RSS Address') ?></label></th>
<td><input name="link_rss" type="text" id="rss_uri" value="<?php echo $link->link_rss; ?>" size="50" style="width: 95%" /></td>
</tr>
<tr>
<th scope="row"><?php _e('Notes:') ?></th>
<td><textarea name="link_notes" cols="50" rows="10" style="width: 95%"><?php echo $link->link_notes; ?></textarea></td>
<tr class="form-field">
<th valign="top" scope="row"><label for="link_notes"><?php _e('Notes') ?></label></th>
<td><textarea name="link_notes" id="link_notes" cols="50" rows="10" style="width: 95%"><?php echo $link->link_notes; ?></textarea></td>
</tr>
<tr>
<th scope="row"><?php _e('Rating:') ?></th>
<td><select name="link_rating" size="1">
<tr class="form-field">
<th valign="top" scope="row"><label for="link_rating"><?php _e('Rating') ?></label></th>
<td><select name="link_rating" id="link_rating" size="1">
<?php
for ($r = 0; $r < 10; $r++) {
echo(' <option value="'.$r.'" ');
@@ -241,10 +293,13 @@ function xfn_check($class, $value = '', $type = 'check') {
</td>
</tr>
</table>
</fieldset>
</div>
<?php
}
add_meta_box('linkadvanceddiv', __('Advanced'), 'link_advanced_meta_box', 'link', 'advanced', 'core');
<?php if ( $link_id ) : ?>
do_meta_boxes('link', 'advanced', $link);
if ( $link_id ) : ?>
<input type="hidden" name="action" value="save" />
<input type="hidden" name="link_id" value="<?php echo (int) $link_id; ?>" />
<input type="hidden" name="order_by" value="<?php echo attribute_escape($order_by); ?>" />
@@ -252,6 +307,10 @@ function xfn_check($class, $value = '', $type = 'check') {
<?php else: ?>
<input type="hidden" name="action" value="add" />
<?php endif; ?>
</div>
</div>
</div>
</form>
</div>

View File

@@ -1,180 +1,214 @@
<div class="wrap">
<h2 id="write-post"><?php _e('Write Page'); ?></h2>
<?php
if (0 == $post_ID) {
if ( isset($_GET['message']) )
$_GET['message'] = absint( $_GET['message'] );
$messages[1] = sprintf( __( 'Page updated. Continue editing below or <a href="%s">go back</a>.' ), attribute_escape( stripslashes( $_GET['_wp_original_http_referer'] ) ) );
$messages[2] = __('Custom field updated.');
$messages[3] = __('Custom field deleted.');
$messages[4] = __('Page updated.');
$notice = false;
$notices[1] = __( 'There is an autosave of this page that is more recent than the version below. <a href="%s">View the autosave</a>.' );
if (!isset($post_ID) || 0 == $post_ID) {
$form_action = 'post';
$nonce_action = 'add-page';
$temp_ID = -1 * time(); // don't change this formula without looking at wp_write_post()
$form_extra = "<input type='hidden' id='post_ID' name='temp_ID' value='$temp_ID' />";
} else {
$post_ID = (int) $post_ID;
$form_action = 'editpost';
$nonce_action = 'update-page_' . $post_ID;
$form_extra = "<input type='hidden' id='post_ID' name='post_ID' value='$post_ID' />";
$autosave = wp_get_post_autosave( $post_id );
if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt ) > mysql2date( 'U', $post->post_modified_gmt ) )
$notice = sprintf( $notices[1], get_edit_post_link( $autosave->ID ) );
}
$temp_ID = (int) $temp_ID;
$user_ID = (int) $user_ID;
$sendto = clean_url(stripslashes(wp_get_referer()));
if ( 0 != $post_ID && $sendto == get_permalink($post_ID) )
$sendto = 'redo';
?>
<?php if ( $notice ) : ?>
<div id="notice" class="error"><p><?php echo $notice ?></p></div>
<?php endif; ?>
<?php if (isset($_GET['message'])) : ?>
<div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div>
<?php endif; ?>
<form name="post" action="page.php" method="post" id="post">
<div class="wrap">
<h2><?php _e('Write Page') ?></h2>
<?php
wp_nonce_field($nonce_action);
if (isset($mode) && 'bookmarklet' == $mode) {
if (isset($mode) && 'bookmarklet' == $mode)
echo '<input type="hidden" name="mode" value="bookmarklet" />';
}
?>
<input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" />
<input type="hidden" id="user-id" name="user_ID" value="<?php echo $user_ID ?>" />
<input type="hidden" id="hiddenaction" name="action" value='<?php echo $form_action ?>' />
<input type="hidden" id="originalaction" name="originalaction" value="<?php echo $form_action ?>" />
<input type="hidden" id="post_author" name="post_author" value="<?php echo attribute_escape( $post->post_author ); ?>" />
<?php echo $form_extra ?>
<input type="hidden" id="post_type" name="post_type" value="page" />
<input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" />
<input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo $post->post_status ?>" />
<input name="referredby" type="hidden" id="referredby" value="<?php
if ( strpos( wp_get_referer(), '/wp-admin/' ) === false && $post_ID && url_to_postid(wp_get_referer()) === $post_ID )
echo 'redo';
else
echo clean_url(stripslashes(wp_get_referer()));
?>" />
<?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?>
<script type="text/javascript">
// <![CDATA[
function focusit() { // focus on first input field
document.post.title.focus();
}
addLoadEvent(focusit);
// ]]>
</script>
<div id="poststuff">
<div id="moremeta">
<div id="grabit" class="dbx-group">
<fieldset id="commentstatusdiv" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Discussion') ?></h3>
<div class="dbx-content">
<input name="advanced_view" type="hidden" value="1" />
<label for="comment_status" class="selectit">
<input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($post->comment_status, 'open'); ?> />
<?php _e('Allow Comments') ?></label>
<label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($post->ping_status, 'open'); ?> /> <?php _e('Allow Pings') ?></label>
</div>
</fieldset>
<fieldset class="dbx-box">
<h3 class="dbx-handle"><?php _e('Page Status') ?></h3>
<div class="dbx-content"><?php if ( current_user_can('publish_pages') ) : ?>
<label for="post_status_publish" class="selectit"><input id="post_status_publish" name="post_status" type="radio" value="publish" <?php checked($post->post_status, 'publish'); checked($post->post_status, 'future'); ?> /> <?php _e('Published') ?></label>
<?php endif; ?>
<label for="post_status_draft" class="selectit"><input id="post_status_draft" name="post_status" type="radio" value="draft" <?php checked($post->post_status, 'draft'); ?> /> <?php _e('Draft') ?></label>
<label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="radio" value="private" <?php checked($post->post_status, 'private'); ?> /> <?php _e('Private') ?></label></div>
</fieldset>
<fieldset id="passworddiv" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Page Password') ?></h3>
<div class="dbx-content"><input name="post_password" type="text" size="13" id="post_password" value="<?php echo $post->post_password ?>" /></div>
</fieldset>
<fieldset id="pageparent" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Page Parent') ?></h3>
<div class="dbx-content"><p><select name="parent_id">
<option value='0'><?php _e('Main Page (no parent)'); ?></option>
<?php parent_dropdown($post->post_parent); ?>
</select></p>
</div>
</fieldset>
<?php if ( 0 != count( get_page_templates() ) ) { ?>
<fieldset id="pagetemplate" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Page Template') ?></h3>
<div class="dbx-content"><p><select name="page_template">
<option value='default'><?php _e('Default Template'); ?></option>
<?php page_template_dropdown($post->page_template); ?>
</select></p>
</div>
</fieldset>
<?php } ?>
<fieldset id="slugdiv" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Page Slug') ?></h3>
<div class="dbx-content"><input name="post_name" type="text" size="13" id="post_name" value="<?php echo $post->post_name ?>" /></div>
</fieldset>
<?php if ( $authors = get_editable_authors( $current_user->id ) ) : // TODO: ROLE SYSTEM ?>
<fieldset id="authordiv" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Page Author'); ?></h3>
<div class="dbx-content">
<select name="post_author_override" id="post_author_override">
<?php
foreach ($authors as $o) :
$o = get_userdata( $o->ID );
if ( $post->post_author == $o->ID || ( empty($post_ID) && $user_ID == $o->ID ) ) $selected = 'selected="selected"';
else $selected = '';
echo "<option value='$o->ID' $selected>$o->display_name</option>";
endforeach;
?>
</select>
</div>
</fieldset>
<?php endif; ?>
<fieldset id="pageorder" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Page Order') ?></h3>
<div class="dbx-content"><p><input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo $post->menu_order ?>" /></p></div>
</fieldset>
<?php do_action('dbx_page_sidebar'); ?>
</div>
</div>
<fieldset id="titlediv">
<legend><?php _e('Page Title') ?></legend>
<div><input type="text" name="post_title" size="30" tabindex="1" value="<?php echo $post->post_title; ?>" id="title" /></div>
</fieldset>
<fieldset id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>">
<legend><?php _e('Page Content') ?>
<div class="submitbox" id="submitpage">
<div id="previewview">
<?php if ( 'publish' == $post->post_status ) { ?>
<a href="<?php echo clean_url(get_permalink($post->ID)); ?>" style="position: absolute; right: 2em; margin-right: 19em; text-decoration: underline;" target="_blank"><?php _e('View &raquo;'); ?></a>
<a href="<?php echo clean_url(get_permalink($post->ID)); ?>" target="_blank" tabindex="4"><?php _e('View this Page'); ?></a>
<?php } elseif ( 'edit' == $action ) { ?>
<a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" style="position: absolute; right: 2em; margin-right: 19em; text-decoration: underline;" target="_blank"><?php _e('Preview &raquo;'); ?></a>
<a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" target="_blank" tabindex="4"><?php _e('Preview this Page'); ?></a>
<?php } ?>
</legend>
<?php the_editor($post->post_content); ?>
</fieldset>
</div>
<div class="inside">
<p><strong><label for='post_status'><?php _e('Publish Status') ?></label></strong></p>
<p>
<select name='post_status' tabindex='4' id='post_status'>
<?php // Show publish in dropdown if user can publish or if they can re-publish this page ('edit_published_pages')
// 'publish' option will be selected for published AND private posts (checkbox overrides dropdown)
if ( current_user_can('publish_pages') OR ( $post->post_status == 'publish' AND current_user_can('edit_page', $post->ID) ) ) :
?>
<option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='publish'><?php _e('Published') ?></option>
<?php endif; ?>
<?php if ( 'future' == $post->post_status ) : ?>
<option<?php selected( $post->post_status, 'future' ); ?> value='future'><?php _e('Pending') ?></option>
<?php endif; ?>
<option<?php selected( $post->post_status, 'pending' ); ?> value='pending'><?php _e('Pending Review') ?></option>
<option<?php selected( $post->post_status, 'draft' ); ?> value='draft'><?php _e('Unpublished') ?></option>
</select>
</p>
<?php if ( current_user_can( 'publish_posts' ) ) : ?>
<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>
<?php endif; ?>
<?php
if ($post_ID) {
if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date
$stamp = __('Scheduled for:<br />%1$s at %2$s');
} else if ( 'publish' == $post->post_status ) { // already published
$stamp = __('Published on:<br />%1$s at %2$s');
} else if ( '0000-00-00 00:00:00' == $post->post_date ) { // draft, 1 or more saves, no date specified
$stamp = __('Publish immediately');
} else { // draft, 1 or more saves, date specified
$stamp = __('Publish on:<br />%1$s at %2$s');
}
$date = mysql2date(get_option('date_format'), $post->post_date);
$time = mysql2date(get_option('time_format'), $post->post_date);
} else { // draft (no saves, and thus no date specified)
$stamp = __('Publish immediately');
$date = mysql2date(get_option('date_format'), current_time('mysql'));
$time = mysql2date(get_option('time_format'), current_time('mysql'));
}
?>
<p class="curtime"><?php printf($stamp, $date, $time); ?>
&nbsp;<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a></p>
<div id='timestampdiv' class='hide-if-js'><?php touch_time(($action == 'edit'),1,4); ?></div>
</div>
<p class="submit">
<span id="autosave"></span>
<input name="save" type="submit" id="save" tabindex="3" value="<?php _e('Save and Continue Editing'); ?>" />
<input type="submit" name="submit" value="<?php _e('Save') ?>" style="font-weight: bold;" tabindex="4" />
<input type="submit" name="save" class="button button-highlighted" value="<?php _e('Save'); ?>" tabindex="4" />
<?php
if ('publish' != $post->post_status || 0 == $post_ID):
if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_ID ) {
?>
<?php if ( current_user_can('publish_pages') ) : ?>
<input name="publish" type="submit" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" />
<?php endif; endif;?>
<input name="referredby" type="hidden" id="referredby" value="<?php echo $sendto; ?>" />
<input name="publish" type="submit" class="button" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" />
<?php else : ?>
<input name="publish" type="submit" class="button" id="publish" tabindex="5" accesskey="p" value="<?php _e('Submit for Review') ?>" />
<?php endif; ?>
<?php
}
if ( ('edit' == $action) && current_user_can('delete_page', $post_ID) )
echo "<a class='submitdelete' href='" . wp_nonce_url("page.php?action=delete&amp;post=$post_ID", 'delete-page_' . $post_ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this page '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete&nbsp;page') . "</a>";
?>
<br class="clear" />
<?php if ($post_ID): ?>
<?php if ( $last_id = get_post_meta($post_ID, '_edit_last', true) ) {
$last_user = get_userdata($last_id);
printf(__('Last edited by %1$s on %2$s at %3$s'), wp_specialchars( $last_user->display_name ), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified));
} else {
printf(__('Last edited on %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified));
}
?>
<br class="clear" />
<?php endif; ?>
<span id="autosave"></span>
<span id="wp-word-count"></span>
</p>
<div class="side-info">
<h5><?php _e('Related') ?></h5>
<ul>
<?php if ($post_ID): ?>
<li><a href="edit-pages.php?page_id=<?php echo $post_ID ?>"><?php _e('See Comments on this Page') ?></a></li>
<?php endif; ?>
<li><a href="edit-comments.php"><?php _e('Manage All Comments') ?></a></li>
<li><a href="edit-pages.php"><?php _e('Manage All Pages') ?></a></li>
<?php do_action('page_relatedlinks_list'); ?>
</ul>
</div>
<?php do_action('submitpage_box'); ?>
</div>
<div id="post-body">
<div id="titlediv">
<h3><label for="title"><?php _e('Title') ?></label></h3>
<div id="titlewrap">
<input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape( $post->post_title ); ?>" id="title" autocomplete="off" />
</div>
<div class="inside">
<?php $sample_permalink_html = get_sample_permalink_html($post->ID); ?>
<div id="edit-slug-box">
<?php if ( ! empty($post->ID) && ! empty($sample_permalink_html) ) :
echo $sample_permalink_html;
endif; ?>
</div>
</div>
</div>
<div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea">
<h3><label for="content"><?php _e('Page') ?></label></h3>
<?php the_editor($post->post_content); ?>
<?php wp_nonce_field( 'autosave', 'autosavenonce', false ); ?>
<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
<?php wp_nonce_field( 'getpermalink', 'getpermalinknonce', false ); ?>
<?php wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false ); ?>
</div>
<?php do_meta_boxes('page', 'normal', $post); ?>
<?php do_action('edit_page_form'); ?>
<?php
if (current_user_can('upload_files')) {
$uploading_iframe_ID = (0 == $post_ID ? $temp_ID : $post_ID);
$uploading_iframe_src = wp_nonce_url("upload.php?style=inline&amp;tab=upload&amp;post_id=$uploading_iframe_ID", 'inlineuploading');
$uploading_iframe_src = apply_filters('uploading_iframe_src', $uploading_iframe_src);
if ( false != $uploading_iframe_src )
echo '<iframe id="uploading" frameborder="0" src="' . $uploading_iframe_src . '">' . __('This feature requires iframe support.') . '</iframe>';
}
<h2><?php _e('Advanced Options'); ?></h2>
<?php
function page_custom_meta_box($post){
?>
<div id="advancedstuff" class="dbx-group">
<fieldset id="postcustom" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Custom Fields') ?></h3>
<div id="postcustomstuff" class="dbx-content">
<div id="postcustomstuff">
<table cellpadding="3">
<?php
$metadata = has_meta($post_ID);
$metadata = has_meta($post->ID);
list_meta($metadata);
?>
@@ -182,21 +216,108 @@ list_meta($metadata);
<?php
meta_form();
?>
</div>
<div id="ajax-response"></div>
</fieldset>
</div>
<p><?php _e('Custom fields can be used to add extra metadata to a post that you can <a href="http://codex.wordpress.org/Using_Custom_Fields" target="_blank">use in your theme</a>.'); ?></p>
<?php
}
add_meta_box('pagecustomdiv', __('Custom Fields'), 'page_custom_meta_box', 'page', 'advanced', 'core');
<?php do_action('dbx_page_advanced'); ?>
function page_comments_status_meta_box($post){
?>
<input name="advanced_view" type="hidden" value="1" />
<p><label for="comment_status" class="selectit">
<input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($post->comment_status, 'open'); ?> />
<?php _e('Allow Comments') ?></label></p>
<p><label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($post->ping_status, 'open'); ?> /> <?php _e('Allow Pings') ?></label></p>
<p><?php _e('These settings apply to this page only. &#8220;Pings&#8221; are <a href="http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">trackbacks and pingbacks</a>.'); ?></p>
<?php
}
add_meta_box('pagecommentstatusdiv', __('Comments &amp; Pings'), 'page_comments_status_meta_box', 'page', 'advanced', 'core');
function page_password_meta_box($post){
?>
<p><label class="hidden" for="post_password"><?php _e('Password Protect This Page') ?></label><input name="post_password" type="text" size="25" id="post_password" value="<?php echo attribute_escape( $post->post_password ); ?>" /></p>
<p><?php _e('Setting a password will require people who visit your blog to enter the above password to view this page and its comments.'); ?></p>
<?php
}
add_meta_box('pagepassworddiv', __('Password Protect This Page'), 'page_password_meta_box', 'page', 'advanced', 'core');
function page_slug_meta_box($post){
?>
<label class="hidden" for="post_name"><?php _e('Page Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo attribute_escape( $post->post_name ); ?>" />
<?php
}
add_meta_box('pageslugdiv', __('Page Slug'), 'page_slug_meta_box', 'page', 'advanced', 'core');
function page_parent_meta_box($post){
?>
<label class="hidden" for="parent_id"><?php _e('Page Parent') ?></label>
<select name="parent_id" id="parent_id">
<option value='0'><?php _e('Main Page (no parent)'); ?></option>
<?php parent_dropdown($post->post_parent); ?>
</select>
<p><?php _e('You can arrange your pages in hierarchies, for example you could have an &#8220;About&#8221; page that has &#8220;Life Story&#8221; and &#8220;My Dog&#8221; pages under it. There are no limits to how deeply nested you can make pages.'); ?></p>
<?php
}
add_meta_box('pageparentdiv', __('Page Parent'), 'page_parent_meta_box', 'page', 'advanced', 'core');
if ( 0 != count( get_page_templates() ) ) {
function page_template_meta_box($post){
?>
<label class="hidden" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template">
<option value='default'><?php _e('Default Template'); ?></option>
<?php page_template_dropdown($post->page_template); ?>
</select>
<p><?php _e('Some themes have custom templates you can use for certain pages that might have additional features or custom layouts. If so, you&#8217;ll see them above.'); ?></p>
<?php
}
add_meta_box('pagetemplatediv', __('Page Template'), 'page_template_meta_box', 'page', 'advanced', 'core');
}
function page_order_meta_box($post){
?>
<p><label class="hidden" for="menu_order"><?php _e('Page Order') ?></label><input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo $post->menu_order ?>" /></p>
<p><?php _e('Pages are usually ordered alphabetically, but you can put a number above to change the order pages appear in. (We know this is a little janky, it&#8217;ll be better in future releases.)'); ?></p>
<?php
}
add_meta_box('pageorderdiv', __('Page Order'), 'page_order_meta_box', 'page', 'advanced', 'core');
$authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM
if ( $post->post_author && !in_array($post->post_author, $authors) )
$authors[] = $post->post_author;
if ( $authors && count( $authors ) > 1 ) {
function page_author_meta_box($post){
global $current_user, $user_ID;
$authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM
if ( $post->post_author && !in_array($post->post_author, $authors) )
$authors[] = $post->post_author;
?>
<label class="hidden" for="post_author_override"><?php _e('Page Author'); ?></label><?php wp_dropdown_users( array('include' => $authors, 'name' => 'post_author_override', 'selected' => empty($post->ID) ? $user_ID : $post->post_author) ); ?>
<?php
}
add_meta_box('pageauthordiv', __('Page Author'), 'page_author_meta_box', 'page', 'advanced', 'core');
}
if ( isset($post_ID) && 0 < $post_ID && wp_get_post_revisions( $post_ID ) ) :
function page_revisions_meta_box($post) {
wp_list_post_revisions();
}
add_meta_box('revisionsdiv', __('Page Revisions'), 'page_revisions_meta_box', 'page', 'advanced', 'core');
endif;
do_meta_boxes('page', 'advanced', $post);
?>
</div>
</div>
<?php if ('edit' == $action) :
$delete_nonce = wp_create_nonce( 'delete-page_' . $post_ID );
if ( current_user_can('delete_page', $post->ID) ) ?>
<input name="deletepost" class="button delete" type="submit" id="deletepost" tabindex="10" value="<?php _e('Delete this page') ?>" <?php echo "onclick=\"if ( confirm('" . js_escape(sprintf(__("You are about to delete this page '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { document.forms.post._wpnonce.value = '$delete_nonce'; return true;}return false;\""; ?> />
<?php endif; ?>
</div>
</form>
</div>
<script type="text/javascript">
try{document.post.title.focus();}catch(e){}
</script>

View File

@@ -1,61 +1,236 @@
<?php
require_once('admin.php');
// Handle bulk deletes
if ( isset($_GET['deleteit']) && isset($_GET['delete']) ) {
check_admin_referer('bulk-pages');
foreach( (array) $_GET['delete'] as $post_id_del ) {
$post_del = & get_post($post_id_del);
if ( !current_user_can('delete_page', $post_id_del) )
wp_die( __('You are not allowed to delete this page.') );
if ( $post_del->post_type == 'attachment' ) {
if ( ! wp_delete_attachment($post_id_del) )
wp_die( __('Error in deleting...') );
} else {
if ( !wp_delete_post($post_id_del) )
wp_die( __('Error in deleting...') );
}
}
$sendback = wp_get_referer();
if (strpos($sendback, 'page.php') !== false) $sendback = admin_url('page-new.php');
elseif (strpos($sendback, 'attachments.php') !== false) $sendback = admin_url('attachments.php');
$sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback);
wp_redirect($sendback);
exit();
} elseif ( !empty($_GET['_wp_http_referer']) ) {
wp_redirect(remove_query_arg(array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI'])));
exit;
}
$title = __('Pages');
$parent_file = 'edit.php';
wp_enqueue_script( 'listman' );
wp_enqueue_script('admin-forms');
$post_stati = array( // array( adj, noun )
'publish' => array(__('Published'), __('Published pages'), __ngettext_noop('Published (%s)', 'Published (%s)')),
'future' => array(__('Scheduled'), __('Scheduled pages'), __ngettext_noop('Scheduled (%s)', 'Scheduled (%s)')),
'pending' => array(__('Pending Review'), __('Pending pages'), __ngettext_noop('Pending Review (%s)', 'Pending Review (%s)')),
'draft' => array(__('Draft'), _c('Drafts|manage posts header'), __ngettext_noop('Draft (%s)', 'Drafts (%s)')),
'private' => array(__('Private'), __('Private pages'), __ngettext_noop('Private (%s)', 'Private (%s)'))
);
$post_status_label = __('Manage Pages');
$post_status_q = '';
if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) ) {
$post_status_label = $post_stati[$_GET['post_status']][1];
$post_status_q = '&post_status=' . $_GET['post_status'];
$post_status_q .= '&perm=readable';
}
$query_str = "post_type=page&orderby=menu_order title&what_to_show=posts$post_status_q&posts_per_page=-1&posts_per_archive_page=-1&order=asc";
$query_str = apply_filters('manage_pages_query', $query_str);
wp($query_str);
if ( is_singular() )
wp_enqueue_script( 'admin-comments' );
require_once('admin-header.php');
?>
<div class="wrap">
<form id="posts-filter" action="" method="get">
<h2><?php
// Use $_GET instead of is_ since they can override each other
$h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching &#8220;%s&#8221;'), wp_specialchars( stripslashes( $_GET['s'] ) ) ) : '';
$h2_author = '';
if ( isset($_GET['author']) && $_GET['author'] ) {
$author_user = get_userdata( (int) $_GET['author'] );
$h2_author = ' ' . sprintf(__('by %s'), wp_specialchars( $author_user->display_name ));
}
printf( _c( '%1$s%2$s%3$s|You can reorder these: 1: Pages, 2: by {s}, 3: matching {s}' ), $post_status_label, $h2_author, $h2_search );
?></h2>
<ul class="subsubsub">
<?php
$avail_post_stati = get_available_post_statuses('page');
$status_links = array();
$num_posts = wp_count_posts('page', 'readable');
$class = empty($_GET['post_status']) ? ' class="current"' : '';
$status_links[] = "<li><a href=\"edit-pages.php\"$class>".__('All Pages')."</a>";
foreach ( $post_stati as $status => $label ) {
$class = '';
if ( !in_array($status, $avail_post_stati) )
continue;
if ( $status == $_GET['post_status'] )
$class = ' class="current"';
$status_links[] = "<li><a href=\"edit-pages.php?post_status=$status\"$class>" .
sprintf(__ngettext($label[2][0], $label[2][1], $num_posts->$status), number_format_i18n( $num_posts->$status ) ) . '</a>';
}
echo implode(' |</li>', $status_links) . '</li>';
unset($status_links);
?>
</ul>
<?php if ( isset($_GET['post_status'] ) ) : ?>
<input type="hidden" name="post_status" value="<?php echo attribute_escape($_GET['post_status']) ?>" />
<?php
endif;
if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?>
<div id="message" class="updated fade"><p><strong><?php _e('Your page has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View page'); ?></a> | <a href="page.php?action=edit&amp;post=<?php echo $_GET['posted']; ?>"><?php _e('Edit page'); ?></a></p></div>
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);
endif;
?>
<div class="wrap">
<h2><?php _e('Page Management'); ?></h2>
<p><?php _e('Pages are like posts except they live outside of the normal blog chronology and can be hierarchical. You can use pages to organize and manage any amount of content.'); ?> <a href="page-new.php"><?php _e('Create a new page &raquo;'); ?></a></p>
<p id="post-search">
<label class="hidden" for="post-search-input"><?php _e( 'Search Pages' ); ?>:</label>
<input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
<input type="submit" value="<?php _e( 'Search Pages' ); ?>" class="button" />
</p>
<form name="searchform" action="" method="get">
<fieldset>
<legend><?php _e('Search Pages&hellip;') ?></legend>
<input type="text" name="s" value="<?php if (isset($_GET['s'])) echo attribute_escape($_GET['s']); ?>" size="17" />
<input type="submit" name="submit" value="<?php _e('Search') ?>" />
</fieldset>
</form>
<div class="tablenav">
<?php
wp('post_type=page&orderby=menu_order&what_to_show=posts&posts_per_page=-1&posts_per_archive_page=-1&order=asc');
$pagenum = absint( $_GET['pagenum'] );
if ( empty($pagenum) )
$pagenum = 1;
if( !$per_page || $pre_page < 0 )
$per_page = 20;
if ( $_GET['s'] )
$all = false;
else
$all = true;
$num_pages = ceil(count($posts) / $per_page);
$page_links = paginate_links( array(
'base' => add_query_arg( 'pagenum', '%#%' ),
'format' => '',
'total' => $num_pages,
'current' => $pagenum
));
if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>";
?>
<div class="alignleft">
<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary delete" />
<?php wp_nonce_field('bulk-pages'); ?>
</div>
<br class="clear" />
</div>
<br class="clear" />
<?php
$all = !( $h2_search || $post_status_q );
if ($posts) {
?>
<table class="widefat">
<table class="widefat">
<thead>
<tr>
<th scope="col" style="text-align: center"><?php _e('ID') ?></th>
<th scope="col"><?php _e('Title') ?></th>
<th scope="col"><?php _e('Owner') ?></th>
<th scope="col"><?php _e('Updated') ?></th>
<th scope="col" colspan="3" style="text-align: center"><?php _e('Action'); ?></th>
<?php $posts_columns = wp_manage_pages_columns(); ?>
<?php foreach($posts_columns as $post_column_key => $column_display_name) {
if ( 'cb' === $post_column_key )
$class = ' class="check-column"';
elseif ( 'comments' === $post_column_key )
$class = ' class="num"';
else
$class = '';
?>
<th scope="col"<?php echo $class; ?>><?php echo $column_display_name; ?></th>
<?php } ?>
</tr>
</thead>
<tbody id="the-list">
<?php
page_rows(0, 0, $posts, $all);
?>
<tbody>
<?php page_rows($posts, $pagenum, $per_page); ?>
</tbody>
</table>
</form>
<div id="ajax-response"></div>
<?php
} else {
?>
<p><?php _e('No pages yet.') ?></p>
</form>
<p><?php _e('No pages found.') ?></p>
<?php
} // end if ($posts)
?>
<h3><a href="page-new.php"><?php _e('Create New Page &raquo;'); ?></a></h3>
<div class="tablenav">
<?php
if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>";
?>
<br class="clear" />
</div>
<?php
if ( 1 == count($posts) && is_singular() ) :
$comments = $wpdb->get_results( $wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved != 'spam' ORDER BY comment_date", $id) );
if ( $comments ) :
// Make sure comments, post, and post_author are cached
update_comment_cache($comments);
$post = get_post($id);
$authordata = get_userdata($post->post_author);
?>
<br class="clear" />
<table class="widefat" style="margin-top: .5em">
<thead>
<tr>
<th scope="col"><?php _e('Comment') ?></th>
<th scope="col"><?php _e('Date') ?></th>
<th scope="col"><?php _e('Actions') ?></th>
</tr>
</thead>
<tbody id="the-comment-list" class="list:comment">
<?php
foreach ($comments as $comment)
_wp_comment_row( $comment->comment_ID, 'detail', false, false );
?>
</tbody>
</table>
<?php
endif; // comments
endif; // posts;
?>
</div>

206
wp-admin/edit-post-rows.php Normal file
View File

@@ -0,0 +1,206 @@
<?php if ( ! defined('ABSPATH') ) die(); ?>
<table class="widefat">
<thead>
<tr>
<?php $posts_columns = wp_manage_posts_columns(); ?>
<?php foreach($posts_columns as $post_column_key => $column_display_name) {
if ( 'cb' === $post_column_key )
$class = ' class="check-column"';
elseif ( 'comments' === $post_column_key )
$class = ' class="num"';
else
$class = '';
?>
<th scope="col"<?php echo $class; ?>><?php echo $column_display_name; ?></th>
<?php } ?>
</tr>
</thead>
<tbody>
<?php
if ( have_posts() ) {
$bgcolor = '';
add_filter('the_title','wp_specialchars');
// Create array of post IDs.
$post_ids = array();
foreach ( $wp_query->posts as $a_post )
$post_ids[] = $a_post->ID;
$comment_pending_count = get_pending_comments_num($post_ids);
while (have_posts()) : the_post();
$class = 'alternate' == $class ? '' : 'alternate';
global $current_user;
$post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' );
$title = get_the_title();
if ( empty($title) )
$title = __('(no title)');
?>
<tr id='post-<?php echo $id; ?>' class='<?php echo trim( $class . ' author-' . $post_owner . ' status-' . $post->post_status ); ?>' valign="top">
<?php
foreach($posts_columns as $column_name=>$column_display_name) {
switch($column_name) {
case 'cb':
?>
<th scope="row" class="check-column"><?php if ( current_user_can( 'edit_post', $post->ID ) ) { ?><input type="checkbox" name="delete[]" value="<?php the_ID(); ?>" /><?php } ?></th>
<?php
break;
case 'modified':
case 'date':
if ( '0000-00-00 00:00:00' == $post->post_date && 'date' == $column_name ) {
$t_time = $h_time = __('Unpublished');
} else {
if ( 'modified' == $column_name ) {
$t_time = get_the_modified_time(__('Y/m/d g:i:s A'));
$m_time = $post->post_modified;
$time = get_post_modified_time('G', true);
} else {
$t_time = get_the_time(__('Y/m/d g:i:s A'));
$m_time = $post->post_date;
$time = get_post_time('G', true);
}
if ( ( abs(time() - $time) ) < 86400 ) {
if ( ( 'future' == $post->post_status) )
$h_time = sprintf( __('%s from now'), human_time_diff( $time ) );
else
$h_time = sprintf( __('%s ago'), human_time_diff( $time ) );
} else {
$h_time = mysql2date(__('Y/m/d'), $m_time);
}
}
?>
<td><abbr title="<?php echo $t_time ?>"><?php echo apply_filters('post_date_column_time', $h_time, $post, $column_name) ?></abbr></td>
<?php
break;
case 'title':
?>
<td><strong><?php if ( current_user_can( 'edit_post', $post->ID ) ) { ?><a class="row-title" href="post.php?action=edit&amp;post=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $title)); ?>"><?php echo $title ?></a><?php } else { echo $title; } ?></strong>
<?php if ( !empty($post->post_password) ) { _e(' &#8212; <strong>Protected</strong>'); } elseif ('private' == $post->post_status) { _e(' &#8212; <strong>Private</strong>'); } ?></td>
<?php
break;
case 'categories':
?>
<td><?php
$categories = get_the_category();
if ( !empty( $categories ) ) {
$out = array();
foreach ( $categories as $c )
$out[] = "<a href='edit.php?category_name=$c->slug'> " . wp_specialchars(sanitize_term_field('name', $c->name, $c->term_id, 'category', 'display')) . "</a>";
echo join( ', ', $out );
} else {
_e('Uncategorized');
}
?></td>
<?php
break;
case 'tags':
?>
<td><?php
$tags = get_the_tags();
if ( !empty( $tags ) ) {
$out = array();
foreach ( $tags as $c )
$out[] = "<a href='edit.php?tag=$c->slug'> " . wp_specialchars(sanitize_term_field('name', $c->name, $c->term_id, 'post_tag', 'display')) . "</a>";
echo join( ', ', $out );
} else {
_e('No Tags');
}
?></td>
<?php
break;
case 'comments':
?>
<td class="num"><div class="post-com-count-wrapper">
<?php
$left = isset($comment_pending_count) ? $comment_pending_count[$post->ID] : 0;
$pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
if ( $left )
echo '<strong>';
comments_number("<a href='edit.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('0') . '</span></a>', "<a href='edit.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('1') . '</span></a>', "<a href='edit.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('%') . '</span></a>');
if ( $left )
echo '</strong>';
?>
</div></td>
<?php
break;
case 'author':
?>
<td><a href="edit.php?author=<?php the_author_ID(); ?>"><?php the_author() ?></a></td>
<?php
break;
case 'status':
?>
<td>
<a href="<?php the_permalink(); ?>" title="<?php echo attribute_escape(sprintf(__('View "%s"'), $title)); ?>" rel="permalink">
<?php
switch ( $post->post_status ) {
case 'publish' :
case 'private' :
_e('Published');
break;
case 'future' :
_e('Scheduled');
break;
case 'pending' :
_e('Pending Review');
break;
case 'draft' :
_e('Unpublished');
break;
}
?>
</a>
</td>
<?php
break;
case 'control_view':
?>
<td><a href="<?php the_permalink(); ?>" rel="permalink" class="view"><?php _e('View'); ?></a></td>
<?php
break;
case 'control_edit':
?>
<td><?php if ( current_user_can('edit_post',$post->ID) ) { echo "<a href='post.php?action=edit&amp;post=$id' class='edit'>" . __('Edit') . "</a>"; } ?></td>
<?php
break;
case 'control_delete':
?>
<td><?php if ( current_user_can('delete_post',$post->ID) ) { echo "<a href='" . wp_nonce_url("post.php?action=delete&amp;post=$id", 'delete-post_' . $post->ID) . "' class='delete'>" . __('Delete') . "</a>"; } ?></td>
<?php
break;
default:
?>
<td><?php do_action('manage_posts_custom_column', $column_name, $id); ?></td>
<?php
break;
}
}
?>
</tr>
<?php
endwhile;
} else {
?>
<tr style='background-color: <?php echo $bgcolor; ?>'>
<td colspan="8"><?php _e('No posts found.') ?></td>
</tr>
<?php
} // end if ( have_posts() )
?>
</tbody>
</table>

View File

@@ -0,0 +1,41 @@
<?php
if ( ! empty($tag_ID) ) {
$heading = __('Edit Tag');
$submit_text = __('Edit Tag');
$form = '<form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate">';
$action = 'editedtag';
$nonce_action = 'update-tag_' . $tag_ID;
do_action('edit_tag_form_pre', $tag);
} else {
$heading = __('Add Tag');
$submit_text = __('Add Tag');
$form = '<form name="addtag" id="addtag" method="post" action="edit-tags.php" class="add:the-list: validate">';
$action = 'addtag';
$nonce_action = 'add-tag';
do_action('add_tag_form_pre', $tag);
}
?>
<div class="wrap">
<h2><?php echo $heading ?></h2>
<div id="ajax-response"></div>
<?php echo $form ?>
<input type="hidden" name="action" value="<?php echo $action ?>" />
<input type="hidden" name="tag_ID" value="<?php echo $tag->term_id ?>" />
<?php wp_original_referer_field(true, 'previous'); wp_nonce_field($nonce_action); ?>
<table class="form-table">
<tr class="form-field form-required">
<th scope="row" valign="top"><label for="name"><?php _e('Tag name') ?></label></th>
<td><input name="name" id="name" type="text" value="<?php echo attribute_escape($tag->name); ?>" size="40" aria-required="true" />
<p><?php _e('The name is how the tag appears on your site.'); ?></p></td>
</tr>
<tr class="form-field">
<th scope="row" valign="top"><label for="slug"><?php _e('Tag slug') ?></label></th>
<td><input name="slug" id="slug" type="text" value="<?php echo attribute_escape(apply_filters('editable_slug', $tag->slug)); ?>" size="40" />
<p><?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p></td>
</tr>
</table>
<p class="submit"><input type="submit" class="button" name="submit" value="<?php echo $submit_text ?>" /></p>
<?php do_action('edit_tag_form', $tag); ?>
</form>
</div>

217
wp-admin/edit-tags.php Normal file
View File

@@ -0,0 +1,217 @@
<?php
require_once('admin.php');
$title = __('Tags');
$parent_file = 'edit.php';
wp_reset_vars(array('action', 'tag'));
if ( isset($_GET['deleteit']) && isset($_GET['delete_tags']) )
$action = 'bulk-delete';
switch($action) {
case 'addtag':
check_admin_referer('add-tag');
if ( !current_user_can('manage_categories') )
wp_die(__('Cheatin&#8217; uh?'));
$ret = wp_insert_term($_POST['name'], 'post_tag', $_POST);
if ( $ret && !is_wp_error( $ret ) ) {
wp_redirect('edit-tags.php?message=1#addtag');
} else {
wp_redirect('edit-tags.php?message=4#addtag');
}
exit;
break;
case 'delete':
$tag_ID = (int) $_GET['tag_ID'];
check_admin_referer('delete-tag_' . $tag_ID);
if ( !current_user_can('manage_categories') )
wp_die(__('Cheatin&#8217; uh?'));
wp_delete_term( $tag_ID, 'post_tag');
wp_redirect('edit-tags.php?message=2');
exit;
break;
case 'bulk-delete':
check_admin_referer('bulk-tags');
if ( !current_user_can('manage_categories') )
wp_die(__('Cheatin&#8217; uh?'));
$tags = $_GET['delete_tags'];
foreach( (array) $tags as $tag_ID ) {
wp_delete_term( $tag_ID, 'post_tag');
}
$location = 'edit-tags.php';
if ( $referer = wp_get_referer() ) {
if ( false !== strpos($referer, 'edit-tags.php') )
$location = $referer;
}
$location = add_query_arg('message', 6, $location);
wp_redirect($location);
exit;
break;
case 'edit':
require_once ('admin-header.php');
$tag_ID = (int) $_GET['tag_ID'];
$tag = get_term($tag_ID, 'post_tag', OBJECT, 'edit');
include('edit-tag-form.php');
break;
case 'editedtag':
$tag_ID = (int) $_POST['tag_ID'];
check_admin_referer('update-tag_' . $tag_ID);
if ( !current_user_can('manage_categories') )
wp_die(__('Cheatin&#8217; uh?'));
$ret = wp_update_term($tag_ID, 'post_tag', $_POST);
$location = 'edit-tags.php';
if ( $referer = wp_get_original_referer() ) {
if ( false !== strpos($referer, 'edit-tags.php') )
$location = $referer;
}
if ( $ret && !is_wp_error( $ret ) )
$location = add_query_arg('message', 3, $location);
else
$location = add_query_arg('message', 5, $location);
wp_redirect($location);
exit;
break;
default:
if ( !empty($_GET['_wp_http_referer']) ) {
wp_redirect(remove_query_arg(array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI'])));
exit;
}
wp_enqueue_script( 'admin-tags' );
wp_enqueue_script('admin-forms');
require_once ('admin-header.php');
$messages[1] = __('Tag added.');
$messages[2] = __('Tag deleted.');
$messages[3] = __('Tag updated.');
$messages[4] = __('Tag not added.');
$messages[5] = __('Tag not updated.');
$messages[6] = __('Tags deleted.');
?>
<?php if (isset($_GET['message'])) : ?>
<div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div>
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
endif; ?>
<div class="wrap">
<form id="posts-filter" action="" method="get">
<?php if ( current_user_can('manage_categories') ) : ?>
<h2><?php printf(__('Manage Tags (<a href="%s">add new</a>)'), '#addtag') ?> </h2>
<?php else : ?>
<h2><?php _e('Manage Tags') ?> </h2>
<?php endif; ?>
<p id="post-search">
<label class="hidden" for="post-search-input"><?php _e( 'Search Tags' ); ?>:</label>
<input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
<input type="submit" value="<?php _e( 'Search Tags' ); ?>" class="button" />
</p>
<br class="clear" />
<div class="tablenav">
<?php
$pagenum = absint( $_GET['pagenum'] );
if ( empty($pagenum) )
$pagenum = 1;
if( !$tagsperpage || $tagsperpage < 0 )
$tagsperpage = 20;
$page_links = paginate_links( array(
'base' => add_query_arg( 'pagenum', '%#%' ),
'format' => '',
'total' => ceil(wp_count_terms('post_tag') / $tagsperpage),
'current' => $pagenum
));
if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>";
?>
<div class="alignleft">
<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary delete" />
<?php wp_nonce_field('bulk-tags'); ?>
</div>
<br class="clear" />
</div>
<br class="clear" />
<table class="widefat">
<thead>
<tr>
<th scope="col" class="check-column"><input type="checkbox" /></th>
<th scope="col"><?php _e('Name') ?></th>
<th scope="col" class="num" style="width: 90px"><?php _e('Posts') ?></th>
</tr>
</thead>
<tbody id="the-list" class="list:tag">
<?php
$searchterms = trim( $_GET['s'] );
$count = tag_rows( $pagenum, $tagsperpage, $searchterms );
?>
</tbody>
</table>
</form>
<div class="tablenav">
<?php
if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>";
?>
<br class="clear" />
</div>
<br class="clear" />
</div>
<?php if ( current_user_can('manage_categories') ) : ?>
<br />
<?php include('edit-tag-form.php'); ?>
<?php endif; ?>
<?php
break;
}
include('admin-footer.php');
?>

View File

@@ -1,306 +1,244 @@
<?php
require_once('admin.php');
// Handle bulk deletes
if ( isset($_GET['deleteit']) && isset($_GET['delete']) ) {
check_admin_referer('bulk-posts');
foreach( (array) $_GET['delete'] as $post_id_del ) {
$post_del = & get_post($post_id_del);
if ( !current_user_can('delete_post', $post_id_del) )
wp_die( __('You are not allowed to delete this post.') );
if ( $post_del->post_type == 'attachment' ) {
if ( ! wp_delete_attachment($post_id_del) )
wp_die( __('Error in deleting...') );
} else {
if ( !wp_delete_post($post_id_del) )
wp_die( __('Error in deleting...') );
}
}
$sendback = wp_get_referer();
if (strpos($sendback, 'post.php') !== false) $sendback = admin_url('post-new.php');
elseif (strpos($sendback, 'attachments.php') !== false) $sendback = admin_url('attachments.php');
$sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback);
wp_redirect($sendback);
exit();
} elseif ( !empty($_GET['_wp_http_referer']) ) {
wp_redirect(remove_query_arg(array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI'])));
exit;
}
$title = __('Posts');
$parent_file = 'edit.php';
wp_enqueue_script( 1 == $_GET['c'] ? 'admin-comments' : 'listman' );
wp_enqueue_script('admin-forms');
list($post_stati, $avail_post_stati) = wp_edit_posts_query();
if ( 1 == count($posts) && is_singular() )
wp_enqueue_script( 'admin-comments' );
require_once('admin-header.php');
$_GET['m'] = (int) $_GET['m'];
if ( !isset( $_GET['paged'] ) )
$_GET['paged'] = 1;
$drafts = get_users_drafts( $user_ID );
$other_drafts = get_others_drafts( $user_ID);
if ($drafts || $other_drafts) {
?>
<div class="wrap">
<?php if ($drafts) { ?>
<p><strong><?php _e('Your Drafts:') ?></strong>
<?php
$i = 0;
foreach ($drafts as $draft) {
if (0 != $i)
echo ', ';
$draft->post_title = apply_filters('the_title', stripslashes($draft->post_title));
if ($draft->post_title == '')
$draft->post_title = sprintf(__('Post #%s'), $draft->ID);
echo "<a href='post.php?action=edit&amp;post=$draft->ID' title='" . __('Edit this draft') . "'>$draft->post_title</a>";
++$i;
}
?>
.</p>
<?php } ?>
<?php if ($other_drafts) { ?>
<p><strong><?php _e('Other&#8217;s Drafts:') ?></strong>
<?php
$i = 0;
foreach ($other_drafts as $draft) {
if (0 != $i)
echo ', ';
$draft->post_title = apply_filters('the_title', stripslashes($draft->post_title));
if ($draft->post_title == '')
$draft->post_title = sprintf(__('Post #%s'), $draft->ID);
echo "<a href='post.php?action=edit&amp;post=$draft->ID' title='" . __('Edit this draft') . "'>$draft->post_title</a>";
++$i;
}
?>
.</p>
<?php } ?>
</div>
<?php } ?>
<div class="wrap">
<h2>
<?php
wp('what_to_show=posts&posts_per_page=15&posts_per_archive_page=-1');
if ( is_month() ) {
single_month_title(' ');
} elseif ( is_search() ) {
printf(__('Search for &#8220;%s&#8221;'), wp_specialchars($_GET['s']) );
<form id="posts-filter" action="" method="get">
<h2><?php
if ( is_single() ) {
printf(__('Comments on %s'), apply_filters( "the_title", $post->post_title));
} else {
if ( is_single() )
printf(__('Comments on %s'), apply_filters( "the_title", $post->post_title));
elseif ( ! is_paged() || get_query_var('paged') == 1 )
_e('Last 15 Posts');
$post_status_label = _c('Manage Posts|manage posts header');
if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) )
$post_status_label = $post_stati[$_GET['post_status']][1];
if ( $post_listing_pageable && !is_archive() && !is_search() )
$h2_noun = is_paged() ? sprintf(__( 'Previous %s' ), $post_status_label) : sprintf(__('Latest %s'), $post_status_label);
else
_e('Previous Posts');
}
?>
</h2>
<form name="searchform" id="searchform" action="" method="get">
<fieldset>
<legend><?php _e('Search Posts&hellip;') ?></legend>
<input type="text" name="s" value="<?php if (isset($s)) echo attribute_escape($s); ?>" size="17" />
<input type="submit" name="submit" value="<?php _e('Search') ?>" class="button" />
</fieldset>
</form>
<?php $arc_result = $wpdb->get_results("SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb->posts WHERE post_type = 'post' ORDER BY post_date DESC");
if ( count($arc_result) ) { ?>
<form name="viewarc" id="viewarc" action="" method="get">
<fieldset>
<legend><?php _e('Browse Month&hellip;') ?></legend>
<select name='m'>
<?php
foreach ($arc_result as $arc_row) {
if ( $arc_row->yyear == 0 )
continue;
$arc_row->mmonth = zeroise($arc_row->mmonth, 2);
if( isset($_GET['m']) && $arc_row->yyear . $arc_row->mmonth == (int) $_GET['m'] )
$default = 'selected="selected"';
else
$default = null;
echo "<option $default value='$arc_row->yyear$arc_row->mmonth'>";
echo $wp_locale->get_month($arc_row->mmonth) . " $arc_row->yyear";
echo "</option>\n";
$h2_noun = $post_status_label;
// Use $_GET instead of is_ since they can override each other
$h2_author = '';
$_GET['author'] = (int) $_GET['author'];
if ( $_GET['author'] != 0 ) {
if ( $_GET['author'] == '-' . $user_ID ) { // author exclusion
$h2_author = ' ' . __('by other authors');
} else {
$author_user = get_userdata( get_query_var( 'author' ) );
$h2_author = ' ' . sprintf(__('by %s'), wp_specialchars( $author_user->display_name ));
}
?>
</select>
<input type="submit" name="submit" value="<?php _e('Show Month') ?>" class="button" />
</fieldset>
</form>
<?php } ?>
<form name="viewcat" id="viewcat" action="" method="get">
<fieldset>
<legend><?php _e('Browse Category&hellip;') ?></legend>
<?php wp_dropdown_categories('show_option_all='.__('All').'&hide_empty=1&hierarchical=1&show_count=1&selected='.$cat);?>
<input type="submit" name="submit" value="<?php _e('Show Category') ?>" class="button" />
</fieldset>
</form>
<?php do_action('restrict_manage_posts'); ?>
<br style="clear:both;" />
<?php
// define the columns to display, the syntax is 'internal name' => 'display name'
$posts_columns = array(
'id' => '<div style="text-align: center">' . __('ID') . '</div>',
'date' => __('When'),
'title' => __('Title'),
'categories' => __('Categories'),
'comments' => '<div style="text-align: center">' . __('Comments') . '</div>',
'author' => __('Author')
);
$posts_columns = apply_filters('manage_posts_columns', $posts_columns);
// you can not edit these at the moment
$posts_columns['control_view'] = '';
$posts_columns['control_edit'] = '';
$posts_columns['control_delete'] = '';
?>
<table class="widefat">
<thead>
<tr>
<?php foreach($posts_columns as $column_display_name) { ?>
<th scope="col"><?php echo $column_display_name; ?></th>
<?php } ?>
</tr>
</thead>
<tbody id="the-list">
<?php
if ($posts) {
$bgcolor = '';
while (have_posts()) : the_post();
add_filter('the_title','wp_specialchars');
$class = ('alternate' == $class) ? '' : 'alternate';
?>
<tr id='post-<?php echo $id; ?>' class='<?php echo $class; ?>'>
<?php
foreach($posts_columns as $column_name=>$column_display_name) {
switch($column_name) {
case 'id':
?>
<th scope="row" style="text-align: center"><?php echo $id ?></th>
<?php
break;
case 'date':
?>
<td><?php if ( '0000-00-00 00:00:00' ==$post->post_modified ) _e('Unpublished'); else the_time(__('Y-m-d \<\b\r \/\> g:i:s a')); ?></td>
<?php
break;
case 'title':
?>
<td><?php the_title() ?>
<?php if ('private' == $post->post_status) _e(' - <strong>Private</strong>'); ?></td>
<?php
break;
case 'categories':
?>
<td><?php the_category(','); ?></td>
<?php
break;
case 'comments':
?>
<td style="text-align: center">
<?php comments_number(__('0'), "<a href='edit.php?p=$id&amp;c=1'>" . __('1') . '</a>', "<a href='edit.php?p=$id&amp;c=1'>" . __('%') . '</a>') ?>
</td>
<?php
break;
case 'author':
?>
<td><?php the_author() ?></td>
<?php
break;
case 'control_view':
?>
<td><a href="<?php the_permalink(); ?>" rel="permalink" class="edit"><?php _e('View'); ?></a></td>
<?php
break;
case 'control_edit':
?>
<td><?php if ( current_user_can('edit_post',$post->ID) ) { echo "<a href='post.php?action=edit&amp;post=$id' class='edit'>" . __('Edit') . "</a>"; } ?></td>
<?php
break;
case 'control_delete':
?>
<td><?php if ( current_user_can('delete_post',$post->ID) ) { echo "<a href='" . wp_nonce_url("post.php?action=delete&amp;post=$id", 'delete-post_' . $post->ID) . "' class='delete' onclick=\"return deleteSomething( 'post', " . $id . ", '" . js_escape(sprintf(__("You are about to delete this post '%s'.\n'OK' to delete, 'Cancel' to stop."), get_the_title())) . "' );\">" . __('Delete') . "</a>"; } ?></td>
<?php
break;
default:
?>
<td><?php do_action('manage_posts_custom_column', $column_name, $id); ?></td>
<?php
break;
}
$h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching &#8220;%s&#8221;'), wp_specialchars( get_search_query() ) ) : '';
$h2_cat = isset($_GET['cat']) && $_GET['cat'] ? ' ' . sprintf( __('in &#8220;%s&#8221;'), single_cat_title('', false) ) : '';
$h2_tag = isset($_GET['tag']) && $_GET['tag'] ? ' ' . sprintf( __('tagged with &#8220;%s&#8221;'), single_tag_title('', false) ) : '';
$h2_month = isset($_GET['m']) && $_GET['m'] ? ' ' . sprintf( __('during %s'), single_month_title(' ', false) ) : '';
printf( _c( '%1$s%2$s%3$s%4$s%5$s%6$s|You can reorder these: 1: Posts, 2: by {s}, 3: matching {s}, 4: in {s}, 5: tagged with {s}, 6: during {s}' ), $h2_noun, $h2_author, $h2_search, $h2_cat, $h2_tag, $h2_month );
}
?></h2>
<ul class="subsubsub">
<?php
$status_links = array();
$num_posts = wp_count_posts( 'post', 'readable' );
$class = empty( $_GET['post_status'] ) ? ' class="current"' : '';
$status_links[] = "<li><a href='edit.php' $class>" . __('All Posts') . '</a>';
foreach ( $post_stati as $status => $label ) {
$class = '';
if ( !in_array( $status, $avail_post_stati ) )
continue;
if ( empty( $num_posts->$status ) )
continue;
if ( $status == $_GET['post_status'] )
$class = ' class="current"';
$status_links[] = "<li><a href='edit.php?post_status=$status' $class>" .
sprintf( __ngettext( $label[2][0], $label[2][1], $num_posts->$status ), number_format_i18n( $num_posts->$status ) ) . '</a>';
}
echo implode( ' |</li>', $status_links ) . '</li>';
unset( $status_links );
?>
</ul>
<?php if ( isset($_GET['post_status'] ) ) : ?>
<input type="hidden" name="post_status" value="<?php echo attribute_escape($_GET['post_status']) ?>" />
<?php
endif;
if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?>
<div id="message" class="updated fade"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View post'); ?></a> | <a href="post.php?action=edit&amp;post=<?php echo $_GET['posted']; ?>"><?php _e('Edit post'); ?></a></p></div>
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);
endif;
?>
<p id="post-search">
<label class="hidden" for="post-search-input"><?php _e( 'Search Posts' ); ?>:</label>
<input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Posts' ); ?>" class="button" />
</p>
<div class="tablenav">
<?php
$page_links = paginate_links( array(
'base' => add_query_arg( 'paged', '%#%' ),
'format' => '',
'total' => $wp_query->max_num_pages,
'current' => $_GET['paged']
));
if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>";
?>
<div class="alignleft">
<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary delete" />
<?php wp_nonce_field('bulk-posts'); ?>
<?php
if ( !is_singular() ) {
$arc_query = "SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb->posts WHERE post_type = 'post' ORDER BY post_date DESC";
$arc_result = $wpdb->get_results( $arc_query );
$month_count = count($arc_result);
if ( $month_count && !( 1 == $month_count && 0 == $arc_result[0]->mmonth ) ) { ?>
<select name='m'>
<option<?php selected( @$_GET['m'], 0 ); ?> value='0'><?php _e('Show all dates'); ?></option>
<?php
foreach ($arc_result as $arc_row) {
if ( $arc_row->yyear == 0 )
continue;
$arc_row->mmonth = zeroise( $arc_row->mmonth, 2 );
if ( $arc_row->yyear . $arc_row->mmonth == $_GET['m'] )
$default = ' selected="selected"';
else
$default = '';
echo "<option$default value='$arc_row->yyear$arc_row->mmonth'>";
echo $wp_locale->get_month($arc_row->mmonth) . " $arc_row->yyear";
echo "</option>\n";
}
?>
</tr>
</select>
<?php } ?>
<?php
endwhile;
} else {
$dropdown_options = array('show_option_all' => __('View all categories'), 'hide_empty' => 0, 'hierarchical' => 1,
'show_count' => 0, 'orderby' => 'name', 'selected' => $cat);
wp_dropdown_categories($dropdown_options);
do_action('restrict_manage_posts');
?>
<tr style='background-color: <?php echo $bgcolor; ?>'>
<td colspan="8"><?php _e('No posts found.') ?></td>
</tr>
<?php
} // end if ($posts)
?>
</tbody>
</table>
<input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" />
<?php } ?>
</div>
<br class="clear" />
</div>
<br class="clear" />
<?php include( 'edit-post-rows.php' ); ?>
</form>
<div id="ajax-response"></div>
<div class="navigation">
<div class="alignleft"><?php next_posts_link(__('&laquo; Previous Entries')) ?></div>
<div class="alignright"><?php previous_posts_link(__('Next Entries &raquo;')) ?></div>
<div class="tablenav">
<?php
if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>";
?>
<br class="clear" />
</div>
<?php
if ( 1 == count($posts) ) {
<br class="clear" />
$comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id AND comment_approved != 'spam' ORDER BY comment_date");
if ($comments) {
<?php
if ( 1 == count($posts) && is_singular() ) :
$comments = $wpdb->get_results( $wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved != 'spam' ORDER BY comment_date", $id) );
if ( $comments ) :
// Make sure comments, post, and post_author are cached
update_comment_cache($comments);
$post = get_post($id);
$authordata = get_userdata($post->post_author);
?>
<h3 id="comments"><?php _e('Comments') ?></h3>
<ol id="the-comment-list" class="commentlist">
<br class="clear" />
<table class="widefat" style="margin-top: .5em">
<thead>
<tr>
<th scope="col"><?php _e('Comment') ?></th>
<th scope="col"><?php _e('Date') ?></th>
<th scope="col"><?php _e('Actions') ?></th>
</tr>
</thead>
<tbody id="the-comment-list" class="list:comment">
<?php
$i = 0;
foreach ($comments as $comment) {
++$i; $class = '';
$authordata = get_userdata($wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $comment->comment_post_ID"));
$comment_status = wp_get_comment_status($comment->comment_ID);
if ('unapproved' == $comment_status)
$class .= ' unapproved';
if ($i % 2)
$class .= ' alternate';
echo "<li id='comment-$comment->comment_ID' class='$class'>";
foreach ($comments as $comment)
_wp_comment_row( $comment->comment_ID, 'detail', false, false );
?>
<p><strong><?php comment_author() ?></strong> <?php if ($comment->comment_author_email) { ?>| <?php comment_author_email_link() ?> <?php } if ($comment->comment_author_url && 'http://' != $comment->comment_author_url) { ?> | <?php comment_author_url_link() ?> <?php } ?>| <?php _e('IP:') ?> <a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a></p>
</tbody>
</table>
<?php comment_text() ?>
<p><?php comment_date(__('M j, g:i A')); ?> &#8212; [
<?php
if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
echo " <a href='comment.php?action=editcomment&amp;c=".$comment->comment_ID."'>" . __('Edit') . '</a>';
echo ' | <a href="' . wp_nonce_url('comment.php?action=deletecomment&amp;p=' . $comment->comment_post_ID . '&amp;c=' . $comment->comment_ID, 'delete-comment_' . $comment->comment_ID) . '" onclick="return deleteSomething( \'comment\', ' . $comment->comment_ID . ', \'' . js_escape(sprintf(__("You are about to delete this comment by '%s'.\n'Cancel' to stop, 'OK' to delete."), $comment->comment_author)) . "', theCommentList );\">" . __('Delete') . '</a> ';
if ( ('none' != $comment_status) && ( current_user_can('moderate_comments') ) ) {
echo '<span class="unapprove"> | <a href="' . wp_nonce_url('comment.php?action=unapprovecomment&amp;p=' . $comment->comment_post_ID . '&amp;c=' . $comment->comment_ID, 'unapprove-comment_' . $comment->comment_ID) . '" onclick="return dimSomething( \'comment\', ' . $comment->comment_ID . ', \'unapproved\', theCommentList );">' . __('Unapprove') . '</a> </span>';
echo '<span class="approve"> | <a href="' . wp_nonce_url('comment.php?action=approvecomment&amp;p=' . $comment->comment_post_ID . '&amp;c=' . $comment->comment_ID, 'approve-comment_' . $comment->comment_ID) . '" onclick="return dimSomething( \'comment\', ' . $comment->comment_ID . ', \'unapproved\', theCommentList );">' . __('Approve') . '</a> </span>';
}
echo " | <a href=\"" . wp_nonce_url("comment.php?action=deletecomment&amp;dt=spam&amp;p=" . $comment->comment_post_ID . "&amp;c=" . $comment->comment_ID, 'delete-comment_' . $comment->comment_ID) . "\" onclick=\"return deleteSomething( 'comment-as-spam', $comment->comment_ID, '" . js_escape(sprintf(__("You are about to mark as spam this comment by '%s'.\n'Cancel' to stop, 'OK' to mark as spam."), $comment->comment_author)) . "', theCommentList );\">" . __('Spam') . "</a> ";
}
?>
</p>
</li>
<?php //end of the loop, don't delete
} // end foreach
echo '</ol>';
}//end if comments
?>
<?php } ?>
endif; // comments
endif; // posts;
?>
</div>
<?php
include('admin-footer.php');
?>
<?php include('admin-footer.php'); ?>

View File

@@ -1,31 +1,33 @@
<?php
require_once ('admin.php');
require_once('includes/export.php');
$title = __('Export');
$parent_file = 'edit.php';
if ( isset( $_GET['download'] ) )
export_wp();
if ( isset( $_GET['download'] ) ) {
export_wp( $_GET['author'] );
die();
}
require_once ('admin-header.php');
?>
<div class="wrap">
<h2><?php _e('Export'); ?></h2>
<div class="narrow">
<p><?php _e('When you click the button below WordPress will create an XML file for you to save to your computer.'); ?></p>
<p><?php _e('This format, which we call WordPress eXtended RSS or WXR, will contain your posts, comments, custom fields, and categories.'); ?></p>
<p><?php _e('This format, which we call WordPress eXtended RSS or WXR, will contain your posts, pages, comments, custom fields, categories, and tags.'); ?></p>
<p><?php _e('Once you&#8217;ve saved the download file, you can use the Import function on another WordPress blog to import this blog.'); ?></p>
<form action="" method="get">
<h3><?php _e('Optional options'); ?></h3>
<h3><?php _e('Options'); ?></h3>
<table>
<table class="form-table">
<tr>
<th><?php _e('Restrict Author:'); ?></th>
<th><label for="author"><?php _e('Restrict Author'); ?></label></th>
<td>
<select name="author">
<option value="all" selected="selected"><?php _e('All'); ?></option>
<select name="author" id="author">
<option value="all" selected="selected"><?php _e('All Authors'); ?></option>
<?php
$authors = $wpdb->get_col( "SELECT post_author FROM $wpdb->posts GROUP BY post_author" );
$authors = $wpdb->get_col( "SELECT post_author FROM $wpdb->posts GROUP BY post_author" );
foreach ( $authors as $id ) {
$o = get_userdata( $id );
echo "<option value='$o->ID'>$o->display_name</option>";
@@ -35,193 +37,14 @@ foreach ( $authors as $id ) {
</td>
</tr>
</table>
<p class="submit"><input type="submit" name="submit" value="<?php _e('Download Export File'); ?> &raquo;" />
<p class="submit"><input type="submit" name="submit" value="<?php _e('Download Export File'); ?>" />
<input type="hidden" name="download" value="true" />
</p>
</form>
</div>
</div>
<?php
function export_wp() {
global $wpdb, $posts, $post;
$filename = 'wordpress.' . date('Y-m-d') . '.xml';
header('Content-Description: File Transfer');
header("Content-Disposition: attachment; filename=$filename");
header('Content-type: text/xml; charset=' . get_option('blog_charset'), true);
$where = '';
if ( isset( $_GET['author'] ) && $_GET['author'] != 'all' ) {
$author_id = (int) $_GET['author'];
$where = " WHERE post_author = '$author_id' ";
}
$posts = $wpdb->get_results("SELECT * FROM $wpdb->posts $where ORDER BY post_date_gmt ASC");
$categories = (array) $wpdb->get_results("SELECT cat_ID, cat_name, category_nicename, category_description, category_parent, posts_private, links_private FROM $wpdb->categories LEFT JOIN $wpdb->post2cat ON (category_id = cat_id) LEFT JOIN $wpdb->posts ON (post_id <=> id) $where GROUP BY cat_id");
function wxr_missing_parents($categories) {
if ( !is_array($categories) || empty($categories) )
return array();
foreach ( $categories as $category )
$parents[$category->cat_ID] = $category->category_parent;
$parents = array_unique(array_diff($parents, array_keys($parents)));
if ( $zero = array_search('0', $parents) )
unset($parents[$zero]);
return $parents;
}
while ( $parents = wxr_missing_parents($categories) ) {
$found_parents = $wpdb->get_results("SELECT cat_ID, cat_name, category_nicename, category_description, category_parent, posts_private, links_private FROM $wpdb->categories WHERE cat_ID IN (" . join(', ', $parents) . ")");
if ( is_array($found_parents) && count($found_parents) )
$categories = array_merge($categories, $found_parents);
else
break;
}
// Put them in order to be inserted with no child going before its parent
$pass = 0;
$passes = 1000 + count($categories);
while ( ( $cat = array_shift($categories) ) && ++$pass < $passes ) {
if ( $cat->category_parent == 0 || isset($cats[$cat->category_parent]) ) {
$cats[$cat->cat_ID] = $cat;
} else {
$categories[] = $cat;
}
}
unset($categories);
function wxr_cdata($str) {
if ( seems_utf8($str) == false )
$str = utf8_encode($str);
// $str = ent2ncr(wp_specialchars($str));
$str = "<![CDATA[$str" . ( ( substr($str, -1) == ']' ) ? ' ' : '') . "]]>";
return $str;
}
function wxr_cat_name($c) {
if ( empty($c->cat_name) )
return;
echo '<wp:cat_name>' . wxr_cdata($c->cat_name) . '</wp:cat_name>';
}
function wxr_category_description($c) {
if ( empty($c->category_description) )
return;
echo '<wp:category_description>' . wxr_cdata($c->category_description) . '</wp:category_description>';
}
print '<?xml version="1.0" encoding="' . get_bloginfo('charset') . '"?' . ">\n";
?>
<!--
This is a WordPress eXtended RSS file generated by WordPress as an export of
your blog. It contains information about your blog's posts, comments, and
categories. You may use this file to transfer that content from one site to
another. This file is not intended to serve as a complete backup of your
blog.
To import this information into a WordPress blog follow these steps:
1. Log into that blog as an administrator.
2. Go to Manage > Import in the blog's admin.
3. Choose "WordPress" from the list of importers.
4. Upload this file using the form provided on that page.
5. You will first be asked to map the authors in this export file to users
on the blog. For each author, you may choose to map an existing user on
the blog or to create a new user.
6. WordPress will then import each of the posts, comments, and categories
contained in this file onto your blog.
-->
<!-- generator="wordpress/<?php bloginfo_rss('version') ?>" created="<?php echo date('Y-m-d H:m'); ?>"-->
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:wp="http://wordpress.org/export/1.0/"
>
<channel>
<title><?php bloginfo_rss('name'); ?></title>
<link><?php bloginfo_rss('url') ?></link>
<description><?php bloginfo_rss("description") ?></description>
<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></pubDate>
<generator>http://wordpress.org/?v=<?php bloginfo_rss('version'); ?></generator>
<language><?php echo get_option('rss_language'); ?></language>
<?php if ( $cats ) : foreach ( $cats as $c ) : ?>
<wp:category><wp:category_nicename><?php echo $c->category_nicename; ?></wp:category_nicename><wp:category_parent><?php echo $c->category_parent ? $cats[$c->category_parent]->cat_name : ''; ?></wp:category_parent><wp:posts_private><?php echo $c->posts_private ? '1' : '0'; ?></wp:posts_private><wp:links_private><?php echo $c->links_private ? '1' : '0'; ?></wp:links_private><?php wxr_cat_name($c); ?><?php wxr_category_description($c); ?></wp:category>
<?php endforeach; endif; ?>
<?php do_action('rss2_head'); ?>
<?php if ($posts) { foreach ($posts as $post) { start_wp(); ?>
<item>
<title><?php the_title_rss() ?></title>
<link><?php permalink_single_rss() ?></link>
<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate>
<dc:creator><?php the_author() ?></dc:creator>
<?php the_category_rss() ?>
<guid isPermaLink="false"><?php the_guid(); ?></guid>
<description></description>
<content:encoded><![CDATA[<?php echo $post->post_content ?>]]></content:encoded>
<wp:post_id><?php echo $post->ID; ?></wp:post_id>
<wp:post_date><?php echo $post->post_date; ?></wp:post_date>
<wp:post_date_gmt><?php echo $post->post_date_gmt; ?></wp:post_date_gmt>
<wp:comment_status><?php echo $post->comment_status; ?></wp:comment_status>
<wp:ping_status><?php echo $post->ping_status; ?></wp:ping_status>
<wp:post_name><?php echo $post->post_name; ?></wp:post_name>
<wp:status><?php echo $post->post_status; ?></wp:status>
<wp:post_parent><?php echo $post->post_parent; ?></wp:post_parent>
<wp:menu_order><?php echo $post->menu_order; ?></wp:menu_order>
<wp:post_type><?php echo $post->post_type; ?></wp:post_type>
<?php
$postmeta = $wpdb->get_results("SELECT * FROM $wpdb->postmeta WHERE post_id = $post->ID");
if ( $postmeta ) {
?>
<?php foreach( $postmeta as $meta ) { ?>
<wp:postmeta>
<wp:meta_key><?php echo $meta->meta_key; ?></wp:meta_key>
<wp:meta_value><?Php echo $meta->meta_value; ?></wp:meta_value>
</wp:postmeta>
<?php } ?>
<?php } ?>
<?php
$comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $post->ID");
if ( $comments ) { foreach ( $comments as $c ) { ?>
<wp:comment>
<wp:comment_id><?php echo $c->comment_ID; ?></wp:comment_id>
<wp:comment_author><?php echo $c->comment_author; ?></wp:comment_author>
<wp:comment_author_email><?php echo $c->comment_author_email; ?></wp:comment_author_email>
<wp:comment_author_url><?php echo $c->comment_author_url; ?></wp:comment_author_url>
<wp:comment_author_IP><?php echo $c->comment_author_IP; ?></wp:comment_author_IP>
<wp:comment_date><?php echo $c->comment_date; ?></wp:comment_date>
<wp:comment_date_gmt><?php echo $c->comment_date_gmt; ?></wp:comment_date_gmt>
<wp:comment_content><?php echo $c->comment_content; ?></wp:comment_content>
<wp:comment_approved><?php echo $c->comment_approved; ?></wp:comment_approved>
<wp:comment_type><?php echo $c->comment_type; ?></wp:comment_type>
<wp:comment_parent><?php echo $c->comment_parent; ?></wp:comment_parent>
</wp:comment>
<?php } } ?>
</item>
<?php } } ?>
</channel>
</rss>
<?php
die();
}
include ('admin-footer.php');
?>

207
wp-admin/gears-manifest.php Normal file
View File

@@ -0,0 +1,207 @@
<?php
define( 'ABSPATH', dirname(dirname(__FILE__)) );
define( 'WPINC', '/wp-includes' );
function __() {}
function add_filter() {}
function attribute_escape() {}
function apply_filters() {}
function get_option() {}
function is_lighttpd_before_150() {}
function add_action() {}
function do_action_ref_array() {}
function get_bloginfo() {}
function is_admin() {return true;}
function site_url() {}
function admin_url() {}
function wp_guess_url() {}
require(ABSPATH . '/wp-includes/script-loader.php');
require(ABSPATH . '/wp-includes/version.php');
$wp_scripts = new WP_Scripts();
wp_default_scripts($wp_scripts);
$wp_styles = new WP_Styles();
wp_default_styles($wp_styles);
$defaults = $man_version = '';
foreach ( $wp_scripts->registered as $script ) {
if ( empty($script->src) || strpos($script->src, 'tiny_mce_config.php') ) continue;
$ver = empty($script->ver) ? $wp_version : $script->ver;
$src = str_replace( array( '/wp-admin/', '/wp-includes/' ), array( '', '../wp-includes/' ), $script->src );
$defaults .= '{ "url" : "' . $src . '?ver=' . $ver . '" },' . "\n";
$man_version .= $ver;
}
foreach ( $wp_styles->registered as $style ) {
if ( empty($style->src) ) continue;
$ver = empty($style->ver) ? $wp_version : $style->ver;
$src = str_replace( array( '/wp-admin/', '/wp-includes/' ), array( '', '../wp-includes/' ), $style->src );
if ( 'colors' == $style->handle ) $src = 'css/colors-classic.css';
$defaults .= '{ "url" : "' . $src . '?ver=' . $ver . '" },' . "\n";
if ( isset($style->extra['rtl']) && $style->extra['rtl'] ) {
if ( is_bool( $style->extra['rtl'] ) )
$rtl_href = str_replace( '.css', '-rtl.css', $src );
else
$rtl_href = str_replace( array( '/wp-admin/', '/wp-includes/' ), array( '', '../wp-includes/' ), $style->extra['rtl'] );
$defaults .= '{ "url" : "' . $rtl_href . '?ver=' . $ver . '" },' . "\n";
}
$man_version .= $ver;
}
$man_version = md5($man_version);
header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' );
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
header( 'Cache-Control: no-cache, must-revalidate, max-age=0' );
header( 'Pragma: no-cache' );
header( 'Content-Type: application/x-javascript; charset=UTF-8' );
?>
{
"betaManifestVersion" : 1,
"version" : "<?php echo $man_version; ?>_20080710a",
"entries" : [
<?php echo $defaults; ?>
{ "url" : "images/align-center.png" },
{ "url" : "images/align-left.png" },
{ "url" : "images/align-none.png" },
{ "url" : "images/align-right.png" },
{ "url" : "images/browse-happy.gif" },
{ "url" : "images/bubble_bg.gif" },
{ "url" : "images/comment-grey-bubble.png" },
{ "url" : "images/comment-pill.gif" },
{ "url" : "images/comment-stalk-classic.gif" },
{ "url" : "images/comment-stalk-fresh.gif" },
{ "url" : "images/comment-stalk-rtl.gif" },
{ "url" : "images/date-button.gif" },
{ "url" : "images/fade-butt.png" },
{ "url" : "images/gear.png" },
{ "url" : "images/logo-ghost.png" },
{ "url" : "images/logo-login.gif" },
{ "url" : "images/logo.gif" },
{ "url" : "images/media-button-gallery.gif" },
{ "url" : "images/media-button-image.gif" },
{ "url" : "images/media-button-music.gif" },
{ "url" : "images/media-button-other.gif" },
{ "url" : "images/media-button-video.gif" },
{ "url" : "images/media-buttons.gif" },
{ "url" : "images/tab.png" },
{ "url" : "images/tail.gif" },
{ "url" : "images/toggle-arrow-rtl.gif" },
{ "url" : "images/toggle-arrow.gif" },
{ "url" : "images/wordpress-logo.png" },
{ "url" : "images/xit.gif" },
{ "url" : "images/loading-publish.gif" },
{ "url" : "images/loading.gif" },
{ "url" : "images/required.gif" },
{ "url" : "images/no.png" },
{ "url" : "images/yes.png" },
{ "url" : "../wp-includes/images/crystal/archive.png" },
{ "url" : "../wp-includes/images/crystal/audio.png" },
{ "url" : "../wp-includes/images/crystal/code.png" },
{ "url" : "../wp-includes/images/crystal/default.png" },
{ "url" : "../wp-includes/images/crystal/document.png" },
{ "url" : "../wp-includes/images/crystal/interactive.png" },
{ "url" : "../wp-includes/images/crystal/text.png" },
{ "url" : "../wp-includes/images/crystal/video.png" },
{ "url" : "../wp-includes/images/crystal/spreadsheet.png" },
{ "url" : "../wp-includes/images/rss.png" },
{ "url" : "../wp-includes/js/thickbox/loadingAnimation.gif" },
{ "url" : "../wp-includes/js/thickbox/tb-close.png" },
{ "url" : "../wp-includes/js/swfupload/swfupload_f9.swf" },
{ "url" : "../wp-includes/js/tinymce/tiny_mce_popup.js?ver=311" },
{ "url" : "../wp-includes/js/tinymce/utils/mctabs.js?ver=311" },
{ "url" : "../wp-includes/js/tinymce/utils/validate.js?ver=311" },
{ "url" : "../wp-includes/js/tinymce/utils/form_utils.js?ver=311" },
{ "url" : "../wp-includes/js/tinymce/utils/editable_selects.js?ver=311" },
{ "url" : "../wp-includes/js/tinymce/plugins/paste/js/pasteword.js?ver=311" },
{ "url" : "../wp-includes/js/tinymce/plugins/paste/js/pastetext.js?ver=311" },
{ "url" : "../wp-includes/js/tinymce/plugins/media/js/media.js?ver=311" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/js/color_picker.js?ver=311" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/js/charmap.js?ver=311" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/js/image.js?ver=311" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/js/link.js?ver=311" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/js/source_editor.js?ver=311" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/js/anchor.js?ver=311" },
{ "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js?ver=311d" },
{ "url" : "../wp-includes/js/tinymce/tiny_mce.js?ver=311" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/editor_template.js?ver=311" },
{ "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/editor_plugin.js?ver=311" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/source_editor.htm?ver=311" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/anchor.htm?ver=311" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/image.htm?ver=311" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/link.htm?ver=311" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/color_picker.htm?ver=311" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/charmap.htm?ver=311" },
{ "url" : "../wp-includes/js/tinymce/plugins/media/media.htm?ver=311" },
{ "url" : "../wp-includes/js/tinymce/plugins/paste/pasteword.htm?ver=311" },
{ "url" : "../wp-includes/js/tinymce/plugins/paste/blank.htm?ver=311" },
{ "url" : "../wp-includes/js/tinymce/plugins/paste/pastetext.htm?ver=311" },
{ "url" : "../wp-includes/js/tinymce/plugins/fullscreen/fullscreen.htm?ver=311" },
{ "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/template.htm?ver=311" },
{ "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/editimage.html?ver=311d" },
{ "url" : "../wp-includes/js/tinymce/wp-mce-help.php?ver=311" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/ui.css?ver=311" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css?ver=311" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/dialog.css?ver=311" },
{ "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css?ver=311" },
{ "url" : "../wp-includes/js/tinymce/plugins/spellchecker/css/content.css?ver=311" },
{ "url" : "../wp-includes/js/tinymce/plugins/wordpress/css/content.css?ver=311" },
{ "url" : "../wp-includes/js/tinymce/plugins/media/css/content.css?ver=311" },
{ "url" : "../wp-includes/js/tinymce/plugins/media/css/media.css?ver=311" },
{ "url" : "../wp-includes/js/tinymce/plugins/paste/css/pasteword.css?ver=311" },
{ "url" : "../wp-includes/js/tinymce/plugins/paste/css/blank.css?ver=311" },
{ "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage.css?ver=311d" },
{ "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage-rtl.css?ver=311" },
{ "url" : "../wp-includes/js/tinymce/wordpress.css?ver=311" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/img/icons.gif" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/img/colorpicker.jpg" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/img/fm.gif" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/img/gotmoxie.png" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/img/sflogo.png" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/butt2.png" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/fade-butt.png" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/tabs.gif" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/down_arrow.gif" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/skins/default/img/progress.gif" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/skins/default/img/menu_check.gif" },
{ "url" : "../wp-includes/js/tinymce/themes/advanced/skins/default/img/menu_arrow.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/drag.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/media/img/flash.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/media/img/flv_player.swf" },
{ "url" : "../wp-includes/js/tinymce/plugins/media/img/quicktime.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/media/img/realmedia.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/media/img/shockwave.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/media/img/windowsmedia.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/media/img/trans.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/more.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/more_bug.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/page.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/page_bug.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/toolbars.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/img/image.png" },
{ "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/img/delete.png" },
{ "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/help.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/image.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/media.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/video.gif" },
{ "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/audio.gif" }
]}

Binary file not shown.

After

Width:  |  Height:  |  Size: 571 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 587 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 556 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 151 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 169 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 960 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 347 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 334 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 879 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 395 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 B

BIN
wp-admin/images/gear.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
wp-admin/images/loading.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 704 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 880 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
wp-admin/images/logo.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 723 B

BIN
wp-admin/images/no.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 792 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 156 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 B

BIN
wp-admin/images/tab.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1006 B

Some files were not shown because too many files have changed in this diff Show More