Commit Graph

355 Commits

Author SHA1 Message Date
Andrew Nacin a63bf413ad Move [14551] to after the is_wp_error check. see #13133, fixes #15511, props alexdunae.
git-svn-id: https://develop.svn.wordpress.org/trunk@16761 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-07 07:12:55 +00:00
Andrew Nacin 4a8c7f3dfa add_editor_style should include the parent theme CSS before the child theme CSS for override reasons. props JohnPBloch. fixes #14430.
git-svn-id: https://develop.svn.wordpress.org/trunk@16688 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-02 13:54:56 +00:00
Ryan Boren 36a4508140 Update since phpdoc. Props demetris. fixes #15445
git-svn-id: https://develop.svn.wordpress.org/trunk@16660 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-01 19:24:38 +00:00
Ryan Boren b9b0e7215c Save meta id before performing actions since the insert_id can change. Props cyberhobo. fixes #15465
git-svn-id: https://develop.svn.wordpress.org/trunk@16659 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-01 19:11:47 +00:00
Ryan Boren ca60ed1d07 Don’t nag to Change Permalinks if permalink structure is defined. Props demetris. fixes #13918
git-svn-id: https://develop.svn.wordpress.org/trunk@16651 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-01 17:16:22 +00:00
Andrew Nacin e8dd42ce2a Revert [15688], [15689], [15691]. Try again in 3.2. see #14966.
git-svn-id: https://develop.svn.wordpress.org/trunk@16535 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-22 17:17:26 +00:00
Andrew Nacin 7cccd5715f Third pass on internal linking preloading. Or, what I left out of the second pass commit. see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@16459 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 07:59:05 +00:00
Andrew Nacin 655df3af90 Ludicrous speed for internal linking. First pass. props koopersmith, see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@16457 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 06:22:13 +00:00
scribu 32b416f959 Improve hook readability via curly brackets. Props jjj for initial patch. Fixes #15422
git-svn-id: https://develop.svn.wordpress.org/trunk@16365 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-14 15:50:02 +00:00
Mark Jaquith ef54c47f7a add_theme_support( 'post-formats', array( 'aside', 'image', 'etc' ) ); Add UI for choosing a post format, and save the choice. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@16174 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-04 07:41:07 +00:00
Peter Westwood 506f71b660 Enable the dialog for paste as plain text in the new TinyMCE paste plugin. Fixes #15278.
git-svn-id: https://develop.svn.wordpress.org/trunk@16133 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-01 15:59:48 +00:00
Peter Westwood 5dc465110a Check for empty strings before indexing into them. Fixes #15265 props solarissmoke.
git-svn-id: https://develop.svn.wordpress.org/trunk@16112 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-31 09:29:57 +00:00
Andrew Ozz d39d7e4ba4 Editor: utilize the new "formats" option in TinyMCE, fix errors in IE when pressing Enter inside a caption box, fix resizing of the caption box when the user soft-resizes the image in the editor, fixes #12574
git-svn-id: https://develop.svn.wordpress.org/trunk@16090 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 20:06:00 +00:00
Andrew Nacin 605b0c48e3 Don't check the raw edit_others_posts cap. see #12702.
git-svn-id: https://develop.svn.wordpress.org/trunk@16004 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 08:48:55 +00:00
Andrew Nacin 71c59b865a Add a 'Sticky' filter on the edit posts page. Add post_in and post_not_in as private query vars in the WP class to support this. fixes #8466.
git-svn-id: https://develop.svn.wordpress.org/trunk@16003 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 08:27:45 +00:00
Andrew Nacin f34a8de8ec Internal linking, first pass. props koopersmith, see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@15940 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-24 02:58:42 +00:00
Andrew Nacin ea2f90c70e Move some post and taxonomy functions from admin/includes to wp-includes in preparation for QuickPress template tag. Moves get_tags_to_edit, get_terms_to_edit, get_default_post_to_edit, media_buttons, _media_button, get_upload_iframe_src. Also introduce get_media_buttons as a wrapper for media_buttons. props jorbin, see #14966.
git-svn-id: https://develop.svn.wordpress.org/trunk@15688 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-03 02:58:59 +00:00
Andrew Ozz 358c7e1885 TinyMCE 3.3 first run
git-svn-id: https://develop.svn.wordpress.org/trunk@15683 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-02 05:14:12 +00:00
Andrew Nacin 9494e4ce7e Phpdoc argument/@param cleanups. props duck_, see #14783.
git-svn-id: https://develop.svn.wordpress.org/trunk@15590 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 11:21:11 +00:00
scribu fb9394167f Ajaxify list-type screens in the admin. See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@15491 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-11 21:54:51 +00:00
Ryan Boren 432adc1c33 Make posts per page filters consistent and back compat. Props wpmuguru. fixes #14135 for 3.1
git-svn-id: https://develop.svn.wordpress.org/trunk@15450 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-21 17:27:04 +00:00
Ryan Boren 0e8e96649b Default posts per page to 20. Props wpmuguru. fixes #14342 for 3.1
git-svn-id: https://develop.svn.wordpress.org/trunk@15445 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-19 16:28:26 +00:00
Andrew Nacin ec40f6b186 Curses on PHP 5.0.5. see #14160 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@15358 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-30 22:05:27 +00:00
Ryan Boren 494ee995b5 Use get_current_user() and get_current_user_id() instead of global . Props filofo. see #13934 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@15315 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-24 15:01:29 +00:00
Mark Jaquith cb6f66977e Do proper caps check when processing bulk edited posts, and hide the checkbox on the Page edit page for users who lack permissions. props ocean90
git-svn-id: https://develop.svn.wordpress.org/trunk@15032 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-28 15:49:13 +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
Andrew Nacin 1356037d95 Remove non-gzipped version of tinymce. Brace for impact. props azaozz. see #13307.
git-svn-id: https://develop.svn.wordpress.org/trunk@14765 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-20 21:05:16 +00:00
Mark Jaquith dafdd33220 Add nonce protection for setting/removing featured post image. fixes #13438
git-svn-id: https://develop.svn.wordpress.org/trunk@14730 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-18 22:08:49 +00:00
Ryan Boren aab2aeaa75 Fix adding categories via bulk edit. Props duck_. see #13397
git-svn-id: https://develop.svn.wordpress.org/trunk@14723 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-18 15:03:54 +00:00
Andrew Nacin f92765c934 Remove default_comment_status_pages setting. Reverts [14451], [14448] for 3.0. see #12991.
git-svn-id: https://develop.svn.wordpress.org/trunk@14650 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 04:56:56 +00:00
Ryan Boren 3ed5168fbe Don't allow previewing auto-draft. Props duck_. fixes #12859
git-svn-id: https://develop.svn.wordpress.org/trunk@14643 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 18:30:43 +00:00
Andrew Nacin d999daff98 esc_url the URL from get_upload_iframe_src. props jshreve, see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14633 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 15:03:59 +00:00
Andrew Nacin 4f689c8309 Move taxonomy object properties for capabilities into a cap object. Capabilities can be specified via ['capabilities'] (an array keyed by the generic cap name) for register_taxonomy. fixes #13358.
git-svn-id: https://develop.svn.wordpress.org/trunk@14593 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 04:10:17 +00:00
Andrew Nacin 490a0a99cd More typos. see #13358.
git-svn-id: https://develop.svn.wordpress.org/trunk@14588 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-12 21:03:33 +00:00
Andrew Nacin 323342deec Move post type object capabilities to a 'cap' object. Allow them to be initialized via the 'capabilities' key (an array) when registering support for the post type. Caps are now referred to by the name of the cap as if it was a post, i.e. ->cap->edit_post. see #13358.
git-svn-id: https://develop.svn.wordpress.org/trunk@14585 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-12 20:45:18 +00:00
Ryan Boren df2498e980 Fix bulk editing of non-hierarchical taxonomies. Props prettyboymp. fixes #13153
git-svn-id: https://develop.svn.wordpress.org/trunk@14580 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-12 19:12:18 +00:00
Nikolay Bachiyski ad3881470e I18n for custom post type labels. Props demetris, dimadin. Fixes #12968
git-svn-id: https://develop.svn.wordpress.org/trunk@14571 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-11 19:52:50 +00:00
Mark Jaquith 9ccf5de9de Handle manual saving of auto-drafts for Contributors without JavaScript. props jbsil. fixes #13133
git-svn-id: https://develop.svn.wordpress.org/trunk@14551 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-10 21:21:42 +00:00
Peter Westwood 16db1d5699 Remove the trash warning on permalinks for now as the current implementation doesn't work very well. See #11863
git-svn-id: https://develop.svn.wordpress.org/trunk@14462 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-05 07:37:51 +00:00
Peter Westwood e52964ab4d Switch to a constant string to make it possible to translate. See #11863.
git-svn-id: https://develop.svn.wordpress.org/trunk@14461 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-05 07:10:53 +00:00
Ron Rennick bdb89ac091 add default comment status setting for pages, props messenlehner, see #12991
git-svn-id: https://develop.svn.wordpress.org/trunk@14448 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 19:31:24 +00:00
Ron Rennick 7874be066e add warning on slug conflict with trash, props williamsba1, see #11863
git-svn-id: https://develop.svn.wordpress.org/trunk@14446 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 18:18:35 +00:00
Ryan Boren d783952469 Strip trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@14404 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 20:26:11 +00:00
Andrew Nacin 2fa9643cf2 Handle page hierarchy when showing the sample permalink. props duck_, fixes #12327.
git-svn-id: https://develop.svn.wordpress.org/trunk@14399 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 20:10:26 +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
Dion Hulse e9ca3c961f Correct "Last Edited by" username, Updates the last edited username upon save rather than upon a edit lock being created. Props rooodini & deepak.seth. Fixes #12736
git-svn-id: https://develop.svn.wordpress.org/trunk@14216 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-24 04:24:38 +00:00
Andrew Nacin bf00891a05 Use is_post_type_hierarchical and is_taxonomy_hierarchical when we're fetching a post/tax object only to check the hierarchical flag. fixes #12950.
git-svn-id: https://develop.svn.wordpress.org/trunk@14155 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 15:54:45 +00:00
Dion Hulse 5383a45de3 Use correct custom post_type token in get_sample_permalink()
git-svn-id: https://develop.svn.wordpress.org/trunk@14147 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 09:18:20 +00:00
Dion Hulse b0293c96f9 Update _wp_translate_postdata() capability checks to use Post Type API capability fields. Props duck_. Fixes #12987
git-svn-id: https://develop.svn.wordpress.org/trunk@14130 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 04:26:39 +00:00
Dion Hulse fb623ae0c6 Display the correct Slug in the permalink preview. Props duck_. Fixes #12870
git-svn-id: https://develop.svn.wordpress.org/trunk@14124 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 01:46:28 +00:00
Andrew Nacin 56c7b309e6 More tweaks for thumbnail support when no editor support for custom post types. see #12792, props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@14118 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-16 21:45:16 +00:00
Mark Jaquith 7c6b7b0a91 Make thumbnail work for custom post types even if the editor is not being displayed. props scribu. fixes #12792
git-svn-id: https://develop.svn.wordpress.org/trunk@14015 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-06 11:20:47 +00:00
Dion Hulse 842e844bc5 Change UI labels from "Post Thumbnails" to "Featured Image". See #12554
git-svn-id: https://develop.svn.wordpress.org/trunk@13940 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 06:12:49 +00:00
Andrew Nacin 8d38a2f78e Fix typos in [13729]. edit_type_cap is a primitive cap, not meta. @todo: audit ptype cap calls.
git-svn-id: https://develop.svn.wordpress.org/trunk@13890 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-30 13:16:28 +00:00
Dion Hulse b9682621d0 Fix the Permalink editor for custom post_types. Fixes #12742
git-svn-id: https://develop.svn.wordpress.org/trunk@13865 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 05:23:49 +00:00
Andrew Nacin ddc506f01c Remove unnecessary ternary operators such as (expr) ? true : false.
git-svn-id: https://develop.svn.wordpress.org/trunk@13769 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-19 21:15:00 +00:00
Ryan Boren e61755c853 Trim trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@13733 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 16:27:25 +00:00
Dion Hulse 812419455c post_type edit_cap and edit_type_cap awareness for wp-admin/includes/post.php
git-svn-id: https://develop.svn.wordpress.org/trunk@13729 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 12:35:48 +00:00
Ryan Boren 8ef5d73550 Custom taxonomy support for inline edit. Props prettyboymp. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@13535 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-01 15:48:01 +00:00
Dion Hulse df84c657f9 Fix slashing in Custom fields values. Allow for the meta_key to be updated without changing meta_value. Use wpdb::insert in add_meta(). Fixes #12418
git-svn-id: https://develop.svn.wordpress.org/trunk@13489 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-28 07:12:05 +00:00
Andrew Nacin bd51cf8b51 add_editor_style() third pass. better performance and better child theme support. see #11512
git-svn-id: https://develop.svn.wordpress.org/trunk@13453 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-27 07:36:35 +00:00
Dion Hulse 468d0d7cff Variable Cleanup, Unused variables, Typo'd variables, unused code blocks. Fixes #12299
git-svn-id: https://develop.svn.wordpress.org/trunk@13242 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-20 02:01:46 +00:00
Ryan Boren 2f7ef8196b Pass the default post to default_content, default_title, and default_excerpt filters. Allows filtering by post_type and other attributes. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@13051 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-10 22:20:36 +00:00
Ryan Boren 86d7ef0b69 Trim trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@13025 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-08 18:02:23 +00:00
Mark Jaquith 2d54780d5e Create post_status=auto-draft when creating a new post item. status changes to draft on first auto-save. now we always have a real post ID to work with. see #11889. fixes #11145. fixes #11990
git-svn-id: https://develop.svn.wordpress.org/trunk@12987 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-06 10:07:57 +00:00
Ryan Boren 7ea506e02a Integrate remove_tinymce_media_button() into wp_tiny_mce(). see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12954 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-04 20:00:18 +00:00
Ryan Boren eeaa9c307e Add lrm to fix bidi test display in RTL languages. Props ramiy. fixes #11919
git-svn-id: https://develop.svn.wordpress.org/trunk@12944 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-04 16:45:55 +00:00
Ryan Boren 783902b5d2 Fix notices when publishing with QuickPress. Props nacin, hakre. fixes #11504
git-svn-id: https://develop.svn.wordpress.org/trunk@12873 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-27 14:34:11 +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
Ryan Boren 8ef8b7bad5 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@12733 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-15 22:11:12 +00:00
Ryan Boren b74bea8a2c Merge edit-pages.php into edit.php. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@12728 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-15 16:58:36 +00:00
Ryan Boren 105573a2f9 register_post_type(). see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@12719 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-13 18:49:56 +00:00
Ryan Boren 2a68d3919d Allow per_page settings for custom post type edit screens. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@12707 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-12 15:41:10 +00:00
Ryan Boren 0e4bc929a1 Make wp_edit_posts_query() more post_type aware. Use array calling style. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@12706 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-12 15:23:10 +00:00
Ryan Boren 4e3864bd28 Merge page-new.php into post-new.php. Start abstracting column headers and prefs. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@12702 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-12 00:14:27 +00:00
Ryan Boren dfe2e39c2c Deprecate argument. Never fallback to options table for user option requests. Props nacin. fixes #11615
git-svn-id: https://develop.svn.wordpress.org/trunk@12616 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 00:01:52 +00:00
Ryan Boren 9ef2cb198f More custom post type support. Props scribu. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@12597 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-04 16:58:43 +00:00
Ryan Boren 6de4fcc190 Remove unneeded quotes around vars. Props johnbillion. fixes #10245
git-svn-id: https://develop.svn.wordpress.org/trunk@12513 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 15:16:53 +00:00
Peter Westwood c7d6c83b94 Updated phpDoc for wp-admin/includes/post.php . Fixes #11198 based on a patch from Simek.
git-svn-id: https://develop.svn.wordpress.org/trunk@12483 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-22 12:25:15 +00:00
Ryan Boren 16b48edadf Don't fallback to the options database when retrieving *_per_page user options. Props nacin. fixes #11385
git-svn-id: https://develop.svn.wordpress.org/trunk@12375 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-11 23:14:43 +00:00
Ryan Boren b0c20621cd Call wp_cache_delete after issuing update actions. Props Denis-de-Bernardy. fixes #11397
git-svn-id: https://develop.svn.wordpress.org/trunk@12373 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-11 16:44:41 +00:00
Mark Jaquith ab97039f96 Post/Page Image was too generic a name. Post/Page Thumbnail is more clear, even if you can create very large thumbnail images if you so choose.
git-svn-id: https://develop.svn.wordpress.org/trunk@12351 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 06:14:36 +00:00
Mark Jaquith 5d021234c2 More standardization around Post/Page Image instead of Post/Page Thumbnail
git-svn-id: https://develop.svn.wordpress.org/trunk@12343 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-08 21:24:32 +00:00
Mark Jaquith 54410e03f6 Introducing set_post_image_size(w, h, crop) so themes can register their special size/crop for canonical post images. WP will create this size/crop upon upload, so your canonical post images fit your space exactly!
git-svn-id: https://develop.svn.wordpress.org/trunk@12342 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-08 21:08:19 +00:00
Ryan Boren bd86766a72 Use stripslashes_deep to strip meta values. Props JonathanRogers, Sewar. fixes #10656
git-svn-id: https://develop.svn.wordpress.org/trunk@12336 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-08 00:48:39 +00:00
Mark Jaquith d8e1e13b43 Reverting [12324] and [12322] after some discussion.
git-svn-id: https://develop.svn.wordpress.org/trunk@12328 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-07 04:31:44 +00:00
Mark Jaquith b54aedfe6f Make codex link open in a new window
git-svn-id: https://develop.svn.wordpress.org/trunk@12324 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-06 17:30:56 +00:00
Mark Jaquith 236b329a88 Display Post/Page Thumbnail meta box even if theme does not support it -- just display an info message. props janeforshort
git-svn-id: https://develop.svn.wordpress.org/trunk@12322 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-06 17:02:51 +00:00
Ryan Boren 6115dc47b2 Save parent temp ID for unattached attachments in postmeta. Props scribu. fixes #9471
git-svn-id: https://develop.svn.wordpress.org/trunk@12298 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-30 21:41:52 +00:00
Andrew Ozz 387ac8c9b5 Fix notices and phpdoc, props hakre, fixes #10758
git-svn-id: https://develop.svn.wordpress.org/trunk@12284 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-26 11:29:54 +00:00
Ryan Boren 4fd7b2fd8b Fix warnings
git-svn-id: https://develop.svn.wordpress.org/trunk@12246 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-20 19:46:10 +00:00
Ryan Boren a4912dccf2 Use preg_replace_callback to eliminate eval. Props BenBE1987. fixes #10896
git-svn-id: https://develop.svn.wordpress.org/trunk@12198 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-17 19:25:01 +00:00
Mark Jaquith a556c8ce89 Consolidate post_mime_type code. props scribu. fixes #10992
git-svn-id: https://develop.svn.wordpress.org/trunk@12110 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-26 17:56:28 +00:00
Peter Westwood 345db2c5f2 Update version info in phpDoc for _admin_notice_post_locked() see #10729.
git-svn-id: https://develop.svn.wordpress.org/trunk@12069 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-20 17:02:22 +00:00
Andrew Ozz da41fd8836 Merge set-post-thumbnail-handler.js with post.js, move Post Thumbnail meta-box to /includes/meta-boxes.php, see #10928
git-svn-id: https://develop.svn.wordpress.org/trunk@12060 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-19 20:23:35 +00:00
Andrew Ozz aaae110d8f Remove remains from the old bookmarklet code
git-svn-id: https://develop.svn.wordpress.org/trunk@12029 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-14 05:53:49 +00:00
Andrew Ozz 9d5f38a1df Merge post.js with page.js and slug.js, optimize categories and tags JS, standardize postboxes IDs and JS.
git-svn-id: https://develop.svn.wordpress.org/trunk@12022 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-13 10:02:42 +00:00
Andrew Ozz 048bc0b258 Press This: editor fixes and CSS tweaks for IE6/7
git-svn-id: https://develop.svn.wordpress.org/trunk@11982 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-29 09:46:13 +00:00
Andrew Ozz c4571d4a60 TinyMCE 3.2.7
git-svn-id: https://develop.svn.wordpress.org/trunk@11974 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-26 08:33:16 +00:00
Ryan Boren bb43e36418 Remove trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@11971 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-24 17:19:13 +00:00
Ryan Boren 578e956287 Actions for postmeta updates. Props Demitrious Kelly. see #10750
git-svn-id: https://develop.svn.wordpress.org/trunk@11968 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-24 17:10:28 +00:00
Ryan Boren 43c201d458 Remove trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@11930 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-14 14:03:32 +00:00
Andrew Ozz e4045df0ab Explain that the permalink is temporary for autosave generated permalinks, fixes #7733
git-svn-id: https://develop.svn.wordpress.org/trunk@11928 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-14 02:06:33 +00:00
Peter Westwood 311256c02a Use the old strings which are more translator friendly and add a generic default string to aid re-use by plugins adding post_types. See #10729.
git-svn-id: https://develop.svn.wordpress.org/trunk@11925 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-13 21:18:55 +00:00
Andrew Ozz 6315c12a84 Fix pagination in Media Library after moving items to trash
git-svn-id: https://develop.svn.wordpress.org/trunk@11924 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-13 17:58:55 +00:00
Peter Westwood 3fbccfb9fc Switch the post|page being editing message from a create_function call to a normal function and reduce the duplicated code. See #10729.
git-svn-id: https://develop.svn.wordpress.org/trunk@11923 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-13 08:52:39 +00:00
Peter Westwood 80dbface9c phpDoc for wp_{check|set}_post_lock functions.
git-svn-id: https://develop.svn.wordpress.org/trunk@11922 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-13 08:34:24 +00:00
Andrew Ozz 1195abd579 Don't show "Change Permalinks" button when editing the page set as "Front page", props simonwheatley, fixes #10760
git-svn-id: https://develop.svn.wordpress.org/trunk@11908 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-10 01:21:03 +00:00
Andrew Ozz 00de237f0c Fix notice in wp-admin/includes/post.php, props harrym, fixes #10678 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@11871 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-24 19:39:08 +00:00
Andrew Ozz 34deab141b Use the current user as author for autosave, fixes #10004
git-svn-id: https://develop.svn.wordpress.org/trunk@11840 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-19 02:30:42 +00:00
Andrew Ozz aa630abdab Fix bulk edit, some cleanup and message fixes for moving in/out of the trash, see #4529
git-svn-id: https://develop.svn.wordpress.org/trunk@11807 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-12 10:57:15 +00:00
Ryan Boren d895dcb002 get_sample_permalink_html filter
git-svn-id: https://develop.svn.wordpress.org/trunk@11796 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-10 20:49:09 +00:00
Andrew Ozz d9f8c67f2f Trash status updates for posts, pages, comments and attachments, props caesarsgrunt, see #4529
git-svn-id: https://develop.svn.wordpress.org/trunk@11749 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-30 13:39:34 +00:00
Andrew Ozz 4876c3ce71 Don't show Change Permalinks button when user doesn't have permission, props johnbillion, fixes #10072
git-svn-id: https://develop.svn.wordpress.org/trunk@11534 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-08 21:42:35 +00:00
Andrew Ozz dcf5ea2881 Move buttons from row 4 to row 3 in the editor when row 3 is empty, fixes #9840
git-svn-id: https://develop.svn.wordpress.org/trunk@11515 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-03 23:00:57 +00:00
Ryan Boren e12c642c54 Trim tailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@11450 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-24 23:47:49 +00:00
Andrew Ozz a8fa1281b7 TinyMCE 3.2.4, remove the autosave plugin and add the same functionality in autosave.js, fix double warning messages when leaving the page.
git-svn-id: https://develop.svn.wordpress.org/trunk@11437 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-22 22:08:17 +00:00
Andrew Ozz 662765e570 Clean the cache-manifests, make $manifest_version and $tinymce_version global vars accessible from the manifest
git-svn-id: https://develop.svn.wordpress.org/trunk@11388 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-18 20:29:26 +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 f0336cfa7d deprecate wp_specialchars() in favor of esc_html(). Encode quotes for esc_html() as in esc_attr(), to improve plugin security.
git-svn-id: https://develop.svn.wordpress.org/trunk@11380 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-18 15:11:07 +00:00
Andrew Ozz 405eececce HTML validity fixes, props hakre, fixes #9432
git-svn-id: https://develop.svn.wordpress.org/trunk@11375 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-17 20:19:51 +00:00
Ryan Boren fc80cdec6b Remove vestiges of what_to_show. Props filosofo. fixes #9815
git-svn-id: https://develop.svn.wordpress.org/trunk@11318 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-13 22:28:56 +00:00
Ryan Boren 17de82bb6f Ampersand validation fix. Props hakre. fixes #9402
git-svn-id: https://develop.svn.wordpress.org/trunk@11296 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-12 05:58:57 +00:00
Andrew Ozz 0289460644 Make tags accessible without js on the edit screen
git-svn-id: https://develop.svn.wordpress.org/trunk@11172 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-04 12:13:44 +00:00
Andrew Ozz 687a400776 Hide text while editor is loading, show html editor on error
git-svn-id: https://develop.svn.wordpress.org/trunk@11171 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-04 10:34:50 +00:00
Ryan Boren 61f7821b34 Don't double escape autosaves. fixes #9433
git-svn-id: https://develop.svn.wordpress.org/trunk@11117 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-29 02:47:41 +00:00
Andrew Ozz 659a3fb191 TinyMCE 3.2.3 final, includes new Paste plugin with auto-cleanup (better paste from MS Word)
git-svn-id: https://develop.svn.wordpress.org/trunk@11078 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-24 15:26:00 +00:00
Ryan Boren 5e6528cd14 Add wp_unique_post_slug(). Apply it when getting sample permalinks. Props nbachiyski. fixes #6595
git-svn-id: https://develop.svn.wordpress.org/trunk@11071 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-23 20:21:18 +00:00
Andrew Ozz 84207a7e84 Show proper error when adding a custom field without a value, props scohoust, fixes #7541
git-svn-id: https://develop.svn.wordpress.org/trunk@10957 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-16 21:55:35 +00:00
Ryan Boren ea904a0ba0 Add per page option to Screen Options for comments, posts, pages, and media.
git-svn-id: https://develop.svn.wordpress.org/trunk@10847 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-27 22:47:47 +00:00
Ryan Boren 8d00b5d37d Trim trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@10810 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-18 02:43:45 +00:00
Andrew Ozz d3d2d3ba28 TinyMCE 3.2.2
git-svn-id: https://develop.svn.wordpress.org/trunk@10791 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-15 16:55:49 +00:00
Ryan Boren 5d8651d6f3 gettext comments. Props nbachiyski. see #9112
git-svn-id: https://develop.svn.wordpress.org/trunk@10774 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-13 03:53:39 +00:00
Ryan Boren 1952e923f8 gettext contexts. Props nbachiyski. see #9112
git-svn-id: https://develop.svn.wordpress.org/trunk@10767 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-10 23:02:29 +00:00
Andrew Ozz f4c5df18b4 Move hidden span so it's not copied together with the permalink
git-svn-id: https://develop.svn.wordpress.org/trunk@10754 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-10 02:14:42 +00:00
Peter Westwood 87a4d2f1cb Allow a plugin to control how many posts are displayed on edit pages. Fixes #9307 props aaroncampbell
git-svn-id: https://develop.svn.wordpress.org/trunk@10749 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-09 22:14:09 +00:00
Ryan Boren 1fb1534e8f Use wpdb::insert() and update(). Props DD32. see #6836
git-svn-id: https://develop.svn.wordpress.org/trunk@10730 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-06 04:27:51 +00:00
Ryan Boren c896a6ee7b Initialize post_date_gmt for default post to edit.
git-svn-id: https://develop.svn.wordpress.org/trunk@10723 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-05 23:06:04 +00:00
Ryan Boren a5740e48a1 post_exists() and comment_exists() fixes. Fixes post duplication during import. Props tott. fixes #8460
git-svn-id: https://develop.svn.wordpress.org/trunk@10722 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-05 22:16:29 +00:00
Ryan Boren 854a8d6341 Use _n(). Props nbachiyski. fixes #9111
git-svn-id: https://develop.svn.wordpress.org/trunk@10606 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-20 19:35:16 +00:00
Andrew Ozz 8f2083b8da Autosave post/page when pressing Control/Command+S in TinyMCE, props srobbin, fixes #9060
git-svn-id: https://develop.svn.wordpress.org/trunk@10528 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-08 18:37:47 +00:00
Andrew Ozz c676499d51 Fix permalink editor for pages, hide "View Post" button while editing permalink, fixes #9040
git-svn-id: https://develop.svn.wordpress.org/trunk@10525 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-08 13:38:02 +00:00
Andrew Ozz 29c8718141 Show the permalink even when not "pretty" and add "View Post" button if the post is published, see #8976
git-svn-id: https://develop.svn.wordpress.org/trunk@10458 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-29 12:11:52 +00:00
Andrew Ozz eef5b71258 Ensure translations are loaded properly in TinyMCE when using the compressed version
git-svn-id: https://develop.svn.wordpress.org/trunk@10384 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-20 20:31:31 +00:00
Andrew Ozz 38e3fc9d5a Concatenated and compressed versions of the default TinyMCE scripts
git-svn-id: https://develop.svn.wordpress.org/trunk@10369 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-16 12:58:38 +00:00
Andrew Ozz ee141fe280 TinyMCE: don't load unneeded CSS (custom styles have moved to /themes/advanced/skins/wp_theme)
git-svn-id: https://develop.svn.wordpress.org/trunk@10338 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-09 13:05:16 +00:00
Andrew Ozz 077540b9af Faster hide-if-no-js, if-js-closed, etc. needed when loading scripts in the footer.
git-svn-id: https://develop.svn.wordpress.org/trunk@10258 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-27 12:18:38 +00:00
Andrew Ozz f4980c0b00 Fix debug notices for bulk edit, fixes #8707 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10256 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-26 22:35:08 +00:00
Ryan Boren 97a6c04681 Don't cache filtered post objects. Set filter when getting sample permalink. Props brianwhite. fixes #8526 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10213 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-16 23:50:39 +00:00
Andrew Ozz 5be592a965 Silence warnings when looking for translations for external plugins for TinyMCE, for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10202 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-14 01:12:00 +00:00