Andrew Nacin
4ce1c841cb
install.php whitespace cleanup, inline docs, function @sinces, fixes #11491
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13124 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 20:40:42 +00:00
Andrew Nacin
9682c32c7b
s/$blog/$blog_id/ as an argument in wp_dropdown_users(), for consistency, see #11086
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13123 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 20:17:15 +00:00
Andrew Nacin
e2e67c91cb
Don't query against entire users table in wp_dropdown_users() to be multisite friendly. Fixes #11086
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13122 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 20:12:08 +00:00
Andrew Nacin
0210cf3c6e
Add is_multisite() check to wpdb::get_blog_prefix() to fix get_blog_prefix($blog_id) call on a non-MS install. See #11644
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13121 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 19:57:43 +00:00
Ryan Boren
a7c3d02452
Add trash to edit cap check.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13118 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 19:05:10 +00:00
Ron Rennick
b39f3fd7f5
use object cache on get_blog_option on current blog, props sivel, See #11644
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13116 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 18:56:50 +00:00
Ron Rennick
a2e14c070b
strip slashes, block arrays in ms-edit.php, fixes #11778
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13115 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 17:49:38 +00:00
Ron Rennick
ad16d49cbb
use cached data in ms-admin.php stats, props ddebernardy, fixes #11772
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13114 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 17:10:50 +00:00
Peter Westwood
1600c4610f
Add the generator element in feeds through the {rss2|atom|rdf|rss|opml}_head hooks. Fixes #6947 props sivel.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13113 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 16:45:16 +00:00
Dion Hulse
c43fd055e8
Whitespace cleanup, TwentyTen <title> standardisation & gettext. See #9015
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13112 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 13:35:03 +00:00
Dion Hulse
093ef40c06
s/the_time()/get_the_date/ for dates. See #9015
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13111 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 11:20:56 +00:00
Dion Hulse
f5c9054956
Always set $link_text.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13110 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 11:12:47 +00:00
Dion Hulse
04a1493757
Remove extra get_option() calls (the functions default to that), Use the Media API for attachment image HTML, Replace deprecated function use(1.2~2.9 deprecated). See #9015
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13109 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 11:09:51 +00:00
Andrew Nacin
91bfbda120
Fix typos in inline docs for clean_url() and esc_url().
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13108 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 10:58:01 +00:00
Andrew Nacin
a93c96ef98
Fix arg order in [13104]
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13107 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 10:46:38 +00:00
Andrew Nacin
d43ba9114b
Don't use deprecated functions. see #11388
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13106 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 10:35:10 +00:00
Dion Hulse
013ab6d764
Remove Direct SQL, Use new esc_html() function, Correct the case of the ID keys. See #9015
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13105 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 09:59:16 +00:00
Andrew Nacin
cedafb8a9b
Add ?preview=true to edit post rows when draft|pending. Props MMN-o, fixes #11688
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13104 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 09:49:44 +00:00
Mark Jaquith
561cca07d5
Do not limit thumbnails by the content_width. props Viper007Bond. fixes #12146
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13103 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 09:40:04 +00:00
Andrew Nacin
9e25bff4a0
Some phpdoc for functions.php. Props miqrogroove, see #12215
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13102 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 08:59:04 +00:00
Dion Hulse
4b66bf7c74
Introduce 'singular_label' for Post Types. Props scribu. See #12214
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13101 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 08:56:38 +00:00
Andrew Nacin
8be6c296b1
Consistently hide bulk actions, filters, and subpage links on admin panels when there are no items to show. Fixes #12086
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13100 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 08:49:27 +00:00
Dion Hulse
a5ad001b73
s/$original/$redirect/ in [13091]. Props miqrogroove. See #8948
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13099 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 08:29:55 +00:00
Andrew Nacin
03695fa9ae
Move deprecated pre-2.8 widget API to deprecated.php. Deprecate register_sidebar_widget, unregister_sidebar_widget, register_widget_control, unregister_widget_control, in favor of their wp_* counterparts. See #11388
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13098 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 07:55:28 +00:00
Andrew Nacin
e139dea4d1
Deprecate old category admin template functions. Deprecate dropdown_categories(), dropdown_link_categories(), wp_dropdown_cats() in favor of wp_category_checklist, wp_link_category_checklist, wp_dropdown_categories. See #11388
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13097 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 07:42:02 +00:00
Andrew Nacin
0470fb90ea
Deprecate old l10n and sanitization APIs. Deprecate __ngettext() for _n(), __ngettext_noop() for _n_noop(), translate_with_context() for _x(). Deprecate sanitize_url for esc_url_raw, js_escape for esc_js, wp_specialchars for esc_html, attribute_escape for esc_attr. See #11388
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13096 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 07:28:19 +00:00
Dion Hulse
75705ed4c3
Correctly save checkbox-style MS options and display "No" checked value correctly. See #11644
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13095 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 07:09:04 +00:00
Dion Hulse
68039969c1
Banish User_level 10 use from Network Menu.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13094 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 07:00:09 +00:00
Andrew Nacin
8e79d5c2ac
Move deprecated functions to deprecated.php. Deprecate get_the_attachment_link() for wp_get_attachment_link(), get_attachment_icon_src() for wp_get_attachment_image_src(),
...
get_attachment_icon() and get_attachment_innerHTML() for wp_get_attachment_image(), get_link() for get_bookmark(). Add missing deprecated version numbers. Add inline documentation to pluggable functions that are deprecated. See #11388
git-svn-id: https://develop.svn.wordpress.org/trunk@13093 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 06:39:51 +00:00
Dion Hulse
dfb58c1866
Bump tags JS version. See #11838
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13092 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 06:20:45 +00:00
Dion Hulse
60de8ec26f
Canonicalisation of the Taxonomy urls. Redirect /category/child/ to /category/parent/child/. Fix striping of slashes to use $redirect instead of $original. See #8948
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13091 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 06:17:59 +00:00
Andrew Nacin
49f0af2f42
RTL fixes for new position of QuickPress ajax spinner, also version bumps, see #10680
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13090 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 06:14:37 +00:00
Dion Hulse
d5ced26371
Initialise Variables, Whitespace cleanup, Remove unused variables, Cast start_of_week option to int in sanitization.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13089 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 06:08:15 +00:00
Dion Hulse
6f5ca5962f
Flow on tax-modification errors on Tax inline edit to the UI. See #11838
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13088 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 06:04:54 +00:00
Dion Hulse
de88d303fa
Prevent Terms from being created in multiple taxonomies. If a slug is provided by the user, error out if it exists, else make the auto slug unique. See #11838
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13087 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 05:52:27 +00:00
Dion Hulse
7a3a38c39b
Convert Terms page to use WP_Ajax_Response(), hierarchical terms will now appear under their parent OR have the parents prefixed, Terms will be removed from tag cloud/parent list upon deletion, Terms will be added to Parent list in correct order upon ajax creation, Errors on term creation flow back to UI, clean up _tag_row() alternate class handling, Show None text in Category dropdown if empty and show_if_empty = true. See #11838
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13086 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 05:40:47 +00:00
Andrew Nacin
dc02d03fcb
Re-position the QuickPress ajax spinner. Fixes #10680
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13085 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 05:35:47 +00:00
Andrew Nacin
1a4072f2e7
Make Recent Comments dashboard widget configurable. Allows user to choose how many comments to display, see #11891 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13084 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 04:39:39 +00:00
Dion Hulse
d8006b5939
Introduce Custom Taxonomies Translation strings, Correctly identifies the taxonomy in the Strings of the edit pages. See #11838
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13083 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 04:18:33 +00:00
Dion Hulse
a719ecc0a2
Add add_plugins_page() function to add a submenu of the Plugins Page. Fixes #11377
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13082 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 04:04:01 +00:00
Dion Hulse
9da2f26d98
Fix Terms Per Page for taxonomies, Apply old Category filter to value. See #11838
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13081 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 03:52:33 +00:00
Andrew Nacin
75a99f62cd
Optimize wp_rand(), only check transient when needed. Fixes #12144 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13080 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 03:33:33 +00:00
Andrew Nacin
b154b4d604
Ensure post titles are consistently sanitized and filtered when displaying them in Bulk Edit, fixes #11307 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13079 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 03:17:57 +00:00
Andrew Nacin
d53857acc8
Escape thousandsSeparator and decimalPoint JS variables, see #12005
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13078 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 03:12:51 +00:00
Dion Hulse
b1535c3d7e
Introduce Custom Taxonomies Translation strings, Correctly identifies the taxonomy in the Strings of the edit pages. See #11838
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13077 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 03:08:16 +00:00
Andrew Nacin
e280df1945
Fix inline documentation for esc_js(). Intended for inline JS only, fixes #11690 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13076 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 02:54:54 +00:00
Andrew Nacin
09916f140e
Use correct var name. Props firebird75. Whitespace cleanup in wp_unique_post_slug(). Fixes #12078 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13075 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 02:42:17 +00:00
Andrew Nacin
e5056e0ac6
Fix notice in get_cat_name(). Return empty string if category does not exist, fixes #11737 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13074 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 02:35:41 +00:00
Ron Rennick
78ee7b26e5
add activate_wp_head hook to wp-activate.php, fixes #12166
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13073 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 00:33:47 +00:00
Dion Hulse
bcf5ab6307
Strip out multiple slashes on non-post URL's. See #8948
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13072 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 00:11:23 +00:00