Commit Graph

882 Commits

Author SHA1 Message Date
markjaquith
ca69d67041 Use addslashes() instead of esc_sql() in add_magic_quotes() to avoid the pretense of DB association. props miqrogroove
git-svn-id: http://svn.automattic.com/wordpress/trunk@12961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-04 23:05:13 +00:00
westi
12038571e3 Fix bug in _search_terms_tidy. Fixes #12060 for trunk props miqrogroove.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12958 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-04 21:54:24 +00:00
ryan
212533c466 Remove first page and first comment filters. They're no longer needed. see #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-26 20:42:37 +00:00
ryan
e6b0d64b4e Integrate fix_upload_details() into wp_upload_dir(). see #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-26 20:02:11 +00:00
ryan
40570257b1 Merge mu_upload_dir() into wp_upload_dir(). see #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-26 19:04:55 +00:00
ryan
b090a0336f Deprecate graceful_fail(). see #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-25 22:09:43 +00:00
westi
fa4b646642 Allow for an alternative handler for wp_die to be used if required. See #11892.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12790 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-21 22:13:20 +00:00
ryan
94859834fc i18n fixes. Props nbachiyski. fixes #11954
git-svn-id: http://svn.automattic.com/wordpress/trunk@12789 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-21 21:37:43 +00:00
dd32
fc2c5fd21b Fix WP_Filesystem_Direct::mkdir() when running under safe_mode on certain versions of PHP. Props remi. Fixes #10497
git-svn-id: http://svn.automattic.com/wordpress/trunk@12741 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-17 02:57:59 +00:00
dd32
f1bc3dde7b Fix wp_mkdir_p() when running under safe_mode on certain PHP versions. Props Denis-de-Bernardy. Fixes #8830
git-svn-id: http://svn.automattic.com/wordpress/trunk@12740 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-17 02:44:47 +00:00
ryan
6da55f7792 Trailing whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@12733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-15 22:11:12 +00:00
ryan
61e1249bf0 Always set default timezone to UTC. Do offsets on top of that to be portable across all environments. fixes #9588 #11672 #11665
git-svn-id: http://svn.automattic.com/wordpress/trunk@12727 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-15 16:39:11 +00:00
dd32
da4b7d09c0 Add MP4 Audio Book format(.m4b) for uploads, Fix order of mimetypes. props demetris. fixes #11864
git-svn-id: http://svn.automattic.com/wordpress/trunk@12717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-13 10:06:02 +00:00
wpmuguru
591a31a664 add is_main_site() function, See #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-12 21:52:51 +00:00
ryan
d24ac0a095 Mainstream things that don't need to be multisite only. Formatting cleanups. see #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-11 22:08:49 +00:00
wpmuguru
7b64248bc8 merge in multisite login, wp-includes, See #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-11 21:49:40 +00:00
westi
90d3ce241c Pass $version to deprecated_argument_run action hook. See #11386.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-10 15:02:12 +00:00
ryan
b26dc3c874 Don't delete site transient if it doesn't have a timeout set. fixes #11844
git-svn-id: http://svn.automattic.com/wordpress/trunk@12684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-10 02:39:24 +00:00
westi
bf4a5241e1 Add missing version numbers to _deprecated_argument() calls.
Remove deprecated argument from xfn_check() calls.
Pass version number to deprecated_file_included, deprecated_function_run and deprecated_argument_run actions.
Fixes #11386 props nacin.

git-svn-id: http://svn.automattic.com/wordpress/trunk@12680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-09 10:03:55 +00:00
ryan
34f9711beb Set result of insert
git-svn-id: http://svn.automattic.com/wordpress/trunk@12669 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-08 20:09:04 +00:00
westi
4d0c9da793 Add support to get_terms() to allow 'include' & 'exclude' args to be arrays(). Fixes #11076 props scribu.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-08 08:44:45 +00:00
westi
9e4d80b259 Deprecate get_alloptions(). Fixes #4915 props nacin.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12656 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-08 08:29:55 +00:00
ryan
45ec04e3e9 Deprecate argument. Never fallback to options table for user option requests. Props nacin. fixes #11615
git-svn-id: http://svn.automattic.com/wordpress/trunk@12616 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-07 00:01:52 +00:00
ryan
1a8bb6d244 Make *_site_option() multisite awate. see #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-06 23:57:35 +00:00
westi
ff7831207c Updates and improvements to _depreceated_argument. See #11386 props nacin.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-30 16:23:39 +00:00
azaozz
94dd7f757b Add more document file type extensions, props Otto42, dd32, hakre, fixes #7225
git-svn-id: http://svn.automattic.com/wordpress/trunk@12581 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-30 07:59:33 +00:00
azaozz
82b0dfbb72 Attempt to detect the correct post enclosure mime type, props josephscott, fixes #11668
git-svn-id: http://svn.automattic.com/wordpress/trunk@12580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-30 07:36:17 +00:00
westi
47a7b1b003 Fix typo in _deprecated_argument() and start using _deprecated_argument() in wp-includes files. See #11386 props nacin.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-24 11:12:04 +00:00
westi
fc38ae1d5b Add new function _deprecated_argument() to be used for marking arguments as deprecated so that with WP_DEBUG enabled developers can see they need to review and update their code. See #11386 props nacin.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-24 11:06:00 +00:00
westi
16a007687f More phpdoc fixes. Depreceated version numbers for _deprecated_file() calls in wp-includes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-24 10:53:34 +00:00
westi
2c2a0cc10c Fix phpDoc for _deprecated_file(). Always pass the full path from ABSPATH to _deprecated_file().
git-svn-id: http://svn.automattic.com/wordpress/trunk@12534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-24 10:48:32 +00:00
ryan
95835a693a Do not use deprecated Etc timezones. Props miqrogroove. fixes #11558 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@12507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 14:16:36 +00:00
westi
41dd7d25b7 Revert [12485] as it breaks the functionality of is_serialized() and make more strings appear serialized. See #9930.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12486 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-22 13:42:58 +00:00
westi
9189856169 Much improved is_serialized() which catches serialized doubles. Fixes #9930 props vladimir_kolesnikov and dd32.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-22 13:10:06 +00:00
azaozz
9420825a1c Check post and comment status before emptying trash, fixes #11442
git-svn-id: http://svn.automattic.com/wordpress/trunk@12412 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-16 01:35:29 +00:00
ryan
b38c409b40 Fix upload dir defaults. Props Denis-de-Bernardy. fixes #11276
git-svn-id: http://svn.automattic.com/wordpress/trunk@12405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-15 17:53:51 +00:00
ryan
11e3c1733b Use ON DUPLICATE KEY UPDATE when inserting options to avoid duplicate entry errors. fixes #11437
git-svn-id: http://svn.automattic.com/wordpress/trunk@12403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-15 16:00:23 +00:00
markjaquith
fba269f7f4 Reverting [12331]. see #10057
git-svn-id: http://svn.automattic.com/wordpress/trunk@12368 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-10 23:02:47 +00:00
markjaquith
6584c363d9 Yes, I did mean original... props coffee2code. fixes #10057
git-svn-id: http://svn.automattic.com/wordpress/trunk@12331 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-07 17:57:48 +00:00
ryan
8b5ba8c556 Fix file validation in theme editor. Props dd32. fixes #11032
git-svn-id: http://svn.automattic.com/wordpress/trunk@12310 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-01 22:03:13 +00:00
ryan
888310cbbc Fix wp_nonce_ays() for log-out case. Fix IE6 padding. Props miqrogroove. fixes #11289
git-svn-id: http://svn.automattic.com/wordpress/trunk@12309 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-01 21:21:31 +00:00
azaozz
e7265c1245 Set uploaded files extensions to lower case, fixes #11218
git-svn-id: http://svn.automattic.com/wordpress/trunk@12274 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-25 05:04:30 +00:00
azaozz
ac2988c39c Add video/x-flv to mime types, props hakre, fixes #11051
git-svn-id: http://svn.automattic.com/wordpress/trunk@12239 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-20 04:19:44 +00:00
westi
e7941d795e Ensure WP_DEBUG is always defined and simplify the checks on it. Fixes #11090 props nacin.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-18 08:22:49 +00:00
ryan
d6bd539813 Deprecate make_url_footnote(). fixes #4968
git-svn-id: http://svn.automattic.com/wordpress/trunk@12203 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-17 21:11:24 +00:00
ryan
3df56a9360 Fix mimes empty check
git-svn-id: http://svn.automattic.com/wordpress/trunk@12171 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-12 05:20:48 +00:00
ryan
6a65d30970 Sanitize filenames with multiple extensions. see #11122
git-svn-id: http://svn.automattic.com/wordpress/trunk@12165 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-11 23:07:29 +00:00
ryan
4998669f19 Add actions for option writes. Props apokalyptik
git-svn-id: http://svn.automattic.com/wordpress/trunk@12164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-11 15:26:11 +00:00
ryan
9ee06eaec7 Introduce get/set/delete_site_transient(). Make theme_roots a site transient.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-29 21:53:57 +00:00
westi
04638ecd6f Remove duplicated create_function calls an use a private _search_terms_tidy function instead for tidying up the post/page searching when looking to attach orphans to a parent post or page.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12052 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-18 11:50:59 +00:00