nacin
836354fd7a
Twenty Eleven:
...
* Use add_option(), rather than get_option() with defaults, to prevent notoption queries.
* Add twentyeleven_theme_options_validate filter, that way one doesn't need to add a filter to sanitize_option_\$option to allow more options in.
* Some inline doc modifications and additions.
see #17198 .
git-svn-id: http://svn.automattic.com/wordpress/trunk@17734 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-28 08:52:37 +00:00
nacin
9db8f895a0
Rewrite of Twenty Eleven theme-options.php. Including:
...
* Full inline documentation.
* Enqueue scripts/styles on admin_enqueue_scripts and use hook_suffix rather than GET[page]
* Add filters to twentyeleven_color_schemes(), twentyeleven_layouts(), which necessitates adding a thumbnail URL value here, rather than generating them in the form.
* Add a twentyeleven_default_theme_options filter.
* Remove manual check for REQUEST[settings-updated], instead using settings_errors(), since we're using options.php.
* Abstract out the default link color, rather than hardcoding it in certain places.
* Use checked().
* Rename some variables and functions for clarity.
* Remove unnecessary functions twentyeleven_current_layout() and twentyeleven_current_color_scheme(), as we already have twentyeleven_get_theme_options().
* Add a twentyeleven_color_schemes action to allow for enqueueing custom color schemes.
* Add a twentyeleven_layout_classes filter, to allow filtering what gets sent back to body_class().
* Hook into wp_enqueue_scripts rather than wp_print_styles for enqueueing the color stylesheet.
* Rewrite the register_setting() callback to start from scratch with an empty array. Improve the link_color logic.
* Use submit_button().
* Use esc_attr() rather than esc_attr_e() for non-translations.
TODO:
* Implement settings sections/fields logic to allow extension of the options page.
* Consider re-doing this in a class. It'll be cleaner.
* Store a DB version so we can do an add_option(), rather than calling get_option() with defaults.
see #17198 .
git-svn-id: http://svn.automattic.com/wordpress/trunk@17733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-28 08:06:57 +00:00
lancewillett
e5425ba17a
Twenty Eleven: theme options - see #17198
...
* First pass at Link Color CSS rules
* Add new function to return default values
* Implement better validation for hex color value
* Fix missing esc_attr()
git-svn-id: http://svn.automattic.com/wordpress/trunk@17732 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-27 23:03:27 +00:00
ryan
dc20019a24
Add Background and Header to Admin Bar Appearance Menu. fixes #17263
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17731 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-27 22:06:01 +00:00
ryan
c5fb371ec6
kses optimizations. Props duck_. fixes #17045
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17730 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-27 21:50:39 +00:00
lancewillett
5628ced76f
Twenty Eleven: add first batch of new header images, courtesy of the immeasurable photomatt archives - see #17198
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17729 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-27 21:44:09 +00:00
ryan
8e21f7f098
Translate default link labels for *posts_link(). Props nathanrice, CharlesClarkson. fixes #16998
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17728 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-27 21:25:09 +00:00
ryan
ff9610e36d
Don't load themes functions.php for upgrades. Props greuben. fixes #16722
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17727 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-27 21:16:49 +00:00
iandstewart
c491c77f1d
Twenty Eleven: first pass at print styles; See ##17198
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-27 21:03:58 +00:00
azaozz
048d3a26b2
jQuery 1.5.2, props JDTrower demetris, fixes #16426
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17725 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-27 20:11:06 +00:00
nacin
3b25728930
Only show the sticky posts checkbox when edit_others_posts. Doesn't work without it. props solarissmoke, linuxologos, fixes #16947 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-27 11:27:08 +00:00
lancewillett
5daf376821
Twenty Eleven: fix spacing and add a few missing esc_attr() calls in widgets.php - see #17198
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-27 04:45:11 +00:00
lancewillett
963d908223
Twenty Eleven: set default case for switch statement in the twentyeleven_comment(), props greenshady - see #17198
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17722 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-27 04:38:36 +00:00
iandstewart
90451d9052
Twenty Eleven: functions.php cleanup and introduction of theme options; see #17198
...
* Cleanup functions.php, adding comments and function_exists() checks following Twenty Ten's example
* Theme option for choosing an alternate (dark) color scheme. It currently only loads a placeholder CSS file with dark styles to follow.
* Theme option for selecting a link color that loads an internal style block for resetting link colors. An updated style.css will follow to take advantage of this.
* Theme options for selecting an alternate layout. Adds a class to the body element. An updated style.css will follow to take advantage of this.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-26 22:52:18 +00:00
lancewillett
2bcbcf31ec
Twenty Eleven: move widgets.php into /inc - see #17198
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17720 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-26 21:05:43 +00:00
lancewillett
36742c0032
Twenty Eleven: minor style fixes (overflow) for international blogs and replacing em dash with the proper CSS value for the entity. Props matveb, see #17198
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-26 18:59:32 +00:00
lancewillett
34cdfcdd41
Twenty Eleven: add additional conditional IDs for the html element, props iandstewart - see #17198
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17718 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-26 18:54:03 +00:00
lancewillett
89bad03498
Twenty Eleven: add support for Status and Quote formats, props iandstewart - see #17198
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-26 18:46:31 +00:00
lancewillett
972a41501e
Twenty Eleven: strip trailing spaces, props kawauso - see #17198
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-26 18:34:52 +00:00
ryan
78e15233b2
Validate post status against capabilities in press this. Props nacin. for trunk
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-26 17:15:44 +00:00
dd32
04e5dc178d
Allow Taxonomies to be queried by $_GET parameters on non-taxonomy url's. See #17174
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-26 10:49:00 +00:00
azaozz
d01d27abc4
Don't hide the top bar when the cursor is over it, see #17136
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17703 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-26 07:20:56 +00:00
azaozz
a5f2b7d50c
DFW: remove unneeded JS global, fix screen flash in WebKit, props koopersmith, see #17136
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-26 01:19:26 +00:00
azaozz
57134c64b7
Fix image insertion in IE, fixes #17237
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17701 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-25 22:49:22 +00:00
ryan
a5361b3b24
Export commentmeta. Props duck_. see #12871
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-25 19:25:45 +00:00
ryan
0667ceb3be
Introduce WP_Meta_Query and relation support. Props scribu, greuben. fixes #17165 #17011
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-25 17:27:35 +00:00
ryan
ed6d0bbd37
Typo fix. Props ocean90, guyn. fixes #17234
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-25 14:33:27 +00:00
azaozz
c54adb08df
Fix padding in DFW mode, add the new wpfullscreen plugin in wp-tinymce.js.gz, fix notices in press-this see #17136
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-25 14:27:11 +00:00
azaozz
2ec8740e9b
Fix Opera event name and bump TinyMCE version string, see #17136
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-25 01:28:23 +00:00
azaozz
258a8f6844
Distraction Free Writing mode, see #17136
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-25 01:01:34 +00:00
azaozz
a69059331c
Fix missing comma in TinyMCE advanced theme image.js, props johnjamesjacoby, fixes #17233
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-24 23:27:48 +00:00
dd32
bed23730dc
Handle zip error's in PclZip better. PclZip::extract() returns an array on success, 0 on failure. Fixes #17224
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17693 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-23 14:30:44 +00:00
dd32
ad5f5db861
Allow the cURL transport to handle '0' response bodies. Fixes #17223
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17692 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-23 13:49:52 +00:00
dd32
26cc29597b
Ensure all theme searching is done case-insensitive. Props solarissmoke for initial path. Fixes #17059
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-23 13:01:52 +00:00
nacin
f1b2f79add
Update wp-tinymce.js.gz and bump. see #16631 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-23 10:44:00 +00:00
dd32
1eaf6f8527
Allow WP_Query 'post_status' parameter to accept an array, as well as a singular value and comma separated list. Fixes #16824
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-23 10:36:22 +00:00
dd32
b0fdc73dca
Prevent $taxonony->object_type containing duplicate values. Initial patch props kevinB. Fixes #16951
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-23 09:27:37 +00:00
azaozz
4f9f5f1765
Use wpLink in the HTML editor too, props koopersmith, fixes #16631
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-23 02:12:56 +00:00
ryan
0a5a01e991
Handle term intersection requests containg inexistent terms. Props scribu. fixes #17194
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-22 19:09:48 +00:00
nacin
5f29ef7e7b
Add the filter in display_rows, rather than _display_rows.
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-22 18:33:53 +00:00
nacin
8a0d83bebe
Apply esc_html properly in Walker_PageDropdown. fixes #17217 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-22 18:24:57 +00:00
nacin
26989db5d4
Remove vestige code, prevent over-escaping of post titles when using Quick Edit for hierarchical post types. fixes #17218 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-22 18:20:49 +00:00
ryan
f9b418a2f9
Move wp_clone() back to load.php. Props technosailor. fixes #17206
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-22 17:46:02 +00:00
azaozz
c07e04ec65
Fix dependencies for some jQuery UI components, props scribu, fixes #16511
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-21 22:29:25 +00:00
azaozz
ca1923c510
Update json2.js, props niallkennedy, fixes #16669
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-21 22:21:27 +00:00
ryan
1e075ab1ab
Update phpass. Props duck_. fixes #16072
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-21 20:44:39 +00:00
ryan
a619926bab
Update pop3 class. Props aaroncampbell. fixes #17064
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-21 20:40:32 +00:00
ryan
a1128831ec
Update phpmailer and smtp to 5.1. Props MattyRob cnorris23. fixes #15912
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-21 20:29:30 +00:00
azaozz
f8da5471ee
Fix decoding of ' in TinyMCE
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17675 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-21 20:20:56 +00:00
ryan
686c35340b
Allow querying empty meta values. Props scribu. fixes #15292
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-21 18:13:03 +00:00