Commit Graph

7959 Commits

Author SHA1 Message Date
ryan e0c7538280 Parse the meta query again if query vars change. Set a global query_vars_changed flag instead of doing multiple hash creation calls. Props greuben. see #16742 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17553 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-24 16:08:02 +00:00
dd32 ff7a775638 Reinstate [15462] for 3.1; Prevents canonical redirects for custom rewrite rules for taxonomies. See #16627
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-24 01:18:41 +00:00
ryan 000c091b09 Don't die inside db_connect() if connection fails. Let dead_db() handle it. fixes #16640 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-23 19:58:03 +00:00
ryan 1e995c979b Don't die for failed db connects during install. Props westi. fixes #16640 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-23 17:47:20 +00:00
ryan b2c412ebcc Fix display of oversized custom user/site icons in the admin bar. Props jtsternberg, JohnONolan. see #16667 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-22 20:43:16 +00:00
ryan 4e71b1a011 Avoid var name conflict in _get_meta_sql(). Fixes type var passed to get_meta_sql filter. Props Rahe, nacin. fixes #16825 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-22 20:36:20 +00:00
ryan 852860648d Add back compat fields to queried category objects. Props scribu, duck_. fixes #16857 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17529 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-22 20:28:09 +00:00
ryan b5528f516d Return false instead of WP_Error from get_term_by() if the term does not exist. Makes fetching a term by id consistent with slug and name. Props hakre. fixes #16464 #16717 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-22 20:07:50 +00:00
nacin 0f785851c8 Add TinyMCE version number. props SergeyBiryukov, fixes #16674 for the 3.1 branch.
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-10 18:47:36 +00:00
markjaquith 9168d77a75 Correctly handle PATHINFO CPTs and CTs that specify with_front=false. fixes #16807 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-10 04:25:40 +00:00
markjaquith fbff9bf162 Make plugin header parsing slightly more liberal (like it was in 3.0), to allow for PHPdoc style headers. props miqrogroove. fixes #16751 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-09 05:47:25 +00:00
markjaquith 946a00ceb0 Use with_front properly when creating rules for CPT archive pages. props scribu. fixes #16626 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-09 05:41:10 +00:00
markjaquith fc28e3f83f Prevent double index.php preprend on PATHINFO custom taxonomy permalinks. Proper use of with_front. props greuben. fixes #16918. fixes #16622. see #15813. see #12659. For 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-09 05:19:20 +00:00
ryan db890f3ef9 Don't show admin bar on login screen. Props nacin. fixes #16588 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-08 22:49:14 +00:00
ryan 1c704a2db8 Check for WP_Error return from get_term_by(). Props fabifott, kawauso, nacin. fixes #16717 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-08 22:07:06 +00:00
ryan 60e0ec7adb Don't perform taxonomy queries for single post requests. Props scribu. fixes #16703 for trunk
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-08 22:02:12 +00:00
ryan b24da574e1 Don't double process the tag query var. Props scribu. fixes #16730 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-03 16:11:26 +00:00
ryan 011b0bd2b0 Do not do canonical redirects for unregistered feeds. fixes #16704 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-03 15:56:08 +00:00
markjaquith 05759ee9ca Revert to the cat=X permalinks from 3.0 and earlier. props dd32. fixes #16644 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-02 17:30:10 +00:00
ryan fdf0a096db Do not perform canonical redirects for IISto avoid redirect loops on some IIS setups. fixes #16639 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-02 15:33:42 +00:00
ryan bb2e880429 Bump
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-02 15:02:17 +00:00
markjaquith f7d54d04e0 Reparse the taxonomy query if query vars change. fixes #16622 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-02 04:10:53 +00:00
markjaquith 0fad424d88 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17486 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-23 14:45:33 +00:00
markjaquith cd5bc88945 Make a written offer pointing to a central WordPress.org URL for obtaining the source to any binary programs included in WordPress, instead of relying on third party sites. Include the MIT license file that the swfupload project omitted from their codebase. fixes #16517 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17473 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-21 19:39:57 +00:00
nacin 46c2bc99bf Ensure we're matching the complete theme directory when excluding parent templates from the theme editor. props chrisbliss18, fixes #16607 for the 3.1 branch.
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17470 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-21 18:55:48 +00:00
ryan 861d81ad6c Bump
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-17 01:31:56 +00:00
nacin a18b9d8970 Bump.
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17462 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-16 19:38:39 +00:00
ryan 7c25c2160d Lose create_function() in links_add_target() and links_add_base_url(). esc_attr() the target to provide extra coverage for plugins. Props Justin Rainbow, nacin. For 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17460 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-16 19:24:45 +00:00
ryan 4425fc362e Use ->query instead of . Always kick off the parse_query action. fixes #16545 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17456 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-16 16:27:03 +00:00
ryan 7e22be1283 Bump
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-16 00:00:16 +00:00
ryan 1f56cc0d04 Run parse_query() in get_posts() so that the query vars are always parsed for set(), get_posts() patterns. fixes #16545 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-15 23:58:42 +00:00
nacin 14ca237999 s/owpbody/wpbody/. props ptahdunbar, fixes #16559 for 3.1.
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17447 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-14 22:56:15 +00:00
ryan 519cc6a295 Don't allow passing slugs to get_tag_link() and get_category_link(); they are too ambiguous. Restore WP_Error return to get_term_link(). fixes #16521 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-10 21:49:30 +00:00
ryan 5c8e92822b Bump
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17442 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-10 20:41:56 +00:00
ryan 0b2f08609e Return empty strings instead of WP_Errro from get_category_link(), get_term_link(), and get_tag_link() when passed an invalid term. Clarify phpdoc. Props nacin. fixes #16521 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17438 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-10 20:19:02 +00:00
ryan 1981ec619b Pink the whites.
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-09 17:36:23 +00:00
nacin cd8259fa5d Cleanup crew.
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-09 17:35:10 +00:00
ryan d6470f75fa Don't query the post format for post types that don't support formats. Props nacin. fixes #16503 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17430 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-09 17:14:00 +00:00
ryan 3caaeccf2c Return early if list is not an array. Props nacin. fixes #16499 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17428 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-09 17:07:12 +00:00
nacin 5dc0aa23e0 Bump.
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17424 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-08 21:09:10 +00:00
nacin 964bb8bd91 Use wp_kses_post instead of wp_kses_data for a better balance between security and flexibility. fixes #16489 for the 3.1 branch.
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17423 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-08 20:18:04 +00:00
ryan f0ff1d9226 RC4
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17418 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-07 23:01:26 +00:00
ryan e9522e5f75 Bump
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17414 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-07 19:20:10 +00:00
ryan 69ee1b0bcf Bump
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17408 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-06 19:19:31 +00:00
ryan c3cd991ba1 Run sanitize_key() on post_status, comment_status, and ping_status on the way into the DB. Props duck_. For 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-06 18:37:58 +00:00
markjaquith c290c81b1a Do not use PHP5-only array_combine. props duck_. see #16459 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-05 18:46:15 +00:00
ryan 8559a5f1a3 Preserve tag escaping. Props koopersmith, Nils Jueneman. For 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17399 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-05 18:31:48 +00:00
markjaquith 0180311c0f No translation for post format slugs. Too fragile for the future. fixes #16459 for 3.1 branch
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-05 18:25:03 +00:00
markjaquith f658bc1cc3 Improvement to check_admin_referer() when called without first argument (PLUGIN AUTHORS: STOP DOING THAT). props indie-ulf. fixes #16449 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17386 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-03 20:42:10 +00:00
markjaquith a815c789d7 restore_current_blog() in add_user_to_blog() and remove_user_from_blog() before early return, to avoid being stuck in a switched state. props mdawaffe. fixes #16444 for trunk.
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17380 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-03 00:17:35 +00:00