Commit Graph

131 Commits

Author SHA1 Message Date
Andrew Nacin
7f154ed6c3 Call get_(template|stylesheet)_directory_uri() only once in process_default_headers. props mitchoyoshitaka, fixes #17353.
git-svn-id: https://develop.svn.wordpress.org/trunk@18505 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-04 12:40:15 +00:00
Ryan Boren
091ec81919 Hardening. Santizers for WPLANG and new_admin_email. Prevent stomping ID and filter. Validate locale filename. Props westi.
git-svn-id: https://develop.svn.wordpress.org/trunk@18346 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-27 15:56:42 +00:00
Andrew Nacin
95c33db79f Sanity int casts in custom header step_3. props xknown, fixes #17779.
git-svn-id: https://develop.svn.wordpress.org/trunk@18298 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-13 08:50:16 +00:00
Ryan Boren
ccba8dfbf3 Validation fixes. Props ocean90, peaceablewhale. see #17364
git-svn-id: https://develop.svn.wordpress.org/trunk@18010 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-23 23:33:30 +00:00
Ryan Boren
da02537bb0 Mark import attachments as private. Schedule job to delete old import attachments. Introduce attachment context.
git-svn-id: https://develop.svn.wordpress.org/trunk@17999 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-22 23:25:28 +00:00
Ryan Boren
6d7348ee5c Custom header admin UI fixes. Props lancewillett. fixes #17240
git-svn-id: https://develop.svn.wordpress.org/trunk@17814 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-05 20:15:19 +00:00
Ryan Boren
ee370ed273 Remove h3s. see #17240
git-svn-id: https://develop.svn.wordpress.org/trunk@17773 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-29 21:52:01 +00:00
Ryan Boren
9730cb8d15 Constructor cleanup. Props ocean90. fixes #16768
git-svn-id: https://develop.svn.wordpress.org/trunk@17771 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-29 20:05:12 +00:00
Ryan Boren
54822700b8 Fix hiding of header image. Fix radio selection when falling back to randomized default headers. Props lancewillett, kawauso. see #17240
git-svn-id: https://develop.svn.wordpress.org/trunk@17770 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-29 19:45:30 +00:00
Ryan Boren
5076061131 Set meta when upload matches dimensions. see #17240
git-svn-id: https://develop.svn.wordpress.org/trunk@17758 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-28 23:14:08 +00:00
Ryan Boren
405093f3de Allow selecting previously uploader headers and randomly serving previously uploaded or default headers. Props lancewillett. see #17240
git-svn-id: https://develop.svn.wordpress.org/trunk@17757 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-28 23:02:16 +00:00
Andrew Nacin
f504e221e1 Switch from Panel/SubPanel to Screen in inline documentation and Codex links. props michaelh, fixes #17265.
git-svn-id: https://develop.svn.wordpress.org/trunk@17748 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-28 15:24:49 +00:00
Mark Jaquith
d65cdf4ba8 Expand submit_button() capabilities. Replace all (or almost all) manual HTML instances in WP. props sbressler. see #15064
git-svn-id: https://develop.svn.wordpress.org/trunk@16061 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 21:56:43 +00:00
Andrew Nacin
fb4e38b0e7 Pinking shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@15843 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 07:48:22 +00:00
scribu
0911aa3e1a Use submit_button() in more places. See #15064
git-svn-id: https://develop.svn.wordpress.org/trunk@15830 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-17 18:24:34 +00:00
Andrew Nacin
b7ffec08f8 Allow disabling of custom header uploads via remove_theme_support. props jorbin, fixes #14837.
git-svn-id: https://develop.svn.wordpress.org/trunk@15828 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-17 07:12:34 +00:00
scribu
3bd3ec6455 Add hook in custom header admin page. Props blepoxp. Fixes #15119
git-svn-id: https://develop.svn.wordpress.org/trunk@15805 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-14 14:02:06 +00:00
Andrew Nacin
3ca83773a7 Use more specific selector. props CAMWebDesign, fixes #13880.
git-svn-id: https://develop.svn.wordpress.org/trunk@15248 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-14 08:25:34 +00:00
Andrew Nacin
616e2e1185 Missing links for custom background, header, and GUU. props zeo.
git-svn-id: https://develop.svn.wordpress.org/trunk@15231 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 18:00:29 +00:00
Andrew Nacin
fa5dd80231 Use entity. props zeo, see #13720.
git-svn-id: https://develop.svn.wordpress.org/trunk@15185 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-09 22:32:08 +00:00
Ryan Boren
b0f3221f93 Typo fix. Props zeo, dougwrites. fixes #13734
git-svn-id: https://develop.svn.wordpress.org/trunk@15159 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-07 16:29:52 +00:00
Ryan Boren
fe68d2c4ea Make crop button primary and change text to note that cropping the image publishes it. Props ocean90. see #13720
git-svn-id: https://develop.svn.wordpress.org/trunk@15158 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-07 16:25:33 +00:00
Andrew Nacin
e89212637d Help whitespace/punctuation cleanup. props zeo, see #13467.
git-svn-id: https://develop.svn.wordpress.org/trunk@15054 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-29 16:16:40 +00:00
Andrew Nacin
e9f6f2d13b Custom header and background help. props jane, see #13467.
git-svn-id: https://develop.svn.wordpress.org/trunk@15019 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-28 00:27:53 +00:00
Ryan Boren
aec821c651 Strip trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@14924 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 02:42:15 +00:00
Ryan Boren
065c7382e4 Custom header fixes and rework. Props ocean90. fixes #13231
git-svn-id: https://develop.svn.wordpress.org/trunk@14907 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 22:05:51 +00:00
Andrew Nacin
a6a1d04ead Ensure validation. props Utkarsh, see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14626 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 08:07:01 +00:00
Andrew Nacin
49e4cad78c Use the edit_theme_options capability. fixes #13290.
git-svn-id: https://develop.svn.wordpress.org/trunk@14581 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-12 19:19:57 +00:00
Andrew Nacin
84578d128b Add trailing slash to some home_url() calls. props zeo, fixes #13245.
git-svn-id: https://develop.svn.wordpress.org/trunk@14443 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 17:13:11 +00:00
Andrew Nacin
2473cefe8f s/blog/site/ in even more places. props PeteMall, see #11644.
git-svn-id: https://develop.svn.wordpress.org/trunk@14315 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-30 03:17:49 +00:00
Andrew Nacin
7c772cde16 Correct the @since's for custom-header.php.
git-svn-id: https://develop.svn.wordpress.org/trunk@13895 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-30 18:55:35 +00:00
Andrew Nacin
e34ca97ae0 Change @since 3.0 to @since 3.0.0.
git-svn-id: https://develop.svn.wordpress.org/trunk@13827 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 19:13:36 +00:00
Dion Hulse
ff1ec0a955 Add @since to Custom Header functions
git-svn-id: https://develop.svn.wordpress.org/trunk@13790 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-21 11:02:05 +00:00
Andrew Nacin
8aac1fc447 Use h3 (not h2) to break up sections on custom header/bg screens. Move div.updated message to right after the h2, as JS will move it there anyway.
git-svn-id: https://develop.svn.wordpress.org/trunk@13751 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-18 19:06:57 +00:00
Mark Jaquith
8bca8131a6 More pedantry. "Setup" is not a verb. http://notaverb.com/setup
git-svn-id: https://develop.svn.wordpress.org/trunk@13725 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 04:39:50 +00:00
Ryan Boren
88268d637d Header selector styling fixes. Props iammattthomas. see #12343
git-svn-id: https://develop.svn.wordpress.org/trunk@13621 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-08 22:14:11 +00:00
Ryan Boren
e17f4a48f7 Fix class name. see #12343
git-svn-id: https://develop.svn.wordpress.org/trunk@13515 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-28 21:02:24 +00:00
Ryan Boren
e4b8919c31 Default header selector, second pass. see #12343
git-svn-id: https://develop.svn.wordpress.org/trunk@13404 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-25 19:32:10 +00:00
Ryan Boren
4ee18ae484 Default header selector, first pass. see #12343
git-svn-id: https://develop.svn.wordpress.org/trunk@13403 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-25 19:18:44 +00:00
Ryan Boren
33bd0dd935 Drop 'Custom' from menu names. Use 'Menus' instead of Navigation. see #11817
git-svn-id: https://develop.svn.wordpress.org/trunk@13339 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-23 20:28:52 +00:00
Ryan Boren
d22d07e1f2 Use switch_themes instead of edit_themes so that non super admins on multisite installs can customize headers and backgrounds. Add CYA cap checks.
git-svn-id: https://develop.svn.wordpress.org/trunk@13043 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-10 16:49:16 +00:00
Ryan Boren
93fc30b2a0 Send user back to main custom header page after cropping and setting image. Add support for a custom image div callback for greather theme flexibility. Props dphiffer. see #11855
git-svn-id: https://develop.svn.wordpress.org/trunk@12890 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-28 19:00:16 +00:00
Ryan Boren
e2adfc832a Coding standards, space after if
git-svn-id: https://develop.svn.wordpress.org/trunk@12752 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-18 20:34:48 +00:00
Andrew Ozz
060d9185e6 Remove unused .fade CSS class, props nacin, fixes #11628
git-svn-id: https://develop.svn.wordpress.org/trunk@12546 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-26 09:00:58 +00:00
Ryan Boren
7ccd64fbe7 Retunr WP_Error from wp_crop_image() and image_resize(). Props mdwaffe. fixes #9922
git-svn-id: https://develop.svn.wordpress.org/trunk@12524 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 18:39:31 +00:00
Mark Jaquith
ba1c3bdd5b Deprecate sanitize_url() and clean_url() in favor of esc_url_raw() and esc_url()
git-svn-id: https://develop.svn.wordpress.org/trunk@11383 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-18 16:00:33 +00:00
Mark Jaquith
c638e8d8de _a(), _ea(), _xa(), attr() are now esc_attr__(), esc_attr_e(), esc_attr_x(), esc_attr() -- still short, but less cryptic. see #9650
git-svn-id: https://develop.svn.wordpress.org/trunk@11204 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 19:43:53 +00:00
Ryan Boren
fe7c34b6fd s/attribute_escape/attr/. see #9650
git-svn-id: https://develop.svn.wordpress.org/trunk@11109 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-28 05:58:45 +00:00
Ryan Boren
a114582715 Some attr escaping. see #9650
git-svn-id: https://develop.svn.wordpress.org/trunk@11104 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-27 23:09:08 +00:00
Ryan Boren
12c7093645 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@11013 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-20 18:18:39 +00:00
Ryan Boren
2534eee04b Set default coords for cropper. Props yoavf. fixes #9526
git-svn-id: https://develop.svn.wordpress.org/trunk@10925 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-13 17:00:51 +00:00
Ryan Boren
f544f21ad3 Make jCrop compatible with noConflict. Props nbachiyski. fixes #9375
git-svn-id: https://develop.svn.wordpress.org/trunk@10863 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-03 18:18:47 +00:00
Ryan Boren
fba2ab997b Make buttons pretty
git-svn-id: https://develop.svn.wordpress.org/trunk@10860 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-03 00:52:50 +00:00
Ryan Boren
d861062501 Use Jcrop for cropping. see #9375
git-svn-id: https://develop.svn.wordpress.org/trunk@10846 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-27 16:45:55 +00:00
Ryan Boren
01f92d2f04 Use "Custom Header" for menu text. see #9178
git-svn-id: https://develop.svn.wordpress.org/trunk@10623 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-22 07:43:15 +00:00
Ryan Boren
baaaa352ba Strip trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@10150 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-09 18:03:31 +00:00
Ryan Boren
798561238f screen_icon() for Custom Image Header
git-svn-id: https://develop.svn.wordpress.org/trunk@9924 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-27 19:24:46 +00:00
Ryan Boren
5e69c6919c Use farbtastic for custom header color picker. Props rmmccue. see #5591
git-svn-id: https://develop.svn.wordpress.org/trunk@8760 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-28 17:42:21 +00:00
Peter Westwood
e1adf1d070 More phpdoc updates for wp-adming. See #7496 props santosj.
git-svn-id: https://develop.svn.wordpress.org/trunk@8656 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-16 07:27:34 +00:00
Ryan Boren
a70e1a34e5 WP-Admin File Level Inline Documentation from santosj. see #7496
git-svn-id: https://develop.svn.wordpress.org/trunk@8618 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-11 20:26:31 +00:00
Ryan Boren
2272a1a950 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@8600 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-09 05:36:14 +00:00
Ryan Boren
f213f87d59 First cut and better admin SSL support. see #7001
git-svn-id: https://develop.svn.wordpress.org/trunk@7998 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-27 17:46:01 +00:00
Ryan Boren
1ed52ed5d7 Custom header and color picker fixes from mdawaffe. fixes #6577 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7698 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-16 20:58:03 +00:00
Ryan Boren
2aa0422fdf Show custom header images in the media library. Props spikeyslam. fixes #6008
git-svn-id: https://develop.svn.wordpress.org/trunk@7049 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-26 21:07:15 +00:00
Ryan Boren
ea73b4aa17 Remove raquo from buttons. Props filosofo. fixes #5938
git-svn-id: https://develop.svn.wordpress.org/trunk@6943 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-20 19:30:55 +00:00
Ryan Boren
791a7d7191 Unused var cleanup. Props DD32. see #5418
git-svn-id: https://develop.svn.wordpress.org/trunk@6551 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-04 19:36:34 +00:00
Ryan Boren
029a74ca44 Remove unused variables. Props DD32. see #5418
git-svn-id: https://develop.svn.wordpress.org/trunk@6363 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-06 06:37:30 +00:00
Ryan Boren
721b8c930b Remove unused variables. Props DD32. fixes #5418
git-svn-id: https://develop.svn.wordpress.org/trunk@6354 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-05 00:29:05 +00:00
Matt Mullenweg
701989a76d Make this more specific so it can be more easily overridden with CSS.
git-svn-id: https://develop.svn.wordpress.org/trunk@5795 602fd350-edb4-49c9-b593-d223f7449a82
2007-07-10 04:38:27 +00:00
rob1n
af3be824e7 Translate ». see #3401
git-svn-id: https://develop.svn.wordpress.org/trunk@5676 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-11 21:05:50 +00:00
Ryan Boren
1ff3a1e05a Add nonce to avoid AYS when restoring image header.
git-svn-id: https://develop.svn.wordpress.org/trunk@5478 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-15 16:47:15 +00:00
Ryan Boren
ed0260ac9e Do a cap check at the top of widgets since it won't always inherit the menu cap check.
git-svn-id: https://develop.svn.wordpress.org/trunk@5385 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-04 17:52:22 +00:00
Ryan Boren
8218fe63c8 Set eol-style
git-svn-id: https://develop.svn.wordpress.org/trunk@5365 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-01 17:46:55 +00:00
Matt Mullenweg
d57901d29a Ryan slays the dragon. (Some of these return WP_Error objects.)
git-svn-id: https://develop.svn.wordpress.org/trunk@5089 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-23 02:05:29 +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
db67d51e29 Sanitize browser-bound add_query_arg() outputs. fixes #3937
git-svn-id: https://develop.svn.wordpress.org/trunk@5007 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-09 04:36:24 +00:00
Mark Jaquith
5acfcd9fea trailing tabs and whitespace cleanup.
git-svn-id: https://develop.svn.wordpress.org/trunk@4953 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-27 15:24:54 +00:00
Ryan Boren
1d2e3903b2 Fix wp_delete_file action. Props filosofo. fixes #3655
git-svn-id: https://develop.svn.wordpress.org/trunk@4910 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-22 01:52:00 +00:00
Mark Jaquith
bae1d18310 Oops, two locations where this filter is called. fixes #3693
git-svn-id: https://develop.svn.wordpress.org/trunk@4818 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-27 22:57:29 +00:00
Mark Jaquith
758b3126d2 Pass correct var to wp_create_file_in_uploads hook. props spikeyslam. fixes #3693
git-svn-id: https://develop.svn.wordpress.org/trunk@4817 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-27 22:56:32 +00:00
Ryan Boren
bc8bc5bf09 Custom Image Header. fixes #3465
git-svn-id: https://develop.svn.wordpress.org/trunk@4673 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-03 23:49:34 +00:00