Commit Graph

6342 Commits

Author SHA1 Message Date
Ron Rennick 7b91f92df5 fix site administrator add user to site logic, see #12488
git-svn-id: https://develop.svn.wordpress.org/trunk@14226 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-24 18:39:22 +00:00
Andrew Nacin 8d7f5fc554 Single quotes are way cooler.
git-svn-id: https://develop.svn.wordpress.org/trunk@14222 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-24 17:49:08 +00:00
Andrew Nacin 8178348739 Style bumps and compressed styles for r14187. see #13083.
git-svn-id: https://develop.svn.wordpress.org/trunk@14221 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-24 17:22:34 +00:00
Andrew Nacin a732e95544 Prevent HTML editor from being resized horizontally. props nomulous, fixes #13064
git-svn-id: https://develop.svn.wordpress.org/trunk@14220 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-24 16:57:44 +00:00
Dion Hulse 87981059db Change custom post_type default Rewrite endpoint mask to EP_PERMALINK to ensure comment paging rules are added. Removes redundant/non-usable EP_NONE branch. Fixes #13086
git-svn-id: https://develop.svn.wordpress.org/trunk@14219 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-24 14:42:30 +00:00
Dion Hulse 70d38b62ac Fix DB upgrade kickoff for removal of usermeta fields. See r14212, r14213, see #13032
git-svn-id: https://develop.svn.wordpress.org/trunk@14218 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-24 10:29:01 +00:00
Dion Hulse 4c6df3a2e4 Ignore sticky posts which the current user cannot read, Ignore sticky posts which have been explicitly excluded with 'post__not_in'. Fixes #11197
git-svn-id: https://develop.svn.wordpress.org/trunk@14217 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-24 06:04:05 +00:00
Dion Hulse 62a7cce4f3 s/'%s'/%s/ in prepares. Props jamescollins. See r13673. See #12416
git-svn-id: https://develop.svn.wordpress.org/trunk@14211 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-24 03:04:05 +00:00
Peter Westwood d192a8ca09 Switch to using esc_url{_raw} for the shortlink output as it is a url not just any attribute. Fixes #10640.
git-svn-id: https://develop.svn.wordpress.org/trunk@14208 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 21:23:32 +00:00
Peter Westwood 6908b105e4 Added escaping to wp_shortlink_wp_head() too. See #10640 props sirzooro.
git-svn-id: https://develop.svn.wordpress.org/trunk@14207 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 21:20:16 +00:00
Ryan Boren 8d9073103c Introduce get_super_admins(). Allow hard-coding a global super_admins array and bypassing site options. fixes #12815
git-svn-id: https://develop.svn.wordpress.org/trunk@14206 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 20:34:03 +00:00
Andrew Nacin 9930e8cd4b Make some branching look less crazy.
git-svn-id: https://develop.svn.wordpress.org/trunk@14203 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 19:00:30 +00:00
Ryan Boren bd235b0c53 Return true. fixes #13094
git-svn-id: https://develop.svn.wordpress.org/trunk@14199 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 16:50:01 +00:00
Ryan Boren 353adc8969 Move ms_site_check() to after init and allow super admins to view blocked sites. see #13094
git-svn-id: https://develop.svn.wordpress.org/trunk@14198 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 16:18:33 +00:00
Ryan Boren 4f6c6647f3 Use rtrim() instead of untrailingslashit to avoid formatting.php dependency. Relying on formatting.php breaks SHORTINIT.
git-svn-id: https://develop.svn.wordpress.org/trunk@14197 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 16:10:48 +00:00
Andrew Nacin de3a5eca3b Fix typo in inline docs. props TobiasBg. see #13088
git-svn-id: https://develop.svn.wordpress.org/trunk@14196 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 15:32:31 +00:00
Andrew Nacin 46c6c0bcf7 Clarify language for non-publication of emails. props lloydbudd, fixes #13026.
git-svn-id: https://develop.svn.wordpress.org/trunk@14195 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 15:01:21 +00:00
Ryan Boren bfe3ca3b90 Bring back delete on empty value for update_user_option() to preserve back compat. Switch to delete_user_option() in core. Props mdawaffe. fixes #13088
git-svn-id: https://develop.svn.wordpress.org/trunk@14193 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 14:25:05 +00:00
Nikolay Bachiyski e0ac5d0e81 Do not force formatted number to int. Props brentes, fixes #10555
git-svn-id: https://develop.svn.wordpress.org/trunk@14192 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 06:05:07 +00:00
Peter Westwood 3f2ee78320 Restore support for floating point numbers in number_format_i18n(). Fixes #10555.
git-svn-id: https://develop.svn.wordpress.org/trunk@14190 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-22 21:39:37 +00:00
Joseph Scott cae7b3b275 New 'list_users' cap to provide more controls over listing users vs. editing
users.

Apply this new cap to the 'Authors & Users' menu item and 'Users' page in
wp-admin.

Bump db version to 14139 to pick up the new cap.

See #13074



git-svn-id: https://develop.svn.wordpress.org/trunk@14189 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-22 19:48:13 +00:00
Nikolay Bachiyski 0a0ec2ff46 Make the $path argument of load_muplugin_textdomain() functional -- relative to mu-plugins. Props uglyrobot, fixes #12875
git-svn-id: https://develop.svn.wordpress.org/trunk@14186 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-22 11:32:50 +00:00
Peter Westwood 00b53270ca Remove unnecessary translations of decimal point character and number of decimal places. Fixes #10555 props nbachiyski.
git-svn-id: https://develop.svn.wordpress.org/trunk@14184 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-21 21:41:20 +00:00
Ryan Boren 3479e68ff8 Return after echoing cached calendar. Fixes double output. Props mtdewvirus. fixes #13077
git-svn-id: https://develop.svn.wordpress.org/trunk@14183 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-21 21:35:39 +00:00
Peter Westwood dcdde9cb36 Allow a theme to set an id on the container object for the wp_nav_menu output. Fixes #13057 props thee17.
git-svn-id: https://develop.svn.wordpress.org/trunk@14182 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-21 21:32:08 +00:00
Ryan Boren 3750f4ac5d Move the global up
git-svn-id: https://develop.svn.wordpress.org/trunk@14181 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-21 20:37:54 +00:00
Ryan Boren 70fdc2138c Make sure is set correctly when advanced-cache.php is being used.
git-svn-id: https://develop.svn.wordpress.org/trunk@14180 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-21 20:34:32 +00:00
Ryan Boren 6973ce2f9f Clear the users cache when updating user metadata. fixes #13075
git-svn-id: https://develop.svn.wordpress.org/trunk@14179 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-21 18:25:03 +00:00
Ryan Boren 0e3d10f5ac Separate user deletion and removal. Add promote_users cap so that multisite Admins (not supes) can promote. see #13074
git-svn-id: https://develop.svn.wordpress.org/trunk@14176 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-21 17:43:53 +00:00
Peter Westwood 633278d3be Improve documentation of validate_current_theme()
git-svn-id: https://develop.svn.wordpress.org/trunk@14175 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-21 17:14:25 +00:00
Dion Hulse d10ff2dfc5 Canonical redirect to correct location if rss2 is not default feed. wp-feed.php redirection to default feed type instad of rss2. Props solarissmoke. Fixes #13047
git-svn-id: https://develop.svn.wordpress.org/trunk@14162 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-19 12:03:01 +00:00
Dion Hulse 6f89c1a63a Remove double-query for Author ID. Props simonwheatley. Fixes #12048
git-svn-id: https://develop.svn.wordpress.org/trunk@14160 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-19 10:50:03 +00:00
Andrew Nacin d7a1de87f0 Introduce is_post_type(). Can check if a post type is registered, or also if a post (current or specified) is of a certain post type. fixes #12588, props sirzooro, blepoxp, rmccue
git-svn-id: https://develop.svn.wordpress.org/trunk@14158 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 17:40:50 +00:00
Andrew Nacin bf00891a05 Use is_post_type_hierarchical and is_taxonomy_hierarchical when we're fetching a post/tax object only to check the hierarchical flag. fixes #12950.
git-svn-id: https://develop.svn.wordpress.org/trunk@14155 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 15:54:45 +00:00
Andrew Nacin 7369d04015 Use wp_parse_args in register_sidebar. fixes #11836, props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@14154 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 15:32:39 +00:00
Dion Hulse 122abf2fa8 Fix page-<pageslug>.php templates for static front pages. See #12907
git-svn-id: https://develop.svn.wordpress.org/trunk@14152 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 11:50:48 +00:00
Dion Hulse a897bc0275 Fix invalid paths in requires. See r14139. See #12594
git-svn-id: https://develop.svn.wordpress.org/trunk@14151 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 09:51:19 +00:00
Dion Hulse 5bfc2f5463 Better styling for Press this Categories. Props duck_. See #12809
git-svn-id: https://develop.svn.wordpress.org/trunk@14149 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 09:41:51 +00:00
Dion Hulse 044eb3afba Use Alt Text for Image alt caption (Falling back to Caption, and finally title) in wp_get_attachment_image() and subsequently, WordPress Galleries. Props kallewangstedt for initial patch. Fixes #11846
git-svn-id: https://develop.svn.wordpress.org/trunk@14145 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 08:52:18 +00:00
Dion Hulse 929ff9692b Make (\d)x(\d) texturization less greedy, requires a word boundary either side of the phrase. See #12118
git-svn-id: https://develop.svn.wordpress.org/trunk@14144 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 08:26:38 +00:00
Dion Hulse f42b2b775b Uncheck rows on comments page when hiding rows so as to not affect it by Bulk edits. Fixes #12365
git-svn-id: https://develop.svn.wordpress.org/trunk@14143 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 07:37:45 +00:00
Dion Hulse 09c1f4eb75 Advertise the correct comment feed link for a Page on the Front. Do not canonical redirect the front page comments feeds to home. Fixes #12452
git-svn-id: https://develop.svn.wordpress.org/trunk@14141 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 06:51:16 +00:00
Andrew Nacin ec4f5b83bf Use relative paths when including files, avoiding include_path. fixes #12594, props sorich87.
git-svn-id: https://develop.svn.wordpress.org/trunk@14139 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 06:14:45 +00:00
Dion Hulse 148e92a58c Delete old hierarchical taxonomy children cache' on upgrade. Fixes #11866
git-svn-id: https://develop.svn.wordpress.org/trunk@14138 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 06:08:40 +00:00
Andrew Nacin a8d984183f Fix sticky post handling. Use unset instead of array_splice to remove an item by key retrieved by array_search. props jeffstieler, fixes #11966.
git-svn-id: https://develop.svn.wordpress.org/trunk@14135 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 05:11:05 +00:00
Dion Hulse b15624a124 Bail from WP_HTTP when a invalid URL is provided. Fixes #12964
git-svn-id: https://develop.svn.wordpress.org/trunk@14134 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 04:58:19 +00:00
Andrew Nacin 8771fc4af7 Allow include/exclude args to be arrays in get_posts() and get_pages(). Utilizes wp_parse_id_list(). props scribu, fixes #11076.
git-svn-id: https://develop.svn.wordpress.org/trunk@14133 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 04:54:19 +00:00
Andrew Nacin 6e7fed8863 Switch to simpler language regarding publication of email addresses in comment_form() template. props bumbu, see #13026.
git-svn-id: https://develop.svn.wordpress.org/trunk@14132 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 04:49:19 +00:00
Andrew Nacin 8d47975e76 Allow orberby in wp_list_bookmarks to accept a comma-delimited list of fields, per docs. fixes #12421, props sorich87, scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@14131 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 04:45:09 +00:00
Dion Hulse aaf9bcf21d Fix typo in Proxy Authorization header. Props thales.tede. Fixes #12995
git-svn-id: https://develop.svn.wordpress.org/trunk@14129 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 04:01:19 +00:00