Andrew Nacin
cfe73da905
Reduce clutter and repetive functionality from the initial landing page for installing plugins and themes by removing the tag/author/term dropdown.
...
The tag cloud (plugins) and feature filter (themes) is sufficient for tag functionality. All three "search by" fields are already weighted for a standard keyword search through the WP.org API.
fixes #19619 for 3.4.
git-svn-id: https://develop.svn.wordpress.org/trunk@20592 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 19:37:19 +00:00
Andrew Ozz
de55e6200e
Fix typo in a comment, props SergeyBiryukov, fixes #20506
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20591 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 17:49:48 +00:00
Andrew Nacin
fca5a81af2
Remove support from WP_Theme for multiple screenshots until we bring it to the UI. fixes #20546 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20590 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 17:40:43 +00:00
Andrew Nacin
b7101b038f
Remove WP_Theme::is_child_theme() in favor of WP_Theme::parent(). see #20546 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20589 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 17:34:19 +00:00
Andrew Nacin
ac64d57b03
Make WP_Theme::get_files() a general method for retrieving any file types, at any depth, optionally to include parent files. see #20546 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20588 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 17:31:39 +00:00
bumpbot
46a0b56c82
Compress scripts/styles: 3.4-beta3-20587.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20587 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 16:58:21 +00:00
Andrew Nacin
1b233e27af
Documentation and visibility cleanups in WP_Theme.
...
* Declare `__toString()` as public.
* Use parent() and error() internally, rather than the properties.
* Add and correct inline documentation throughout.
* Attempt to clarify that display() is superior to get().
see #20546 , see #20103 .
git-svn-id: https://develop.svn.wordpress.org/trunk@20586 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 16:37:49 +00:00
Daryl Koopersmith
dfd80ddc57
Theme Customizer: For clarity, wp.customize.Setting.method to wp.customize.Setting.transport. Add WP_Customize_Setting->transport to allow setting the transport method via PHP. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20585 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 16:04:51 +00:00
Daryl Koopersmith
9c6a0682cc
Theme Customizer: Preview the target theme during save to ensure all settings are properly registered. Temporarily revert to the active theme when running switch_theme. fixes #20508 , see #19910 .
...
Introduces WP_Customize->start_previewing_theme() and WP_Customize->stop_previewing_theme() to easily enable/disable the theme filters as needed.
git-svn-id: https://develop.svn.wordpress.org/trunk@20584 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 15:44:06 +00:00
Andrew Nacin
4998de66a0
Do not check for a meta value in XML-RPC set_custom_fields unless we know we are editing a key. Prevents a notice when a custom field is being deleted. props scott.gonzalez. fixes #20543 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20583 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 14:26:31 +00:00
bumpbot
05654f8874
Compress scripts/styles: 3.4-beta3-20582.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20582 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-24 22:58:22 +00:00
Ryan Boren
d3571040fb
* Return empty arrays instead of false for all conditions in get_blogs_of_user().
...
* When deleting a user, use a delete_metadata_by_mid() loop over the meta so that the meta cache is cleared.
* Use remove_user_from_blog() for DRYness.
Props nacin, duck_
Fixes #19500
git-svn-id: https://develop.svn.wordpress.org/trunk@20581 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-24 22:13:47 +00:00
Andrew Ozz
f55dbdbd27
Uploader: fix check for error message send from async-upload on failed uploads, improve styling it a bit, props trepmal, SergeyBiryukov, fixes #20445
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20580 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-24 22:06:55 +00:00
Ryan Boren
d04dbfb0e5
Clean out layout columns API in WP_Screen.
...
* Move layout column setup into render_screen_meta() so that the number of columns is available earlier.
* Store the user provisioned number of columns in an instance var.
* Access the var with get_columns()
* Move all templates away from the screen_layout_columns global to the get_columns() method.
* Deprecate the global
* Remove the no longer needed check for 'auto' in the user option.
* Cast the user option to an int.
Props griffinjt
fixes #20506
git-svn-id: https://develop.svn.wordpress.org/trunk@20579 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-24 20:46:04 +00:00
bumpbot
1235945716
Compress scripts/styles: 3.4-beta3-20578.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20578 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-24 19:58:21 +00:00
Daryl Koopersmith
14100746f2
Use a deep extend in wp.Uploader to ensure that the multipart_params object (and others) are cloned instead of referenced. fixes #20532 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20577 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-24 19:38:47 +00:00
Ryan Boren
643618503c
Revert [20568] until a publish_post cap is introduced. see #20474
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20576 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-24 16:22:12 +00:00
Andrew Nacin
a89d307726
Fix a notice in [20565] where get_the_author_meta() may be called prior to postdata from being set up. In this case, the function should return nothing (via the filter). props johnjamesjacoby. fixes #20529 . see #20285 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20575 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-24 14:41:23 +00:00
bumpbot
3aaa209968
Compress scripts/styles: 3.4-beta3-20574.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20574 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-23 23:58:22 +00:00
Andrew Ozz
d1902fc4bf
Remove one more duplicate of .screen-per-page, props ocean90, fixes #20526
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20573 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-23 23:36:09 +00:00
Daryl Koopersmith
e73e1f4e5d
Theme Customizer: Simplify logic when preparing menu controls. Include instructions to edit menu content in section description. Add string for default state. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20572 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-23 23:03:09 +00:00
Andrew Ozz
2407473309
Lengthen the "screen-per-page" input box to prevent cutoff caused by setting type="number", remove some duplicate css, props thezman84, see #20015
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20571 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-23 23:00:14 +00:00
Andrew Ozz
aff09817e7
Dashboard and write screen columns: remove unneeded class from the .wrap div on Write/Edit screens, see #20015
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20570 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-23 22:40:59 +00:00
Jon Cave
83a3cc73df
Accept a post object in clean_post_cache(). Fixes #20486 .
...
The post_type can then be accessed to properly clean the taxonomy relationships cache.
The full object is useful in situations when an ID might reference a post that has been
removed from the database (e.g. wp_delete_post()).
git-svn-id: https://develop.svn.wordpress.org/trunk@20569 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-23 22:04:35 +00:00
Ryan Boren
5b9e7c07ba
Check the publish_post cap when publishing an already existing post.
...
Props nprasath002
Fixes #20474
git-svn-id: https://develop.svn.wordpress.org/trunk@20568 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-23 21:54:30 +00:00
Ryan Boren
381942320a
Add additional files/dirs for removal and tidy up $_old_files.
...
Props aldenta
Fixes #20472
git-svn-id: https://develop.svn.wordpress.org/trunk@20567 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-23 21:48:09 +00:00
Ryan Boren
7e45462cbd
Require the edit_posts capability for wp_getPostFormats.
...
Props maxcutler.
Fixes #20154
git-svn-id: https://develop.svn.wordpress.org/trunk@20566 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-23 21:41:50 +00:00
Ryan Boren
de4b2724fd
Remove key mangling code from get_the_author_meta(). Make it more inline with get_user_option(). Handle collision with old users table columns that are on old schema, particularly user_description.
...
Props scribu, fredwu.
Fixes #20285
git-svn-id: https://develop.svn.wordpress.org/trunk@20565 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-23 21:34:07 +00:00
Andrew Ozz
036ddb0b5b
Move closing HTML tag outside _e(), props jiehanzheng, fixes #20510
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20564 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-22 23:29:52 +00:00
Jon Cave
5b863a766b
Add missing "?" to gravatar_default URL in get_avatar() to set size parameter correctly. Fixes #20512 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20563 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-22 11:45:31 +00:00
Jon Cave
7a276ec3fb
wp_oembed_get() returns false on failure. Props SergeyBiryukov. Fixes #20355 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20562 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-22 11:19:56 +00:00
Andrew Nacin
99d723ac19
Remove redundant paragraph tags. props SergeyBiryukov. fixes #20511 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20561 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-22 08:05:17 +00:00
Andrew Nacin
b02db0626b
Issue a 'This theme is broken' error (when applicable) on the theme editor. see #20103 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20560 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-21 21:23:27 +00:00
Andrew Nacin
a63f87682d
Adjust [20557] and check only parent(), as it is more semantic. We don't care if the theme considers itself to be a child theme, we care if it has a valid parent. see #20103 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20559 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-21 21:03:23 +00:00
Andrew Nacin
65099d16b6
A child theme with a missing parent might be is_child_theme() but not have a valid parent() object, so we need to check parent() too. see #20103 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20558 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-21 21:00:24 +00:00
Andrew Nacin
a22cdde6d2
Don't allow themes without a style.css editor to be edited. These themes are too broken to be salvaged by the theme editor. see #20103 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20557 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-21 20:57:54 +00:00
Andrew Nacin
878c428f12
Combine two strings. props jiehanzheng. fixes #20500 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20556 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-21 06:40:31 +00:00
Andrew Nacin
40b676037c
Correct logic in deactivate_plugins() where network_wide = null. props SergeyBiryukov. fixes #20497 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20555 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-21 00:45:53 +00:00
Andrew Nacin
c401b0b61e
3.4-beta3.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20552 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-20 13:23:21 +00:00
Andrew Nacin
23755473ac
If a cached theme root is no longer registered, skip it. Assume the cache is out of date. see #20103 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20551 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-20 13:22:54 +00:00
Jon Cave
e5e2528313
Add $id parameter to get_the_tag_list() for consistency with get_the_(category|term)_list(). Props kawauso. Fixes #20072 .
...
Also remove 'default' value of 0 for $id parameter in generic taxonomy functions
as it is a required parameter, and fix a notice when get_the_terms() is called
when $id = 0 and the $post global is not an object.
git-svn-id: https://develop.svn.wordpress.org/trunk@20549 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-20 10:06:05 +00:00
bumpbot
be25e9070b
Compress scripts/styles: 3.4-beta2-20548.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20548 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-20 04:58:21 +00:00
Daryl Koopersmith
ef8926c076
Theme Customizer: Firefox CSS love. props helenyhou, see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20547 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-20 04:46:02 +00:00
bumpbot
909935606a
Compress scripts/styles: 3.4-beta2-20546.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20546 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-20 02:58:21 +00:00
Daryl Koopersmith
e2bbb75ba5
Theme Customizer: Improve image picker control. see #19910 .
...
Overhauled image pickers:
* Add support for drag and drop uploads to image controls.
* Improve the 'uploaded' tab in image controls: automatically add images uploaded during the current session, hide the tab when no uploaded images exist.
* Move the header image control to the WP_Customize_Header_Image_Control class. Remove wp_customize_print_uploaded_headers() and wp_customize_print_uploaded_headers() functions.
* Abstract the dropdown functionality from the color picker to the .dropdown class.
* In wp.Uploader, unset element keys if passed an empty jQuery collection.
git-svn-id: https://develop.svn.wordpress.org/trunk@20545 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-20 02:39:55 +00:00
Andrew Ozz
a791550056
Fix typo in the error message shown when a device doesn't support uploading, props SergeyBiryukov, fixes #20410
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20544 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-20 01:10:39 +00:00
Andrew Nacin
f3d77695cb
Handle multiple feed: schemes.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20540 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-19 21:48:12 +00:00
Andrew Nacin
7accb38740
Add sanity checks to WP_oEmbed::data2html() to ensure we are working with scalar values. Always use the filter. props mdawaffe, fixes #20322 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20539 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-19 19:46:34 +00:00
Andrew Nacin
7534fdb026
3.4-beta2-20538
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20538 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-19 16:44:20 +00:00
Jon Cave
e15d677986
Handle uppercase HTML entities in get_previous_posts_link(). Props ounziw. See #4152 , fixes #19803 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20537 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-19 15:08:06 +00:00