Commit Graph

17067 Commits

Author SHA1 Message Date
Andrew Ozz cfc8bd3d53 Hide post title field in DFW if title is not supported by the current post type or missing, fixes $18568
git-svn-id: https://develop.svn.wordpress.org/trunk@18828 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 22:59:49 +00:00
Ryan Boren 4e081d3171 phpdoc typo and readability fixes. Props SergeyBiryukov. fixes #18560
git-svn-id: https://develop.svn.wordpress.org/trunk@18827 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 22:57:43 +00:00
Jon Cave 9f6d53a66f Introduce wp_allowed_protocols() for use in wp_kses() and esc_url(). See #18268.
This allows plugins to filter the list of protocols used for esc_url() too, and helps us keep the list of protocols in sync.


git-svn-id: https://develop.svn.wordpress.org/trunk@18826 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 22:33:51 +00:00
Jon Cave 55609b863e Automatically set 'compare' => 'IN' in WP_Meta_Query::get_sql() when the meta value is an array. Props ldebrouwer, SergeyBiryukov. Fixes #16829.
git-svn-id: https://develop.svn.wordpress.org/trunk@18825 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 22:10:56 +00:00
Mark Jaquith 76251c5287 Allow the text parameter in wp_trim_excerpt() to be omitted altogether, instead of requiring a blank string. props SergeyBiryukov. fixes #17492
git-svn-id: https://develop.svn.wordpress.org/trunk@18824 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 21:48:03 +00:00
Andrew Ozz b969d2ea80 Clean up remnants from having negative Post_IDs, props markjaquith, fixes #18235
git-svn-id: https://develop.svn.wordpress.org/trunk@18823 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 21:47:52 +00:00
Ryan Boren 25df5fe335 Disallow indexing wp-admin and wp-includes in robots.txt. Props SergeyBiryukov. fixes #18465
git-svn-id: https://develop.svn.wordpress.org/trunk@18822 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 21:47:04 +00:00
Ryan Boren 8e77c91883 * Move the old sidebars_widgets array upgrade code to wp-admin/includes/upgrade.php
* Avoid infinite loop with wp_get_sidebars_widgets()
* Remove two unneeded wp_get_sidebars_widgets() calls
* Remove unused $wp_registered_sidebars variable from wp_get_sidebars_widgets().
* Combine  a couple of !empty( $sidebars_widgets ) checks in retrieve_widgets()
Props SergeyBiryukov, lancewillett. fixes #17979 #18598


git-svn-id: https://develop.svn.wordpress.org/trunk@18821 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 21:41:22 +00:00
Andrew Nacin 0cd9b83b64 Cache internal linking nonce jQuery object. props mitchoyoshitaka. Update this nonce through autosave. fixes #18403.
git-svn-id: https://develop.svn.wordpress.org/trunk@18820 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 21:39:55 +00:00
Andrew Nacin eb00fdb5cb Don't split names across multiple lines on the credits page. props zeo, fixes #17940.
git-svn-id: https://develop.svn.wordpress.org/trunk@18819 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 21:28:29 +00:00
Andrew Nacin 106a94406e Add filter for the args into wp_dropdown_pages() in the page attributes box. Give the list_pages filter the context of the post object. fixes #8592 for 3.3.
git-svn-id: https://develop.svn.wordpress.org/trunk@18818 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 21:21:15 +00:00
Andrew Nacin 4aee3254f3 Kill the tables in install.php. props andrewryno. see #16413.
git-svn-id: https://develop.svn.wordpress.org/trunk@18817 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 19:57:36 +00:00
Andrew Nacin 32ba775ad7 Pass unslashed values from update_metadata() to add_metadata(). fixes #17343.
git-svn-id: https://develop.svn.wordpress.org/trunk@18816 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 19:37:58 +00:00
Andrew Nacin d9b37f77c8 Make the sort-by-object-property functions generic. see #14424.
git-svn-id: https://develop.svn.wordpress.org/trunk@18815 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 17:20:34 +00:00
Ryan Boren 9ad9ff1282 Use _wp_tag_cloud_count_sort_cb instead of an anonymous function. Props ocean90. see #14424
git-svn-id: https://develop.svn.wordpress.org/trunk@18814 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 17:09:04 +00:00
Andrew Ozz 03375fa844 Recursively convert html entities in script localization strings, see #11520
git-svn-id: https://develop.svn.wordpress.org/trunk@18813 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 06:43:46 +00:00
Andrew Nacin bb89b80c5b Remove remnants of show_admin_bar_admin. see #18811, see #18197.
git-svn-id: https://develop.svn.wordpress.org/trunk@18812 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 06:12:51 +00:00
Andrew Nacin a854604f54 Stop remembering the last viewed plugins screen. Always show all plugins when returning to plugins.php. fixes #18810.
git-svn-id: https://develop.svn.wordpress.org/trunk@18811 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 05:54:05 +00:00
Andrew Nacin 2c6d998b91 Revert [18804] until we have a proper solution. see #11520.
git-svn-id: https://develop.svn.wordpress.org/trunk@18810 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 05:50:44 +00:00
Andrew Nacin cd0ad3ead4 Revert [18783], as it breaks term relationship counts for attachment taxonomies. see #17548.
git-svn-id: https://develop.svn.wordpress.org/trunk@18809 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 05:29:20 +00:00
Andrew Nacin 8585471f13 Space out and capitalize 'Auto' in screen options.
git-svn-id: https://develop.svn.wordpress.org/trunk@18808 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 05:28:00 +00:00
Mark Jaquith 2aa3f3c353 Add note about why double-serialization is done. props SergeyBiryukov. fixes #16597
git-svn-id: https://develop.svn.wordpress.org/trunk@18807 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 02:23:26 +00:00
Dion Hulse 6069fe3c61 Document the Magic numbering in WP_Http_Encoding::compatible_gzinflate(). Fixes #18273
git-svn-id: https://develop.svn.wordpress.org/trunk@18806 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 02:10:35 +00:00
Dion Hulse 36f2e9a22f Pass $args and $url to the http_api_debug action to improve debugging. Props johnbillion. Fixes #18732
git-svn-id: https://develop.svn.wordpress.org/trunk@18805 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 01:42:09 +00:00
Andrew Ozz 440ea79d5e Convert html entities in script localization strings, see #11520
git-svn-id: https://develop.svn.wordpress.org/trunk@18804 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 00:34:24 +00:00
Andrew Ozz c9c3eb7a6d Use WP_Editor when editing or replying to comments, props ocean90, remove vendor specific selectors from editor-buttons.css, fixes #18348, see #17144
git-svn-id: https://develop.svn.wordpress.org/trunk@18803 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-28 21:07:08 +00:00
Andrew Ozz bbd210992d Add filter so the users can select custom image sizes added by themes and plugins, props alexkingorg, fixes #18520
git-svn-id: https://develop.svn.wordpress.org/trunk@18802 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-28 17:27:48 +00:00
Andrew Ozz 412422f15c Remove max-width from list tables. Better to limit the width on individual fields or areas where readability is impacted, see #18198
git-svn-id: https://develop.svn.wordpress.org/trunk@18801 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-28 16:05:59 +00:00
Andrew Ozz 15381afe70 Fix UL, OL in Twenty Ten editor-style.css, see #18314
git-svn-id: https://develop.svn.wordpress.org/trunk@18800 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-28 15:16:30 +00:00
Andrew Ozz 13c72ba193 Fix enqueueing of the right scripts when more than one instance of the editor, fix inserting images in full screen mode, see #17144
git-svn-id: https://develop.svn.wordpress.org/trunk@18799 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-28 07:26:34 +00:00
Andrew Ozz 2a7b8b4764 Add error message when loading the preview image in the image editor fails, fixes #18723
git-svn-id: https://develop.svn.wordpress.org/trunk@18798 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-28 06:08:56 +00:00
Daryl Koopersmith 91c746f586 Add dashboard help tabs, revise help tab layout and code. see #18690.
git-svn-id: https://develop.svn.wordpress.org/trunk@18797 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-28 00:57:56 +00:00
Andrew Nacin 35edc4264d Release a user's post lock when the user leaves a post. see #18515.
git-svn-id: https://develop.svn.wordpress.org/trunk@18796 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-27 20:52:07 +00:00
Andrew Nacin ad6e08124f Correct the src for jquery-ui-datepicker. props danielbachhuber, fixes #18793. see #17952.
git-svn-id: https://develop.svn.wordpress.org/trunk@18795 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-27 19:50:15 +00:00
Ryan Boren d7d3a5c41b Revert fat fingers in [18793]. see #18690
git-svn-id: https://develop.svn.wordpress.org/trunk@18794 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-27 14:33:51 +00:00
Ryan Boren fddfc14c88 First pass of WP_Screen phpdoc. see #18690
git-svn-id: https://develop.svn.wordpress.org/trunk@18793 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-27 14:30:56 +00:00
Jon Cave 070aa4e1f1 _wp_menu_output() speed up and clean up. Props dragoonis. Fixes #13662.
Attempt file_exists() last and cache an array index lookup for speed up. Whitespace and appropriate parentheses for readability.


git-svn-id: https://develop.svn.wordpress.org/trunk@18792 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-27 10:22:58 +00:00
Andrew Nacin 8439f8cd5c Ensure we have a full blog object in get_active_blog_for_user(). fixes #18789.
git-svn-id: https://develop.svn.wordpress.org/trunk@18791 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-27 07:36:36 +00:00
Andrew Nacin 4b03f4253b wp_set_post_lock() only takes one argument. see #18515.
git-svn-id: https://develop.svn.wordpress.org/trunk@18790 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-27 06:11:30 +00:00
Andrew Nacin e0889f848c Fix docs for get_meta_sql(). First arg cannot be optional. props duck_, fixes #18717.
git-svn-id: https://develop.svn.wordpress.org/trunk@18789 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-27 05:13:07 +00:00
Andrew Nacin 319264bd0d Cleanup in wp_admin_bar_new_content_menu. current() instead of array_shift(), remove unused index 1 from the arrays, remove ?post_type=post from the Post link. see #18197.
git-svn-id: https://develop.svn.wordpress.org/trunk@18788 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-27 04:04:10 +00:00
Daryl Koopersmith 5abb139f0d Add secondary section to 'Add New' admin bar menu. see #18197.
git-svn-id: https://develop.svn.wordpress.org/trunk@18787 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-27 03:53:43 +00:00
Daryl Koopersmith a00a36ad5a Prevent multiple-word admin bar items from overflowing in Firefox. props chrisbliss18, helenyhou. see #18197.
git-svn-id: https://develop.svn.wordpress.org/trunk@18786 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-27 03:16:05 +00:00
Andrew Nacin 425560c739 Pass instance and id_base to widget_tirle filter in WP_Widget_Recent_Comments. props scribu, fixes #18393.
git-svn-id: https://develop.svn.wordpress.org/trunk@18785 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-27 02:38:31 +00:00
Andrew Nacin 30f64015c2 Make WP_Screen final until we know which direction we want to go with it. Other keyword decorations. see #18785.
git-svn-id: https://develop.svn.wordpress.org/trunk@18784 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-26 23:31:54 +00:00
Ryan Boren f63662aa82 Count only published posts when updating term counts. Fire term count updates on transition_post_status. Props joehoyle. fixes #17548
git-svn-id: https://develop.svn.wordpress.org/trunk@18783 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-26 22:24:46 +00:00
Andrew Nacin 44724de2e8 Move WP_Screen and friends (15 functions) into admin/includes/screen.php. see #18690.
git-svn-id: https://develop.svn.wordpress.org/trunk@18782 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-26 21:32:10 +00:00
Andrew Nacin 601a70fe8e And fix this variable. props ocean90.
git-svn-id: https://develop.svn.wordpress.org/trunk@18781 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-26 21:15:57 +00:00
Andrew Nacin d5dee542e5 Use correct variable. see #18690.
git-svn-id: https://develop.svn.wordpress.org/trunk@18780 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-26 21:11:46 +00:00
Daryl Koopersmith 0b3d90ee53 Introduce help tabs and WP_Screen. props mbijon, goldenapples, natebedortha, ryan. see #18690.
git-svn-id: https://develop.svn.wordpress.org/trunk@18779 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-26 21:03:38 +00:00