Commit Graph

8593 Commits

Author SHA1 Message Date
Peter Westwood a8f99a3d72 Remove the accidental commit of the cache avoiding test code in [18677] props vnsavage
git-svn-id: https://develop.svn.wordpress.org/trunk@18679 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-15 10:43:22 +00:00
Peter Westwood 321e31c58b A little bit of whitespace keeps the code readable.
git-svn-id: https://develop.svn.wordpress.org/trunk@18678 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-15 10:09:45 +00:00
Peter Westwood 3aac6e630b Set a consistent cache key when using the_widget to display the Recent Posts and Recent Comments widgets so that they get cached. See #16761.
git-svn-id: https://develop.svn.wordpress.org/trunk@18677 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-15 10:08:43 +00:00
Peter Westwood 2d6257665d Fix Notices in default Widgets when called using the_widget(). Fixes #16761 props mfields and SergeyBiryukov
git-svn-id: https://develop.svn.wordpress.org/trunk@18676 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-15 09:41:17 +00:00
Andrew Ozz d20435eb03 Improve handling of plupload init and add a filter, stop including cookies in the init (not needed with plupload), see #18206
git-svn-id: https://develop.svn.wordpress.org/trunk@18674 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-15 05:30:58 +00:00
Andrew Ozz aea659a859 Responsive themes screen, props helenyhou, see #18198
git-svn-id: https://develop.svn.wordpress.org/trunk@18673 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-15 04:26:26 +00:00
Andrew Ozz 22f08b499f Limit max width of .widefat list tables, props helenyhou, see #18198
git-svn-id: https://develop.svn.wordpress.org/trunk@18670 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-14 21:08:44 +00:00
Andrew Ozz a638573362 Responsive tag and category pages, props saracannon, see #18189
git-svn-id: https://develop.svn.wordpress.org/trunk@18669 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-14 21:03:13 +00:00
Andrew Ozz 9e23297d6a Revert [18664] and handle any similar cases separately, props SergeyBiryukov, fixes #16810, fixes #18656
git-svn-id: https://develop.svn.wordpress.org/trunk@18668 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-14 20:23:33 +00:00
Andrew Ozz 13c777eb39 Auto-column switching for the dashboard (js based), see #18198
git-svn-id: https://develop.svn.wordpress.org/trunk@18667 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-14 07:02:46 +00:00
Andrew Ozz 59f69e6ea3 Make DFW content width match exactly the reported width from the theme, props helenyhou, fixes #18138
git-svn-id: https://develop.svn.wordpress.org/trunk@18666 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-13 20:03:28 +00:00
Andrew Nacin 486670f072 Use get_template_part() in get_header(), get_sidebar(), get_footer(). props scribu, see #18331.
git-svn-id: https://develop.svn.wordpress.org/trunk@18665 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-13 16:17:14 +00:00
Andrew Ozz bcb073c403 Make hide-if-no-js and hide-if-js important, props solarissmoke, fixes #16810
git-svn-id: https://develop.svn.wordpress.org/trunk@18664 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-13 02:52:02 +00:00
Andrew Nacin 598184f98c Allow get_blog_option(null,...) to hit the cache for the current blog. New return values for add_blog_option, update_blog_option, delete_blog_option. Don't set the cache in those functions if add/update/delete_option failed. see #17883.
git-svn-id: https://develop.svn.wordpress.org/trunk@18662 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-11 18:53:09 +00:00
Andrew Nacin fb58d06f1c Rename 'Post Tags' to 'Tags'. props scribu, fixes #17683.
git-svn-id: https://develop.svn.wordpress.org/trunk@18661 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-11 17:52:46 +00:00
Andrew Ozz 5c2de1a6fc TinyMCE 3.4.5, fixes #18107
git-svn-id: https://develop.svn.wordpress.org/trunk@18660 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-09 20:08:40 +00:00
Ryan Boren 332d6d1351 Improve cron locking. Avoid multiple cron processes looping over the same events. fixes #17462
git-svn-id: https://develop.svn.wordpress.org/trunk@18659 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-09 19:59:44 +00:00
Andrew Nacin d893b9568c Add phpdoc for default arg for get_option(). props amereservant, solarissmoke, fixes #17819.
git-svn-id: https://develop.svn.wordpress.org/trunk@18658 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-09 17:53:41 +00:00
Andrew Nacin 4d2f247e41 Update blog last_updated time only on publish_post. Both private_to_published and publish_phone are overly broad and otherwise redundant. props mdawaffe, fixes #18624.
git-svn-id: https://develop.svn.wordpress.org/trunk@18657 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-09 17:49:30 +00:00
Andrew Ozz 647031a087 Rename the newly added action 'after_theme_change' to 'after_switch_theme' so it matches the 'switch_theme' action, props scribu, see #17979
git-svn-id: https://develop.svn.wordpress.org/trunk@18656 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-08 20:59:41 +00:00
Andrew Ozz 7b2c49d219 Make check_theme_switched() run an action so this enhancement is available to plugins and themes too, see #17979
git-svn-id: https://develop.svn.wordpress.org/trunk@18655 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-08 20:07:15 +00:00
Andrew Ozz 808ea899ad Use theme mods instead of transients for storing the previous theme's widgets config, props aaroncampbell, see #17979
git-svn-id: https://develop.svn.wordpress.org/trunk@18654 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-08 19:25:20 +00:00
Ryan Boren 048c04c07c Update cache.php phpdoc. Props SergeyBiryukov. fixes #18607
git-svn-id: https://develop.svn.wordpress.org/trunk@18653 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-08 17:19:09 +00:00
Ryan Boren 9651a4b5b0 Don't send page slugs through prepare() to avoid breaking octets in i18n page slugs. Props SergeyBiryukov. see #10249 #166687
git-svn-id: https://develop.svn.wordpress.org/trunk@18652 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-08 17:17:17 +00:00
Jon Cave e65cce15f2 Only add the post format body classes when the post type supports post formats. props ocean90. fixes #18228.
git-svn-id: https://develop.svn.wordpress.org/trunk@18651 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-07 20:10:42 +00:00
Jon Cave 3dbb79d859 Don't hide the comment reply or quick edit row if an error is returned. Props ocean90. Fixes #18350.
git-svn-id: https://develop.svn.wordpress.org/trunk@18650 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-07 19:48:25 +00:00
Andrew Nacin e9a78f4ad7 Add a filter to is_multi_author(). props Viper007Bond, fixes #18600.
git-svn-id: https://develop.svn.wordpress.org/trunk@18649 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-07 13:53:53 +00:00
Andrew Nacin c37a788332 s/robot/robots/. props madjax, fixes #18612.
git-svn-id: https://develop.svn.wordpress.org/trunk@18647 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-07 13:45:06 +00:00
Ryan Boren 750065c50b Standardize variable names. Consistently use and . fixes #18607
git-svn-id: https://develop.svn.wordpress.org/trunk@18644 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-06 21:13:11 +00:00
Andrew Nacin a0cd13553b trailingslashit isn't normally available in ms-files. props davecpage, fixes #18592.
git-svn-id: https://develop.svn.wordpress.org/trunk@18642 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-06 15:41:57 +00:00
Jon Cave 82c0f09c09 Fix typos in documentation (wp-includes/[i-z]). See #18560.
git-svn-id: https://develop.svn.wordpress.org/trunk@18639 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-05 19:08:15 +00:00
Andrew Nacin 6fa5b1ed74 Force a trailing slash on BLOGUPLOADDIR in ms-files.php. props wonderboymusic, see #18592.
git-svn-id: https://develop.svn.wordpress.org/trunk@18638 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-05 16:55:05 +00:00
Andrew Nacin 78b5130751 Use untrailingslashit in url_shorten() and recurse_dirsize(). Remove unnecessary camelCase variables. see #18592.
git-svn-id: https://develop.svn.wordpress.org/trunk@18637 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-05 16:53:19 +00:00
Andrew Ozz b744e5937e Remove unneeded .siblings() from widgets.js, props aaroncampbell, fixes #18582
git-svn-id: https://develop.svn.wordpress.org/trunk@18634 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-03 21:19:36 +00:00
Jon Cave 205aa5ba5c Fix typos in documentation (wp-includes/[a-h]). See #18560.
git-svn-id: https://develop.svn.wordpress.org/trunk@18633 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-03 16:02:41 +00:00
Andrew Ozz bcd9d1a36e Moves orphaned sidebars to main content area above Inactive Widgets, props aaroncampbell, see #17979
git-svn-id: https://develop.svn.wordpress.org/trunk@18631 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-03 03:01:11 +00:00
Andrew Ozz 4782c3dc6f Avoid losing widgets when switching themes - take one, props aaroncampbell, see #17979
git-svn-id: https://develop.svn.wordpress.org/trunk@18630 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-02 22:13:55 +00:00
Andrew Nacin 46773a16ea s/hask/hack/. props scribu, see #16695.
git-svn-id: https://develop.svn.wordpress.org/trunk@18629 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-02 21:25:42 +00:00
Andrew Ozz 1205b09cf6 More quicktags back-compat, see #16695
git-svn-id: https://develop.svn.wordpress.org/trunk@18628 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-02 20:40:47 +00:00
Mark Jaquith 8094c89b39 Cast to array in get_page_by_path() foreach
git-svn-id: https://develop.svn.wordpress.org/trunk@18627 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-31 06:46:16 +00:00
Andrew Ozz e4fdcbd347 Toggle class 'responsive' on div.wrap when auto columns is toggled, see #18198
git-svn-id: https://develop.svn.wordpress.org/trunk@18625 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-30 23:18:18 +00:00
Andrew Ozz ca2ccb3baa Disable js moving of dashboard postboxes, add all of them in the first column on 'auto', see #18198
git-svn-id: https://develop.svn.wordpress.org/trunk@18624 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-30 22:29:37 +00:00
Andrew Ozz fb2a6c0f6d Fix typo in quicktags.js, props westi, see #16695
git-svn-id: https://develop.svn.wordpress.org/trunk@18623 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-30 17:50:12 +00:00
Daryl Koopersmith 43d6595503 Switch admin menus to flyouts from dropdowns. First pass, see #18382.
git-svn-id: https://develop.svn.wordpress.org/trunk@18621 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-30 01:12:26 +00:00
Andrew Ozz 8e64c7199c Fix silverlight uploading when not resizing files on the fly, props kurtpayne, see #18206
git-svn-id: https://develop.svn.wordpress.org/trunk@18620 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-29 23:59:22 +00:00
Andrew Ozz ea03cd66fd Fix styling and quicktags error in press this, see #16695
git-svn-id: https://develop.svn.wordpress.org/trunk@18619 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-28 20:48:05 +00:00
Dion Hulse 06338d1653 Store Plugin/Theme uploads in the Media Library properly. Add Scheduled cleanup +2hrs to clean up any aborted installation attempts. See #18182
git-svn-id: https://develop.svn.wordpress.org/trunk@18617 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-28 08:42:07 +00:00
Dion Hulse c370cd58f1 Display 'Edit Media' instead of 'Edit Post' for Attachments/Media in the admin bar. Props johnbillion. Fixes #18529
git-svn-id: https://develop.svn.wordpress.org/trunk@18613 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-28 03:39:06 +00:00
Andrew Ozz 2419657db5 Properly reset vars, see #16695
git-svn-id: https://develop.svn.wordpress.org/trunk@18612 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-27 16:30:36 +00:00
Andrew Ozz ec6fc2ea80 Improve quicktags back-compat, add method instance.getButtonElement(id), see #16695
git-svn-id: https://develop.svn.wordpress.org/trunk@18611 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-26 23:30:01 +00:00
Andrew Ozz 83275816df Fix action 'wp_print_footer_scropts' (on the front-end), see #11520
git-svn-id: https://develop.svn.wordpress.org/trunk@18610 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-26 20:31:30 +00:00
Andrew Ozz 61c8958e4b Fix TimyMCE init when launching DFW and respect wpautop setting there, see #17144
git-svn-id: https://develop.svn.wordpress.org/trunk@18609 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-26 19:33:14 +00:00
Andrew Ozz 77892dfba6 Improve auto column switching for post.php, see #18198
git-svn-id: https://develop.svn.wordpress.org/trunk@18607 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-25 22:55:39 +00:00
Ryan Boren 965dcf7bf9 Properly handle nested arrays in wp_list_filter(). Props scribu, SergeyBiryukov. fixes #16137
git-svn-id: https://develop.svn.wordpress.org/trunk@18606 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-25 19:50:29 +00:00
Ryan Boren aee898a1e7 Remove unused global. Props ocean90. fixes #18484
git-svn-id: https://develop.svn.wordpress.org/trunk@18605 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-25 19:35:22 +00:00
Ryan Boren 83a1dfb6b5 Don't set the site_name cache on every call to get_current_site_name(). Props mark-k, solarissmoke. fixes #16676
git-svn-id: https://develop.svn.wordpress.org/trunk@18604 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-25 19:29:47 +00:00
Ryan Boren ad3b0cacc4 Support fields = slugs in wp_get_object_terms(). Props lancewillett, SergeyBiryukov. fixes #15835
git-svn-id: https://develop.svn.wordpress.org/trunk@18603 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-25 18:49:46 +00:00
Ryan Boren 2b4d72c471 wp_list_pluck() performance improvement. Props Otto42. fixes #18230
git-svn-id: https://develop.svn.wordpress.org/trunk@18602 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-25 18:22:17 +00:00
Ryan Boren 51f1d1adf0 Use update_blog_details() in wpmu_update_blogs_date(). Props jakub.tyrcha. fixes #18122
git-svn-id: https://develop.svn.wordpress.org/trunk@18601 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-25 18:01:49 +00:00
Ryan Boren 9e2aa32657 Handle null user ID in the WP_User constructor. Props kawauso. fixes #17894
git-svn-id: https://develop.svn.wordpress.org/trunk@18598 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-24 19:47:35 +00:00
Ryan Boren 1d3e616495 Introduce metadata_exists(), WP_User::get_data_by(), WP_User::get(), WP_User::has_prop(). Don't fill user objects with meta. Eliminate data duplication in cache and memory. Props scribu. see #15458
git-svn-id: https://develop.svn.wordpress.org/trunk@18597 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-24 19:32:59 +00:00
Peter Westwood edec48d754 Whitespace and code layout tidyup.
git-svn-id: https://develop.svn.wordpress.org/trunk@18593 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-24 10:59:06 +00:00
Peter Westwood 087b273a40 Parse shortcodes in text widgets by default. Fixes #10457 props tmoorewp, sillybean, jamescollins.
git-svn-id: https://develop.svn.wordpress.org/trunk@18592 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-24 10:54:48 +00:00
Peter Westwood 89a6ae387e Optimise get_term to not query for term_id = 0. Also improve the prepared query to use %d for the term_id.
Fixes #18076 props mdawaffe.

git-svn-id: https://develop.svn.wordpress.org/trunk@18591 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-24 10:39:52 +00:00
Jon Cave 4c849e806f Allow update_site_option to add false-y values. Fixes #15497
git-svn-id: https://develop.svn.wordpress.org/trunk@18589 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-23 21:12:14 +00:00
Jon Cave f66d6581a7 Use get_site_option in add/update_site_option for caching and filtering benefits. fixes #18478
git-svn-id: https://develop.svn.wordpress.org/trunk@18588 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-23 20:45:48 +00:00
Jon Cave bfdc119315 add_site_option should not update existing options, should return a boolean and should only run actions on success. fixes #18422
git-svn-id: https://develop.svn.wordpress.org/trunk@18587 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-23 20:24:35 +00:00
Andrew Nacin a73c0ef107 Add 'q' tag to nestable tags list in force_balance_tags(). props solarissmoke, fixes #6870.
git-svn-id: https://develop.svn.wordpress.org/trunk@18585 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-23 15:37:38 +00:00
Andrew Nacin 4b3374e66d Check for comment existence before checking edit_comment meta cap. props xknown, fixes #18104.
git-svn-id: https://develop.svn.wordpress.org/trunk@18584 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-23 10:22:34 +00:00
Andrew Ozz 2ae505d0c6 Auto column switching (post.php only for now), see #18198
git-svn-id: https://develop.svn.wordpress.org/trunk@18581 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-22 19:41:11 +00:00
Ryan Boren ee123a28d5 Introduce wp_cache_incr() and wp_cache_decr(). fixes #18494
git-svn-id: https://develop.svn.wordpress.org/trunk@18580 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-22 17:39:44 +00:00
Andrew Ozz 41c6f84cd9 Merge colors*.css with colors*-rtl.css, props ryanimel, see #18314
git-svn-id: https://develop.svn.wordpress.org/trunk@18579 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-22 16:44:02 +00:00
Andrew Ozz 4e6957a730 Merged install.css with install-rtl.css (it is used only when installing so it makes sense to be a separate stylesheet), merged farbtastic.css with farbtastic-rtl.css, see #18314
git-svn-id: https://develop.svn.wordpress.org/trunk@18578 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-21 15:38:14 +00:00
Andrew Ozz dde77fd41b Merge most admin css files, first run, see #18314
git-svn-id: https://develop.svn.wordpress.org/trunk@18577 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-21 03:46:43 +00:00
Andrew Ozz 3f921df606 Fix QTags.closeAllTags(), replace 'tb' with 'ed' in quicktags,js to make it clear it is the editor instance not the toolbar, small comments quick edit fixes, see #16695, fixes #15911
git-svn-id: https://develop.svn.wordpress.org/trunk@18576 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-20 19:55:51 +00:00
Andrew Ozz 4bff812918 Fix the "close tags" button in quicktags, props SergeyBiryukov, see #16695
git-svn-id: https://develop.svn.wordpress.org/trunk@18575 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-19 21:23:31 +00:00
Dion Hulse 8fc9270239 Clarify %d is an integer in wpdb documentation. See #18407
git-svn-id: https://develop.svn.wordpress.org/trunk@18573 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-19 15:01:35 +00:00
Dion Hulse 54b87b6531 Load all Parent theme stylesheets before Child theme stylesheets in the TinyMCE Editor. props SergeyBiryukov. Fixes #18457
git-svn-id: https://develop.svn.wordpress.org/trunk@18572 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-19 14:56:34 +00:00
Dion Hulse 67704f12f2 Only include extra TinyMCE stylesheets once. props SergeyBiryukov. Fixes #18456
git-svn-id: https://develop.svn.wordpress.org/trunk@18571 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-19 14:47:45 +00:00
Andrew Ozz 9734668734 Fix Press This editors, see #17144
git-svn-id: https://develop.svn.wordpress.org/trunk@18570 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-19 01:14:56 +00:00
Andrew Nacin 1881a56cb5 Remove old $base/BASE MU check. props mdawaffe, fixes #18479.
git-svn-id: https://develop.svn.wordpress.org/trunk@18568 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-18 22:27:30 +00:00
Jon Cave ce57212c90 add_option() should always return a boolean, see #18422
git-svn-id: https://develop.svn.wordpress.org/trunk@18567 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-18 18:17:37 +00:00
Jon Cave f960996aa4 Fix rewrite documentation typo and clarify with "rules array" over "this/the structure". props SergeyBiryukov. see #16687
git-svn-id: https://develop.svn.wordpress.org/trunk@18566 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-18 17:57:22 +00:00
Andrew Nacin 5464b1abc2 Some more class instantiations. props eko-fr, fixes #18049.
git-svn-id: https://develop.svn.wordpress.org/trunk@18563 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-18 06:16:57 +00:00
Andrew Nacin d92c1440ed Call _doing_it_wrong() individually in wp_scripts and wp_styles functions. Partially reverts [18556], [18557], removes wp_styles_init(), wp_scripts_init(). fixes #11526.
git-svn-id: https://develop.svn.wordpress.org/trunk@18561 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-17 21:02:43 +00:00
Andrew Nacin 87ec764c57 Instantiate some MS variables as objects before using them. Spaces not tabs for vertical alignment. Remove unnecessary conditional piece. props PeteMall, see #18049.
git-svn-id: https://develop.svn.wordpress.org/trunk@18560 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-17 17:49:57 +00:00
Peter Westwood 1b3b0e211c Fix html for back link in _default_wp_die_handler. Fixes #18459 props tenpura.
git-svn-id: https://develop.svn.wordpress.org/trunk@18559 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-17 10:54:48 +00:00
Dion Hulse 395a623c52 Harden up is_user_logged_in() against empty $current_user instances to prevent PHP Notices on XML-RPC requests. Fixes #18458
git-svn-id: https://develop.svn.wordpress.org/trunk@18558 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-17 08:51:36 +00:00
Andrew Ozz e139b9e2a0 Don't call debug_backtrace() in wp_scripts_init() and wp_styles_init(), props dd32, see #11526
git-svn-id: https://develop.svn.wordpress.org/trunk@18557 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-17 06:26:41 +00:00
Andrew Ozz 05515996a7 Add _doing_it_wrong() when a plugin or theme accesses $wp_scripts or $wp_styles too early (also fixes localization), props SergeyBiryukov, fixes #11526
git-svn-id: https://develop.svn.wordpress.org/trunk@18556 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-17 05:48:13 +00:00
Andrew Ozz f68214a20a Fix (temporarily?) the spacing between the uploader buttons on the dashboard, props SergeyBiryukov and andrewryno, see #17144
git-svn-id: https://develop.svn.wordpress.org/trunk@18553 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-16 04:54:51 +00:00
Jon Cave 2498d24c9b Replace regex in path_is_absolute() with simpler equality checks. props coffee2code. fixes #17754
git-svn-id: https://develop.svn.wordpress.org/trunk@18551 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-16 00:21:56 +00:00
Andrew Nacin 7a67f00494 Break HTML comment up into two lines to prevent phpxref from choking on the rest of functions.php. props trepmal, fixes #18409.
git-svn-id: https://develop.svn.wordpress.org/trunk@18548 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-15 04:51:41 +00:00
Peter Westwood 0c6d0349f4 Add a general filter to wp_unique_post_slug to allow for full customisation of the uniqueness functionality. Fixes #14111.
git-svn-id: https://develop.svn.wordpress.org/trunk@18546 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-13 21:00:24 +00:00
Andrew Nacin bde0e2ff31 Force display_errors to off when WP_DEBUG_DISPLAY == false. Technically a backwards incompatible change - if you want the passthrough to php.ini (which false used to provide) then use WP_DEBUG_DISPLAY === null. see #18391.
git-svn-id: https://develop.svn.wordpress.org/trunk@18545 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-13 18:59:05 +00:00
Andrew Nacin 242f97f7db Pedantic whitespace in validate_file().
git-svn-id: https://develop.svn.wordpress.org/trunk@18543 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-13 06:10:02 +00:00
Mark Jaquith 4d13f33024 bump the db
git-svn-id: https://develop.svn.wordpress.org/trunk@18542 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-12 02:03:29 +00:00
Mark Jaquith 48d294e7ea Eliminate verbose rewrite rules for ambiguous rewrite structures, resulting in massive performance gains. props andy, otto42, duck_. Nice work everyone! see #16687
git-svn-id: https://develop.svn.wordpress.org/trunk@18541 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-12 01:55:08 +00:00
Andrew Nacin c8412b5037 Remove the old root feed files. Bump the db version so rewrite rules can regenerate. Don't add these files to old_files to leave them on existing installs. fixes #18384.
git-svn-id: https://develop.svn.wordpress.org/trunk@18540 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-12 01:41:23 +00:00
Mark Jaquith 0cfde3f19e Whitespace oops
git-svn-id: https://develop.svn.wordpress.org/trunk@18539 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-11 23:57:33 +00:00