Ryan Boren
42cfdfb614
* Register blog-id-cache group as global
...
* Introduce clean_blog_cache() so we can run it independently of refresh_blog_details() which assumes the blog still exists and get_blog_details() can be called.
* Don't db escape cache keys in get_blog_id_from_url()
* prepare() the query in get_blog_id_from_url()
* Return 0 for all failures in get_blog_id_from_url()
* clean_blog_cache() after dropping tables in wpmu_delete_blog() to make sure the cache is for real cleaned.
git-svn-id: https://develop.svn.wordpress.org/trunk@22092 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-01 18:03:23 +00:00
Ryan Boren
0d5f429651
Initialize to avoid notice. Props bradyvercher. fixes #22050
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22091 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-01 16:09:16 +00:00
Andrew Nacin
6467281a2b
Provide no-customize fallback to the welcome screen. Use the customize overlay rather than a page reload. see #21368 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22089 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-01 14:58:05 +00:00
Ryan Boren
43e28ec704
Handle screen arg in WP_Comments_List_Table constructor. Avoids warning when calling WP_Screen::get() later. fixes #22039
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22085 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-29 10:05:15 +00:00
Dion Hulse
7b00e4b156
Fix Bulk Theme Deletion in the Network Admin when using FTP. Props kobenland. Fixes #20671
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22084 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-29 01:36:14 +00:00
Dion Hulse
6312ae8e06
Make WP_Filesystem_Base::getnumchmodfromh() return the expected values when the executable bit is set in the input. Props Keruspe. Fixes #20365
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22083 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-29 01:33:15 +00:00
Andrew Nacin
7e3e82dd32
Map 'all' to no status for get_comments() in the list table. See #21101 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22081 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-28 21:46:24 +00:00
Andrew Ozz
6ffb174128
Fix "add media" icon in DFW for IE < 9, restore media-button.png, add media-button-2x.png and make them background images, see #21019
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22077 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-28 00:33:40 +00:00
Andrew Nacin
d74a509915
3.5 Beta 1.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22075 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 22:25:05 +00:00
Daryl Koopersmith
d6d359a1bc
Move wp_max_upload_size and dependencies to wp-includes. props johnjamesjacoby. see #21390 , fixes #21867 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22073 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 20:59:57 +00:00
Daryl Koopersmith
1758d1aae3
Add QuickPress support for new media workflow.
...
* Adds the code required to include the new media scripts, styles, and settings to `media_button()`.
* Improves script dependencies, namely making `media-upload` require `media-views`.
* Some CSS tweaks for the making the new button work well with QuickPress.
see #21390 , fixes #22021 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22072 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 20:04:34 +00:00
bumpbot
b4322b3a60
Compress scripts/styles: 3.5-alpha-22071.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22071 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 19:21:47 +00:00
Ryan Boren
3ca9c27717
Remove dupe/deprecated code from sites.php.
...
Props wonderboymusic
fixes #21553
git-svn-id: https://develop.svn.wordpress.org/trunk@22064 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 17:11:07 +00:00
Andrew Nacin
f541fe28ba
Add missing color picker + customizer CSS. props mattwiebe. see #21206 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22063 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 17:08:32 +00:00
Ryan Boren
48484428a2
Introduce create_posts meta capability. Props scribu, nacin, casben79. see #16714
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22060 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 15:33:19 +00:00
Andrew Nacin
6a54459a18
Make Twenty Twelve the default theme for new installs. props markoheijnen, SergeyBiryukov. see #21789 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22054 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 07:47:51 +00:00
Daryl Koopersmith
6fff91f4d1
Media JS: Move the modal box's title from being stored in the modal view to being stored as an attribute on the workflow. Update modal titles for both the post media and featured image workflows. see #21390 , #21776 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22044 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 06:20:22 +00:00
Mark Jaquith
52801db5fc
Make Multisite work when WordPress is installed in a subdirectory. You can now have WordPress Multisite as an SVN external or a Git submodule! props johnjamesjacoby, evansolomon, duck_, jakemgold, nacin, markjaquith. see #19796
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22042 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 06:07:21 +00:00
Andrew Nacin
513cacb398
Don't give a 'Beta Media' string to the translators that is only temporary.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22039 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 05:19:34 +00:00
Daryl Koopersmith
692d806fff
BUTTON.
...
Add a "Beta Media" button to the post editor. Currently, it is only capable of inserting images. Other attachment types and galleries need not apply... yet.
* Added `wp.media.string.image( attachment, props )` for generating an image as a string from an attachment and relevant attachment display properties.
* Properly localized the gallery workflow.
* Added `Workflow.update()`, which closes the modal, triggers an `update` event, and resets the selection.
* Added `wp.mce.media` to manage the various media workflows for editors.
see #21813 , #21814 , #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22036 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 04:09:43 +00:00
Andrew Nacin
23d545224c
Update underlying color picker library. props mattwiebe. see #21206 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22033 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 02:18:55 +00:00
Andrew Ozz
421a70cb77
Consolidated patch for retina support, props taylorde, props empireoflight, fixes #21019
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22031 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 02:12:54 +00:00
Andrew Nacin
4e9d8d363e
New color picker, props mattwiebe. see #21206 .
...
Replaces Farbtastic. May change further in response to user testing.
git-svn-id: https://develop.svn.wordpress.org/trunk@22030 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 01:57:38 +00:00
Andrew Ozz
a5c8c8fa75
Too much z-index on the admin submenus, see #21368
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22028 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 01:09:38 +00:00
Andrew Nacin
8803a95bc3
Browse and install your wordpress.org plugin favorites from the plugin installer. props Otto42, Japh, DrewAPicture. fixes #22002 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22026 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 00:47:01 +00:00
Andrew Ozz
8b575394a5
Fix background on split buttons, remove redundant !important, remove spacers, a little css cleanup, see #18141
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22025 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 00:41:49 +00:00
bumpbot
04889ca5f0
Compress scripts/styles: 3.5-alpha-22024.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22024 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 22:58:46 +00:00
Daryl Koopersmith
749fcf84f9
Limit the featured image workflow to images only.
...
Adds the ability to set the values used to instantiate both the Workflow's library and selection.
Renames the Workflows internal `_pending` variable to prevent conflicts with a similarly named internal `Backbone.Model` variable.
see #21390 , #21776 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22022 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 21:40:02 +00:00
Daryl Koopersmith
4a90e0541a
Media JS: Add support for filtering Attachment collections by mime type. see #21390 , #21776 , #21809 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22021 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 20:50:13 +00:00
Andrew Nacin
e82d5080b8
New HiDPI spinner. Uses clean <span class="spinner"></span> markup.
...
Be on the lookout for weirdness.
props lessbloat. see #21456 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22019 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 19:57:44 +00:00
Andrew Nacin
119bd9f50a
New design and content for the welcome panel. First pass.
...
props lessbloat, helenyhou, georgestephanis, sabreuse, ryelle.
see #21368 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22018 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 19:44:43 +00:00
Andrew Ozz
6238b3140f
Make sure TinyMCE is not disabled before adding the size saving functions, see #21718
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22017 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 19:35:36 +00:00
Andrew Nacin
b6b9eef8bd
A calmer, less distracting style for the TinyMCE toolbar.
...
props helenyhou, lessbloat, trepmal, fadingdust.
fixes #18141 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22016 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 18:24:02 +00:00
Andrew Nacin
1fa4a04b7c
Make 'Show Avatars' a checkbox rather than a yes/no radio button. props tmoorewp, fixes #20889 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22010 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 06:44:26 +00:00
Dion Hulse
45d9a3e5f7
Move win_is_writable() from wp-admin/includes to wp-includes so that it's always available for get_temp_dir(). Fixes #20778
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22009 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 05:08:26 +00:00
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
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
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
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
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
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 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
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
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
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
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
818598ac2c
Deprecate wp_create_thumbnail(). props obenland. fixes #21555 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21956 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-23 17:48:24 +00:00
Andrew Nacin
b401b8d14d
Better alignment in the ustom fields metabox. props SergeyBiryukov, ocean90, fixes #21847 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21955 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-23 17:42:46 +00:00
bumpbot
aa36dd57fe
Compress scripts/styles: 3.5-alpha-21950.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21950 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-22 15:03:04 +00:00
Andrew Nacin
620b94181c
Remove old autosave collision code from edit_post(). props miqrogroove.
...
This code, which could block autosaves when drafts had future timestamps,
dates to before autosaves were saved as revisions and is no longer necessary.
fixes #21858 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21949 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-22 02:11:09 +00:00
Andrew Nacin
991be145a9
Use the regular post type UI for editing single media items (attachments).
...
* Attachments now go through post.php, edit_post(), the like, and have show_ui set to true.
* Taxonomies attached to the media library now appear in the admin menu (if show_ui).
* Editing, cropping, uploading, etc. is still very rough, but mostly functional.
API-wise:
* New function: get_taxonomies_for_attachments(). Like get_taxonomies(), for taxonomies specifically registered against attachments.
* Brings taxonomy support from the posts list table to the media list table. Expect them to converge soon.
* wp_insert_attachment() now handles taxonomies like wp_insert_post(). Also expect them to converge soon.
* New edit_form_after_title hook.
props helenyhou, ocean90. see #21391 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21948 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 22:52:54 +00:00
Andrew Nacin
c33b88351b
Revert JS from [21921] as it breaks saving when no post date fields are present. see #17180 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21947 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 22:27:51 +00:00
Peter Westwood
a9673a9147
Export: Ignore auto-drafts when building the list of users for the export file. Fixes #21960 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21946 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 21:48:52 +00:00
Andrew Nacin
8565aa6e34
Reset $taxonomy in single_row's default branch. props tott. fixes #21240 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21945 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 20:28:25 +00:00
Andrew Nacin
1c58ef9f33
Updates and fixes to the new button styles. By default, buttons are now the same size as they were in 3.4. Then there is a smaller button (designed for minor elements) and a larger button (designed for things like Publish and Save Changes). Better focus styles. props lessbloat. see #21598 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21944 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 19:34:23 +00:00
bumpbot
826daf5daf
Compress scripts/styles: 3.5-alpha-21931.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21931 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-20 18:59:45 +00:00
Ryan Boren
2086631047
Remove unnecessary label. Props waclawjacek. fixes #17978
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21927 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-20 13:59:39 +00:00
Ryan Boren
19252e7462
Allow granting the network admin email user super admin. Props JustinSainton, garyc40. fixes #16629
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21925 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-20 13:50:35 +00:00
Peter Westwood
d86f9f140f
Posting: Improve the invalid date protection code based on feedback from nacin.
...
* Introduce a wp_checkdate() function with a single filter to centralise the code that validates dates.
* Improve the error message
* Correctly handle the return value of wp_insert_post which is not always a WP_Error on failure
Fixes #17180
git-svn-id: https://develop.svn.wordpress.org/trunk@21922 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-20 10:46:50 +00:00
Peter Westwood
59dd4b7d2b
Posting: Make it much harder to create posts with invalid dates by enforcing the post date tests in the UI and the backend code.
...
Previously you could quite easily send a new post into the back of beyond by specifying an invalid date like the 30th Feb and this was very confusing.
Sometimes it would seem to work and sometimes the post would end up very far in the past - depending on the mysql version and other factors.
Fixes #17180 props jkudish.
git-svn-id: https://develop.svn.wordpress.org/trunk@21921 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 21:43:35 +00:00
bumpbot
42f1232e5e
Compress scripts/styles: 3.5-alpha-21920.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21920 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 18:59:36 +00:00
Andrew Nacin
8aee69730b
It is 'Alternative Text', not 'Alternate Text'. props alecrust, RyanJKoehler. fixes #21176 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21917 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 16:55:43 +00:00
Andrew Nacin
4a0d94a59e
Flexible widths for select boxes above list tables. For posts, that means bulk actions and date/category filters. Opens up more room (can prevent wrapping) and allows for longer localized strings. props SergeyBiryukov, fixes #21752 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21916 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 15:44:01 +00:00
Ryan Boren
7c52a19a5a
Reduce reliance on global variables in the list tables. Allow passing a screen ID to the list tables so that ajax handlers can set the needed screen.
...
Props nacin
fixes #21871
git-svn-id: https://develop.svn.wordpress.org/trunk@21914 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 12:43:31 +00:00
Andrew Nacin
b4350a0424
Send nocache_headers() in the admin earlier, on the DB upgrade page. Prevents a potential redirect loop reproduced in Chrome from heavy caching of headers. props mdawaffe. see #21745 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21913 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 01:51:40 +00:00
Andrew Nacin
30cc580f76
Avoid mangling UTF-8 strings that may be present in image metadata. props SergeyBiryukov for the unit tests [UT665]. fixes #9417 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21905 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-18 23:38:25 +00:00
Andrew Nacin
73f5dd8a35
Remove unused edit-site nonce fields from site-users and site-themes. props jeremyfelt, fixes #21277 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21903 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-18 23:06:22 +00:00
bumpbot
e4b2e030e3
Compress scripts/styles: 3.5-alpha-21895.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21895 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-18 18:59:37 +00:00
Andrew Nacin
0ed8541439
Replace QuickPress labels with gray prompt texts. Stylish, but also done for localization purposes (string lengths). props ocean90. fixes #21754 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21894 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-18 18:45:44 +00:00
Andrew Nacin
6bb5d6c032
Include the home URL before the custom permalink structure input, so it is clear we only care about the path. props solarissmoke, fixes #8952 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21891 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-18 17:58:54 +00:00
Andrew Nacin
ac948ddef7
Return term slugs rather than term names in attachment_fields_to_edit() as that is what we are dealing with. props eddiemoya, fixes #20765 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21889 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-18 17:34:01 +00:00
Andrew Nacin
5869cbc05a
Synchronize block-level elements between the JS and PHP versions of wpautop. props SergeyBiryukov. fixes #18534 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21888 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-18 17:32:44 +00:00
Andrew Nacin
64dec4d525
Move the Cancel button for replying and quick-editing a comment to after the primary update/reply button so tabbing from the comment field takes you to the primary action. see #21340 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21883 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-17 22:13:53 +00:00
Andrew Nacin
c154aed908
Remove unused $t_time variable. props ocean90. fixes #18531 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21880 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-17 02:12:09 +00:00
bumpbot
4c9bac8206
Compress scripts/styles: 3.5-alpha-21879. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21879 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-17 00:59:40 +00:00
Andrew Nacin
9661c3bd9a
Rename div#footer to div#wpfooter in the admin. Namespace one of our major elements and avoid clashing with widgets with the id of 'footer'. props andrewryno, koopersmith. see #14466 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21878 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-16 23:03:35 +00:00
Andrew Ozz
7485a0ceed
Admin menu: add phpdoc/inline comments describing the usage of the param $icon_url in add_menu_page(), add string 'none' to be used when a menu icon is added from CSS, switch core items in the admin menu to use 'none', fixes #21349
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21877 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-16 22:51:44 +00:00
Andrew Nacin
ac33e3e810
On setup-config step 2, default to focusing on the textarea and selecting its contents. fixes #21656 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21873 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-16 19:41:41 +00:00
Andrew Nacin
07ff0e30ed
Docs for options_reading_blog_charset(). props SergeyBiryukov, fixes #21886 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21872 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-16 18:33:19 +00:00
Andrew Nacin
b45377f3e9
Basic phpdoc for admin includes media.php. props c3mdigital. fixes #21144 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21871 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-16 18:31:42 +00:00
Andrew Nacin
7f65ab3f57
Curly quotes for setup-config strings.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21870 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-16 18:26:14 +00:00
Andrew Nacin
29d8f1bad7
If wp-config.php is not writable from setup-config, make the resulting textarea readonly. props jblz, fixes #21657 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21869 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-16 18:01:04 +00:00
Andrew Nacin
fee76161e3
Don't use hard-coded indexes when dealing with an array of roles. props elyobo. fixes #19222 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21866 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-16 16:24:33 +00:00
Andrew Nacin
50daa191c2
Trim incoming searches on the users list table. props tollmanz. fixes #21318 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21864 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-16 16:11:01 +00:00
Andrew Nacin
8437239bb2
Correct a translation context in the network admin. props SergeyBiryukov. fixes #20910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21858 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-15 19:57:46 +00:00
Andrew Nacin
afbbc9665a
Combine some strings. props pavelevap. fixes #21087 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21857 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-15 19:57:05 +00:00
Andrew Nacin
eea7a4b8d3
Rename duplicately defined internal functions (add_js, display_header) for documentation purposes. props bpetty, fixes #21564 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21856 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-15 19:49:21 +00:00
Andrew Nacin
168d12a728
Simplify the markup and hierarchy of the Add Existing and Add New user forms on site-users.php. props obenland, fixes #21223 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21854 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-15 19:38:23 +00:00
Andrew Nacin
93f6ea672e
Hide upload_path and upload_url_path from the Media Settings screen, assuming they are both set to their default values.
...
These can be set on options.php, or the UPLOADS constant or the filters in wp_upload_dir() should be used. WordPress should aim to avoid UI options that require filesystem changes as well, not to mention requiring the user to convert between paths and URLs.
fixes #21720 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21852 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-14 21:00:39 +00:00
Andrew Nacin
42a2b4a12f
"[ ] Discourage search engines from indexing this site". fixes #16416 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21851 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-14 20:26:20 +00:00
Andrew Nacin
537a6769e6
If an option was not sent to options.php, pass null to update_option(), rather than trimming the null and converting it to an empty string. This provides better context for sanitize_option() while still storing what ends up being an empty string either way. see #16416 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21849 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-14 19:12:35 +00:00
Andrew Nacin
bd6d86d123
Avoid the need for a hidden input when suppressing the blog_charset option. fixes #21507 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21842 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-14 03:23:06 +00:00
Andrew Nacin
f62839c45b
Fold Privacy Settings into Reading Settings, moving blog_public (search engine/robots) to options-reading and removing options-privacy.
...
When blog_public only has two values (as judged by whether the blog_privacy_selector action is used), convert from radio buttons to a checkbox, and rename from 'Site Visibility' to a more specific 'Search Engine Visibility'.
The text and implementation may change a bit. see #16416 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21838 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-13 17:28:57 +00:00
Andrew Nacin
2313f09a45
Correct return values for two deprecated media admin functions. props SergeyBiryukov. fixes #21518 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21835 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-13 17:09:41 +00:00
Andrew Nacin
5870391283
Fix Press This bookmarklet focus and active styles. props SergeyBiryukov, fixes #21850 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21832 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-13 17:04:08 +00:00
Andrew Nacin
8d3a9ba45b
Disable multisite quotas by default on new installs. props mpvanwinkle77. fixes #21513 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21827 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-12 15:48:40 +00:00
Andrew Nacin
5d3c3fcfba
Don't show Appearance > Widgets if the theme has no sidebars defined. props SergeyBiryukov for the initial patch. fixes #21761 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21825 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-12 02:16:46 +00:00
Andrew Nacin
7f29924c6a
Remove ms-files.php rewriting from WordPress multisite. fixes #19235 .
...
Keep existing networks compatible with a ms_files_rewriting network option.
git-svn-id: https://develop.svn.wordpress.org/trunk@21823 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-11 22:22:20 +00:00
Andrew Nacin
dfac91464f
Remove AtomPub from core.
...
* Will be replaced with http://wordpress.org/extend/plugins/atom-publishing-protocol/ .
* Introduces an action, xmlrpc_rsd_apis, to add APIs to xmlrpc.php?rsd.
* Introduces support for 'error' being 403 and 50x in class-wp.php.
* Removes 'Remote Publishing' from Writing Settings (see [21804]). Keeps the remote_publishing settings section.
DB version is bumped to generate the new wp-app rewrite rule and remove the old enable_app option.
props wonderboymusic.
fixes #21509 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21818 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-11 20:11:39 +00:00
Andrew Nacin
a5e8f80f58
Undo nested paragraphs added in [21816]. see #17944 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21817 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-11 19:16:53 +00:00
Andrew Nacin
533217f3ba
Indicate on themes.php when a theme is a child that requires a parent theme. fixes #17944 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21816 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-11 19:12:37 +00:00
Ryan Boren
e40aee3913
Avoid 'Creating default object from empty value' warning in PHP 5.4. Props SergeyBiryukov, knutsp. fixes #21716
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21815 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-11 18:54:56 +00:00
Daryl Koopersmith
1cc9c42bc4
Use JS Attachment models in wp.Uploader. fixes #21868 .
...
Moves the uploading Attachments queue from the media workspace view to the uploader itself. This ensures that all attachments are added to the central attachmnet store.
Updates wp.Uploader to pass Attachment models to callbacks instead of Plupload file objects. Attachments in the process of uploading have a reference to the file object (which can be fetched by calling `attachment.get('file');`).
Also updates the customizer to be compatible with the API changes.
git-svn-id: https://develop.svn.wordpress.org/trunk@21814 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-11 16:55:58 +00:00
Andrew Nacin
ee88036c08
Use network_site_url() for wp-signup.php. props markjaquith. see #19796 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21813 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-11 12:27:25 +00:00
Andrew Nacin
6557b319c4
Use the key we found using array_search() to unset it from the array. props hakre. fixes #16562 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21812 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-11 02:12:34 +00:00
Andrew Nacin
56c0d2932c
Remove old edit_*_per_page usermeta keys.
...
These per-page values were when the post type or taxonomy name has a hyphen.
Previously, these were converted to underscores. This changed in [21322].
fixes #18958 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21811 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-11 02:08:29 +00:00
Andrew Nacin
1e270f44a4
Remove 'hwstring_small' from attachment metadata and deprecate get_udims(). props SergeyBiryukov. fixes #21518 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21808 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-11 01:38:26 +00:00
Andrew Nacin
7846681ed4
Don't show 'Uncategorized' in the category column on edit.php if there are no categories (including the default one). props ocean90. fixes #21240 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21806 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-11 01:31:53 +00:00
Andrew Nacin
6df2aff40b
Turn XML-RPC on and remove the option on the Writing Settings page.
...
props markoheijnen for the initial patch.
Introduces a new filter, xmlrpc_enabled.
Respects any current callbacks registered to the pre_option_enable_xmlrpc
and option_enable_xmlrpc filters, for anyone forcing it off via code.
fixes #21509 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21804 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-11 00:37:31 +00:00
Andrew Nacin
31b1ba5cb1
Wrap the unused options line in populate_options().
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21803 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-11 00:08:58 +00:00
Ryan Boren
34320e9089
Add missing closedir() to wpmu_delete_blog(). Props timfs. fixes #21780
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21801 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-10 21:16:03 +00:00
Ryan Boren
46f3985c39
Deprecate get_default_post_to_edit(). Props SergeyBiryukov. fixes #21677
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21800 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-10 20:39:45 +00:00
Ryan Boren
fa5557c6d4
When reassigning posts and links during user deletion, clear the post and link caches. Props kurtpayne. fixes #20447
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21798 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-10 19:56:08 +00:00
Ryan Boren
9360033fbe
Check for an empty post in wp_popular_terms_checklist(). _wp_ajax_add_hierarchical_term() doesn't set up global post info. Props SergeyBiryukov. see #21309
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21791 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-10 16:45:49 +00:00
Daryl Koopersmith
7d6e53317c
New button styles.
...
Using the new buttons:
* Button classes are now stackable.
* All buttons should use a base class of "button".
* Buttons default to the gray style (formerly "button-secondary"). Buttons can add a style by adding additional classes. To make a primary button, add the "button-primary" class.
* Buttons can be rendered in various sizes. In addition to the default size, you can add "button-large", "button-small", or "button-tiny".
For backwards compatibility reasons, "button-primary" and "button-secondary" both work as standalone classes.
get_submit_button() has been adjusted to handle shorthand button classes (i.e. button classes can be passed without the "button-" prefix).
props lessbloat, helenyhou, trepmal, nacin. see #21598 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21789 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-08 04:58:34 +00:00
Andrew Nacin
bcf58b34c4
Allow easy registration of taxonomy columns on post (and custom post type) list table screens.
...
To register a column for a list table, use the new manage_taxonomies_for_{$post_type}_columns
filter. Introduces show_admin_column => true for register_taxonomy(), which automatically
displays that column on all associated post types.
props jtsternberg, SergeyBiryukov for initial patches.
fixes #21240 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21788 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-08 03:18:36 +00:00
Andrew Ozz
a624cda5c5
Don't try to show the submenu when it's visible (Chrome), part props ericlewis, fixes #21832
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21787 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-07 22:34:43 +00:00
Andrew Nacin
626a4b2a56
Fix adding and updating from the Custom Fields meta box. Broken in [21205]. props SergeyBiryukov. see #21829 for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21781 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-07 15:49:20 +00:00
Daryl Koopersmith
3ef72a1dee
First pass at integrating featured images with the new media workflow.
...
Updates the featured image when the publish/update button is clicked (rather than instantly). Uses the existing post_thumbnail_meta_box() function. Does not remove the old featured image meta box JS, ajax handler, or CSS.
see #21776 , #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21770 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-06 08:49:35 +00:00
Ryan Boren
653e3b3ae6
Change the number of themes shown per page in themes.php from 999 to 36 so that infinite scroll engages. 36 was chosen to match the per page limit for theme-install.php
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21768 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-05 20:33:34 +00:00
Andrew Nacin
2951df0632
Always URL-encode a stylesheet directory value before using it in a URL. These situations are saved by wp_nonce_url(), but we should not depend on that. see #21749 , for trunk only.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21755 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 22:35:12 +00:00
Andrew Nacin
a064f74572
Fix old-school Preview links when a theme directory contains spaces. Fix the theme-editor.php link from MS themes screens when a theme directory contains spaces. see #21749 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21752 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 22:25:25 +00:00
bumpbot
04e7435945
Compress scripts/styles: -3.5-21751.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21751 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 21:59:25 +00:00
Ryan Boren
80147a8a19
Remove the filter setting when searching media. Props helenyhou. fixes #19452
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21750 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 21:20:51 +00:00
Ryan Boren
1bd73817b0
Make the 'Download Export File' button primary. Props helenyhou. fixes #21781
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21749 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 21:11:17 +00:00
Ryan Boren
e6aaf6386d
Add labels for all inputs in options-discussion. Props SergeyBiryukov, lessbloat, Latz. fixes #21373
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21746 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 21:05:06 +00:00
Ryan Boren
1ce32cbf14
Remove not so useful author column sorting. Props scribu. fixes #17141
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21743 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 20:57:18 +00:00
Ryan Boren
d31b2ea583
Make the callback optional for add_settings_section(). Props lightningspirit. fixes #21630
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21742 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 20:55:20 +00:00
Andrew Nacin
a8549576b4
Only allow operations on network plugins through the network admin. see #21187 , for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21740 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 20:51:33 +00:00
Andrew Nacin
3fb49b9ffd
Modify a few jQuery selectors to prevent overflows and lagging. Todo, rewrite wp-lists and improve all of these selectors.
...
props SergeyBiryukov. fixes #21106 for trunk. see #21152 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21737 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 20:27:14 +00:00
Andrew Nacin
dcb0d4fe80
Restore global references that broke the media and comment list tables. Todo, make list tables rely far less on global state. see #21309 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21736 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 18:23:51 +00:00
Ryan Boren
31ec698423
Use get_post() instead of global $post.
...
Make the $post argument to get_post() optional, defaulting to the current post in The Loop.
Props nacin
see #21309
git-svn-id: https://develop.svn.wordpress.org/trunk@21735 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 16:29:28 +00:00
Andrew Nacin
2a8af13e3e
setup-config.php must be parseable by PHP4 so we can show a sane error message. wp-admin/index.php should ideally be as well. props SergeyBiryukov, see #21316 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21716 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 02:46:01 +00:00
Andrew Nacin
040d03235d
Don't include functions.php in wp_load_translations_early()
...
to avoid a parse error in a PHP4 environment (caused by use of
the clone keyword in option.php).
Manually include functions.php in the rare situations where it
is not already included by the time we need to load translations
early.
Remove the functions.php dependency by switching the wp_die() calls
to die(), in wp_check_php_mysql_versions().
props SergeyBiryukov, see #21316 , for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@21715 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 02:38:37 +00:00
Andrew Nacin
7981f50934
Fix placeholders in 'Welcome to WordPress' successful update messages. props SergeyBiryukov. see #21511 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21703 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-03 21:57:53 +00:00
Andrew Nacin
4769e9e656
Don't call self_admin_url() or esc_url() when declaring that WordPress updated successfully, as they may not exist in the current (just updated) version.
...
props SergeyBiryukov.
see #21511 .
for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@21702 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-03 21:56:12 +00:00