Commit Graph

150 Commits

Author SHA1 Message Date
westi 7ec819d925 Improve the revision comparison user interface to hilight that we compare "old on left" to "new on right". Includes some js to hide the radio buttons to stop you selecting reverse comparisions.
Fixes #11088 props filosofo.

git-svn-id: http://svn.automattic.com/wordpress/trunk@12500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 09:15:13 +00:00
markjaquith ef1593e6da Get rid of stray comma. fixes #10977. props kevinB
git-svn-id: http://svn.automattic.com/wordpress/trunk@12327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-06 18:01:01 +00:00
ryan 039a004122 Return if no post to avoid warnings
git-svn-id: http://svn.automattic.com/wordpress/trunk@12208 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-18 21:04:09 +00:00
ryan 6c2248e2d2 Remove unnecessary variable initialization. Props nbachiyski. fixes #10736
git-svn-id: http://svn.automattic.com/wordpress/trunk@12194 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-16 22:44:59 +00:00
ryan b75a06af15 Propagate walker arg down the stack. Props scribu. fixes #10921
git-svn-id: http://svn.automattic.com/wordpress/trunk@12149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-05 22:01:53 +00:00
westi 7251aff3f3 Introduce require_if_theme_supports(), move post thumbnails functions to there own include and only included them if the theme supports them. See #10928 and [12132]
git-svn-id: http://svn.automattic.com/wordpress/trunk@12134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-01 10:10:06 +00:00
azaozz a980fad82a Remove unused vars in get_the_content and wp_link_pages, props filosofo, fixes #11028
git-svn-id: http://svn.automattic.com/wordpress/trunk@12105 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-25 20:44:35 +00:00
markjaquith 0dc4500e09 Allow theme devs to change attrs (like CSS class) of thumbnail images. props scribu. see #10928
git-svn-id: http://svn.automattic.com/wordpress/trunk@12035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-15 12:31:48 +00:00
markjaquith 831178162c First pass at canonical post image template functions. see #10928
git-svn-id: http://svn.automattic.com/wordpress/trunk@12019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-10 08:31:21 +00:00
westi 7fc17ec0bd Add a title to the Home link output by wp_page_menu(). Fixes #10594 props amilanov.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-08 21:37:26 +00:00
ryan 0c557fdb02 Use ID, not user_id. Props filosofo. fixes #10709
git-svn-id: http://svn.automattic.com/wordpress/trunk@11990 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-01 17:52:01 +00:00
ryan 4942a41307 Pass args array to wp_list_pages filter. Props antonylesuisse. fixes #10034
git-svn-id: http://svn.automattic.com/wordpress/trunk@11936 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-09-15 15:40:17 +00:00
ryan 8513b29792 Prophylactic escapes
git-svn-id: http://svn.automattic.com/wordpress/trunk@11838 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-08-18 16:05:07 +00:00
ryan 8483a08d39 Sort wp_page_menu() by menu_order. Props nathanrice. fixes #10266
git-svn-id: http://svn.automattic.com/wordpress/trunk@11642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-06-26 05:24:02 +00:00
ryan 8ffd022581 Add missing brackets. Props westonruter. fixes #8446 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@11567 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-06-15 00:28:52 +00:00
ryan 2df887bd07 Trim tailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@11450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-24 23:47:49 +00:00
westi fc3b5ba6da Rename new function to sanitize_html_class() to hilight exactly what it is for, Fixes #8446.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11435 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-22 21:31:42 +00:00
westi 108f7c1063 Introduce sanitise_css_classname() and use it to give categories, tags, users etc meaningful classnames where possible. Falls back to the id if not. Fixes #8446.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-22 17:44:26 +00:00
ryan 2b2e7e9478 Add more link and then force_balance_tags. Props Denis-de-Bernardy. fixes #9765
git-svn-id: http://svn.automattic.com/wordpress/trunk@11398 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-19 16:03:11 +00:00
westi f4331cacbd Migrate final get_author_name() calls to use get_the_author_meta() instead. See #9393 props sivel.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11370 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-16 22:32:48 +00:00
ryan a0c7b65f7b Use IDs instead of slugs in CSS classes ro avoid invalid class names. Props hakre. fixes #8446
git-svn-id: http://svn.automattic.com/wordpress/trunk@11306 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-12 17:11:57 +00:00
azaozz 99370b2b73 Add filter: the post content "more link", props JohnLamansky, fixes #9711
git-svn-id: http://svn.automattic.com/wordpress/trunk@11300 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-12 06:38:59 +00:00
markjaquith 6c2ffddf31 _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: http://svn.automattic.com/wordpress/trunk@11204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-05 19:43:53 +00:00
ryan 12078bcb11 Attr escaping
git-svn-id: http://svn.automattic.com/wordpress/trunk@11173 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-04 17:54:08 +00:00
ryan f7c30e87eb Pass post ID to the_title filter. Props DD32. see #5746 #9666
git-svn-id: http://svn.automattic.com/wordpress/trunk@11112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-28 17:40:49 +00:00
ryan e7f2b40dd7 protected_title_format and private_title_format. Props anderswc. fixes #8918
git-svn-id: http://svn.automattic.com/wordpress/trunk@11111 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-28 17:36:10 +00:00
ryan 2d489767bb s/attribute_escape/attr/. see #9650
git-svn-id: http://svn.automattic.com/wordpress/trunk@11109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-28 05:58:45 +00:00
ryan 371b5a8f55 Add page-id-x class to body for pages. jamescollins. see #7939
git-svn-id: http://svn.automattic.com/wordpress/trunk@11054 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-22 17:46:51 +00:00
ryan 64091e195f Faster query to see if page has children
git-svn-id: http://svn.automattic.com/wordpress/trunk@11053 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-22 17:45:20 +00:00
ryan a61bc0ec8a Trailing whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@11013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-20 18:18:39 +00:00
ryan 989ddc7360 Fix teaser stripping when no teaser. Props makibo, simonwheatley. fixes #6312
git-svn-id: http://svn.automattic.com/wordpress/trunk@10954 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-16 19:43:01 +00:00
ryan 0ed6972911 Add page class to get_boddy_class(). Props nathanrice. fixes #9514
git-svn-id: http://svn.automattic.com/wordpress/trunk@10950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-16 18:22:27 +00:00
ryan ab49d00bc4 Add page classes to page attachments. Props minusfive. fixes #9472
git-svn-id: http://svn.automattic.com/wordpress/trunk@10947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-16 17:37:58 +00:00
ryan dd1c8932aa Don't trigger loop start in get_body_class(). Props Denis-de-Bernardy. fixes #9457
git-svn-id: http://svn.automattic.com/wordpress/trunk@10877 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-06 15:42:12 +00:00
ryan e8b6fe7347 Trim trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@10810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-18 02:43:45 +00:00
ryan b1222311f7 gettext comments. Props nbachiyski. see #9112
git-svn-id: http://svn.automattic.com/wordpress/trunk@10774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-13 03:53:39 +00:00
azaozz 4b9c9777d7 Fix wp_get_attachment_link(), props noel, fixes #9036
git-svn-id: http://svn.automattic.com/wordpress/trunk@10520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-07 02:58:21 +00:00
azaozz 6bb375e113 wp_get_attachment_link() variable upgrade, props noel, fixes #9036
git-svn-id: http://svn.automattic.com/wordpress/trunk@10495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-04 15:12:24 +00:00
ryan 691eaf1f13 Respect time zone when displaying autosave and revision time. Props janbrasna, designsimply. fixes #8750 #6489 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-03 23:04:31 +00:00
ryan af5c60f83f body_class(). Props ionfish. fixes #7939
git-svn-id: http://svn.automattic.com/wordpress/trunk@10485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-02 19:21:38 +00:00
ryan d5ca3badae Add missing preg delimiters. Props ridgerunner. fixes #8986 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10459 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-01-29 17:46:31 +00:00
ryan 0858d9b0c2 Use preg_replace_callback instead of preg_replace with eval. Props beaulebens. see #8689
git-svn-id: http://svn.automattic.com/wordpress/trunk@10339 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-01-09 19:29:35 +00:00
ryan a0d817dd56 Fix link_before and after args. Props ev3rywh3re. fixes #8715 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10269 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-30 19:41:53 +00:00
ryan 6b1b25c6d8 Allow custom page walker classes. Props MikeLittle. fixes #8673
git-svn-id: http://svn.automattic.com/wordpress/trunk@10230 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-19 20:27:11 +00:00
ryan e89192b1a8 Strip trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@10150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-09 18:03:31 +00:00
westi 19e69cce8a Append don't overwrite. See #8649 props rboren.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-07 22:13:00 +00:00
westi fed0c5df20 Make wp_page_menu() respect is_front_page(). Fixes #8469 props AaronCampbell.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10115 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-07 12:14:14 +00:00
westi 350be7f979 Use classes instead of ids to allow the wp_page_menu() to be used more than once per-page. Fixes #8439 props corischlegel.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-07 12:11:37 +00:00
ryan ae7bb0d440 post_parent dropdown fixes. get_pages() cache fix to eliminate duplicate queries.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-05 19:19:24 +00:00
ryan b13f38f6e3 Use wp_dropdown_page()
git-svn-id: http://svn.automattic.com/wordpress/trunk@10069 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-05 18:03:24 +00:00