Commit Graph

14776 Commits

Author SHA1 Message Date
nacin 83fbd4e36b Memory usage and execution improvements in wpdb. Store and work with resources directly, rather than full copies of results. Plugins which incorrectly used wpdb->last_result (a private property) will need to shift to wpdb->get_results() with no \$query. Magic getter is introduced for back compat when using PHP5. props joelhardi, fixes #12257.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-12 10:15:18 +00:00
nacin 96835b99d0 Use term cache in get_post_format() to save a boatload of queries. see #15396.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16319 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-12 09:49:34 +00:00
nacin b80fc23177 jQuery 1.4.4. props demetris, fixes #15201, #15227.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16318 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-12 07:13:11 +00:00
nacin 1478fb89f1 Typo fix. see #14424.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16317 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-12 07:04:34 +00:00
markjaquith 82ea187e58 Always add in the current post format, in case the theme was switched to one that does not support it. props anderswc. fixes #15393. see #14746
git-svn-id: http://svn.automattic.com/wordpress/trunk@16316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-12 04:21:17 +00:00
markjaquith 75d045de8e Add checks for WP_Error. props ptahdunbar. see #14746
git-svn-id: http://svn.automattic.com/wordpress/trunk@16315 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-12 04:10:56 +00:00
markjaquith 6d78cf73f9 Switch to radio boxes for Post Format picking. Saves a click. Maybe we should do this with Post Status as well. see #14746
git-svn-id: http://svn.automattic.com/wordpress/trunk@16314 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-12 04:05:33 +00:00
nacin 5f4a583fb1 Remove more create_function calls. props huichen, see #14424.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16313 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 22:50:36 +00:00
nacin 771de1c49e Kill a create_function by introducing is_plugin_inactive. see #14424.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16312 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 22:21:04 +00:00
nacin 7ec4e83dc5 Remove old header/footer link active state. props dremeda, fixes #14487.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 22:17:11 +00:00
ryan a071a3a1df Admin bar fixes. Props ocean90. see #14772
git-svn-id: http://svn.automattic.com/wordpress/trunk@16310 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 20:02:52 +00:00
ryan 5cef2ca0a6 Register admin menus against admin_bar_menu action to be consistent with other menu hooks. see #14772
git-svn-id: http://svn.automattic.com/wordpress/trunk@16309 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 19:11:12 +00:00
ryan e0aaecc573 Make the My Sites menu items use admin_url() instead of hardcoding the url. Props caesarsgrunt. see #14772
git-svn-id: http://svn.automattic.com/wordpress/trunk@16308 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 18:48:38 +00:00
ryan 7440948514 phpdoc fixes. Props hakre. fixes #12526
git-svn-id: http://svn.automattic.com/wordpress/trunk@16307 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 17:02:14 +00:00
ryan f721d88eda Whitespace cleanup. Props sorich87. see #14147
git-svn-id: http://svn.automattic.com/wordpress/trunk@16306 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 16:57:22 +00:00
ryan 6304a38db7 Farbtastic 1.3u. Props flashingcursor. fixes #14707
git-svn-id: http://svn.automattic.com/wordpress/trunk@16305 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 16:34:22 +00:00
nacin d974a35fb0 Don't notify the author when they posted or moderated the comment. fixes #12774.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 16:28:49 +00:00
ryan 3a4671f530 Prevent stomping of global. Props prettyboymp. fixes #13945
git-svn-id: http://svn.automattic.com/wordpress/trunk@16303 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 16:22:18 +00:00
ryan c10218f665 Admin bar tweaks. Props filosofo. see #15308
git-svn-id: http://svn.automattic.com/wordpress/trunk@16302 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 16:19:25 +00:00
ryan 113d5e7529 Admin bar tweaks. Props filosofo. see #15308
git-svn-id: http://svn.automattic.com/wordpress/trunk@16301 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 16:19:14 +00:00
ryan 6ea5924298 Faster is_serialized(). Props duck_, hakre, Denis-de-Bernardy. see #14429
git-svn-id: http://svn.automattic.com/wordpress/trunk@16300 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 16:10:16 +00:00
ryan 0a1fa29fe2 Return false if upload_space_check_disabled is true in upload_is_user_over_quota(). Props SergeyBiryukov. fixes #14121
git-svn-id: http://svn.automattic.com/wordpress/trunk@16299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 16:03:51 +00:00
ryan 0d489ee102 Add screen options to site-themes. Props PeteMall. see #14897
git-svn-id: http://svn.automattic.com/wordpress/trunk@16298 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 15:16:16 +00:00
ryan 6559aa57a5 Fix logic. Props nacin. see #15357
git-svn-id: http://svn.automattic.com/wordpress/trunk@16297 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 14:34:51 +00:00
ryan a4a82b6f45 Marksup fixes. see #15357
git-svn-id: http://svn.automattic.com/wordpress/trunk@16296 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 14:32:02 +00:00
ryan c6f528dd0e Better styling for add user form fields. see #15357
git-svn-id: http://svn.automattic.com/wordpress/trunk@16295 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 14:31:16 +00:00
ryan 59f55bea72 user-new.php revamp. Separate caps for adding users vs. creating users. Allow supes to add via email or username. Split adding existing users and creating new users into separate forms. see #15357
git-svn-id: http://svn.automattic.com/wordpress/trunk@16294 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 14:29:15 +00:00
westi 3e1e19a477 Chop this off as we don't need it anymore. Fixes #13960 props filosofo.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16293 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 14:10:59 +00:00
nacin 1c03323cba blog_admin_notices for non-network-non-user, admin_notices for all. see #14696.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16292 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 12:32:22 +00:00
westi 9acf6d451e Don't show duff links if someone decides that they want the admin bar for all users - even those who are logged out.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16291 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 11:49:37 +00:00
scribu 1f74ef6b02 Make 'registered' column sort by user id. See #14579
git-svn-id: http://svn.automattic.com/wordpress/trunk@16290 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 11:47:10 +00:00
scribu 456b6cf6ed Make 'registered' column sort by site id. See #14579
git-svn-id: http://svn.automattic.com/wordpress/trunk@16289 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 11:45:32 +00:00
westi 0027abcb1a Strip back the stats in the memory based object cache to something less verbose and useless.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16288 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 10:55:06 +00:00
westi 58c936f7df Link the shortlink button to the shortlink. Props caesarsgrunt see #14772.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16287 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 10:24:56 +00:00
scribu 8885e4f78e Add context to get_meta_sql(). See #15018
git-svn-id: http://svn.automattic.com/wordpress/trunk@16286 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 10:06:05 +00:00
westi cab19ed4aa Wrap the reset link in <> so as to protect it when it goes over multiple lines in an email client. Fixes #14140 props demetris.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16285 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-10 23:38:15 +00:00
westi ae213c99ca Generate Human Readable passwords as they are much more userfriendly. Fixes #13324 props Otto42.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16284 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-10 23:31:54 +00:00
westi 9e30ccd803 Add support for ID style classes in get_body_class(). Fixes #12397 props filosofo
git-svn-id: http://svn.automattic.com/wordpress/trunk@16283 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-10 22:07:07 +00:00
westi 583ac68a44 Move the l10n helper function into a seperate js file so we can always output it first.
Fixes #15124.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16282 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-10 21:53:30 +00:00
westi 4215d8be2c Blankity Blank. Fixes #15380 props arena.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16281 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-10 20:54:56 +00:00
westi 71fab5576a Improved RegEx for quote matching in wptexturize. Fixes #4539 and #15241 props norbertm.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16280 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-10 19:23:57 +00:00
westi 2d09607167 Don't capture the pesky trailing punctuation. Fixes #14993 props filosofo
git-svn-id: http://svn.automattic.com/wordpress/trunk@16279 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-10 17:47:46 +00:00
nacin 4a4505c7db Use direct post_title instead of get_the_title() in get_inline_data(). reverts [13079] but adds trim() to solve original bug. fixes #14323, props filosofo.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16278 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-10 17:08:05 +00:00
nacin 3b2c4501d1 Super Admin filter for network/users.php. fixes #15371.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16277 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-10 17:05:20 +00:00
nacin 8b6cb32160 Ensure we have a valid post type object when checking for has_archive. props filosofo, fixes #15364.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16276 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-10 16:42:59 +00:00
ryan d26a1aa4ef Pass post ID to get_enclosed filter. Props willnorris. fixes #14018
git-svn-id: http://svn.automattic.com/wordpress/trunk@16275 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-10 16:40:49 +00:00
ryan 6764a0c3fa Admin bar hover fixes. Props filosofo. see #15307
git-svn-id: http://svn.automattic.com/wordpress/trunk@16274 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-10 16:19:55 +00:00
nacin 795ab6d0f3 Cripple capability_type. Produced inconsistent, janky meta cap mapping; now only acts as a capability base. see #14122.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16273 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-10 14:50:14 +00:00
nacin f269b75d7b Network admin multisite checks and docs. see #14435.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16272 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-10 14:27:15 +00:00
nacin a1c4c4789f Network Wide Settings -> Language Settings and kill the notice, which is implicit enough with the word 'Default.' see #14435.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16271 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-10 14:01:39 +00:00