Commit Graph

9410 Commits

Author SHA1 Message Date
nacin a48a695ba7 Use correct variable; return correct value for get_screenshot() when value is uncached. see #20103.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20045 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-29 20:46:41 +00:00
nacin 8570f2dcd2 Remove debug cruft. see #20103.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20044 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-29 20:41:01 +00:00
nacin 8ba92a52f8 Have WP_Theme::get_screenshot() default to an absolute URI. Allow 'relative' to be requested. see #20103, see #19816.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20043 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-29 20:31:56 +00:00
nacin 5a4f7349e8 Can haz recursion? get_current_theme() is deprecated in favor of wp_get_theme(), not itself. props duck_. see #20138.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20042 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-29 20:22:16 +00:00
nacin 0dc52c8043 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: http://svn.automattic.com/wordpress/trunk@20041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-29 20:18:53 +00:00
nacin a8d45a288f Deprecate get_current_theme(). Use (string) wp_get_theme() to get the translated name of the theme. Keep the current_theme option for now. see #20103, see #20138.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20040 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-29 20:07:22 +00:00
nacin bf97881f98 (string) WP_Theme is now the theme name, translated. Good replacement for get_current_theme(); better than wp_get_theme()->display('Name'). see #20103, see #20138.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-29 19:27:54 +00:00
bumpbot a9b4a2fe6c Compress scripts/styles: 3.4-alpha-20036.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20036 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-29 06:31:00 +00:00
koopersmith 0f960750b0 Theme Customizer: Don't switch themes and update settings when the enter key is pressed. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-29 06:28:02 +00:00
koopersmith b198c61062 Theme Customizer: Trigger UI updates only when necessary.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-29 06:18:17 +00:00
nacin b599bef67a Update switch_theme() to use wp_get_theme(). see #20103, #20138.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20033 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-29 05:09:29 +00:00
bumpbot 1e5baa0ca0 Compress scripts/styles: 3.4-alpha-20032.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-29 01:31:04 +00:00
koopersmith cc9b31a388 Improve page loads in the theme customizer by layering loading iframes. Automate refreshing, but debounce multiple refresh events to prevent hammering the server with requests. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20031 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-29 01:17:21 +00:00
koopersmith abd1d5e599 Update customize-controls.php to use new WP_Theme API. see #19910, [20029].
git-svn-id: http://svn.automattic.com/wordpress/trunk@20030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-28 21:41:19 +00:00
nacin d130a63e25 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: http://svn.automattic.com/wordpress/trunk@20029 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-28 21:24:44 +00:00
koopersmith f596a23899 Theme Customizer: Strip slashes when sanitizing previewed values. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-28 21:21:16 +00:00
ryan 207ca8ce44 Return to apply_filters_ref_array() for back compat with callbacks that specify a ref for the args. Props scribu. see #18536
git-svn-id: http://svn.automattic.com/wordpress/trunk@20024 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-28 20:37:47 +00:00
duck_ a395e06896 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: http://svn.automattic.com/wordpress/trunk@20023 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-28 20:29:33 +00:00
nacin b367a71d1a 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: http://svn.automattic.com/wordpress/trunk@20022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-28 20:13:21 +00:00
nacin 0cb8aed823 Theme root transient caching is now in search_theme_directories(), not get_themes(). see #20103.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20021 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-28 20:08:08 +00:00
nacin c77de588d4 Rewrite search_theme_directories() -- better performance and allow for caching.
* Update it to use PHP5 scandir().
 * Don't scan individual theme dirs -- we only need to check for style.css. (Solid performance gains.)
 * Improve and simplify branching.
 * Introduce wp_cache_themes_persistently filter to enable persistent caching of the return value, based on the theme_roots transient.

see #20103.


git-svn-id: http://svn.automattic.com/wordpress/trunk@20020 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-28 20:05:00 +00:00
nacin 7df034983a Clarify second argument for get_raw_theme_root() as the multiple negatives can get confusing. see #20103.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-28 19:59:53 +00:00
nacin d131a8951a Fix the return value of get_theme_root() when the theme root is outside of WP_CONTENT_DIR, thus making it absolute rather than the typical relative theme root.
Make get_theme_root_uri() tolerate an absolute path for a theme root. It will now make an attempt to find a corresponding URL for absolute paths as well.

see #17597.



git-svn-id: http://svn.automattic.com/wordpress/trunk@20016 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-28 18:02:21 +00:00
nacin 53022ddbfb Revert [20001]. Theme roots that are passed around, stored, and cached can be valid as absolute paths or paths relative to wp-content. We'll have to patch this elsewhere. see #17597.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20015 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-28 16:22:26 +00:00
bumpbot b7b715a262 Compress scripts/styles: 3.4-alpha-20014.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-28 14:18:24 +00:00
azaozz 488c1f5a5a HTML in image captions: improve converting the caption html elements to a shortcode, catch some rare cases where image with a caption is pasted in the visual editor, see #18311
git-svn-id: http://svn.automattic.com/wordpress/trunk@20013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-28 08:03:40 +00:00
nacin e4bfd6ecc1 Move the template loading functions from wp-includes/theme.php to wp-includes/template.php. This includes get_query_template(), locate_template(), and friends. see #20103.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20002 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-28 01:49:49 +00:00
nacin 08e57bfca5 Always return an absolute path in get_raw_theme_root() and get_theme_roots().
These functions were changed in [15641] to avoid any calculations when only one theme directory is registered. However, the short-circuit ended up being relative to WP_CONTENT_DIR, rather than absolute. This broke situations where theme roots are outside the content directory (technically allowed), and made return values inconsistent, as when multiple roots were registered, absolute paths were always returned.

fixes #17597. see #20103. see #14911.



git-svn-id: http://svn.automattic.com/wordpress/trunk@20001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-28 01:28:56 +00:00
ryan d910c26182 Pinking shears 6-20000
git-svn-id: http://svn.automattic.com/wordpress/trunk@20000 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-27 19:46:52 +00:00
bumpbot b4a66348d4 Compress scripts/styles: 3.4-alpha-19998.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-25 04:31:03 +00:00
bumpbot 2c4438f379 Compress scripts/styles: 3.4-alpha-19996.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-25 04:16:01 +00:00
nacin ef5749ed57 Correct [19952]. see #19592.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19996 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-25 04:15:08 +00:00
koopersmith c832f904ae Introduce new theme customizer to replace theme preview. Rough first pass. props koopersmith, ocean90. see #19910.
Merges in http://plugins.svn.wordpress.org/gandalf/branches/dev/ rev 510148.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-25 04:12:43 +00:00
bumpbot 8859ba872c Compress scripts/styles: 3.4-alpha-19994.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19994 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-25 02:15:56 +00:00
azaozz f9ba569d9c Use json_encode when outputting translated strings for use in TinyMCE, fixes #20119
git-svn-id: http://svn.automattic.com/wordpress/trunk@19993 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-25 02:11:29 +00:00
nacin e8c2dd200d Add jQuery postMessage v 0.2. Dual licensed MIT/GPL. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19992 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-25 02:04:17 +00:00
bumpbot 91dfc846a0 Compress scripts/styles: 3.4-alpha-19991.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-25 00:01:02 +00:00
azaozz 5745a57dc4 TinyMCE: move the WordPress plugins styles to the theme's stylesheet, fixes #20118
git-svn-id: http://svn.automattic.com/wordpress/trunk@19990 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-24 23:46:04 +00:00
bumpbot 0a3212997c Compress scripts/styles: 3.4-alpha-19989.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19989 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-24 22:30:59 +00:00
azaozz a91e7ab246 Close TinyMCE popups/dialogs when clicking on the background, fixes #20117
git-svn-id: http://svn.automattic.com/wordpress/trunk@19988 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-24 22:29:46 +00:00
azaozz b92a47ee83 Add new string to the proper i18n object, see #18311
git-svn-id: http://svn.automattic.com/wordpress/trunk@19986 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-24 20:42:36 +00:00
bumpbot fa3d2e0df3 Compress scripts/styles: 3.4-alpha-19985.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19985 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-24 19:30:59 +00:00
azaozz 77133d2c96 Don't show edit/remove image buttons in the visual editor when an image is floated, doesn't have a caption and there is text in the same paragraph, props solarissmoke, fixes #19611
git-svn-id: http://svn.automattic.com/wordpress/trunk@19984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-24 19:18:59 +00:00
bumpbot a24bfc4d47 Compress scripts/styles: 3.4-alpha-19983.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19983 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-24 02:00:58 +00:00
azaozz 73c87020c7 HTML in image captions, first run, see #18311
git-svn-id: http://svn.automattic.com/wordpress/trunk@19982 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-24 01:58:18 +00:00
bumpbot 346c855a40 Compress scripts/styles: 3.4-alpha-19978.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19978 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-22 03:15:57 +00:00
azaozz 151b1088cc Use native TinyMCE popup for the image properties dialog, fixes #20096, see #20094
git-svn-id: http://svn.automattic.com/wordpress/trunk@19977 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-22 03:05:25 +00:00
duck_ f62dac2756 Reduce memory usage in wp-includes/kses.php by switching unnecessary empty arrays to boolean. Fixes #20017.
safecss_filter_attr() block for style tags must be moved out of the is_array() only branch of wp_kses_attr() to accommodate for this.


git-svn-id: http://svn.automattic.com/wordpress/trunk@19976 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-21 20:33:44 +00:00
duck_ 8ac3015ccf Stop invalid SQL syntax by bailing from wp_get_object_terms() if $object_ids or $taxonomies is empty. Props batmoo. Fixes #19952.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-21 20:20:50 +00:00
duck_ 5e653b76ed Overhaul mysql2date() documentation and parameter names. See #20056.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-21 20:03:11 +00:00
duck_ ebc8ed6395 Remove obsolete mysql2date documentation. Props Viper007Bond. Fixes #20056.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-21 19:55:18 +00:00
bumpbot 5c984c150e Compress scripts/styles: 3.4-alpha-19972.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-21 19:46:03 +00:00
duck_ 7a6b978b7f Ensure that a category is part of the query before redirecting permalink structures containing %category%. Fixes #19241.
This fixes incorrect canonical redirects for singular queries using custom rewrite rules.


git-svn-id: http://svn.automattic.com/wordpress/trunk@19970 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-21 19:00:06 +00:00
nacin 206bd59baa Twenty Twelve always trumps its pretenders. see #19978.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-21 17:39:05 +00:00
bumpbot 95f3fb0e57 Compress scripts/styles: 3.4-alpha-19967.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-21 15:45:56 +00:00
nacin 0d2018f4d0 Allow counting by characters in lieu of a word count, for East Asian languages. First pass. see #8759.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-21 15:35:05 +00:00
bumpbot becc83aba8 Compress scripts/styles: 3.4-alpha-19955.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-20 00:30:57 +00:00
nacin 6e2416cb7e Update wp-tinymce.js.gz.
* Plugins are now sorted alphabetically during concatenation, to ensure consistent generation.
 * Key tinymce/wp-tinymce.js.gz off the revision number, rather than the date.
see #19592.


git-svn-id: http://svn.automattic.com/wordpress/trunk@19953 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-19 01:54:02 +00:00
nacin 82087e02f3 Update TinyMCE mark loaded src. see #19592.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19952 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-19 01:46:48 +00:00
azaozz 70a0c08720 FIx charset in minified file, see #19592
git-svn-id: http://svn.automattic.com/wordpress/trunk@19951 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-18 22:06:17 +00:00
nacin f4901860b6 Add reminder to version the Press This bookmarklet link in case breaking changes are made in the future. fixes #20071.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-18 18:46:15 +00:00
bumpbot a20d926436 Compress scripts/styles: 3.4-alpha-19948.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19948 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-18 08:00:17 +00:00
azaozz 98461bd848 Revert [19946], bumpbot may need to be UTF-8 aware.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-18 07:48:56 +00:00
bumpbot cd384e2e47 Compress scripts/styles: 3.4-alpha-19946.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19946 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-18 07:00:26 +00:00
azaozz 4c10d04190 Load TinyMCE's non-minified "*src.js" plugin files when SCRIPT_DEBUG is defined, part props ericlewis, fixes #20055
git-svn-id: http://svn.automattic.com/wordpress/trunk@19945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-18 06:43:47 +00:00
bumpbot 3c5726a1c4 Compress scripts/styles: 3.4-alpha-19939.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-17 05:00:52 +00:00
nacin c67544eadb Don't try to load the visual editor for Amazon's Silk browser (Kindle Fire), as it doesn't work. Add in a sunrise clause for WebKit build 534. see #20012.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19936 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-17 00:21:00 +00:00
nacin aefde50081 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: http://svn.automattic.com/wordpress/trunk@19935 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-17 00:02:42 +00:00
nacin 8961a61f89 Combine two identical case statements.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19933 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-16 15:42:02 +00:00
nacin 72791ea930 Use is_admin WP_Query propery, not is_admin(), when adding protected post statuses to the query. Allows for overriding on the parse_query hook. fixes #20049.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19932 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-15 19:58:10 +00:00
bumpbot a1fa25ee77 Compress scripts/styles: 3.4-alpha-19931.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19931 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-15 19:27:20 +00:00
duck_ ecdac4be4f Taxonomy rewrite generation when turning on permalinks, r18443 for taxonomies. Props SergeyBiryukov. Fixes #19794.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19930 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-15 17:30:37 +00:00
duck_ 0f26dd5fa8 Remove old show_last_update/include_last_update_time/show_date code from category template functions. Props solarissmoke. Fixes #19953.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19927 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-15 16:46:01 +00:00
ryan 0dfe24e69b Set post password cookies via an action in wp-login.php. Retire wp-pass.php (one less root file). Obey login ssl preferences for post password form submission. Props SergeyBiryukov. fixes #19798
git-svn-id: http://svn.automattic.com/wordpress/trunk@19925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-14 18:29:22 +00:00
ryan cf4135d478 Update phpdoc for wp_mime_type_icon(). Props SergeyBiryukov, mitchoyoshitaka. fixes #16604
git-svn-id: http://svn.automattic.com/wordpress/trunk@19924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-14 18:12:01 +00:00
ryan f5e4af9b53 Properly redirect to install.php when visiting wp-login.php with a config file but no db. Props SergeyBiryukov. fixes #18397
git-svn-id: http://svn.automattic.com/wordpress/trunk@19923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-14 18:08:45 +00:00
ryan 15c7c9095b Use site_url() to construct the cron url. Props SergeyBiryukov. see #13449
git-svn-id: http://svn.automattic.com/wordpress/trunk@19922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-14 17:53:35 +00:00
ryan 6aedd9d0f0 Split the main WP_Query posts query into two queries to avoid temp tables. Leverage cache to avoid second query in persistent cache environments. Props scribu, cheald, prettyboymp. see #18536
git-svn-id: http://svn.automattic.com/wordpress/trunk@19918 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-14 15:09:35 +00:00
ryan 6158ce7244 Disallow changing the post type in mw_editPost(). see #18429
git-svn-id: http://svn.automattic.com/wordpress/trunk@19914 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-13 21:01:55 +00:00
duck_ f906c35510 Stop WP_Editor from outputting TinyMCE external plugins/languages multiple times. Props Cyapow. Fixes #19648.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19913 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-13 18:05:04 +00:00
azaozz 6b6156b5f4 Add the editor ID and the post type (when available) as classes to the TinyMCE's body, fixes #19437
git-svn-id: http://svn.automattic.com/wordpress/trunk@19912 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-13 07:22:45 +00:00
nacin 7caa93fd8f Make sure we are using the admin-ajax handler when we call wp_die() for WP_Ajax_Response. see #20024.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19911 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-12 19:02:07 +00:00
nacin 51cdc1719d Docs, see ##19882.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19910 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-10 22:49:56 +00:00
nacin 40ff0dafbe Allow get_comment_meta() to be called with only a comment ID, something get_metadata() allows. Same functionality as get_user_meta() and get_post_meta(). see #19882.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19909 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-10 22:44:30 +00:00
nacin 396a5b89e8 Allow get_post_meta() to be called with only a post ID, as get_metadata() handles this. props scribu, fixes #19882.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19908 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-10 22:42:54 +00:00
nacin 66f64c7c01 Use correct reference in regex. props danielbachhuber, fixes #20018.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19907 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-10 22:28:37 +00:00
duck_ 787dd48e8b Make get_post_custom() a wrapper of get_post_meta() so that it works when cache addition is suspended and to simplify it.
Props leewillis77 for the initial patch. Fixes #19708.


git-svn-id: http://svn.automattic.com/wordpress/trunk@19906 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-10 22:00:37 +00:00
ryan a856f757db Remove unnecessary cap check in wp_newPage(). mw_newPost() will handle it. Props nprasath002. fixes #19981
git-svn-id: http://svn.automattic.com/wordpress/trunk@19905 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-10 20:49:27 +00:00
bumpbot 03a40a476b Compress scripts/styles: 3.4-alpha-19904.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-10 18:30:49 +00:00
duck_ 5648dd3547 Add @since and @access tag to _split_str_by_whitespace(). Props ocean90. See #16892.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-10 13:57:21 +00:00
duck_ d8a694d8ac Improve efficiency of make_clickable(). Props mdawaffe. Fixes #16892.
Not only does this improve general performance, but also helps to prevent
segfaults caused by malicious input to the regular expression. The regular
expression is also simplified to help readability and maintenance.


git-svn-id: http://svn.automattic.com/wordpress/trunk@19899 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-10 13:42:15 +00:00
bumpbot 70a6d8fb9c Compress scripts/styles: 3.4-alpha-19898.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19898 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-10 09:00:50 +00:00
markjaquith 481959acec Autocomplete for add-user screens in multisite. props boonebgorges, Japh, DrewAPicture, PeteMall, nacin, koopersmith, markjaquith. see #19810.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19897 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-10 08:45:17 +00:00
bumpbot 570a54053f Compress scripts/styles: 3.4-alpha-19896.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19896 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-09 23:30:50 +00:00
bumpbot 10222bac79 Compress scripts/styles: 3.4-alpha-19894.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19894 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-09 22:00:49 +00:00
ryan b0eb479cc2 404 non-existant pages. Make handle_404() readable. Props benbalter, nacin. fixes #15770
git-svn-id: http://svn.automattic.com/wordpress/trunk@19892 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-09 21:04:36 +00:00
ryan f483d85de2 Switch from Net_IPv6 to SimplePie_Net_IPv6. Props stephdau, rmccue. fixes #19991
git-svn-id: http://svn.automattic.com/wordpress/trunk@19891 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-09 20:17:23 +00:00
ryan b447ad26e6 Upgrade SimplePie to 1.2.1. Props nacin. fixes #18309
git-svn-id: http://svn.automattic.com/wordpress/trunk@19890 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-09 20:15:22 +00:00
ryan 3975e5e0d2 Add refresh_blog_details action. Props mdawaffe. fixes #19987
git-svn-id: http://svn.automattic.com/wordpress/trunk@19889 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-09 19:53:53 +00:00
bumpbot 03791d4ad6 Compress scripts/styles: 3.4-alpha-19888.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19888 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-09 17:30:50 +00:00