Commit Graph

12269 Commits

Author SHA1 Message Date
Dion Hulse e7b6cd83c7 Prevent PHP Notices on 404 pages
git-svn-id: https://develop.svn.wordpress.org/trunk@13691 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-13 07:47:20 +00:00
Dion Hulse fa7d038cae Move 'restrict_manage_posts' to a more useful place for uploads. Props jfarthing84. Fixes #12325
git-svn-id: https://develop.svn.wordpress.org/trunk@13690 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-13 07:40:50 +00:00
Dion Hulse 05889a6180 Whitespace additions to WP_Rewrite. A few coding standards too.
git-svn-id: https://develop.svn.wordpress.org/trunk@13689 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-13 07:29:10 +00:00
Dion Hulse 327d84d8f8 Add Endpoints for Attachments, Paging, Comment paging and custom Endpoints to custom post_type's. See #12597
git-svn-id: https://develop.svn.wordpress.org/trunk@13688 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-13 06:59:07 +00:00
Dion Hulse af2148aaf0 Force Theme update check on GUU. See #12528
git-svn-id: https://develop.svn.wordpress.org/trunk@13687 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-13 04:05:54 +00:00
Dion Hulse 34e135fa81 Bulk Theme Upgrades. See #12528 See #11232 for Bulk UI
git-svn-id: https://develop.svn.wordpress.org/trunk@13686 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-13 03:59:40 +00:00
Ryan Boren 8ed4a506c4 Always use lowercase strings or menu type. Don't double save custom link menu items (remove the AJAX save). see #12566
git-svn-id: https://develop.svn.wordpress.org/trunk@13685 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-12 21:57:52 +00:00
Andrew Nacin 3a5b7f065b Fix assignment. Props Rasmus Lerdorf via ConFoo presentation.
git-svn-id: https://develop.svn.wordpress.org/trunk@13684 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-12 19:32:48 +00:00
Ryan Boren e215851f8d the_shortlink(). Props miqrogroove. fixes #10640
git-svn-id: https://develop.svn.wordpress.org/trunk@13683 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-12 16:08:37 +00:00
Andrew Nacin 363ba99066 Remove conditionally declared wp_check_filetype() from ms-files.php. It will always be defined in functions.php. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@13682 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-12 00:38:04 +00:00
Andrew Nacin f367a78cb7 Check for empty(), not !is_array(), when trying to determine if wpdb::get_results() returned results. See #10607
git-svn-id: https://develop.svn.wordpress.org/trunk@13681 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-12 00:26:31 +00:00
Andrew Nacin b1ab90b3b3 Fix notice on users admin panel. More or less reverts earlier fix, [13617]. props miqrogroove. fixes #12555
git-svn-id: https://develop.svn.wordpress.org/trunk@13680 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-12 00:03:44 +00:00
Andrew Nacin 0e567e38f1 Don't allow access to network.php if running an MU network. It is only for networks created in 3.0. see #11816. Also, fix MS htaccess logic, see #12136
git-svn-id: https://develop.svn.wordpress.org/trunk@13679 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 23:53:03 +00:00
Andrew Nacin 8a287c5c63 Don't check for the existence of index.php in the htaccess rewrite rules. props miqrogroove. see #11845
git-svn-id: https://develop.svn.wordpress.org/trunk@13678 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 23:33:01 +00:00
Andrew Nacin c5e62bc71b Fix typo in [13673]. see #12416
git-svn-id: https://develop.svn.wordpress.org/trunk@13677 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 23:28:12 +00:00
Andrew Nacin 403bf947e1 Don't check for the existence of index.php in the htaccess rewrite rules. props miqrogroove. see #11845
git-svn-id: https://develop.svn.wordpress.org/trunk@13676 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 22:58:43 +00:00
Andrew Nacin 0d3634ecbd Improve multisite rewrite rules. Construct rules dynamically and skip subdirectory-specific rules for subdomain installs. see #12136
git-svn-id: https://develop.svn.wordpress.org/trunk@13675 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 22:33:52 +00:00
Peter Westwood c50eaee3d3 Fix a possible undefined offset warning in do_action. Fixes #11241 props chrisbliss18.
git-svn-id: https://develop.svn.wordpress.org/trunk@13674 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 21:58:17 +00:00
Ryan Boren 9b019acfbe make *_option(), *_transient() functions consistently expect unslashed data. Props Denis-de-Bernardy. see #12416
git-svn-id: https://develop.svn.wordpress.org/trunk@13673 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 21:49:56 +00:00
Peter Westwood 09fdceae63 Tidy up the text which describes pingbacks. Fixes #12504 props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@13672 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 21:34:53 +00:00
Peter Westwood fe8462294a Ensure that wpdb::get_results() always returns an array when it should. Fixes #10607 props miqrogroove.
git-svn-id: https://develop.svn.wordpress.org/trunk@13671 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 21:30:29 +00:00
Peter Westwood bb7b2b24a8 Make the sanitity check html in the installer more poetic.
git-svn-id: https://develop.svn.wordpress.org/trunk@13670 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 20:45:24 +00:00
Ryan Boren c55c95bbb0 Revert accidental junk. see #12186
git-svn-id: https://develop.svn.wordpress.org/trunk@13669 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 20:26:24 +00:00
Ryan Boren a1d788a893 Custom background color fixes. see #12186
git-svn-id: https://develop.svn.wordpress.org/trunk@13668 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 20:21:58 +00:00
Andrew Nacin d14218fcd3 Add delete_user_option(). fixes #12573, props TobiasBg.
git-svn-id: https://develop.svn.wordpress.org/trunk@13667 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 18:28:31 +00:00
Andrew Nacin 781cbf67d8 Fix assignment in WP_User::for_blog(). props prettyboymp, fixes #12587
git-svn-id: https://develop.svn.wordpress.org/trunk@13666 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 18:24:37 +00:00
Andrew Nacin 727e407dcb Add valign, and formatting and i18n improvement.
git-svn-id: https://develop.svn.wordpress.org/trunk@13665 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 18:16:26 +00:00
Andrew Nacin 26890f0131 get_blog_count() returns a number, not an object. Also, i18n fixes -- add plural string, and translator context. see #12531 for get_blog_count() discussion. see #12409 for ms-sites cleanup.
git-svn-id: https://develop.svn.wordpress.org/trunk@13664 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 18:02:40 +00:00
Andrew Nacin 82bc5eb308 Simplify hackish logic. props miqrogroove. fixes #12581
git-svn-id: https://develop.svn.wordpress.org/trunk@13663 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 17:30:02 +00:00
Andrew Nacin e22682a5dc Fix logic and pull static code out of a loop. fixes #12581
git-svn-id: https://develop.svn.wordpress.org/trunk@13662 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 17:21:18 +00:00
Andrew Nacin 8d0a3589c9 Use disabled() form helper. fixes #12581
git-svn-id: https://develop.svn.wordpress.org/trunk@13661 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 17:12:23 +00:00
Ryan Boren a4ac7f25ee Allow custom post types to have custom icons. Props ptahdunbar, Denis-de-Bernardy. fixes #12434
git-svn-id: https://develop.svn.wordpress.org/trunk@13660 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 17:05:16 +00:00
Ryan Boren e333b6925a Use page icon for page menus. fixes #12583
git-svn-id: https://develop.svn.wordpress.org/trunk@13659 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 16:54:47 +00:00
Andrew Nacin 90182075c0 Introduce the disabled() form helper. Move selected() and checked() out of wp-admin and into full scope. see #12581
git-svn-id: https://develop.svn.wordpress.org/trunk@13658 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 16:34:27 +00:00
Ryan Boren 182873dfaa Restrict schemes allowed in wp_validate_redirect()
git-svn-id: https://develop.svn.wordpress.org/trunk@13657 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 14:54:11 +00:00
Andrew Nacin ef7e0ef243 Remove dummy contextual help from network.php. We'll need some real docs. #11816
git-svn-id: https://develop.svn.wordpress.org/trunk@13656 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 03:15:09 +00:00
Andrew Nacin d6adc0701c First pass at error handling for populate_network() and network.php. see #11816
git-svn-id: https://develop.svn.wordpress.org/trunk@13655 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 01:51:24 +00:00
Andrew Nacin 10a2ebb829 Fix typo, trim whitespace. see #12460
git-svn-id: https://develop.svn.wordpress.org/trunk@13654 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-10 23:38:05 +00:00
Ryan Boren 74ece7e880 Cache get_lastpostmodified() results. see #12575
git-svn-id: https://develop.svn.wordpress.org/trunk@13653 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-10 21:32:03 +00:00
Ryan Boren 1ca609f8d3 Move wp_shortlink_header to template_redirect. Props miqrogroove. see #10640
git-svn-id: https://develop.svn.wordpress.org/trunk@13652 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-10 21:19:54 +00:00
Ryan Boren 970bda3701 Menu editor fixes. Props yoavf. fixes #12545 #12566
git-svn-id: https://develop.svn.wordpress.org/trunk@13651 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-10 20:27:42 +00:00
Ryan Boren 30bb2a68a1 Don't replace Link headers. Update phpdoc. see #10604
git-svn-id: https://develop.svn.wordpress.org/trunk@13650 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-10 20:10:32 +00:00
Ron Rennick 0b9d0bbfe0 network options UI cleanup, see #12465
git-svn-id: https://develop.svn.wordpress.org/trunk@13649 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-10 19:00:43 +00:00
Ryan Boren f8a2a5ca31 Fix numeric entity logic in kses. Props miqrogroove. see #12284
git-svn-id: https://develop.svn.wordpress.org/trunk@13648 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-10 18:45:28 +00:00
Ryan Boren 78ef621011 Add no_found_rows argument to WP_Query::get_posts() to allow forcibly defeating SQL_CALC_FOUND_ROWS. Use no_found_rows for the query in get_boundary_post(). fixes #12557
git-svn-id: https://develop.svn.wordpress.org/trunk@13647 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-10 18:37:03 +00:00
Ron Rennick 8de3d20dc2 Display a warning when processing an unregistered setting, see #11730
git-svn-id: https://develop.svn.wordpress.org/trunk@13646 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-10 17:44:32 +00:00
Ron Rennick c466a4bf82 Delete blog to Delete site, props markmcwilliams, see #12572, code cleanup, see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@13645 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-10 16:06:53 +00:00
Andrew Nacin f59126029d Remove unused MU function and unnecessary separate includes file. see #11816
git-svn-id: https://develop.svn.wordpress.org/trunk@13644 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-10 08:46:05 +00:00
Dion Hulse 0b6f00c0c1 Fix paging links "Displaying x–y of z" for Pages. Props Utkarsh. Fixes #12552
git-svn-id: https://develop.svn.wordpress.org/trunk@13643 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-10 08:41:09 +00:00
Andrew Nacin c2bb5992ee Store subdomain/subdirectory choice in sitemeta. For now, only used in case we return to network.php without constants. see #11816
git-svn-id: https://develop.svn.wordpress.org/trunk@13642 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-10 08:34:42 +00:00