Commit Graph

140 Commits

Author SHA1 Message Date
Sergey Biryukov d6139ccade Remove unused function. fixes #23671.
git-svn-id: https://develop.svn.wordpress.org/trunk@23587 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 00:06:09 +00:00
Andrew Nacin bedf69f229 Imporove a selector targeting taxonomy meta boxes. props SergeyBiryukov. see #22975.
Uses correct patch, reverting [23517].



git-svn-id: https://develop.svn.wordpress.org/trunk@23536 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 20:50:32 +00:00
Andrew Nacin 854f7138f9 Imporove a selector targeting taxonomy meta boxes. props SergeyBiryukoc. see #22975.
git-svn-id: https://develop.svn.wordpress.org/trunk@23517 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 18:03:18 +00:00
Andrew Nacin b17b5a64e3 Stop using jQuery.live(). props ocean90. see #22975.
git-svn-id: https://develop.svn.wordpress.org/trunk@23444 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 17:46:12 +00:00
Sergey Biryukov 56f44ff466 Prevent an unintended visibility change from "Password protected" to "Public" when updating the post.
props thomasvanderbeek. fixes #23065.

git-svn-id: https://develop.svn.wordpress.org/trunk@23338 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-23 03:30:04 +00:00
Andrew Ozz 8cf528d255 Main editor: when setting or saving the height, look only at elements that have style="height:..." set. Reset a previously saved erroneous "ed_size" value (over 5000px) to the default height of 360px. Fixes #23042 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@23302 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-16 19:10:38 +00:00
Andrew Ozz 9de9019d41 Taxonomy postbox: fix toggling with "Choose from the most used tags" when several postboxes are shown, props SergeyBiryukov, fixes #23112 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@23278 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 20:54:11 +00:00
Andrew Ozz 7bc623ca09 Editor: add sanity limit for editor height of 5000px, save only when resizing the Visual or the Text editor, fixes #22708
git-svn-id: https://develop.svn.wordpress.org/trunk@23016 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 06:01:47 +00:00
Andrew Nacin 34985fbc7a Revert page on front changes. Reverts [22127] [22129] [22135] [22136]. see #16379.
git-svn-id: https://develop.svn.wordpress.org/trunk@22653 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 01:28:32 +00:00
Andrew Ozz c4622fdbf7 Editor: disable the textarea resizing handle on touch devices (cannot be used there), don't save TinyMCE's height in iOS as the user cannot set/change it there (it expands the iframe to full height), see #21718
git-svn-id: https://develop.svn.wordpress.org/trunk@22606 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 00:34:07 +00:00
Peter Westwood 2bd843f1e7 Post UI: Provide visual feedback to the user if they try to set an invalid date for a post. Fixes #17180 props jkudish.
git-svn-id: https://develop.svn.wordpress.org/trunk@22442 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 21:31:08 +00:00
Andrew Ozz 1380819bfe Improve visible focus in the admin, props lessbloat, fixes #21324
git-svn-id: https://develop.svn.wordpress.org/trunk@22268 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-22 19:51:51 +00:00
Andrew Ozz 2f8193421c Tab indexes: when tabbing out of the editors make sure the next focused element is the expected/default action, fix focusing the next field when picking a date for future post, props lessbloat, fixes #21340
git-svn-id: https://develop.svn.wordpress.org/trunk@22250 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-16 21:38:35 +00:00
Ryan Boren 3368f400e6 Better UI for doing "Page on Front".
Props SergeyBiryukov, lessbloat, nacin.

see #16379


git-svn-id: https://develop.svn.wordpress.org/trunk@22127 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-06 15:19:29 +00:00
Andrew Nacin e82d5080b8 New HiDPI spinner. Uses clean <span class="spinner"></span> markup.
Be on the lookout for weirdness.
props lessbloat. see #21456.



git-svn-id: https://develop.svn.wordpress.org/trunk@22019 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 19:57:44 +00:00
Andrew Ozz 6238b3140f Make sure TinyMCE is not disabled before adding the size saving functions, see #21718
git-svn-id: https://develop.svn.wordpress.org/trunk@22017 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 19:35:36 +00:00
Andrew Ozz 5ad7fe8cd6 Main editor: maintain the height when switching Visual to Text and back, save the height when resizing as user state, output the height in the textarea tag when loading, (thanks @nacin for the help), fixes #21718
git-svn-id: https://develop.svn.wordpress.org/trunk@22007 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 03:30:21 +00:00
Andrew Nacin a7175db279 Hitting return when adding a new category from the category meta box should add the new category, not submit the post form. props wojtek.szkutnik, fixes #14312.
git-svn-id: https://develop.svn.wordpress.org/trunk@21970 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 16:25:15 +00:00
Andrew Nacin c33b88351b Revert JS from [21921] as it breaks saving when no post date fields are present. see #17180.
git-svn-id: https://develop.svn.wordpress.org/trunk@21947 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 22:27:51 +00:00
Andrew Nacin 1c58ef9f33 Updates and fixes to the new button styles. By default, buttons are now the same size as they were in 3.4. Then there is a smaller button (designed for minor elements) and a larger button (designed for things like Publish and Save Changes). Better focus styles. props lessbloat. see #21598.
git-svn-id: https://develop.svn.wordpress.org/trunk@21944 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 19:34:23 +00:00
Peter Westwood 59dd4b7d2b Posting: Make it much harder to create posts with invalid dates by enforcing the post date tests in the UI and the backend code.
Previously you could quite easily send a new post into the back of beyond by specifying an invalid date like the 30th Feb and this was very confusing.
Sometimes it would seem to work and sometimes the post would end up very far in the past - depending on the mysql version and other factors.

Fixes #17180 props jkudish.


git-svn-id: https://develop.svn.wordpress.org/trunk@21921 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 21:43:35 +00:00
Daryl Koopersmith 7d6e53317c New button styles.
Using the new buttons:

* Button classes are now stackable.
* All buttons should use a base class of "button".
* Buttons default to the gray style (formerly "button-secondary"). Buttons can add a style by adding additional classes. To make a primary button, add the "button-primary" class.
* Buttons can be rendered in various sizes. In addition to the default size, you can add "button-large", "button-small", or "button-tiny".

For backwards compatibility reasons, "button-primary" and "button-secondary" both work as standalone classes.

get_submit_button() has been adjusted to handle shorthand button classes (i.e. button classes can be passed without the "button-" prefix).

props lessbloat, helenyhou, trepmal, nacin. see #21598.



git-svn-id: https://develop.svn.wordpress.org/trunk@21789 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-08 04:58:34 +00:00
Andrew Nacin 3fb49b9ffd Modify a few jQuery selectors to prevent overflows and lagging. Todo, rewrite wp-lists and improve all of these selectors.
props SergeyBiryukov. fixes #21106 for trunk. see #21152.



git-svn-id: https://develop.svn.wordpress.org/trunk@21737 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 20:27:14 +00:00
Andrew Nacin 0dbb4dfb27 Update some code comments from .dev.js to .js. props georgestephanis. see #21633.
git-svn-id: https://develop.svn.wordpress.org/trunk@21659 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 02:15:57 +00:00
Andrew Nacin db981a3b27 Switch to .min for compressed JS and CSS files.
* This moves our "development" versions from .dev.js to .js (same for css).
 * The compressed version then moves from .js to .min.js (same for css).

By switching to the standard .min convention, it sets expectations for developers,
and works nicely with existing tools such as ack.

fixes #21633.



git-svn-id: https://develop.svn.wordpress.org/trunk@21592 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-23 00:04:18 +00:00
bumpbot 54c5743c66 Compress scripts/styles: 3.5-alpha-21587.
git-svn-id: https://develop.svn.wordpress.org/trunk@21587 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 18:58:32 +00:00
bumpbot baa8fa8a0f Compress scripts/styles: 3.4-beta3-20651.
git-svn-id: https://develop.svn.wordpress.org/trunk@20651 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 20:58:24 +00:00
bumpbot 4147d09fd0 Compress scripts/styles: 3.4-alpha-20165.
git-svn-id: https://develop.svn.wordpress.org/trunk@20165 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-09 01:45:40 +00:00
bumpbot 15c9daa5b9 Compress scripts/styles: 3.4-alpha-19854.
git-svn-id: https://develop.svn.wordpress.org/trunk@19854 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-07 18:30:51 +00:00
Andrew Nacin be103c148f '3.4-alpha-19618'
git-svn-id: https://develop.svn.wordpress.org/trunk@19618 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-21 04:22:21 +00:00
Dion Hulse d70ddc49f9 Switch to sanitize_title_for_query() for Query sanitization (allows for pre-3.3 page slugs to be viewable), Don't update page slugs to new slug-types when the slug is not being changed, Don't issue a XHR if the page slug hasn't changed. Group effort props xknown, markjaquith, nacin. See #19292
git-svn-id: https://develop.svn.wordpress.org/trunk@19444 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-24 00:20:21 +00:00
Andrew Ozz 3a20d6aa17 Replace .attr() with .prop() as per jQuery 1.6.1. Also fixes couple places where the JS wasn't working because attr('some', '') does not remove the HTML property now, see #17311
git-svn-id: https://develop.svn.wordpress.org/trunk@18027 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-25 01:04:12 +00:00
Andrew Ozz 89b108095f Fix autosave and word count for DFW HTML editor, always update word count on autosave, see #17136
git-svn-id: https://develop.svn.wordpress.org/trunk@17936 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-16 06:17:44 +00:00
Daryl Koopersmith ad0b9cf840 Restore lines in publish box, speed up misc-action edit animations. see #17324.
git-svn-id: https://develop.svn.wordpress.org/trunk@17893 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-12 05:06:47 +00:00
Andrew Ozz c721f308ce Add quotes to [value="some"] selectors, see #16426
git-svn-id: https://develop.svn.wordpress.org/trunk@17777 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-30 02:15:08 +00:00
Andrew Ozz 07a62334de Distraction Free Writing mode, see #17136
git-svn-id: https://develop.svn.wordpress.org/trunk@17695 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-25 01:01:34 +00:00
Ryan Boren 777b15311d Preserve tag escaping. Props koopersmith, Nils Jueneman. For trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17398 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-05 18:31:05 +00:00
Ryan Boren 9f9f401c42 Fix comment manipulation on edit post screen. Props garyc40. fixes #15876
git-svn-id: https://develop.svn.wordpress.org/trunk@17113 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-22 19:03:43 +00:00
Mark Jaquith 86ab422fcc Move Post Format UI out of Publish meta box and into its own box. see #15638
git-svn-id: https://develop.svn.wordpress.org/trunk@16678 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-02 02:42:38 +00:00
scribu 907353550e Get rid of in favor of . Fixes #15607. See #15580
git-svn-id: https://develop.svn.wordpress.org/trunk@16617 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-29 20:15:04 +00:00
Andrew Nacin e8ea01b4dc More updates to post.js. see [16248].
git-svn-id: https://develop.svn.wordpress.org/trunk@16408 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-16 22:13:17 +00:00
Mark Jaquith 647422ad33 Switch to radio boxes for Post Format picking. Saves a click. Maybe we should do this with Post Status as well. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@16314 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-12 04:05:33 +00:00
Andrew Nacin 7be12299b7 Merge two strings in JS, which were merged elsewhere some time ago.
git-svn-id: https://develop.svn.wordpress.org/trunk@16248 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-09 00:52:02 +00:00
Mark Jaquith 018429a9f6 Do our return falses. Props duck_. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@16187 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-04 17:58:04 +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
Nikolay Bachiyski f4084990ea Focus on category field when adding a new category in the write panel
git-svn-id: https://develop.svn.wordpress.org/trunk@14940 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 09:17:40 +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 afc24755fc autosave_update_post_ID() no longer needed. Fix button enable lag. Props duck_. fixes #13400
git-svn-id: https://develop.svn.wordpress.org/trunk@14663 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 14:03:46 +00:00
Dion Hulse 7f9bee2845 Fix alignment/location of "Add" on non-hierarchical taxonomy addition boxes. Props ocean90. Fixes #12153
git-svn-id: https://develop.svn.wordpress.org/trunk@14390 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 19:29:17 +00:00
Dion Hulse c1fe068ec6 Handle ", " and "," in non-hierarchical term suggestion. Props ocean90. Fixes #12152
git-svn-id: https://develop.svn.wordpress.org/trunk@14387 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 19:23:44 +00:00