Commit Graph

322 Commits

Author SHA1 Message Date
Andrew Ozz f615043fea Improve _fix_attachment_links(), replace attachment URLs with the real permalink only for published posts, re-save only when there are changes, see #13429
git-svn-id: https://develop.svn.wordpress.org/trunk@20308 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 16:02:12 +00:00
Ryan Boren 5648306064 Pass post id to get_upload_iframe_src() instead of relying on a global. Props tott. fixes #20003
git-svn-id: https://develop.svn.wordpress.org/trunk@19999 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-27 19:23:03 +00:00
Ryan Boren 99c65753a4 Add post ID argument to _wp_post_thumbnail_html() rather than relying on a global. Post the ID from wp_ajax_set_post_thumbnail(). Props batmoo. fixes #20003
git-svn-id: https://develop.svn.wordpress.org/trunk@19902 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-10 17:41:37 +00:00
Andrew Nacin 092808ead8 Allow localized commas to be used as tag separators. see #7897.
git-svn-id: https://develop.svn.wordpress.org/trunk@19853 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-07 18:06:12 +00:00
Andrew Nacin ba219cf998 Prefix table name against the post_parent field in _edit_attachments_query_helper() to avoid ambiguous queries. props benbalter. fixes #19779.
git-svn-id: https://develop.svn.wordpress.org/trunk@19720 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-09 15:55:30 +00:00
Ryan Boren a8d77cbae9 User lowercase true, false, null instead of uppercase. Props c3mdigital, mfields. fixes #16302
git-svn-id: https://develop.svn.wordpress.org/trunk@19687 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-05 20:50:54 +00:00
Ryan Boren 54067a5f20 Remove extraneous spaces. Props kenan3008, dimadin. fixes #19501 #19433
git-svn-id: https://develop.svn.wordpress.org/trunk@19596 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-14 17:36:38 +00:00
Ryan Boren 676ba7043e Use one space, not two, after trailing punctuation. fixes #19537
git-svn-id: https://develop.svn.wordpress.org/trunk@19593 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-13 23:45:31 +00:00
Andrew Nacin 83b8af1bc6 Revert [19372] for 3.3. see #13473.
git-svn-id: https://develop.svn.wordpress.org/trunk@19448 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-24 16:06:17 +00:00
Peter Westwood 2304ad1b0e Respect the default comment/ping status for new posts even when someone has hidden the meta box which lets you alter them on a per-post basis.
Fixes #13473 props solarissmoke. 


git-svn-id: https://develop.svn.wordpress.org/trunk@19372 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-21 13:45:10 +00:00
Ryan Boren fd10e500e4 Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@19054 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-24 19:13:23 +00:00
Andrew Nacin c4d4799424 Initialize the post object in get_default_post_to_edit(). props tech163. fixes #18049.
git-svn-id: https://develop.svn.wordpress.org/trunk@18847 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-30 21:35:05 +00:00
Andrew Ozz b969d2ea80 Clean up remnants from having negative Post_IDs, props markjaquith, fixes #18235
git-svn-id: https://develop.svn.wordpress.org/trunk@18823 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 21:47:52 +00:00
Andrew Nacin 35edc4264d Release a user's post lock when the user leaves a post. see #18515.
git-svn-id: https://develop.svn.wordpress.org/trunk@18796 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-27 20:52:07 +00:00
Andrew Nacin 4b03f4253b wp_set_post_lock() only takes one argument. see #18515.
git-svn-id: https://develop.svn.wordpress.org/trunk@18790 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-27 06:11:30 +00:00
Jon Cave 83f0e2c349 Add post formats to quick edit and bulk edit. Fixes #18083.
git-svn-id: https://develop.svn.wordpress.org/trunk@18722 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-19 17:02:58 +00:00
Jon Cave 6db13f488f Make use of specific post format support in current_theme_supports(). See #18691.
git-svn-id: https://develop.svn.wordpress.org/trunk@18721 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-19 16:31:33 +00:00
Jon Cave 60d321b14b Fix typos in documentation (wp-admin/). See #18560.
git-svn-id: https://develop.svn.wordpress.org/trunk@18632 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-03 14:18:10 +00:00
Ryan Boren dbb0b7c8d6 Turn delete_meta() , get_post_meta_by_id(), update_meta(), delete_post_meta_by_key() into wrappers around the metadata API. Add back compat *_postmeta actions to metadata API. Props jgadbois. see #18196
git-svn-id: https://develop.svn.wordpress.org/trunk@18500 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-03 16:48:37 +00:00
Andrew Ozz 461ceba60d Editor API enhancement, first run (still needs some work), see #17144
git-svn-id: https://develop.svn.wordpress.org/trunk@18498 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-03 10:19:00 +00:00
Ryan Boren b4b82c9725 Check caps for both old and new meta keys when changing the key for a mid. Properly handle slashes when checking meta caps. Props xknown. see #17850
git-svn-id: https://develop.svn.wordpress.org/trunk@18449 602fd350-edb4-49c9-b593-d223f7449a82
2011-07-21 19:32:12 +00:00
Ryan Boren 6b5d8397b0 Introduce register_meta(), get_metadata_by_mid(), and *_post_meta capabilities. fixes #17850
git-svn-id: https://develop.svn.wordpress.org/trunk@18445 602fd350-edb4-49c9-b593-d223f7449a82
2011-07-20 22:04:35 +00:00
Ryan Boren 9e7890c3f6 Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@18386 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-30 21:59:45 +00:00
Andrew Ozz 9977a6a559 DFW: check if the Add Image button is enabled in ms mode before using it, props nacin, fixes #17942
git-svn-id: https://develop.svn.wordpress.org/trunk@18380 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-30 19:23:09 +00:00
Ryan Boren 6022d6e39c Block editing of post_mime_type and guid in bulk_edit_posts(). More filter unsets. For trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@18369 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-28 21:47:35 +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 Ozz 1598bef0d5 Fix warning when DFW is loaded and the $post global is not set, props SidHarrell, fixes #17874
git-svn-id: https://develop.svn.wordpress.org/trunk@18331 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-23 19:41:42 +00:00
Ryan Boren 46d96c7704 Bring out the pinking shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@18254 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-10 23:01:45 +00:00
Andrew Ozz 35ba083b00 DFW: restore editor width shortcuts, restore limited overwriting of the theme styling in TinyMCE, show the toolbar on mouse move in TinyMCE, improve the help, fixes #17503, fixes #17644, fixes #17664, fixes #17596
git-svn-id: https://develop.svn.wordpress.org/trunk@18137 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-04 00:46:47 +00:00
Ryan Boren 7cb543f37f Apply editable_slug filter to parent page slugs in get_sample_permalink(). Props solarissmoke, ramiy. fixes #16999
git-svn-id: https://develop.svn.wordpress.org/trunk@18105 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-01 20:30:29 +00:00
Andrew Ozz 715e5a905b Remove reference to wp-fullscreen-content-css, see #17644
git-svn-id: https://develop.svn.wordpress.org/trunk@18104 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-01 20:08:41 +00:00
Ryan Boren d5e77eefbf Don't set fields to empty values in _wp_translate_data(). Props scribu, johnjamesjacoby. fixes #16673
git-svn-id: https://develop.svn.wordpress.org/trunk@18082 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-31 16:08:46 +00:00
Andrew Ozz b0ff53d233 Fix notice, props greuben, fixes #17613
git-svn-id: https://develop.svn.wordpress.org/trunk@18074 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-30 14:12:08 +00:00
Andrew Ozz be987907b8 Improve JS array/object detection when outputting the TinyMCE init array.
git-svn-id: https://develop.svn.wordpress.org/trunk@18071 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-29 21:18:58 +00:00
Andrew Nacin cec199aa57 Don't use array calling for post_status in wp_edit_attachments_query() to prevent any use of the deprecated query_string filter (as in, don't use it) from tanking the page. see #17556, #17559. for 3.1.
git-svn-id: https://develop.svn.wordpress.org/trunk@18053 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-26 05:41:34 +00:00
Andrew Ozz 1ed0c5b42d Stop TinyMCE from trying to maintain text formatting when adding new paragraphs in FF and WebKit, see #17549
git-svn-id: https://develop.svn.wordpress.org/trunk@18025 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-24 21:55:59 +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 f82a14802e Use correct keys
git-svn-id: https://develop.svn.wordpress.org/trunk@17996 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-22 23:21:34 +00:00
Ryan Boren 57b6c9aeda Sanitize guid on save and display. Sanitize mime type on save. Don't allow changing mime type via edit form handlers. Protect hidden meta.
git-svn-id: https://develop.svn.wordpress.org/trunk@17994 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-22 23:19:42 +00:00
Andrew Ozz 15c2f28085 More IE7 fixes, see #17324
git-svn-id: https://develop.svn.wordpress.org/trunk@17964 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-19 05:35:08 +00:00
Andrew Ozz 7262bec3c2 IE7 fixes, see #17324
git-svn-id: https://develop.svn.wordpress.org/trunk@17963 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-19 02:23:02 +00:00
Andrew Ozz 9b7b96ba51 Use the "media" admin menu icon for the add media button in DFW, move the tagline, see #17136
git-svn-id: https://develop.svn.wordpress.org/trunk@17947 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-17 17:33:22 +00:00
Andrew Ozz 8b325c5f71 Maximum i18n flexibility for word count, props nacin, see #17136
git-svn-id: https://develop.svn.wordpress.org/trunk@17940 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-17 04:25:15 +00:00
Andrew Ozz 9b3f26faa4 Improve code for DFW buttons, fix colors in some rare TinyMCE popups, see #17136
git-svn-id: https://develop.svn.wordpress.org/trunk@17880 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-12 01:53:51 +00:00
Peter Westwood f1389ef76c Switch this to be inside the else to match previous functionality more closely.
git-svn-id: https://develop.svn.wordpress.org/trunk@17860 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-11 17:05:35 +00:00
Peter Westwood 29ffaab1b2 Add a filter in postbox_classes on the classes being returned so you can add ones to your metabox easily if you want. See #17323
git-svn-id: https://develop.svn.wordpress.org/trunk@17857 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-11 16:57:00 +00:00
Andrew Ozz 0b4a1378b9 DFW: add tagline, move the Word count under the editor, see #17136
git-svn-id: https://develop.svn.wordpress.org/trunk@17856 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-11 09:18:32 +00:00
Andrew Ozz 6b810b990f DFW: add Blockquote button, enable After the Deadline button if plugin is installed, set button state, see #17136
git-svn-id: https://develop.svn.wordpress.org/trunk@17852 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-10 23:21:34 +00:00
Andrew Ozz 98d4435ba5 Add the new grey TinyMCE icons, see #15986
git-svn-id: https://develop.svn.wordpress.org/trunk@17842 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-09 03:20:50 +00:00
Andrew Ozz f9eb2a0ed4 Close >> Exit fullscreen, see #17136
git-svn-id: https://develop.svn.wordpress.org/trunk@17840 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-08 15:37:28 +00:00