Commit Graph

9492 Commits

Author SHA1 Message Date
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
Andrew Nacin 696f52729e Theme root transient caching is now in search_theme_directories(), not get_themes(). see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20021 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 20:08:08 +00:00
Andrew Nacin 3459ca246e 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: https://develop.svn.wordpress.org/trunk@20020 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 20:05:00 +00:00
Andrew Nacin 75540de79c Clarify second argument for get_raw_theme_root() as the multiple negatives can get confusing. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20018 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 19:59:53 +00:00
Andrew Nacin d738367d99 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: https://develop.svn.wordpress.org/trunk@20016 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 18:02:21 +00:00
Andrew Nacin bf2495e09c 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: https://develop.svn.wordpress.org/trunk@20015 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 16:22:26 +00:00
bumpbot 006515c8cc Compress scripts/styles: 3.4-alpha-20014.
git-svn-id: https://develop.svn.wordpress.org/trunk@20014 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 14:18:24 +00:00
Andrew Ozz b5a3c50057 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: https://develop.svn.wordpress.org/trunk@20013 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 08:03:40 +00:00
Andrew Nacin 563c3231b2 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: https://develop.svn.wordpress.org/trunk@20002 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 01:49:49 +00:00
Andrew Nacin 97adddcaf7 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: https://develop.svn.wordpress.org/trunk@20001 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 01:28:56 +00:00
Ryan Boren 89e9bcc1d6 Pinking shears 6-20000
git-svn-id: https://develop.svn.wordpress.org/trunk@20000 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-27 19:46:52 +00:00
bumpbot b9736c98e6 Compress scripts/styles: 3.4-alpha-19998.
git-svn-id: https://develop.svn.wordpress.org/trunk@19998 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 04:31:03 +00:00
bumpbot 071026ba26 Compress scripts/styles: 3.4-alpha-19996.
git-svn-id: https://develop.svn.wordpress.org/trunk@19997 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 04:16:01 +00:00
Andrew Nacin fefbd866d6 Correct [19952]. see #19592.
git-svn-id: https://develop.svn.wordpress.org/trunk@19996 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 04:15:08 +00:00
Daryl Koopersmith 9f29c06954 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: https://develop.svn.wordpress.org/trunk@19995 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 04:12:43 +00:00
bumpbot 8ba7abcdef Compress scripts/styles: 3.4-alpha-19994.
git-svn-id: https://develop.svn.wordpress.org/trunk@19994 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 02:15:56 +00:00
Andrew Ozz d3cecfc612 Use json_encode when outputting translated strings for use in TinyMCE, fixes #20119
git-svn-id: https://develop.svn.wordpress.org/trunk@19993 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 02:11:29 +00:00
Andrew Nacin eecaca2457 Add jQuery postMessage v 0.2. Dual licensed MIT/GPL. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@19992 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 02:04:17 +00:00
bumpbot 31e28f6f2e Compress scripts/styles: 3.4-alpha-19991.
git-svn-id: https://develop.svn.wordpress.org/trunk@19991 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 00:01:02 +00:00
Andrew Ozz ffdbe9be58 TinyMCE: move the WordPress plugins styles to the theme's stylesheet, fixes #20118
git-svn-id: https://develop.svn.wordpress.org/trunk@19990 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 23:46:04 +00:00
bumpbot 076239d0ed Compress scripts/styles: 3.4-alpha-19989.
git-svn-id: https://develop.svn.wordpress.org/trunk@19989 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 22:30:59 +00:00
Andrew Ozz d1eb773689 Close TinyMCE popups/dialogs when clicking on the background, fixes #20117
git-svn-id: https://develop.svn.wordpress.org/trunk@19988 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 22:29:46 +00:00
Andrew Ozz cb306d5f4b Add new string to the proper i18n object, see #18311
git-svn-id: https://develop.svn.wordpress.org/trunk@19986 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 20:42:36 +00:00
bumpbot d3d4cb95e8 Compress scripts/styles: 3.4-alpha-19985.
git-svn-id: https://develop.svn.wordpress.org/trunk@19985 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 19:30:59 +00:00
Andrew Ozz 1a357fa920 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: https://develop.svn.wordpress.org/trunk@19984 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 19:18:59 +00:00
bumpbot 2a0b86ea08 Compress scripts/styles: 3.4-alpha-19983.
git-svn-id: https://develop.svn.wordpress.org/trunk@19983 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 02:00:58 +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
bumpbot ce89e9f68f Compress scripts/styles: 3.4-alpha-19978.
git-svn-id: https://develop.svn.wordpress.org/trunk@19978 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-22 03:15:57 +00:00
Andrew Ozz d67e4c47f3 Use native TinyMCE popup for the image properties dialog, fixes #20096, see #20094
git-svn-id: https://develop.svn.wordpress.org/trunk@19977 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-22 03:05:25 +00:00
Jon Cave 770361f4e3 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: https://develop.svn.wordpress.org/trunk@19976 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-21 20:33:44 +00:00
Jon Cave 5fcb582c25 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: https://develop.svn.wordpress.org/trunk@19975 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-21 20:20:50 +00:00
Jon Cave e60c17736d Overhaul mysql2date() documentation and parameter names. See #20056.
git-svn-id: https://develop.svn.wordpress.org/trunk@19974 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-21 20:03:11 +00:00
Jon Cave 3b607e3675 Remove obsolete mysql2date documentation. Props Viper007Bond. Fixes #20056.
git-svn-id: https://develop.svn.wordpress.org/trunk@19973 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-21 19:55:18 +00:00
bumpbot ccd9fbbbbb Compress scripts/styles: 3.4-alpha-19972.
git-svn-id: https://develop.svn.wordpress.org/trunk@19972 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-21 19:46:03 +00:00
Jon Cave a92c4a6f2c 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: https://develop.svn.wordpress.org/trunk@19970 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-21 19:00:06 +00:00
Andrew Nacin b21b3b75f3 Twenty Twelve always trumps its pretenders. see #19978.
git-svn-id: https://develop.svn.wordpress.org/trunk@19969 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-21 17:39:05 +00:00
bumpbot 7399c1edc8 Compress scripts/styles: 3.4-alpha-19967.
git-svn-id: https://develop.svn.wordpress.org/trunk@19967 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-21 15:45:56 +00:00
Andrew Nacin f5e87e48af Allow counting by characters in lieu of a word count, for East Asian languages. First pass. see #8759.
git-svn-id: https://develop.svn.wordpress.org/trunk@19966 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-21 15:35:05 +00:00
bumpbot 1ad8b7a376 Compress scripts/styles: 3.4-alpha-19955.
git-svn-id: https://develop.svn.wordpress.org/trunk@19955 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-20 00:30:57 +00:00
Andrew Nacin d219e90d41 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: https://develop.svn.wordpress.org/trunk@19953 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-19 01:54:02 +00:00
Andrew Nacin 4e770c210c Update TinyMCE mark loaded src. see #19592.
git-svn-id: https://develop.svn.wordpress.org/trunk@19952 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-19 01:46:48 +00:00
Andrew Ozz c033588e1d FIx charset in minified file, see #19592
git-svn-id: https://develop.svn.wordpress.org/trunk@19951 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-18 22:06:17 +00:00
Andrew Nacin 5fff43429f Add reminder to version the Press This bookmarklet link in case breaking changes are made in the future. fixes #20071.
git-svn-id: https://develop.svn.wordpress.org/trunk@19949 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-18 18:46:15 +00:00
bumpbot a3f45a4d1c Compress scripts/styles: 3.4-alpha-19948.
git-svn-id: https://develop.svn.wordpress.org/trunk@19948 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-18 08:00:17 +00:00
Andrew Ozz 89efacf68c Revert [19946], bumpbot may need to be UTF-8 aware.
git-svn-id: https://develop.svn.wordpress.org/trunk@19947 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-18 07:48:56 +00:00
bumpbot 95cee51167 Compress scripts/styles: 3.4-alpha-19946.
git-svn-id: https://develop.svn.wordpress.org/trunk@19946 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-18 07:00:26 +00:00
Andrew Ozz 402c8c302d Load TinyMCE's non-minified "*src.js" plugin files when SCRIPT_DEBUG is defined, part props ericlewis, fixes #20055
git-svn-id: https://develop.svn.wordpress.org/trunk@19945 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-18 06:43:47 +00:00
bumpbot af7e8999c8 Compress scripts/styles: 3.4-alpha-19939.
git-svn-id: https://develop.svn.wordpress.org/trunk@19939 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-17 05:00:52 +00:00
Andrew Nacin c4f71a65a4 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: https://develop.svn.wordpress.org/trunk@19936 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-17 00:21:00 +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
Andrew Nacin f7441d78e9 Combine two identical case statements.
git-svn-id: https://develop.svn.wordpress.org/trunk@19933 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-16 15:42:02 +00:00
Andrew Nacin e413239e0a 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: https://develop.svn.wordpress.org/trunk@19932 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-15 19:58:10 +00:00
bumpbot 3189f43063 Compress scripts/styles: 3.4-alpha-19931.
git-svn-id: https://develop.svn.wordpress.org/trunk@19931 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-15 19:27:20 +00:00
Jon Cave 35eae452e8 Taxonomy rewrite generation when turning on permalinks, r18443 for taxonomies. Props SergeyBiryukov. Fixes #19794.
git-svn-id: https://develop.svn.wordpress.org/trunk@19930 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-15 17:30:37 +00:00
Jon Cave 3f8ae63a88 Remove old show_last_update/include_last_update_time/show_date code from category template functions. Props solarissmoke. Fixes #19953.
git-svn-id: https://develop.svn.wordpress.org/trunk@19927 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-15 16:46:01 +00:00
Ryan Boren ee5aae19ef 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: https://develop.svn.wordpress.org/trunk@19925 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-14 18:29:22 +00:00
Ryan Boren 2c83196cff Update phpdoc for wp_mime_type_icon(). Props SergeyBiryukov, mitchoyoshitaka. fixes #16604
git-svn-id: https://develop.svn.wordpress.org/trunk@19924 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-14 18:12:01 +00:00
Ryan Boren f7abac6c21 Properly redirect to install.php when visiting wp-login.php with a config file but no db. Props SergeyBiryukov. fixes #18397
git-svn-id: https://develop.svn.wordpress.org/trunk@19923 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-14 18:08:45 +00:00
Ryan Boren 4ccc748312 Use site_url() to construct the cron url. Props SergeyBiryukov. see #13449
git-svn-id: https://develop.svn.wordpress.org/trunk@19922 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-14 17:53:35 +00:00
Ryan Boren 021c55798e 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: https://develop.svn.wordpress.org/trunk@19918 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-14 15:09:35 +00:00
Ryan Boren 362ef00fc4 Disallow changing the post type in mw_editPost(). see #18429
git-svn-id: https://develop.svn.wordpress.org/trunk@19914 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-13 21:01:55 +00:00
Jon Cave aeff5194b5 Stop WP_Editor from outputting TinyMCE external plugins/languages multiple times. Props Cyapow. Fixes #19648.
git-svn-id: https://develop.svn.wordpress.org/trunk@19913 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-13 18:05:04 +00:00
Andrew Ozz 5c1c053485 Add the editor ID and the post type (when available) as classes to the TinyMCE's body, fixes #19437
git-svn-id: https://develop.svn.wordpress.org/trunk@19912 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-13 07:22:45 +00:00
Andrew Nacin 682c9bd310 Make sure we are using the admin-ajax handler when we call wp_die() for WP_Ajax_Response. see #20024.
git-svn-id: https://develop.svn.wordpress.org/trunk@19911 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-12 19:02:07 +00:00
Andrew Nacin 52838cbf4d Docs, see ##19882.
git-svn-id: https://develop.svn.wordpress.org/trunk@19910 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-10 22:49:56 +00:00
Andrew Nacin 1995262477 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: https://develop.svn.wordpress.org/trunk@19909 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-10 22:44:30 +00:00
Andrew Nacin c8f498046f Allow get_post_meta() to be called with only a post ID, as get_metadata() handles this. props scribu, fixes #19882.
git-svn-id: https://develop.svn.wordpress.org/trunk@19908 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-10 22:42:54 +00:00
Andrew Nacin 9f6709c599 Use correct reference in regex. props danielbachhuber, fixes #20018.
git-svn-id: https://develop.svn.wordpress.org/trunk@19907 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-10 22:28:37 +00:00
Jon Cave dd9c09eff5 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: https://develop.svn.wordpress.org/trunk@19906 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-10 22:00:37 +00:00
Ryan Boren 4d6b3dd997 Remove unnecessary cap check in wp_newPage(). mw_newPost() will handle it. Props nprasath002. fixes #19981
git-svn-id: https://develop.svn.wordpress.org/trunk@19905 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-10 20:49:27 +00:00
bumpbot c9d2c7c7d3 Compress scripts/styles: 3.4-alpha-19904.
git-svn-id: https://develop.svn.wordpress.org/trunk@19904 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-10 18:30:49 +00:00
Jon Cave 8229caa7c4 Add @since and @access tag to _split_str_by_whitespace(). Props ocean90. See #16892.
git-svn-id: https://develop.svn.wordpress.org/trunk@19900 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-10 13:57:21 +00:00
Jon Cave ffa81a1b1e 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: https://develop.svn.wordpress.org/trunk@19899 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-10 13:42:15 +00:00
bumpbot a0aee53ab4 Compress scripts/styles: 3.4-alpha-19898.
git-svn-id: https://develop.svn.wordpress.org/trunk@19898 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-10 09:00:50 +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
bumpbot 4e7b7683d2 Compress scripts/styles: 3.4-alpha-19896.
git-svn-id: https://develop.svn.wordpress.org/trunk@19896 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-09 23:30:50 +00:00
bumpbot d0d49945ab Compress scripts/styles: 3.4-alpha-19894.
git-svn-id: https://develop.svn.wordpress.org/trunk@19894 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-09 22:00:49 +00:00
Ryan Boren a95f44f53f 404 non-existant pages. Make handle_404() readable. Props benbalter, nacin. fixes #15770
git-svn-id: https://develop.svn.wordpress.org/trunk@19892 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-09 21:04:36 +00:00
Ryan Boren 785d6b6acc Switch from Net_IPv6 to SimplePie_Net_IPv6. Props stephdau, rmccue. fixes #19991
git-svn-id: https://develop.svn.wordpress.org/trunk@19891 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-09 20:17:23 +00:00
Ryan Boren 87fc8a6b70 Upgrade SimplePie to 1.2.1. Props nacin. fixes #18309
git-svn-id: https://develop.svn.wordpress.org/trunk@19890 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-09 20:15:22 +00:00
Ryan Boren 49cb409b27 Add refresh_blog_details action. Props mdawaffe. fixes #19987
git-svn-id: https://develop.svn.wordpress.org/trunk@19889 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-09 19:53:53 +00:00
bumpbot 352e3bb9b9 Compress scripts/styles: 3.4-alpha-19888.
git-svn-id: https://develop.svn.wordpress.org/trunk@19888 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-09 17:30:50 +00:00
Ryan Boren 88b6f54e07 Exclude user_url from default user search columns for large networks. fixes #19999
git-svn-id: https://develop.svn.wordpress.org/trunk@19886 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-09 17:15:24 +00:00
Joseph Scott 0ae4ea81c1 Provide the attachment_id of a media item in the XML-RPC call wp.getMediaItem.
Props skithund
Fixes #18683


git-svn-id: https://develop.svn.wordpress.org/trunk@19885 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 23:32:25 +00:00
Joseph Scott 08160dcccf Expose image_default_link_type, image_default_size, and image_default_align
options via XML-RPC

Props koke
Fixes #18126


git-svn-id: https://develop.svn.wordpress.org/trunk@19884 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 23:28:23 +00:00
Joseph Scott 42ed9afd4c Expose the post modified date (in blog TZ and GMT) via XML-RPC
Props ocollet
Fixes #19027


git-svn-id: https://develop.svn.wordpress.org/trunk@19883 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 23:25:11 +00:00
Andrew Nacin 8d80cff84d Add search_columns arg to WP_User_Query to allow for explicit column choices. Without it, the columns will be detected based on the search term. see #19810.
git-svn-id: https://develop.svn.wordpress.org/trunk@19882 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 21:48:47 +00:00
Jon Cave 1f9b62bf85 Prevent undefined index notices in do_enclose(). Props jeremyclarke. Fixes #19865.
git-svn-id: https://develop.svn.wordpress.org/trunk@19881 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 20:55:18 +00:00
Andrew Nacin 7e305ea285 In case of 404, redirect /login, /dashboard, /admin to corresponding WP equivalents. fixes #19607.
git-svn-id: https://develop.svn.wordpress.org/trunk@19880 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 20:11:52 +00:00
Andrew Nacin 9c98b02e1d Combine two strings. props kenan3008, see #18429.
git-svn-id: https://develop.svn.wordpress.org/trunk@19879 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 18:50:25 +00:00
Andrew Nacin a3055f1031 Let wp-admin work as well as wp-admin/ for the canonical redirect. see #19607.
git-svn-id: https://develop.svn.wordpress.org/trunk@19878 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 18:03:25 +00:00
Andrew Nacin e91cbc3190 Use correct variable. see #19607.
git-svn-id: https://develop.svn.wordpress.org/trunk@19877 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 17:14:52 +00:00
Jon Cave a60932bf66 Post formats should show_in_nav_menus when the current theme supports them. Props filosofo, nacin. Fixes #16390.
git-svn-id: https://develop.svn.wordpress.org/trunk@19876 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 17:12:02 +00:00
Andrew Nacin 358d6b6384 When WordPress is in a subdirectory (home URL != site URL), let home/wp-admin and home/wp-login.php redirect to their proper locations. props greuben for initial patch, fixes #19607.
git-svn-id: https://develop.svn.wordpress.org/trunk@19875 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 17:08:13 +00:00
Ryan Boren 62cccd2642 s/_wp_insertPost/_insert_post/. Helper funcs should follow core rather than xmlrpc style. see #18429
git-svn-id: https://develop.svn.wordpress.org/trunk@19873 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 17:00:19 +00:00
Andrew Nacin 51ded65294 Coverage for load-scripts.php. fixes #19959.
git-svn-id: https://develop.svn.wordpress.org/trunk@19872 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 16:15:24 +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
Andrew Nacin d583f37634 Introduce 'relative' scheme to return only the paths for home_url, site, admin, network_, and get_ variants. props SergeyBiryukov, see #18952.
git-svn-id: https://develop.svn.wordpress.org/trunk@19870 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 16:09:41 +00:00
Ryan Boren b44aafa79d Formatting cleanup. see #18429
git-svn-id: https://develop.svn.wordpress.org/trunk@19869 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 16:04:58 +00:00
Jon Cave 99fbbdbd4a Mark wp_editPost() documentation as docblock. See #18429.
git-svn-id: https://develop.svn.wordpress.org/trunk@19868 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 16:03:31 +00:00
Ryan Boren 1496151d54 Simplify cap checking. Props nprasath002. see #18429
git-svn-id: https://develop.svn.wordpress.org/trunk@19867 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 15:40:26 +00:00
Andrew Nacin be343dba2c Use [\r\n\t ], not [\s], to prevent issues with some UTF-8 characters. props SergeyBiryukov, fixes #19033.
git-svn-id: https://develop.svn.wordpress.org/trunk@19866 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 15:35:22 +00:00
Andrew Nacin b90754dbca Wait until init to fire wp_default_scripts. Fixes localization issues when a plugin calls wp_enqueue_script() too early (in spite of the _doing_it_wrong warning signs added in #11526). fixes #19959.
git-svn-id: https://develop.svn.wordpress.org/trunk@19865 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 15:29:24 +00:00
Ryan Boren 6fe3f7639e Space between if and open paren
git-svn-id: https://develop.svn.wordpress.org/trunk@19864 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 14:54:15 +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
Andrew Nacin 0c59eacb55 Use is_rtl() for html direction when possible. In sites.php, language_attributes() will always exist (MU vestige). When the DB is dead, language_attributes() is worse than a simple is_rtl() check. is_rtl() exists here due to wp_load_translations_early(). see #18180.
git-svn-id: https://develop.svn.wordpress.org/trunk@19862 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 06:05:35 +00:00
bumpbot 5bc782d896 Compress scripts/styles: 3.4-alpha-19861.
git-svn-id: https://develop.svn.wordpress.org/trunk@19861 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 06:00:51 +00:00
Ryan Boren 975135c1d1 Add an "Edit Site" submenu to the admin bar site menu when a super admin visits a blog dashboard. see #18188
git-svn-id: https://develop.svn.wordpress.org/trunk@19855 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-07 18:35:29 +00:00
bumpbot 15c9daa5b9 Compress scripts/styles: 3.4-alpha-19854.
git-svn-id: https://develop.svn.wordpress.org/trunk@19854 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-07 18:30:51 +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
Andrew Nacin 7391c909df Simplify matching code. see #19670.
git-svn-id: https://develop.svn.wordpress.org/trunk@19852 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-07 17:44:29 +00:00
Ryan Boren dc41877dc9 Update color scheme definition for Gray Theme. Props chexee. fixes #17818
git-svn-id: https://develop.svn.wordpress.org/trunk@19851 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-07 17:20:02 +00:00
Ryan Boren b495757102 Fix notices. Simplify checkbox logic. Props SergeyBiryukov. fixes #19670
git-svn-id: https://develop.svn.wordpress.org/trunk@19850 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-07 17:12:46 +00:00
Ryan Boren 6425c0ff31 Upgrade PHPMailer to 5.2.1. Props MattyRob. fixes #19887
git-svn-id: https://develop.svn.wordpress.org/trunk@19849 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-07 16:13:51 +00:00
Peter Westwood 9f8a83a3c1 XMLRPC: Introduce new create,read,update and delete XMLRPC apis for Posts, Pages and all Custom Post Types.
Introduces: wp.newPost, wp.editPost, wp.deletePost, wp.getPost, and wp.getPosts
See #18429, #18430, #18431, #18432, and #18433 props maxcutler and markoheijnen.


git-svn-id: https://develop.svn.wordpress.org/trunk@19848 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-07 11:33:39 +00:00
bumpbot 6e70033528 Compress scripts/styles: 3.4-alpha-19847.
git-svn-id: https://develop.svn.wordpress.org/trunk@19847 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-06 23:31:17 +00:00
Andrew Ozz 5c2650abc8 Click empty toolbar to scroll to top, props ericmann, fixes #18758
git-svn-id: https://develop.svn.wordpress.org/trunk@19846 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-06 23:17:28 +00:00
bumpbot a87e3742f9 Compress scripts/styles: 3.4-alpha-19841.
git-svn-id: https://develop.svn.wordpress.org/trunk@19841 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-06 21:00:50 +00:00
bumpbot b6c9842068 Compress scripts/styles: 3.4-alpha-19839.
git-svn-id: https://develop.svn.wordpress.org/trunk@19839 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-06 20:00:50 +00:00
Jon Cave 8039f91954 Echo "WordPress.org" as well as translating it in the Meta widget. See #19603.
git-svn-id: https://develop.svn.wordpress.org/trunk@19838 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-06 19:52:42 +00:00
Andrew Nacin fc12b9fa10 Add a translator's comment. see #19924.
git-svn-id: https://develop.svn.wordpress.org/trunk@19837 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-06 19:43:26 +00:00
Andrew Nacin e92b79e31f Do RTL detection based on a translated string, rather than a hardcoded list. Makes things a bit cleaner. fixes #19924, fixes #19600.
git-svn-id: https://develop.svn.wordpress.org/trunk@19836 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-06 19:36:24 +00:00
Andrew Nacin d0ec0de49d Translate TinyMCE's spellchecker languages. props SergeyBiryukov, fixes #19962.
git-svn-id: https://develop.svn.wordpress.org/trunk@19833 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-06 19:13:06 +00:00
Andrew Ozz 469745d625 Move an unsightly semicolon to where it belongs in wp_localize_script(), props tw2113, fixes #19830
git-svn-id: https://develop.svn.wordpress.org/trunk@19832 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-06 18:52:57 +00:00
Andrew Ozz 4f500fdb56 Update TinyMCE to 3.4.8, fixes #19969, fixes #19936, fixes #19741
git-svn-id: https://develop.svn.wordpress.org/trunk@19830 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-04 22:23:27 +00:00
Andrew Nacin 10d17e6e29 Use translate, not translate with context. props azaozz. see #19603.
git-svn-id: https://develop.svn.wordpress.org/trunk@19829 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-04 18:37:53 +00:00
bumpbot 04a88d8671 Compress scripts/styles: 3.4-alpha-19827.
git-svn-id: https://develop.svn.wordpress.org/trunk@19827 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-04 01:16:30 +00:00
Andrew Nacin ca343daf1c Translate another http://wordpress.org/ link. see #19603.
git-svn-id: https://develop.svn.wordpress.org/trunk@19823 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-03 20:16:58 +00:00
Andrew Nacin b3aee653fd Return an empty object properly. see #17242.
git-svn-id: https://develop.svn.wordpress.org/trunk@19821 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-03 13:38:03 +00:00
Ryan Boren 80cc194365 Allow flexible sizes for custom header uploads. Round 1. Props aaroncampbell, sabreuse. see #17242
git-svn-id: https://develop.svn.wordpress.org/trunk@19815 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-02 23:35:37 +00:00
bumpbot 1387e4e2a7 Compress scripts/styles: 3.4-alpha-19814.
git-svn-id: https://develop.svn.wordpress.org/trunk@19814 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-01 22:41:34 +00:00
Andrew Nacin 05c839608a Don't create a variable we only use once. props niallkennedy, fixes #19941.
git-svn-id: https://develop.svn.wordpress.org/trunk@19812 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-01 22:33:43 +00:00
Jon Cave 5371356600 Pages must be paged (/page/x/) to allow for the page_for_posts option. See #19876.
git-svn-id: https://develop.svn.wordpress.org/trunk@19810 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-01 19:19:32 +00:00
bumpbot 7dc4430f4f Compress scripts/styles: 3.4-alpha-19805.
git-svn-id: https://develop.svn.wordpress.org/trunk@19805 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-01 14:43:00 +00:00
Andrew Nacin 2e0818c264 Compress CSS/JS using the latest version of YUI Compressor, 2.4.7. Removes final semicolon in a CSS declaration block. Previously, committers used 2.4.2. see #19592.
git-svn-id: https://develop.svn.wordpress.org/trunk@19803 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-01 14:37:52 +00:00
Andrew Nacin 25eac276df Re-purpose wp_die() for ajax responses.
* Allows unit testing of core ajax actions.
 * wp_die() now has separate filters to choose a handler depending on the context (ajax, XML-RPC, else).
 * wp_die) in ajax context does not need to be called with a string. Conversion takes place before die().
props kurtpayne, see #15327.



git-svn-id: https://develop.svn.wordpress.org/trunk@19801 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-31 22:12:58 +00:00
bumpbot 701719af94 Compress scripts/styles: 3.4-alpha-19800.
git-svn-id: https://develop.svn.wordpress.org/trunk@19800 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-31 19:59:09 +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
Andrew Nacin bbec83ba02 Only set text_direction based on a locale being RTL if we successfully loaded a locale.mo file. Otherwise we may be in RTL land based on a WPLANG constant but nothing else. fixes #19924.
git-svn-id: https://develop.svn.wordpress.org/trunk@19797 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-31 14:30:36 +00:00
Andrew Nacin d6886c9059 wptexturize() does not need to staticize variables it only uses to set up variables it needs statically. see #19602.
git-svn-id: https://develop.svn.wordpress.org/trunk@19796 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-31 14:28:30 +00:00
Andrew Nacin d87851514a Allow the single quotes, apostrophes, and primes in wptexturize() to be translated. Allows replacements to be disabled by translating them back to " and '. fixes #19602.
git-svn-id: https://develop.svn.wordpress.org/trunk@19795 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-31 14:06:32 +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
Andrew Nacin 7f118d4b05 Load admin-$locale.mo in setup-config.php. see #19852, see #18180.
git-svn-id: https://develop.svn.wordpress.org/trunk@19787 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-29 20:49:34 +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
Jon Cave 6a7fe5b25c Use new $args parameter for (WP_Rewrite::)add_permastruct(). Fixes #16092.
Use array_intersect_key() to keep WP_Rewrite::$extra_permastructs free of unnecessary/unknown keys + values.


git-svn-id: https://develop.svn.wordpress.org/trunk@19779 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-28 21:00:59 +00:00
Jon Cave e195032ff4 Redirect bare category URLs for permalink structures starting with %category%. Fixes #19876.
When using a structure like /%category%/%postname%/ it might be thought that /uncategorized/
(missing the "/category/" base) results in the category archive. Previously this worked due to
$walk_dirs = true for the post permalink structure, but canonical didn't redirect it. Now
there is no rewrite rule to match => 404. The fix is to use a canonical redirect.


git-svn-id: https://develop.svn.wordpress.org/trunk@19778 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-28 20:40:55 +00:00
Peter Westwood 15e41d5879 Correct the datatype for the skip_frames argument in the phpDoc props Rarst.
git-svn-id: https://develop.svn.wordpress.org/trunk@19777 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-28 14:36:16 +00:00
Jon Cave e6cbf0b4e6 Separated into 3 commits for good luck. See r19775.
git-svn-id: https://develop.svn.wordpress.org/trunk@19776 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-28 12:37:08 +00:00
Peter Westwood dbc1c14868 Separating my commits so that my spelling mistakes are plain for everyone to see. Fix another mistake props duck_.
git-svn-id: https://develop.svn.wordpress.org/trunk@19775 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-28 12:32:55 +00:00
Peter Westwood 6538ad3d0c Fix my spelling mistakes and typos in the wp_debug_backtrace_summary() phpDoc props duck_ see #19589.
git-svn-id: https://develop.svn.wordpress.org/trunk@19774 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-28 12:25:58 +00:00
Peter Westwood b3a331887a Refactor WPDB::get_caller() into wp_debug_backtrace_summary() and improve the functionality to provide enhanced context and a standardised default pretty format. Fixes #19589
git-svn-id: https://develop.svn.wordpress.org/trunk@19773 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-28 11:56:50 +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 30889de384 Provide a DB fallback for keys in wp_salt(). Fall back when any secret is used more than once. Change how we detect a localized 'put your unique phrase here' -- eliminate $wp_default_secret_key and introduce $wp_secret_key_default to be added during the localized build process, not by translators. fixes #19599.
git-svn-id: https://develop.svn.wordpress.org/trunk@19771 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-27 18:52:20 +00:00
Andrew Nacin 64ade9c31b Docs for WP_Locale::is_locale_rtl( $locale ). see #18180, see #19600.
git-svn-id: https://develop.svn.wordpress.org/trunk@19761 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-26 21:20:19 +00:00
Andrew Nacin 2fd55c3df1 Introduce wp_load_translations_early(), which can be used before the locale is properly loaded in order to translate early error strings. Internationalize setup-config.php -- translators no longer have a reason to modify this file. fixes #18180.
git-svn-id: https://develop.svn.wordpress.org/trunk@19760 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-26 20:34:27 +00:00
Jon Cave c67d273f1f Remove redundant logic from filter_SSL(). Props deltafactory. Fixes #19899.
git-svn-id: https://develop.svn.wordpress.org/trunk@19759 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-26 09:21:44 +00:00
Jon Cave a981d2ad3a Add the $query parameter to add_rewrite_tag() so that it matches WP_Rewrite::add_rewrite_tag(). Fixes #19871.
Also rename some other parameters so that they all match.


git-svn-id: https://develop.svn.wordpress.org/trunk@19756 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-25 22:48:24 +00:00
Andrew Nacin 16cc855201 Initial support for RTL detection in core. props SergeyBiryukov for compiling the list. fixes #19600.
git-svn-id: https://develop.svn.wordpress.org/trunk@19755 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-25 22:41:55 +00:00
Andrew Nacin eb56e50088 Remove locale_vars from WP_Locale. Explicitly set the text_direction property from a global, not from an arbitrary list. see #19600.
git-svn-id: https://develop.svn.wordpress.org/trunk@19754 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-25 22:29:33 +00:00
Jon Cave 0ac5563ac8 Improve the inline documentation of rewrite endpoints. See #16303.
git-svn-id: https://develop.svn.wordpress.org/trunk@19753 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-25 21:58:23 +00:00
Jon Cave 827e45d7fa Improve documentation of WP_Rewrite. Fixes #19897.
In particular WP_Rewrite::$front, WP_Rewrite::$root, WP_Rewrite::$use_verbose_page_rules and WP_Rewrite::generate_rewrite_rules(). As well as some code indentation prettification.


git-svn-id: https://develop.svn.wordpress.org/trunk@19752 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-25 21:44:02 +00:00
Peter Westwood b285909d01 Update the documentation of wp_set_comment_status to match current functionality props solarissmoke.
The 'delete' status was removed in [11749] when the concept of a trash status was introduced for #4529.

git-svn-id: https://develop.svn.wordpress.org/trunk@19751 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-25 10:41:52 +00:00
Andrew Nacin 6c10676b18 s/thumbnail/post-thumbnail/. props PeteMall, fixes #19804.
git-svn-id: https://develop.svn.wordpress.org/trunk@19750 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-25 00:21:02 +00:00
Andrew Nacin c647c3494d Use get_blog_prefix() in another MU function. see #19891.
git-svn-id: https://develop.svn.wordpress.org/trunk@19749 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-25 00:10:46 +00:00
Andrew Nacin 844dd38b8f Use get_blog_prefix() in get_most_recent_post_of_user(). see #19891.
git-svn-id: https://develop.svn.wordpress.org/trunk@19748 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-25 00:09:30 +00:00
Andrew Nacin c8b1c822ce Remove copy-pasted comment from upload_is_user_over_quota()'s phpdoc. It came from recurse_dirsize(). see #19879.
git-svn-id: https://develop.svn.wordpress.org/trunk@19747 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-24 23:54:24 +00:00
Andrew Nacin 838bb8c0c5 s/parem/param/. props Latz. fixes #19823.
git-svn-id: https://develop.svn.wordpress.org/trunk@19744 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-24 21:52:49 +00:00
Jon Cave a9b6163795 Upgrade add_permastruct() to allow more control over WP_Rewrite::generate_rewrite_rules(). See #16092.
The third argument is now a configuration array that mirrors the parameters of generate_rewrite_rules()
and allows for add_permastruct() specific args (i.e. with_front). The full configuration is stored in
WP_Rewrite::$extra_permastructs to be used by WP_Rewrite::rewrite_rules().


git-svn-id: https://develop.svn.wordpress.org/trunk@19743 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-24 18:27:18 +00:00
Andrew Nacin 28cfc3cd49 Correct logic inversion. #19275.
git-svn-id: https://develop.svn.wordpress.org/trunk@19742 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-23 20:10:01 +00:00
Andrew Nacin 7140ded1cc Clean up and better document create_initial_taxonomies(). see #19275.
git-svn-id: https://develop.svn.wordpress.org/trunk@19741 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-23 19:58:26 +00:00
Andrew Nacin 05d413f123 Args is an object, not an array. props duck_, aaroncampbell. see #19275.
git-svn-id: https://develop.svn.wordpress.org/trunk@19740 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-23 19:32:39 +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 3652e88cad Set $paged and $walk_dirs to false in calls to WP_Rewrite::generate_rewrite_rules() for posts/pages. See #19876.
git-svn-id: https://develop.svn.wordpress.org/trunk@19737 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-23 19:03:56 +00:00
Jon Cave cf4e9851fe Simplify code in WP_Rewrite::page_rewrite_rules() and remove out-of-date documenation. Fixes #19875.
git-svn-id: https://develop.svn.wordpress.org/trunk@19736 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-22 17:21:29 +00:00
Ryan Boren 2aa4b228e3 Match the exact role name when counting users in a role. Props 082net. fixes #12693
git-svn-id: https://develop.svn.wordpress.org/trunk@19735 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-20 16:34:26 +00:00
Jon Cave d2306a693b Update hierarchy for all hierarchical post types when deleting a parent post, not just for pages. Fixes #19637.
git-svn-id: https://develop.svn.wordpress.org/trunk@19734 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-13 18:37:46 +00:00
Ryan Boren 77958da0d2 Update register_taxonomy_for_object_type() phpdoc to reflect that the post_type must be a string only, no arrays allowed. Props transom. fixes #19795
git-svn-id: https://develop.svn.wordpress.org/trunk@19730 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-11 21:39:01 +00:00
Ryan Boren 285247786e Use wp_cache_add() instead of wp_cache_set() when priming the object term cache in update_object_term_cache(). Pass the real post_type to clean_object_term_cache() instead of hard-coding post. Call clean_object_term_cache() from clean_bookmark_cache(). Props leewillis77. fixes #19690
git-svn-id: https://develop.svn.wordpress.org/trunk@19729 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-11 21:26:18 +00:00
Ryan Boren ee4f1cfe80 Hash post password in cookies. fixes #19797
git-svn-id: https://develop.svn.wordpress.org/trunk@19728 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-11 16:42:42 +00:00
Jon Cave 148329fecb Rewrite rules don't need to be flushed on every page save/delete as they're no longer verbose. Fixes #19636.
git-svn-id: https://develop.svn.wordpress.org/trunk@19727 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-10 22:55:38 +00:00
Jon Cave 156048ca52 split was deprecated in PHP 5.3.0, so use explode instead. Props garyc40. Fixes #16325.
git-svn-id: https://develop.svn.wordpress.org/trunk@19726 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-09 21:20:51 +00:00
Ryan Boren 55d6e7e261 Update wp_salt() phpdoc. fixes #18696
git-svn-id: https://develop.svn.wordpress.org/trunk@19725 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-09 20:52:08 +00:00
Ryan Boren dc3bccda20 Code cleanup in the paging block. Props kawauso. fixes #19773
git-svn-id: https://develop.svn.wordpress.org/trunk@19724 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-09 20:08:57 +00:00
Ryan Boren 3a1b732f51 Use microtime() for cron locks. fixes #19700
git-svn-id: https://develop.svn.wordpress.org/trunk@19722 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-09 19:02:31 +00:00
Andrew Nacin e1b429fd67 Add Twitter.com as an oEmbed provider. props Otto42. see #19626.
git-svn-id: https://develop.svn.wordpress.org/trunk@19721 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-09 17:43:48 +00:00
bumpbot 9a6f2ac850 Compress scripts/styles: 3.4-alpha-19719.
git-svn-id: https://develop.svn.wordpress.org/trunk@19719 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 23:27:39 +00:00
Daryl Koopersmith 13172523c0 Allow toolbar submenus to expand to the width of the parent item. Props camiloclc, fixes #19139.
git-svn-id: https://develop.svn.wordpress.org/trunk@19717 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 23:15:16 +00:00
bumpbot ddd5520132 Compress scripts/styles: 3.4-alpha-19716.
git-svn-id: https://develop.svn.wordpress.org/trunk@19716 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 23:05:52 +00:00
bumpbot 9b98915ea1 Compress scripts/styles: 3.4-alpha-19715.
git-svn-id: https://develop.svn.wordpress.org/trunk@19715 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 22:54:51 +00:00
bumpbot 4cc22ea2a6 Compress scripts/styles: 3.4-alpha-19713.
git-svn-id: https://develop.svn.wordpress.org/trunk@19714 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 22:53:10 +00:00
Daryl Koopersmith 430700d5db Improve pointer collision handling. fixes #19021.
git-svn-id: https://develop.svn.wordpress.org/trunk@19713 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 22:53:05 +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 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
Andrew Nacin 921ba280d2 Expose default_ping_status and default_comment_status via XML-RPC. props daniloercoli. fixes #18566.
git-svn-id: https://develop.svn.wordpress.org/trunk@19706 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-07 19:08:48 +00:00
bumpbot 656fe02688 Compress scripts/styles: 3.4-alpha-19704.
git-svn-id: https://develop.svn.wordpress.org/trunk@19704 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-06 18:43:22 +00:00
Andrew Nacin ad1455dd33 Show cursor for the search icon. props jaquers. fixes #19594.
git-svn-id: https://develop.svn.wordpress.org/trunk@19703 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-06 18:33:40 +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 a5ada1a537 about.php and friends for the global dashboard. see #19762.
git-svn-id: https://develop.svn.wordpress.org/trunk@19700 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-06 18:08:45 +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