Commit Graph

714 Commits

Author SHA1 Message Date
Mark Jaquith d2b1b4ec3b Move $wp_header_to_desc array to get_status_header_desc() so that it can be called before vars.php is loaded.
git-svn-id: https://develop.svn.wordpress.org/trunk@6104 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-13 04:48:41 +00:00
Mark Jaquith ed03cc32dc Only urlencode previously existing values in add_query_arg() (more backwards compatible). fixes #4935. see #4084. see #4878
git-svn-id: https://develop.svn.wordpress.org/trunk@6064 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-08 14:27:24 +00:00
Mark Jaquith d065fe3cb8 Try more ways of getting wp-admin URL in wp_die(). props Nazgul. fixes #4006
git-svn-id: https://develop.svn.wordpress.org/trunk@6057 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-07 02:25:54 +00:00
Mark Jaquith 88a4c73ec2 Deprecate option_can_override, option_type, option_width, option_height, option_description, option_admin_level from options table. Props Nazgul. fixes #4390
git-svn-id: https://develop.svn.wordpress.org/trunk@6039 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-05 19:20:53 +00:00
Mark Jaquith a2afc64e79 Actually, let's just drop that slash check altogether. Equals sign is the best indicator. fixes #4903 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6031 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-04 05:26:18 +00:00
Mark Jaquith 23bcbfcb05 Require a slash AND the absence of an equals sign to designate the passed $uri as a base (without a query string). fixes #4903 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6030 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-04 05:21:54 +00:00
Ryan Boren 7a43c01e08 Remove trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@6026 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-03 23:32:58 +00:00
Ryan Boren e9391140a7 Strip lines that contain only whitespace down to newlines.
git-svn-id: https://develop.svn.wordpress.org/trunk@6025 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-03 23:19:20 +00:00
Mark Jaquith d0d887d09d Eliminate double urlencode()ing in add_query_arg(). Move &-to-& conversion to wp_nonce_url(). fixes #4884
git-svn-id: https://develop.svn.wordpress.org/trunk@6008 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-02 05:49:54 +00:00
Mark Jaquith 3308252f00 Turn & to & in add_query_arg(). fixes #4878
git-svn-id: https://develop.svn.wordpress.org/trunk@6005 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-01 22:12:17 +00:00
Mark Jaquith d5e3e96141 Preserve query string arrays in add_query_arg(). fixes #4878 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@5999 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-01 03:41:50 +00:00
Peter Westwood 897531ee27 Allow upload of all Open Office document types props nbachiyski fixes #4615
git-svn-id: https://develop.svn.wordpress.org/trunk@5929 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-23 18:28:14 +00:00
Mark Jaquith c82cd99e96 Allow pre_option_ filters to return values that evaluate as false. fixes #4695
git-svn-id: https://develop.svn.wordpress.org/trunk@5842 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-02 22:51:42 +00:00
Mark Jaquith c4889d1f21 add_option()/update_option() should pass the option name to get_option() pre-escaped. fixes #4690 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@5829 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-01 19:14:10 +00:00
Mark Jaquith 593eca6f21 ABSPATH already has a trailing slash. Props Nazgul. fixes #4607
git-svn-id: https://develop.svn.wordpress.org/trunk@5820 602fd350-edb4-49c9-b593-d223f7449a82
2007-07-27 21:28:01 +00:00
Peter Westwood 45226eae66 Only enable gzip compression if it is not enabled in php.ini. Fixes #4426
git-svn-id: https://develop.svn.wordpress.org/trunk@5810 602fd350-edb4-49c9-b593-d223f7449a82
2007-07-18 21:12:22 +00:00
Ryan Boren 4c70bb896e Show upload file size in upload browser. Props tellyworth. fixes #4561
git-svn-id: https://develop.svn.wordpress.org/trunk@5801 602fd350-edb4-49c9-b593-d223f7449a82
2007-07-15 17:52:50 +00:00
Ryan Boren 9fe6a868ca Post filter rework. see #4546
git-svn-id: https://develop.svn.wordpress.org/trunk@5796 602fd350-edb4-49c9-b593-d223f7449a82
2007-07-11 19:57:43 +00:00
Mark Jaquith 3e87a2b88d Properly unset notoptions cache in add_option() so that get_option() and update_option() work on the same load. fixes #4429 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@5788 602fd350-edb4-49c9-b593-d223f7449a82
2007-07-07 04:06:29 +00:00
Ryan Boren 6b7bc3b1b6 wp_parse_str() from mdawaffe. see #4467
git-svn-id: https://develop.svn.wordpress.org/trunk@5709 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-14 22:46:59 +00:00
Mark Jaquith 2a6e8a08be use FALSE to designate lack of user-supplied URL in *_query_arg() funcs. fixes #4465 for 2.3 (trunk)
git-svn-id: https://develop.svn.wordpress.org/trunk@5705 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-14 05:12:22 +00:00
Mark Jaquith e542bbdde1 only strip question marks from the RIGHT side of the query string. fixes #4464 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@5704 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-14 04:44:06 +00:00
Ryan Boren b046d67f41 Trim empty lines. Nothing but newline.
git-svn-id: https://develop.svn.wordpress.org/trunk@5700 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-14 02:25:30 +00:00
Mark Jaquith 37b3dc98fe correct CSS link for install. Props Viper007Bond. fixes #4443
git-svn-id: https://develop.svn.wordpress.org/trunk@5694 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-13 06:33:17 +00:00
Mark Jaquith ce7fd94edf Force $autoload to be either "yes" or "no". see #4440. props Nazgul
git-svn-id: https://develop.svn.wordpress.org/trunk@5686 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-12 20:57:58 +00:00
rob1n 12c2ef6be0 Content-Type, not Content-type, as headers are case sensitive. Props foolswisdom and Nazgul. fixes #3545
git-svn-id: https://develop.svn.wordpress.org/trunk@5640 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-02 05:21:18 +00:00
rob1n 5b7256e644 Actually, this makes more sense.
git-svn-id: https://develop.svn.wordpress.org/trunk@5573 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-28 17:11:42 +00:00
rob1n d5816ce68b Turn string to upper. Props Donncha. fixes #4350
git-svn-id: https://develop.svn.wordpress.org/trunk@5572 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-28 17:05:46 +00:00
Ryan Boren 455d73121f Term cache work. see #4189
git-svn-id: https://develop.svn.wordpress.org/trunk@5555 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-26 23:32:06 +00:00
Ryan Boren c018ceb6bd Make sure sanitize_option() is always called when updating options.
git-svn-id: https://develop.svn.wordpress.org/trunk@5541 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-25 02:22:30 +00:00
Ryan Boren 510799abe8 More rel_type elimination. see #4189
git-svn-id: https://develop.svn.wordpress.org/trunk@5532 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-23 20:59:11 +00:00
rob1n 62c94190fb Don't call is_wp_error() in wp_die() if it hasn't been defined yet. fixes #4308
git-svn-id: https://develop.svn.wordpress.org/trunk@5507 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-21 22:50:32 +00:00
Ryan Boren e50ab910fb Check if is_array before unsetting array index. fixes #4306 for 2.3
git-svn-id: https://develop.svn.wordpress.org/trunk@5501 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-21 16:39:08 +00:00
rob1n ac98122657 Check for switch_themes, not edit_themes. Props Denis de Bernardy. fixes #4292
git-svn-id: https://develop.svn.wordpress.org/trunk@5492 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-19 04:38:51 +00:00
Ryan Boren fb8a712fdb Flush all output buffers during shutdown to avoid PHP 5 bustage. see #3354
git-svn-id: https://develop.svn.wordpress.org/trunk@5462 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-12 22:06:31 +00:00
Ryan Boren d9da4028a2 Return proper protocol. fixes #3886 for 2.3
git-svn-id: https://develop.svn.wordpress.org/trunk@5460 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-12 21:55:14 +00:00
rob1n 90dc5682f3 git-svn-id: https://develop.svn.wordpress.org/trunk@5451 602fd350-edb4-49c9-b593-d223f7449a82 2007-05-11 04:02:30 +00:00
rob1n 3deb0fe500 New status_header code, and WP-DB bail() errors send a 503 Service Unavailable. see #2409
Also, the new header code to text array has 302 as Found. fixes #4183


git-svn-id: https://develop.svn.wordpress.org/trunk@5446 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-11 03:34:50 +00:00
rob1n 222bb819b7 Don't discard non-default args in wp_parse_args(). see #4237
git-svn-id: https://develop.svn.wordpress.org/trunk@5428 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-10 02:33:01 +00:00
rob1n 13d4d782a5 Bit of clean-up.
git-svn-id: https://develop.svn.wordpress.org/trunk@5415 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-09 04:19:19 +00:00
Ryan Boren 3ae3baa8ff Don't send header from wp_die() if admin header already sent. fixes #4234 for 2.3.
git-svn-id: https://develop.svn.wordpress.org/trunk@5411 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-07 23:24:44 +00:00
Ryan Boren e83f137798 Make sure Widgets menu comes after Themes. see #4169
git-svn-id: https://develop.svn.wordpress.org/trunk@5401 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-06 20:36:11 +00:00
rob1n c30d0f3c57 Load order fixed.
git-svn-id: https://develop.svn.wordpress.org/trunk@5377 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-03 00:52:14 +00:00
rob1n e6ab5d6f99 Don't show Widgets admin page if core widgets aren't enabled. fixes #4218
git-svn-id: https://develop.svn.wordpress.org/trunk@5376 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-03 00:43:57 +00:00
Ryan Boren 9414b0a110 Call get_option('siteurl') outside the loop to save a few dozen get_option calls. Props andissimo.
git-svn-id: https://develop.svn.wordpress.org/trunk@5370 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-02 00:32:22 +00:00
rob1n 0cf5f8cf12 New way of loading widgets that works with PHP 5. Thanks to filosofo for testing. see #4169
git-svn-id: https://develop.svn.wordpress.org/trunk@5363 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-01 01:58:18 +00:00
rob1n 697a38d8e8 Move widget stuff around. see #4169
git-svn-id: https://develop.svn.wordpress.org/trunk@5360 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-01 01:13:06 +00:00
rob1n a40b296021 Allow number_format to be internationalized. Props nbachiyski. fixes #3677
git-svn-id: https://develop.svn.wordpress.org/trunk@5308 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-25 00:49:57 +00:00
rob1n 69e811bb7c Add ODT to allowed file types. Props Nazgul. fixes #4136
git-svn-id: https://develop.svn.wordpress.org/trunk@5304 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-24 23:28:39 +00:00
rob1n 642b38246b Cast substr()'s to int before passing through mktime() to prevent warning. Props josephscott. fixes #4166
git-svn-id: https://develop.svn.wordpress.org/trunk@5284 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-19 02:49:19 +00:00
rob1n 8c25d341d9 Add in another trim(), just in case $frag is actually something.
git-svn-id: https://develop.svn.wordpress.org/trunk@5269 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-14 00:19:01 +00:00
rob1n 6d905c3341 trim() question marks *after* concatenating the string. fixes #4134
git-svn-id: https://develop.svn.wordpress.org/trunk@5267 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-14 00:11:47 +00:00
rob1n eac89c8fdd Get add_query_arg() to urlencode all values of parse_str array. Props mdawaffe. fixes #4084
git-svn-id: https://develop.svn.wordpress.org/trunk@5261 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-12 22:00:22 +00:00
Ryan Boren d8c8ecb711 Actually make use of wp_cache_add to avoid unnecessary cache writes. Props skeltoac. fixes #4138
git-svn-id: https://develop.svn.wordpress.org/trunk@5248 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-12 02:27:12 +00:00
rob1n 5327a547db Rollback wonky part of [5193]. see #4084
git-svn-id: https://develop.svn.wordpress.org/trunk@5240 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-11 03:41:42 +00:00
Ryan Boren e075553eba Tag clouds from mdawaffe. fixes #4129
git-svn-id: https://develop.svn.wordpress.org/trunk@5234 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-10 19:52:15 +00:00
rob1n 2ea44df759 Move the stripslashes(), and change it to stripslashes_deep(). Props mdawaffe. fixes #4105
git-svn-id: https://develop.svn.wordpress.org/trunk@5200 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-07 01:24:40 +00:00
rob1n 627cf79932 Re-encode query values after passed to add_query_arg(). Props mdawaffe. fixes #4084
git-svn-id: https://develop.svn.wordpress.org/trunk@5193 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-06 04:21:21 +00:00
Ryan Boren 93cdc6deac Cache category hierarchy to make cat listing faster. Phase 1. see #3985
git-svn-id: https://develop.svn.wordpress.org/trunk@5178 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-04 20:44:45 +00:00
Matt Mullenweg f600a397d1 Don't forget the tag_cache
git-svn-id: https://develop.svn.wordpress.org/trunk@5163 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-01 08:44:10 +00:00
Matt Mullenweg a059392772 Now tag pretty permalinks should work, and support custom tag bases.
git-svn-id: https://develop.svn.wordpress.org/trunk@5150 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-31 09:19:32 +00:00
rob1n 8f07a4c509 Add back in a question mark. Props foolswisdom. fixes #3143
git-svn-id: https://develop.svn.wordpress.org/trunk@5138 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-29 02:24:25 +00:00
Ryan Boren 0d281aa632 Avoid non-object error when wp_die()ing before is instantiated. Props technosailor. fixes #4042
git-svn-id: https://develop.svn.wordpress.org/trunk@5129 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-28 18:10:03 +00:00
Ryan Boren 58efc0e2b2 Change bookmark to link. Props foolswisdom. fixes #3143
git-svn-id: https://develop.svn.wordpress.org/trunk@5124 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-27 23:54:48 +00:00
Ryan Boren 0ba70bb459 Serve robots.txt as text/plain. Props JeremyVisser. fixes #4037
git-svn-id: https://develop.svn.wordpress.org/trunk@5117 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-27 16:44:36 +00:00
Matt Mullenweg bfb4b8c091 Basic theme support for tags.
git-svn-id: https://develop.svn.wordpress.org/trunk@5111 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-26 08:08:31 +00:00
Ryan Boren 387c06a69f Revert [5102]
git-svn-id: https://develop.svn.wordpress.org/trunk@5109 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-26 06:13:19 +00:00
Ryan Boren afd5de8f9d Correct reversed logic in maybe_serialize. Props takayukister. fixes #4029
git-svn-id: https://develop.svn.wordpress.org/trunk@5102 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-25 23:23:52 +00:00
Ryan Boren de3198277a Allow siteurl and home to be defined as constants in wp-config, bypassing the DB. Props filosofo and charleshooper. fixes #4003
git-svn-id: https://develop.svn.wordpress.org/trunk@5093 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-23 17:45:40 +00:00
Matt Mullenweg b1f6f9a6a8 (int)er the dragon.
git-svn-id: https://develop.svn.wordpress.org/trunk@5087 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-23 00:59:21 +00:00
Mark Jaquith d8336eed5c use clean_url() instead of attribute_escape() when dealing with src/href to protect against XSS. props xknown. fixes #3986 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@5056 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-17 08:46:59 +00:00
Ryan Boren d2aba83689 More attribute_escape().
git-svn-id: https://develop.svn.wordpress.org/trunk@5044 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-16 01:20:53 +00:00
Mark Jaquith 096395f366 nonce-protect comments by users with unfiltered_html cap to prevent xsrf/xss. fixes #3973 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@5039 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-14 23:10:57 +00:00
Ryan Boren 01c199e20c Move smilies init to function and trigger from init. Props rob1n. fixes #1721
git-svn-id: https://develop.svn.wordpress.org/trunk@5032 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-12 21:31:24 +00:00
Ryan Boren c79783485f Change xmlrpc upload logic. Props Joseph Scott.
git-svn-id: https://develop.svn.wordpress.org/trunk@5008 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-09 20:14:52 +00:00
Mark Jaquith 56368548ad Use strpos instead of strstr where ever possible, for speed. Props rob1n. fixes #3920
git-svn-id: https://develop.svn.wordpress.org/trunk@4990 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-07 05:29:15 +00:00
Ryan Boren 3e08976087 xmlrpc updates from Joseph Scott.
git-svn-id: https://develop.svn.wordpress.org/trunk@4961 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-03 16:56:46 +00:00
Mark Jaquith b3fa98f0d1 attribute_escape() in nonce AYS
git-svn-id: https://develop.svn.wordpress.org/trunk@4951 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-27 07:15:47 +00:00
Ryan Boren 2f191b4b56 Comment feeds everywhere. Props mdawaffe and rob1n. fixes #2485
git-svn-id: https://develop.svn.wordpress.org/trunk@4934 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-24 07:33:29 +00:00
Ryan Boren 6c6458f7c9 Atom comments feed. First pass. Props kurtmckee and rob1n. fixes #1785
git-svn-id: https://develop.svn.wordpress.org/trunk@4928 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-23 08:18:30 +00:00
Ryan Boren 9b6a6b632c Relocate feed templates to wp-includes. fixes #3846
git-svn-id: https://develop.svn.wordpress.org/trunk@4927 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-23 02:50:05 +00:00
Ryan Boren 70e367f72f Use === to compare option values. Props roscohead and Viper007Bond. fixes #3394
git-svn-id: https://develop.svn.wordpress.org/trunk@4920 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-23 00:49:37 +00:00
Ryan Boren 5816d942f0 xmlrpc updates from Joseph Scott.
git-svn-id: https://develop.svn.wordpress.org/trunk@4908 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-22 01:42:21 +00:00
Ryan Boren 98e9f1ad0a Add WP_Error handling to wp_die(). Props mdawaffe. fixes #3791
git-svn-id: https://develop.svn.wordpress.org/trunk@4892 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-20 01:24:31 +00:00
Ryan Boren 6fea4b0942 specialchars wp_explain_nonce() ouput.
git-svn-id: https://develop.svn.wordpress.org/trunk@4875 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-13 18:19:24 +00:00
Ryan Boren 81cadfe118 Typo fix from charleshooper. fixes #3743
git-svn-id: https://develop.svn.wordpress.org/trunk@4865 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-03 00:56:23 +00:00
Mark Jaquith ea8fc7def2 Introduce Notoptions and Alloptions caching, so that all options (and previously attempted Notoptions) are read from the cache in one go. Should reduce cache misses to zero or close to it. fixes #3726
git-svn-id: https://develop.svn.wordpress.org/trunk@4855 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-01 08:53:08 +00:00
Ryan Boren 3301510db8 Add pre_option_* filter that allows plugins to short-circuit fetches.
git-svn-id: https://develop.svn.wordpress.org/trunk@4842 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-30 18:34:18 +00:00
Ryan Boren b0f28a6dff Remove notoptions caching. Multile rewrite_rules options were being created. See #3692 #2268
git-svn-id: https://develop.svn.wordpress.org/trunk@4831 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-30 01:43:39 +00:00
Mark Jaquith 2fd34af717 Have add_option() for options whose non-existence has been cached clear that cached non-existence before adding the option. Nice catch by Westi. fixes #3692
git-svn-id: https://develop.svn.wordpress.org/trunk@4820 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-27 23:06:46 +00:00
Mark Jaquith 58ee51abe9 Cache the non-existence of options to prevent redundant queries. props davidhouse. fixes #2268
git-svn-id: https://develop.svn.wordpress.org/trunk@4798 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-25 00:12:08 +00:00
Ryan Boren de62091671 Restrict wp_remote_fopen to remote files.
git-svn-id: https://develop.svn.wordpress.org/trunk@4752 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-16 18:41:05 +00:00
Mark Jaquith 6dde066c14 That'll teach me to trust a code snippet from php.net ... typo fix from last commit. relates to #3528
git-svn-id: https://develop.svn.wordpress.org/trunk@4725 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-12 21:46:29 +00:00
Mark Jaquith 61133b735f Use http_response_code for in status_header() on PHP >= 4.3.0 per Ryan's suggestion. relates to #3528
git-svn-id: https://develop.svn.wordpress.org/trunk@4724 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-12 21:41:48 +00:00
Mark Jaquith 6fad793587 burn in Hades, status_header(), destroyer of souls. fixes #3528
git-svn-id: https://develop.svn.wordpress.org/trunk@4684 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-06 08:22:12 +00:00
Mark Jaquith a011b23b47 Whitespace cleanup for [4656]
git-svn-id: https://develop.svn.wordpress.org/trunk@4657 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-21 10:45:58 +00:00
Mark Jaquith 31c39f948d new function for escaping within attributes: attribute_escape()
git-svn-id: https://develop.svn.wordpress.org/trunk@4656 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-21 10:10:04 +00:00
Ryan Boren 1b7d2a91d8 Move wp_generate_attachment_metadata() and friends to admin-functions.php and include admin-functions from xmlrpc.
git-svn-id: https://develop.svn.wordpress.org/trunk@4643 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-12 08:36:16 +00:00
Ryan Boren ba54bd7839 Some caching cleanups.
git-svn-id: https://develop.svn.wordpress.org/trunk@4631 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-08 07:35:45 +00:00
Ryan Boren e8184e1027 Create attachment metadata for xmlrpc uploads. Props mdawaffe. fixes #3452
git-svn-id: https://develop.svn.wordpress.org/trunk@4628 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-07 22:42:22 +00:00
Ryan Boren f74d084276 Key caches by blog ID for those doing the multi blog trick.
git-svn-id: https://develop.svn.wordpress.org/trunk@4524 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-23 20:39:39 +00:00
Matt Mullenweg 63d022fa1a This makes things a little more interesting and cacheable (sp?)
git-svn-id: https://develop.svn.wordpress.org/trunk@4517 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-23 15:38:22 +00:00
Mark Jaquith 608fd4e44f trying Ryan's suggestion for #3215
git-svn-id: https://develop.svn.wordpress.org/trunk@4513 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-22 04:58:31 +00:00
Ryan Boren e44ea1ff93 Remove trailing spaces and convert spaces to tabs. Props Nazgul. fixes #986
git-svn-id: https://develop.svn.wordpress.org/trunk@4495 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-19 07:56:05 +00:00
Ryan Boren 0e188c6859 Base last modified time for comment feeds on comments, not the post. Props mdawaffe. fixes #137
git-svn-id: https://develop.svn.wordpress.org/trunk@4483 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-18 20:46:43 +00:00
Mark Jaquith 33a423a769 silence the fopen() in wp_remote_fopen()
git-svn-id: https://develop.svn.wordpress.org/trunk@4472 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-15 22:46:35 +00:00
Mark Jaquith 697897019a possible solution for #3215
git-svn-id: https://develop.svn.wordpress.org/trunk@4445 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-03 02:42:47 +00:00
Mark Jaquith 5ae75c9a44 Catch NULL, bool, and integer values in is_serialized(). Props mdawaffe. fixes #3310
git-svn-id: https://develop.svn.wordpress.org/trunk@4438 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-31 08:24:09 +00:00
Mark Jaquith 3567fff3db Better preservation of query string when using add_query_arg(). Props in self- and Andy-flavored varieties. fixes #3308
git-svn-id: https://develop.svn.wordpress.org/trunk@4435 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-31 05:49:14 +00:00
Mark Jaquith f3f5188f24 Fix post meta caching system to reduce queries and eliminate redundant WP code. fixes #3273
git-svn-id: https://develop.svn.wordpress.org/trunk@4419 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-24 10:52:59 +00:00
Mark Jaquith f0a421f185 cleanup [4382] a bit
git-svn-id: https://develop.svn.wordpress.org/trunk@4383 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-13 00:23:25 +00:00
Mark Jaquith 41ace9de74 Prevent users from entering strings that will be interpreted as serialized arrays/objects on the way out. fixes #2591
git-svn-id: https://develop.svn.wordpress.org/trunk@4382 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-12 23:54:36 +00:00
Mark Jaquith c4d4830ed8 wp_die() fix for 5 minute install from alanjcastonguay. fixes #3231
git-svn-id: https://develop.svn.wordpress.org/trunk@4379 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-12 02:33:03 +00:00
Mark Jaquith 836286e8ec Post meta caching fix by mdawaffe. fixes #3229
git-svn-id: https://develop.svn.wordpress.org/trunk@4372 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-11 09:18:54 +00:00
Ryan Boren fddb91d85c RTL support for login sand wp_die() from Sewar. fixes #3136
git-svn-id: https://develop.svn.wordpress.org/trunk@4359 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-07 19:12:33 +00:00
Ryan Boren 455dd7d763 RTL enhancements from Sewar. #3136
git-svn-id: https://develop.svn.wordpress.org/trunk@4258 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-27 00:51:17 +00:00
Ryan Boren ae2a89aa46 RTL support. Props mani_monaj. #3136
git-svn-id: https://develop.svn.wordpress.org/trunk@4201 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-21 00:34:34 +00:00
Matt Mullenweg 06f0097a94 Options cleanup and some styling changes.
git-svn-id: https://develop.svn.wordpress.org/trunk@4196 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-19 06:11:42 +00:00
Ryan Boren d88ed56d55 Fix logo link in wp_die(). Props Sewar. fixes #3138
git-svn-id: https://develop.svn.wordpress.org/trunk@4194 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-18 23:40:19 +00:00
Ryan Boren 5ec32c8eee Add explain_nonce filter. Props mdawaffe. fixes #3121
git-svn-id: https://develop.svn.wordpress.org/trunk@4181 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-10 17:49:24 +00:00
Ryan Boren a60573f168 We no longer need the outer array.
git-svn-id: https://develop.svn.wordpress.org/trunk@4178 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-09 01:09:21 +00:00
Ryan Boren 58370c3575 timer_stop() wanted to be near timer_start().
git-svn-id: https://develop.svn.wordpress.org/trunk@4174 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-07 23:26:52 +00:00
Ryan Boren a28be38534 i18n fixes from nbachiyski. fixes #3109
git-svn-id: https://develop.svn.wordpress.org/trunk@4165 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-05 18:52:24 +00:00
Ryan Boren 7e82eef627 Use get_option instead of get_settings. Just 'cause.
git-svn-id: https://develop.svn.wordpress.org/trunk@4144 602fd350-edb4-49c9-b593-d223f7449a82
2006-08-30 21:46:31 +00:00
Ryan Boren 0f6f0b20ae Feeds for singular object queries should be comment feeds.
git-svn-id: https://develop.svn.wordpress.org/trunk@4127 602fd350-edb4-49c9-b593-d223f7449a82
2006-08-30 03:34:17 +00:00
Ryan Boren 4185956fab Keep the frag at the end. Props mdawaffe. fixes #3078
git-svn-id: https://develop.svn.wordpress.org/trunk@4123 602fd350-edb4-49c9-b593-d223f7449a82
2006-08-30 01:02:45 +00:00
Ryan Boren 04e6ae9d7b comments-rss2 fix from Mark J. fixes #3055
git-svn-id: https://develop.svn.wordpress.org/trunk@4114 602fd350-edb4-49c9-b593-d223f7449a82
2006-08-24 23:32:47 +00:00
Ryan Boren 4a9ad00205 Make those chars feel special.
git-svn-id: https://develop.svn.wordpress.org/trunk@4112 602fd350-edb4-49c9-b593-d223f7449a82
2006-08-24 22:33:16 +00:00
Ryan Boren 33e6c8fbde cache_javascript_headers() from masquerade. fixes #3059 #2799
git-svn-id: https://develop.svn.wordpress.org/trunk@4109 602fd350-edb4-49c9-b593-d223f7449a82
2006-08-22 17:31:53 +00:00
Ryan Boren b86470f23b Fix proxy check regex. Props westi. fixes #3028
git-svn-id: https://develop.svn.wordpress.org/trunk@4091 602fd350-edb4-49c9-b593-d223f7449a82
2006-08-11 22:19:28 +00:00
Ryan Boren fa6b9e781a Use wp_die() in wp_nonce_ays(). fixes #2929
git-svn-id: https://develop.svn.wordpress.org/trunk@4009 602fd350-edb4-49c9-b593-d223f7449a82
2006-07-10 16:34:43 +00:00
Ryan Boren 4591c517ce wp_die() improvements from Sewar. fixes #2902
git-svn-id: https://develop.svn.wordpress.org/trunk@4006 602fd350-edb4-49c9-b593-d223f7449a82
2006-07-10 05:29:10 +00:00
Matt Mullenweg d75bc044ef Clean up how we address IP addresses throughout the code
git-svn-id: https://develop.svn.wordpress.org/trunk@3990 602fd350-edb4-49c9-b593-d223f7449a82
2006-07-06 00:04:24 +00:00
Ryan Boren ae64303c2e Die with style. Props Sewar. fixes #2902
git-svn-id: https://develop.svn.wordpress.org/trunk@3979 602fd350-edb4-49c9-b593-d223f7449a82
2006-07-05 19:13:26 +00:00
Ryan Boren 6bfc22facd wp_specialchars() within wp_nonce_url(). Props Nazgul. fixes #2857
git-svn-id: https://develop.svn.wordpress.org/trunk@3974 602fd350-edb4-49c9-b593-d223f7449a82
2006-07-05 09:55:24 +00:00
Ryan Boren ccb85676c3 Update RBL site and turn open proxy check off by default. Props Nazgul. fixes #2821
git-svn-id: https://develop.svn.wordpress.org/trunk@3960 602fd350-edb4-49c9-b593-d223f7449a82
2006-07-04 21:41:00 +00:00
Ryan Boren 8cfe03b684 More nonce strings. #2734
git-svn-id: https://develop.svn.wordpress.org/trunk@3935 602fd350-edb4-49c9-b593-d223f7449a82
2006-06-27 09:32:42 +00:00
Ryan Boren dd6aa45584 wp_explain_nonce() and wp_nonce_ays(). Props mdawaffe. #2734
git-svn-id: https://develop.svn.wordpress.org/trunk@3934 602fd350-edb4-49c9-b593-d223f7449a82
2006-06-27 08:06:00 +00:00
Ryan Boren 98b02c5e7c Have wp_referer_field() set the referer to the current page. fixes #2800
git-svn-id: https://develop.svn.wordpress.org/trunk@3919 602fd350-edb4-49c9-b593-d223f7449a82
2006-06-24 18:17:10 +00:00
Ryan Boren dbbb1802b6 wp_get_referer() and friends from robmiller and markjaquith. fixes #2800
git-svn-id: https://develop.svn.wordpress.org/trunk@3908 602fd350-edb4-49c9-b593-d223f7449a82
2006-06-24 05:38:37 +00:00
Ryan Boren ce51707da2 Avoid recursive action. Props itdamager. fixes #2852
git-svn-id: https://develop.svn.wordpress.org/trunk@3904 602fd350-edb4-49c9-b593-d223f7449a82
2006-06-23 20:05:23 +00:00
Ryan Boren 4b3472c29f Move _() to compat.php
git-svn-id: https://develop.svn.wordpress.org/trunk@3901 602fd350-edb4-49c9-b593-d223f7449a82
2006-06-22 19:45:49 +00:00
Ryan Boren 5e32c14d39 Move ping and trackback functions to comment.php (maybe to ping.php later?) #2525
git-svn-id: https://develop.svn.wordpress.org/trunk@3900 602fd350-edb4-49c9-b593-d223f7449a82
2006-06-22 19:44:36 +00:00
Ryan Boren 909671e026 Fix bug in add_query_arg when url like http://example.com (no trailing slash). Props skel to the ac.
git-svn-id: https://develop.svn.wordpress.org/trunk@3897 602fd350-edb4-49c9-b593-d223f7449a82
2006-06-22 03:40:28 +00:00
Ryan Boren 7d49c0ec7b wp_check_filetype() from skeltoac.
git-svn-id: https://develop.svn.wordpress.org/trunk@3894 602fd350-edb4-49c9-b593-d223f7449a82
2006-06-21 23:17:19 +00:00
Ryan Boren 2c8931c55d Move plugin API to plugin.php. #2525
git-svn-id: https://develop.svn.wordpress.org/trunk@3893 602fd350-edb4-49c9-b593-d223f7449a82
2006-06-20 02:03:24 +00:00
Matt Mullenweg 9aeb21aab1 Don't hide blog when option is blank!
git-svn-id: https://develop.svn.wordpress.org/trunk@3885 602fd350-edb4-49c9-b593-d223f7449a82
2006-06-17 23:38:45 +00:00
Ryan Boren 216546a0b8 Include file renames. #2525
git-svn-id: https://develop.svn.wordpress.org/trunk@3862 602fd350-edb4-49c9-b593-d223f7449a82
2006-06-11 06:43:54 +00:00
Ryan Boren a4c408af37 User management improvements from Mark Jaquith and David House. #2793
git-svn-id: https://develop.svn.wordpress.org/trunk@3857 602fd350-edb4-49c9-b593-d223f7449a82
2006-06-08 18:36:05 +00:00
Ryan Boren eae22f445e Make replacement strings backref safe without using \${1} so as to preserve php <= 4.2 compatible. Props mdawaffe. fixes #2774
git-svn-id: https://develop.svn.wordpress.org/trunk@3855 602fd350-edb4-49c9-b593-d223f7449a82
2006-06-08 03:17:01 +00:00