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
Lance Willett
42eb0570ef
Twenty Twelve: fix typo in stylesheet description, props nacin. See #21909 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21893 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-18 18:08:58 +00:00
Andrew Nacin
5358b13ae3
Account for the old 'main override' in wp_upload_dir() for the main site in a post-MU network by declining to define the UPLOADS constant.
...
Fixes uploads on the main site of a post-MU network that uses ms-files rewriting. see #19235 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21892 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-18 18:07:18 +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
fc58815067
Clarify that conditional tags only return true for existing objects, not 404 situations. props SergeyBiryukov, fixes #16312 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21890 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-18 17:35:11 +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
Lance Willett
e5318926b7
Twenty Twelve: compress new screenshot.png down a bit, 0.78% savings. See r21884.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21887 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-18 17:31:50 +00:00
Lance Willett
da5ab73df1
Twenty Twelve: rename homepage template to front-page; including s/home/front-page/ in many places -- see notes in ticket. See #21909 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21886 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-18 17:28:36 +00:00
potbot
ec10500e43
POT, generated from r21882
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21885 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-17 22:19:03 +00:00
Lance Willett
5129499c7b
Twenty Twelve: update screenshot with double-sized version at 600x450, props drewstrojny. See #21388 and #21227 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21884 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-17 22:18:09 +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
Lance Willett
97355aebf0
Twenty Twelve: allow Open Sans to be disabled per language, since it does not support all languages, and some odd combinations of OS and browser versions don't support any non-Latin language very well.
...
Props obenland and SergeyBiryukov for patches, fixes #21751 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21882 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-17 22:07:51 +00:00
Andrew Nacin
930d3b2a99
Attach the default ms_files_rewriting site option filter in ms-default-constants, as ms-default-filters is not included during SHORTINIT. see #19235 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21881 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-17 22:05:06 +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
411e45256a
On user creation, default the display name to the first and last names provided. props mikelittle for the initial patch. fixes #20637 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21876 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-16 22:33:24 +00:00
Andrew Ozz
2bd5e1830b
Switch TinyMCE's schema to 'html5', add 'autofocus' to the attributes map for <input>, part props SergeyBiryukov, fixes #13314
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21875 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-16 21:20:35 +00:00
Andrew Nacin
a37458e797
Add a filter to wp_get_update_data. props usermrpapa, SergeyBiryukov. fixes #17838 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21874 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-16 20:51:51 +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
e33241bef0
If a nav menu has no menu items, print nothing (instead of empty container markup). props obenland. fixes #21576 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21868 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-16 17:07:56 +00:00
Andrew Nacin
1563fce7ff
Use selected() in default widgets. props SergeyBiryukov, iamfriendly. fixes #21451 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21867 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-16 16:51:12 +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
9447d32ef4
Simplify protocol stripping in add_query_arg() by avoiding a regular expression. Don't cast a known array to an array. fixes #21332 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21865 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-16 16:16:26 +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
2815798357
Make WP_Tax_Query::transform_query() public. props scribu. fixes #21684 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21863 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-15 20:17:03 +00:00
Andrew Nacin
9b8123711c
Split tag names by [\r\n\t ] rather than \s to avoid that character class from eating characters. props rstern, SergeyBiryukov. fixes #21779 . see #13413 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21862 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-15 20:13:44 +00:00
Andrew Nacin
383487466b
Expect a possible array of post types in get_archive_template(). props SergeyBiryukov. fixes #20867 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21861 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-15 20:07:15 +00:00
Andrew Nacin
9da4708e6d
Pass the user parameter to the wpmu_validate_blog_signup filter and wpmu_validate_blog_signup()'s return array. props BrianLayman. fixes #17306 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21860 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-15 20:05:58 +00:00
Andrew Nacin
326731cdb3
Add Pinyin diacritics to remove_accents(). Remove these diacritics in sanitize_title_with_dashes() on save as well. props bolo1988, SergeyBiryukov. fixes #20772 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21859 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-15 20:01:08 +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
322919eb1c
When doing a taxonomy query, search against the currently registered post types of the queried taxonomies.
...
Prevents posts of a type no longer assigned to a queried taxonomy from being returned.
props jondavidjohn. fixes #21290 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21855 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-15 19:44:51 +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
0b2a08728b
Pass current network ID to domain_exists() in wpmu_validate_blog_signup(). props larysa, fixes #17303 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21853 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-15 19:29:59 +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
8c13f286e3
Use the non-slashing variants of kses functions in sanitize_option() to avoid slash ping pong. fixes #21892 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21850 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-14 19:32:53 +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
04b5a04297
Don't output the {$post_type} post class in the admin, to avoid clashes with admin CSS. props c3mdigital. fixes #21203 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21848 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-14 18:57:11 +00:00
Andrew Nacin
9a0d9562a2
Use wp_get_theme()->get_page_templates() rather than get_page_templates() in wp_insert_post(),
...
to allow page template setting on the frontend without a fatal error. fixes #21755 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21847 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-14 18:36:08 +00:00
Andrew Nacin
0ce7f85ca4
Remove unused show_in_admin_all and single_view_cap from register_post_status(). props duck_. fixes #18972 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21846 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-14 18:02:23 +00:00
Andrew Nacin
5b132e4c24
In get_page_by_path(), attempt to return an item that has the same post type before returning an attachment with the same name. props SergeyBiryukov. tests in [UT1021]. fixes #15665 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21845 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-14 17:19:25 +00:00