Andrew Nacin
f173370ae1
Don't show the Network Enable link for broken themes. Include broken themes in searching on network/themes.php. fixes #20099 , see #20103 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20160 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 17:08:55 +00:00
Andrew Nacin
c7b3d21c18
In multisite, list broken themes on network/themes.php instead of on individual Manage Themes pages. see #20103 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20151 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 07:32:42 +00:00
Andrew Nacin
f9d7952855
The allowed_themes rolling upgrade for individual sites should not add empty allowedthemes arrays. If there are no allowed themes, don't add an empty option. Move the network rolling upgrade to upgrade_network(). see #20146 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20148 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 03:22:39 +00:00
Andrew Nacin
c57039543d
Always print the Author in the MS themes list table. display('Author') will be 'Anonymous' if no author is specified. see #20103 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20147 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 00:01:35 +00:00
Andrew Nacin
b1ba2dd995
Deprecate display_theme(). see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20141 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 18:29:36 +00:00
Daryl Koopersmith
7464fa9565
Theme Customizer: Make theme installer no-js compatible. Fix JS click handler that caught clicks on the 'Activate' link. Relocate display_theme() to WP_Theme_Install_List_Table->single_row(). see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20140 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 18:24:34 +00:00
Daryl Koopersmith
6e93f773b4
Theme Customizer: Begin integration into the install process. Combine previews, details, and install into a single workflow. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20138 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 17:35:17 +00:00
Jon Cave
9e9f4ad923
Use WP_Rewrite::set_permalink_structure instead of plain update_option() in populate_network(). Fixes #20174 .
...
This has the benefit of calling WP_Rewrite::init() which correctly resets the permalink_structure
property of the $wp_rewrite global so that the rewrite rules generated on the next flush are correct.
git-svn-id: https://develop.svn.wordpress.org/trunk@20117 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-05 17:39:26 +00:00
Andrew Ozz
e169217ad0
Based on the current UX feedback, remove the "Insert Link" UI from under the caption fields, see #18311
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20114 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-05 07:31:31 +00:00
Daryl Koopersmith
90a115e4b4
Partially revert [20100]. The list_args JS variable cannot be extended due to its use as an argument in fetch-list. see #19815 .
...
We should reattempt extending the args created in WP_List_Table, but will need to deprecate the current list_args to do so.
Also, infinite scroll on themes pages is no longer broken. Go team.
git-svn-id: https://develop.svn.wordpress.org/trunk@20104 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-03 02:40:43 +00:00
Andrew Nacin
b6b4d37fcb
Allow WP_List_Table::_js_vars() to take an array of additional args to add. Allows us to have a single variable printing data when child classes need more data. Also, fix compact() call in [20094]. see #19815 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20100 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 23:06:31 +00:00
Andrew Nacin
c56b5f3f59
Use sanitize_key(). sanitize_title_with_dashes() is more than we need. see #19815 . see [20096], [20097].
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20098 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 22:32:29 +00:00
Andrew Nacin
9f47e027ca
Revert [20096] which was an accidental partial revert of [20094]. see #19815 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20097 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 22:31:15 +00:00
Andrew Nacin
7dd527a421
Use sanitize_key() for theme search tags/features. sanitize_title_with_dashes() is overkill. see #19815 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20096 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 22:26:58 +00:00
Andrew Nacin
43209998c6
Output themes and theme-install infinite scrolling args in JS, rather than parsing query strings. props DH-Shredder, helenyhou. Make WP_Theme_Install_List_Table extend WP_Themes_List_Table. Doesn't help much yet, but we should be able to dry things up further. see #19815 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20094 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 22:09:26 +00:00
Andrew Nacin
129754ed3d
Don't autoload the uninstall_plugins option. fixes #16741 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20080 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 20:13:35 +00:00
Andrew Nacin
1bc62a722a
In miscellaneous publishing actions, use :last-child instead of a separate misc-pub-section-last class to control borders. Allows for sane use of the post_submitbox_misc_actions hook. (Actually uses :first-child for browser compat reasons.) fixes #19604 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20077 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 19:52:23 +00:00
Andrew Nacin
f4d36e96a5
Add the wp_edit_nav_menu_walker filter to the ajax request. props wonderslug, ocean90. fixes #14527 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20072 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 17:50:01 +00:00
Dion Hulse
1cbc983342
Fix a small typo.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20070 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 11:00:51 +00:00
Andrew Nacin
eee4414129
Remove debug cruft.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20068 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 00:13:05 +00:00
Andrew Nacin
12aa35e6aa
Remove theme tags from the themes.php UI. They just take up room and are redundant with the feature filter. The installer already does not show tags. props DH-Shredder, fixes #20147 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20065 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-01 23:58:10 +00:00
Andrew Nacin
76a0adc5e2
Remove extra $. see #20103 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20052 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 22:54:50 +00:00
Andrew Nacin
cc503e4315
In WP_Themes_List_Table, don't perform unnecessary sanitization on search terms or filter features. We only use these for case-insensitive comparison. see #19815 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20048 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 22:19:18 +00:00
Andrew Nacin
d7b7ac8c1b
'Network Activate' should be the bulk action on network/plugins.php, to match the action link. props ampt, fixes #19946 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20046 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 21:52:27 +00:00
Andrew Nacin
47db4344b9
Have WP_Theme::get_screenshot() default to an absolute URI. Allow 'relative' to be requested. see #20103 , see #19816 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20043 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 20:31:56 +00:00
Andrew Nacin
cdaee9042d
Translate page template names! Have WP_Theme::get_page_templates() return templates keyed by filename, not by template name, as it makes more sense. Flip this in get_page_templates() to be compatible. fixes #6007 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20041 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 20:18:53 +00:00
Andrew Nacin
9cc63bb04f
Use proper object. see #20103 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20038 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 18:11:49 +00:00
Andrew Nacin
53a209a4ee
Introduce WP_Theme, wp_get_themes(), and wp_get_theme() to replace get_themes(), get_theme(), get_theme_data(), current_theme_info(), and others.
...
* Getters and Helpers: Introduces a series of methods to allow for easy generation of headers for display, and other theme metadata, including page templates.
* Screenshots: Handles support for multiple screenshots. (see # Additional screenshots must be PNG and start with screenshot-2.png, and be sequential to be counted. see #19816 .
* Error Handling: Broken themes have a WP_Error object attached to them.
* Caching: Introduces a wp_cache_themes_persistently filter (also in [20020]) to enable persistent caching of all filesystem and sanitization operations normally handled by WP_Theme (and formerly get_file_data() and get_themes()). Themes are cached individually and across five different cache keys for different data pieces.
* Compatibility: A WP_Theme object is backwards compatible with a theme's array formerly returned by get_themes() and get_theme(), and an stdClass object formerly returned by current_theme_info().
* i18n/L10n: Theme headers are now localizable with proper Text Domain and Domain Path headers, like plugins. (Language packs may remove the requirement for headers.) For page templates, see #6007 (not fixed yet, but will be easy now). For headers, fixes #15858 .
* PHP and CSS files: New methods that fetch a list of theme files (for the theme editor) only on demand, rather than only loading them into memory. fixes #11214 .
Functions deprecated:
* get_themes(), get_allowed_themes() and get_broken_themes() -- use wp_get_themes()
* get_theme() and current_theme_info() -- use wp_get_theme()
* get_site_allowed_themes() -- use WP_Theme::get_allowed_on_network()
* wpmu_get_blog_allowedthemes() -- use WP_theme::get_allowed_on_site()
see also [20016], [20018], [20019], [20020], [20021], [20022], [20025], [20026], [20027]. also fixes #19244 .
see #20103 .
git-svn-id: https://develop.svn.wordpress.org/trunk@20029 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 21:24:44 +00:00
Andrew Nacin
f0c5c18d81
Faster theme searching. Only calculate what is necessary -- if the theme doesn't have all of the features, bail. If a word matches a tag or header, jump to the next word, we don't care how many times it matches. see #20103 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20027 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 20:51:19 +00:00
Andrew Nacin
3924c4aab5
Don't sanitize theme tags while trying to search through them, as it is unnecessary. It is also very expensive -- 50% of the pageload for a search was spent sanitizing tags. see #20103 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20026 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 20:41:53 +00:00
Andrew Nacin
11c4081aaf
Add argument to get_theme_feature_list() to allow the tags to be returned without hitting the WP.org API. We'll be using this to translate tags. Remove trailing space in the 'Light' string. see #20103 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20025 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 20:38:09 +00:00
Jon Cave
cafa8dab24
Reduce references to the $wp_rewrite global because it's no longer used or a wrapper function can be used instead. Fixes #14546.#14546.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20023 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 20:29:33 +00:00
Andrew Nacin
21630b2828
Do not save the last visited tab on the multisite Network Themes page and Site Themes tab. These are poor UX, see #18810 for plugins. Entering these screens will always default to 'all' themes view. see #20103 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20022 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 20:13:21 +00:00
Jon Cave
4c99743d06
Drop image resizing code from wp_handle_upload(). Fixes #19800 .
...
This code stops wp_handle_upload() from reporting errors when the upload couldn't be moved to its final local and it was a non-JS fallback that is unused.
git-svn-id: https://develop.svn.wordpress.org/trunk@20019 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 20:02:43 +00:00
Ryan Boren
5648306064
Pass post id to get_upload_iframe_src() instead of relying on a global. Props tott. fixes #20003
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19999 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-27 19:23:03 +00:00
Andrew Nacin
682b2a4b6d
Remove out-of-place double quote. props niallkennedy. fixes #20113 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19987 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 20:49:54 +00:00
Andrew Ozz
0fa723245a
HTML in image captions, first run, see #18311
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19982 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 01:58:18 +00:00
Andrew Nacin
7327a30867
Preserve keys when splitting themes up for pagination. props Utkarsh. fixes #15306 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19980 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-23 14:42:01 +00:00
Andrew Nacin
082f9f9739
Use version_compare() when checking installed themes in the theme installer. fixes #20097 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19979 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-22 14:03:59 +00:00
Andrew Nacin
80b14c9de7
Allow bundled plugin headers to be translated. see #19597 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19965 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-21 15:26:08 +00:00
Andrew Nacin
859a366cdc
Add an @return. fixes #19974 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19950 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-18 21:59:47 +00:00
Andrew Nacin
74124c36ea
Add WP_Screen methods get_help_tabs(), get_help_tab( $id ), get_help_sidebar(). Store help tabs by tab ID, not numeric key; allows proper removal with remove_help_tab( $id ). props BenChapman, npetetin for initial getter patch. fixes #19974 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19944 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-17 23:40:02 +00:00
Andrew Nacin
0d31edafda
Only show 'Show on screen' once in screen options. fixes #17431 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19943 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-17 23:19:52 +00:00
Andrew Nacin
07cfcf9cb6
Use class name for @return. props markuak, fixes #20063 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19942 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-17 23:15:05 +00:00
Andrew Nacin
7eb54b91be
Remove unused logo-login.png after all. fixes #19955 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19940 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-17 05:06:09 +00:00
Andrew Nacin
ec33125750
Remove old logo-login.gif from manifest. props edward mindreantre, see #19955 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19938 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-17 04:59:42 +00:00
Andrew Nacin
ee01523b96
Deprecate ancient "debugging" tools.
...
* logIO() and the global $xmlrpc_logging in XML-RPC.
* log_app() and the global $app_logging in APP.
* debug_fwrite(), debug_fopen(), debug_fclose(), and $debug.
see #20051 .
git-svn-id: https://develop.svn.wordpress.org/trunk@19935 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-17 00:02:42 +00:00
Jon Cave
abfcb78ce7
Correct faulty logic when dealing with autocomplete_users_for_site_admins, and break logic into multiple lines. See #19810 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19934 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-16 17:12:10 +00:00
Jon Cave
6792ef3018
Display menu_order value in quick edit for non-hierarchical post types. Props nikolay.yordanov. Fixes #19911 , see #18352 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19929 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-15 17:19:59 +00:00
Jon Cave
5d9ade050e
Remove use of nonexistent include_last_update_time arg from get_terms() call. See #19953 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19928 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-15 16:48:27 +00:00
Ryan Boren
edc9b42f36
Lose unnecessary space. Props SergeyBiryukov. fixes #19964
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19921 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-14 17:25:40 +00:00
Ryan Boren
99c65753a4
Add post ID argument to _wp_post_thumbnail_html() rather than relying on a global. Post the ID from wp_ajax_set_post_thumbnail(). Props batmoo. fixes #20003
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19902 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-10 17:41:37 +00:00
Mark Jaquith
54ab38d9ed
Autocomplete for add-user screens in multisite. props boonebgorges, Japh, DrewAPicture, PeteMall, nacin, koopersmith, markjaquith. see #19810 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19897 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-10 08:45:17 +00:00
Ryan Boren
1597835e12
Infinite scroll for themes.php and theme-install.php. Bump per page limit for themes.php to 999. Props helenyhou, DH-Shredder. see #19815
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19887 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-09 17:20:26 +00:00
Andrew Nacin
0c751dd7a3
Use relative paths for admin-ajax.php to avoid cross-domain issues with IDN domains in IE and Opera. props SergeyBiryukov, fixes #18952 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19871 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 16:12:11 +00:00
Ryan Boren
6622691fbf
Switch post_content_filtered from text to longtext so that it matches post_content. Props ejdanderson. fixes #19387
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19863 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 14:51:18 +00:00
Jon Cave
cd097b5b6a
Bump WXR_VERSION because of r19858 which affects the regex based importer. See #15203 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19859 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-07 21:51:14 +00:00
Jon Cave
7efe34d79d
Export valid XML by escaping the closing CDATA sequence "]]>". Props ceefour. See #15203 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19858 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-07 21:48:45 +00:00
Ryan Boren
7cd04da2e6
Change feature filter from post to get so feature selections aren't lost when paging. Props SergeyBiryukov. fixes #18094
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19857 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-07 21:06:52 +00:00
Andrew Nacin
092808ead8
Allow localized commas to be used as tag separators. see #7897 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19853 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-07 18:06:12 +00:00
Ryan Boren
f8dc7fe757
Hide theme details by default. Props helenyhou, DH-Shredder. fixes #19853
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19840 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-06 20:54:01 +00:00
Andrew Ozz
e0505774e9
Remove unused TinyMCE media plugin images, props SergeyBiryukov, fixes #19963
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19828 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-04 17:58:41 +00:00
Andrew Nacin
da65af69e2
Initial import of localized CSS, for Chinese and Hebrew. see #19603 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19825 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-04 00:54:42 +00:00
Ryan Boren
3a1d1b098b
Setup now that global is not used. see #15327
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19822 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-03 20:13:22 +00:00
Andrew Nacin
ef81adda7b
Translate the monthnum/month abbreviation construct in the Publish box. see #19598 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19820 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-03 00:23:25 +00:00
Andrew Nacin
7ff19e6012
Use existing string to properly translate month + year combo. see #19598 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19819 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-03 00:11:01 +00:00
Andrew Nacin
b3b0fa681d
Use home_url() rather than get_option() + is_ssl(). props ocean90, fixes #19942 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19811 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-01 22:31:35 +00:00
Andrew Nacin
9a68d977e6
s/plugin/theme/ in an edge case string in the theme updater. props pavelevap, fixes #19940 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19809 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-01 16:08:36 +00:00
Andrew Nacin
db7ac5be83
Provide contexts for a 'Welcome' string. Sometimes we're saying hello, other times referring to the welcome panel. props pavelevap, fixes #19698 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19807 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-01 14:47:49 +00:00
Andrew Nacin
146886cd72
Use wp_die() in ajax-actions. props kurtpayne. see [19801], fixes #15327 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19802 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-31 22:14:39 +00:00
Ryan Boren
52048ffa75
Drop the comment_approved index from the comments table. comment_approved_date_gmt is sufficient. fixes #19935
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19799 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-31 18:26:07 +00:00
Ryan Boren
22784619f4
Drop the blog_id column from the options table during upgrade. Props barry. fixes #17188
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19798 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-31 17:45:22 +00:00
Ryan Boren
3d3073d095
Remove blog_id column from wp_options. Props scribu. fixes #17188
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19793 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-30 20:47:25 +00:00
Ryan Boren
9e6fbb0061
Check the return of wp_insert_term() for WP_Error or array. Prevents fatal erros and failure to add categories when adding terms via ajax. Props mdawaffe. fixes #17938 #17939
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19792 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-30 18:19:27 +00:00
Andrew Nacin
fd475e222d
Use the _x context function. props Mamaduka. see #19601 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19788 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-29 23:43:14 +00:00
Andrew Nacin
ea092db65b
Switch to Feedback, from Suggest Ideas, for a default link, based on 3.3 toolbar. see #19601 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19786 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-29 20:25:59 +00:00
Andrew Nacin
7ed9b79485
Allow translators to specify a default timezone string OR GMT offset. Stop doing date('Z')/3600 math for default gmt_offset, as since WP 2.9, we set server time to UTC. Server time is unreliable, so no workarounds for now. fixes #19601 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19785 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-29 20:04:11 +00:00
Andrew Nacin
75b11699c1
Use the site's locale for the feed language. Provides the same result as language_attributes(). Removes the rss_language option. fixes #13440 . see #5517 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19784 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-29 19:56:33 +00:00
Andrew Nacin
2801fa6b22
Offer default links and applicable URLs for translation. Some of these are already translatable elsewhere. see #19601 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19781 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-29 05:14:59 +00:00
Andrew Nacin
2bb75d0e27
Offer start_of_week for translation. see #19601 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19780 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-29 04:21:53 +00:00
Ryan Boren
4b5b2e4658
Load the new admin and network admin mo files, if present. see #19852
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19772 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-27 22:19:56 +00:00
Andrew Nacin
8900888567
Add 'ep_mask' as an argument to the 'rewrite' array for register_post_type() and register_taxonomy(). Keeps 'permalink_epmask' compatible as an argument for post type registrations. Fixes endpoints for category and tag pages. fixes #19275 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19738 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-23 19:12:04 +00:00
Jon Cave
2b4d4a1ec1
Prevent "Undefined index: settings-updated" notice in settings_errors(). Props garyc40. Fixes #19377 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19733 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-13 18:15:55 +00:00
Andrew Nacin
96c2ae4409
'No comments awaiting moderation.' props demetris. fixes #15689 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19723 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-09 19:53:51 +00:00
Andrew Nacin
ba219cf998
Prefix table name against the post_parent field in _edit_attachments_query_helper() to avoid ambiguous queries. props benbalter. fixes #19779 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19720 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-09 15:55:30 +00:00
Ryan Boren
2b186b0c45
Lose EOF ?>. Clean up EOF newlines. fixes #12307
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19712 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 17:01:11 +00:00
Dion Hulse
31f8d18597
Show Changelog by default for "View version x.y.z details" links for Plugin updates. Props linuxologos. Fixes #19208
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19711 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 12:36:17 +00:00
Dion Hulse
7cc1bd478d
Better indentation. Props SergeyBiryukov. See #16580
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19710 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 09:18:56 +00:00
Dion Hulse
7cedb26ac7
s/Faq/FAQ/ for Plugin Installer tabs, Gains Translation support for Tabs/Titles as well. Fixes #16580
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19708 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 05:39:49 +00:00
Dion Hulse
3ff2213c55
use maybe_unserialize() in update and API checks, Tighten up the checks on expected return data to avoid processing invalid responses after change. See #19617
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19707 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 03:48:05 +00:00
Jon Cave
760471a9a8
Fix mistakes in parameter documentation and add some missing param docs. See #19756 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19702 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-06 18:31:43 +00:00
Andrew Nacin
5ccd02fb01
Create a network/about.php page and leverage it, to prevent the dashboard from switching to the blog admin. fixes #19762 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19699 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-06 17:53:41 +00:00
Dion Hulse
4afc9e59e2
Fix edge case in get_home_path() where the incorrect path may be returned. Props ptahdunbar. Fixes #18768
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19697 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-06 13:46:22 +00:00
Andrew Nacin
8d60951aa4
Use array_filter() to remove empty values from an array, not jankiness.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19691 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-05 21:22:44 +00:00
Andrew Nacin
be1142f66f
Update some old upgrade functions to use untrailingslashit().
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19690 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-05 21:21:51 +00:00
Ryan Boren
a8d77cbae9
User lowercase true, false, null instead of uppercase. Props c3mdigital, mfields. fixes #16302
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19687 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-05 20:50:54 +00:00
Jon Cave
c90c0e8600
Remove "the hackiest hack that ever did hack" from add_user(). wp_insert_user()/edit_user() can deal with adding new users of any defined role. Fixes #18749 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19686 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-05 20:38:40 +00:00
Ryan Boren
5e76729992
One newline is enough.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19684 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-05 20:10:39 +00:00
Andrew Nacin
8b37e9a821
Fix typo in [19052]. Believe it or not, it worked as is. props TobiasBg.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19680 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-04 23:06:49 +00:00
Ryan Boren
c855c642ea
Clear strict notices for the walkers. fixes #19249
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19679 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-04 23:03:46 +00:00