Commit Graph

20472 Commits

Author SHA1 Message Date
Andrew Ozz 5ad7fe8cd6 Main editor: maintain the height when switching Visual to Text and back, save the height when resizing as user state, output the height in the textarea tag when loading, (thanks @nacin for the help), fixes #21718
git-svn-id: https://develop.svn.wordpress.org/trunk@22007 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 03:30:21 +00:00
Andrew Nacin ff88489bdc Remove the 'Size of the post box' (default_post_edit_rows) option. This will instead be handled by a user cookie tracking the resizing of both TinyMCE and the main textarea. see #21718.
git-svn-id: https://develop.svn.wordpress.org/trunk@22006 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 03:17:28 +00:00
Andrew Nacin bc47e0cb3a Add a comment to get_shortcode_regex() mentioning its near clones elsewhere. see #21996.
git-svn-id: https://develop.svn.wordpress.org/trunk@22005 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 01:16:31 +00:00
Daryl Koopersmith c133581a81 Add JavaScript methods for handling shortcodes.
Adds `wp.shortcode`, a set of methods used for parsing shortcodes out of content. Also adds a default set of shortcode properties to `wp.mce.view`.

fixes #21996, see #21812, #21813, #21815.


git-svn-id: https://develop.svn.wordpress.org/trunk@22004 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 01:00:08 +00:00
Andrew Nacin ac3acca992 Add soundcloud and slideshare to the oEmbed providers list. props bradparbs, ericwahlforss, wonderboymusic. fixes #15734, #21635.
git-svn-id: https://develop.svn.wordpress.org/trunk@22003 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-25 23:42:53 +00:00
Lance Willett ca87da4ae7 Twenty Twelve: update comment blocks at top of each page template with a better explanation of use and purpose.
git-svn-id: https://develop.svn.wordpress.org/trunk@22002 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-25 19:58:33 +00:00
Ryan Boren 6e4505e857 Call send_origin_headers() from admin-ajax.php. Props nacin. fixes #21024
git-svn-id: https://develop.svn.wordpress.org/trunk@22001 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-25 15:55:32 +00:00
Andrew Nacin 9d9eb25e2a Add a login_body_class filter to login_header(). fixes #21133.
git-svn-id: https://develop.svn.wordpress.org/trunk@22000 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-25 09:13:06 +00:00
Andrew Nacin ab2f77ebd0 Move WP_Embed into its own file. props ocean90. fixes #20533.
git-svn-id: https://develop.svn.wordpress.org/trunk@21999 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-25 08:39:26 +00:00
Andrew Nacin 84ca011876 Always attempt to embed URLs in content, removing the Auto-embeds (autoembed_urls) option.
Remove the UI for setting the default width and height for embeds. Width was confusing as it
was blank by default (inheriting the content width from the theme, or 500px). The height is
now calculated as 1.5x the content width, or 1000px, whichever is smaller.

The [embed] shortcode can still receive manual height and width attributes. This just removes
the global settings.

props wonderboymusic. see #21719.



git-svn-id: https://develop.svn.wordpress.org/trunk@21998 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-25 07:10:09 +00:00
Andrew Nacin 14592e8dd1 Do not use time constants in files the WP bootstrap is not or may not be loaded. see #20987.
git-svn-id: https://develop.svn.wordpress.org/trunk@21997 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-25 07:05:48 +00:00
Andrew Nacin 774a12be83 Introduce constants to allow for easier expression of time periods in seconds. Adds MINUTE_IN_SECONDS, HOUR_IN_SECONDS, DAY_IN_SECONDS, WEEK_IN_SECONDS, YEAR_IN_SECONDS. props nbachiyski, SergeyBiryukov. fixes #20987.
git-svn-id: https://develop.svn.wordpress.org/trunk@21996 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-25 05:26:19 +00:00
Andrew Nacin 853793ab16 Add get() and set() methods to WP_User_Query for modifying query variables the way you might with WP_Query. props wonderboymusic. fixes #21426.
git-svn-id: https://develop.svn.wordpress.org/trunk@21995 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-25 05:01:59 +00:00
Andrew Nacin 2cb8c9eade @since for some internal functions. props SergeyBiryukov, fixes #21886.
git-svn-id: https://develop.svn.wordpress.org/trunk@21994 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-25 02:24:58 +00:00
Andrew Nacin 248b586911 Move sanitization for the multisite illegal_names, limited_email_domains, and banned_email_domains options to sanitize_option(). props wonderboymusic. fixes #21552.
git-svn-id: https://develop.svn.wordpress.org/trunk@21993 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-25 01:54:12 +00:00
Lance Willett 63c7766bad Twenty Twelve: include a more verbose comment to educate themers on how to create specific template files for archive views, like tag.php and author.php. See #21951.
git-svn-id: https://develop.svn.wordpress.org/trunk@21992 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 23:49:45 +00:00
Lance Willett 42120e0a5f Twenty Twelve: make submenu a bit wider to support longer words in menu item link text. Matches Twenty Ten and Eleven. See #21964.
git-svn-id: https://develop.svn.wordpress.org/trunk@21991 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 23:46:04 +00:00
Lance Willett 5ad3354243 Twenty Twelve: style basic HTML elements in text widgets, props DrewAPicture. Fixes #21932.
git-svn-id: https://develop.svn.wordpress.org/trunk@21990 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 23:17:52 +00:00
bumpbot cb220ab2ba Compress scripts/styles: 3.5-alpha-21989.
git-svn-id: https://develop.svn.wordpress.org/trunk@21989 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 22:58:42 +00:00
Ryan Boren a0edbbedb7 Handle pre-flighted OPTIONS requests in send_origin_headers(). Props nacin. fixes #21024
git-svn-id: https://develop.svn.wordpress.org/trunk@21988 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 21:39:04 +00:00
Andrew Nacin 5ef3197ae0 Avoid wrapping for individual .subsubsub view names, rather than the entire list of views, in case there are many. props deltafactory, fixes #21985.
git-svn-id: https://develop.svn.wordpress.org/trunk@21987 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 21:30:17 +00:00
Andrew Nacin 8d742284b8 Use get_bloginfo('version', 'display') for displaying the WP version number in the admin. Can allow for filtering -- for example, showing the SVN revision. props SergeyBiryukov, see #18629.
git-svn-id: https://develop.svn.wordpress.org/trunk@21986 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 21:27:28 +00:00
Andrew Nacin 4f8de0690c Add restrict_manage_comments hook. props hardy101. fixes #21344.
git-svn-id: https://develop.svn.wordpress.org/trunk@21985 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 21:23:43 +00:00
Andrew Nacin c048b4a3d4 Auto feeds for post type archives. props mgdl, wonderboymusic. fixes #21648.
git-svn-id: https://develop.svn.wordpress.org/trunk@21984 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 21:21:29 +00:00
Andrew Ozz 72633ef2fb Fix bottom margin in postboxes, props SergeyBiryukov, fixes #21952
git-svn-id: https://develop.svn.wordpress.org/trunk@21983 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 21:11:45 +00:00
Ryan Boren 93eb987e6c The edit-tags screen ID does not contain the post_type. Fallback to post_type in the REQUEST. Fixes AJAX term addtions from edit-tags.php. fixes #21871
git-svn-id: https://develop.svn.wordpress.org/trunk@21982 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 20:39:53 +00:00
Ryan Boren d9b4325db3 Fetch full terms for the post_category and tags_input queries and then wp_list_pluck() the desired fields. Fetching full terms primes the cache and reduces overall queries. Add cache invalidation to wp_set_post_terms(). Props scribu. see #21309
git-svn-id: https://develop.svn.wordpress.org/trunk@21981 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 20:35:56 +00:00
Andrew Ozz 7dc9b7a554 Add menu-vs-2x.png and 2x media-button.png, pngcrush all in wp-admin/images, props empireoflight, see #21019
git-svn-id: https://develop.svn.wordpress.org/trunk@21980 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 19:44:42 +00:00
Ryan Boren 411e1819b6 * Invalidate the get_id_from_blogname_* cache in refresh_blog_details()
* Change $name to $slug in get_id_from_blogname() for some semblance of clarity.
* Strip leading and trailing slashes from the slug in get_id_from_blogname() so get_blog_details()->path can be passed directly.

Props wonderboymusic
see #20950


git-svn-id: https://develop.svn.wordpress.org/trunk@21979 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 19:31:37 +00:00
Andrew Nacin 9ce4af9bd4 Close label. props lancewillett, fixes #21064.
git-svn-id: https://develop.svn.wordpress.org/trunk@21978 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 19:16:53 +00:00
Lance Willett 0efa983343 Twenty Twelve: remove extra space left from r21976 change.
git-svn-id: https://develop.svn.wordpress.org/trunk@21977 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 18:39:05 +00:00
Lance Willett 266f8fda03 Twenty Twelve: remove the word "Blog" from archive title, see #21951. Also remove from two comments in functions.php.
git-svn-id: https://develop.svn.wordpress.org/trunk@21976 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 18:33:09 +00:00
Lance Willett 9cadeb70ca Twenty Twelve: remove `twentytwelve_frontpage_sidebar_class()` and make front page sidebar number filterable via `body_class`. Fixes #21942.
git-svn-id: https://develop.svn.wordpress.org/trunk@21975 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 16:57:42 +00:00
Andrew Nacin 7e7750fd52 Add back the space between class names removed in [21914]. see #21871.
git-svn-id: https://develop.svn.wordpress.org/trunk@21974 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 16:42:50 +00:00
Andrew Nacin 0582e0b7a9 Remove extra bottom padding from meta boxes on the Menus screen. props SergeyBiryukov, fixes #21952.
git-svn-id: https://develop.svn.wordpress.org/trunk@21973 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 16:33:16 +00:00
Andrew Nacin 12f27a2245 Remove "This theme supports widgets..." from the theme activation notice. props ryanimel. fixes #19787.
git-svn-id: https://develop.svn.wordpress.org/trunk@21972 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 16:31:41 +00:00
Andrew Nacin 863d7eac47 Use max-height rather than height for the hierarchical taxonomy admin metabox. props SergeyBiryukov, husobj. fixes #15925.
git-svn-id: https://develop.svn.wordpress.org/trunk@21971 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 16:27:17 +00:00
Andrew Nacin a7175db279 Hitting return when adding a new category from the category meta box should add the new category, not submit the post form. props wojtek.szkutnik, fixes #14312.
git-svn-id: https://develop.svn.wordpress.org/trunk@21970 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 16:25:15 +00:00
Ryan Boren 65804be624 Fix CPT links in Theme Options list. Props SergeyBiryukov, JarretC. fixes #21655
git-svn-id: https://develop.svn.wordpress.org/trunk@21969 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 13:20:51 +00:00
Ryan Boren 48cd2a2299 Add help to the attachment editor. Props DrewAPicture. see #21391
git-svn-id: https://develop.svn.wordpress.org/trunk@21968 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 13:13:09 +00:00
Ryan Boren 44cb6ddc16 Don't add empty _wp_attached_file, _wp_attachment_metadata, _thumbnail_id meta to posts. Delete these fields when set to empty. Props SergeyBiryukov, Caspie. fixes #16391
git-svn-id: https://develop.svn.wordpress.org/trunk@21967 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 13:07:34 +00:00
Andrew Nacin c547bca2fe Fix nesting on themes.php when there are no options links to display for the current theme. props sterlo. fixes #21980.
git-svn-id: https://develop.svn.wordpress.org/trunk@21965 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 04:03:15 +00:00
bumpbot 327697fc6d Compress scripts/styles: 3.5-alpha-21964. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21964 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 03:24:33 +00:00
Andrew Ozz 13148ff6ce DFW: add scroll locking to prevent scrolling to top in WebKit on paste, add auto-resize throttling to 0.5 sec, only compare scrollHeight values (works well in all supported browsers), fixes #21979
git-svn-id: https://develop.svn.wordpress.org/trunk@21963 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 03:08:31 +00:00
Daryl Koopersmith 1032d728f9 Improve documentation for wp.mce.view.add(). Store view id in view options. see #21812.
git-svn-id: https://develop.svn.wordpress.org/trunk@21962 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 02:18:15 +00:00
Daryl Koopersmith 0a0732f9ab Makes custom TinyMCE views easier to implement.
For details and examples, see the ticket.

props azaozz, fixes #21812.


git-svn-id: https://develop.svn.wordpress.org/trunk@21961 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 00:13:18 +00:00
bumpbot 581321a20c Compress scripts/styles: 3.5-alpha-21960.
git-svn-id: https://develop.svn.wordpress.org/trunk@21960 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-23 22:58:43 +00:00
Andrew Nacin 145a09b48a XML-RPC: Accept 'url', not 'website' in wp.editProfile. props maxcutler. see #18428.
git-svn-id: https://develop.svn.wordpress.org/trunk@21959 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-23 19:36:17 +00:00
Andrew Nacin 9a0935e055 jQuery 1.8.2. props ocean90, fixes #21957.
git-svn-id: https://develop.svn.wordpress.org/trunk@21958 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-23 18:53:44 +00:00
Andrew Nacin abf7a0f360 Check a post type's show_in_admin_bar property for 'View' and 'Edit' object links. Previously show_in_admin_bar was only checked for the add new menu. fixes #20504.
git-svn-id: https://develop.svn.wordpress.org/trunk@21957 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-23 18:39:03 +00:00