Commit Graph

91 Commits

Author SHA1 Message Date
Andrew Nacin
4e36f55df7 Update Backbone from 1.0 to 1.1.
Also update Underscore to 1.6. Includes the development versions of both, which are not included in the build.

Here is Backbone's changelog:
 * Made the return values of Collection’s `set`, `add`, `remove`, and `reset` more useful. Instead of returning `this`, they now return the changed (added, removed or updated) model or list of 
models. (This means they can no longer be chained.)
 * Backbone Views no longer automatically attach options passed to the constructor as `this.options` and Backbone Models no longer attach `url` and `urlRoot` options, but you can do it yourself if you prefer. (But if you extend `wp.Backbone.View`, options will be attached for you.)
 * All `"invalid"` events now pass consistent arguments. First the model in question, then the error object, then options.
 * You are no longer permitted to change the id of your model during `parse`. Use `idAttribute` instead.
 * On the other hand, `parse` is now an excellent place to extract and vivify incoming nested JSON into associated submodels.

See [27171] (next commit) for changes made to WordPress to be compatible with Backbone 1.1.

props gcorne, georgestephanis.
see #26799.


git-svn-id: https://develop.svn.wordpress.org/trunk@27170 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-13 07:33:29 +00:00
Andrew Nacin
1304fb3463 Fix the conditional enqueueing/printing of colors stylesheets, without breaking dependencies.
fixes #18380.
see #20729 which should properly fix this.


git-svn-id: https://develop.svn.wordpress.org/trunk@27111 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-06 22:15:25 +00:00
Helen Hou-Sandi
802baab31a Merge colors.css into wp-admin.css. Non-default color schemes became overloads rather than swaps in the 3.8 redesign. Benefits include:
* No more border-width, border-style, border-color insanity.
* Point releases are much less likely to require extra finagling to avoid rebuilding the color schemes.
* Yours truly has a better overall vision of ~14,000 lines of admin CSS and where we go from here.

1,065 net lines of red, y'all.
props helen, jorbin. fixes #18380.


git-svn-id: https://develop.svn.wordpress.org/trunk@27106 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-06 06:24:36 +00:00
Andrew Ozz
70ca581b67 Autosave:
- Move the 'Saving post' and 'Draft saved at...' strings from autosaveL10n to postL10n as they are used only there.
- Use the custom jQuery events 'before-autosave' and 'after-autosave' to show these messages.
- Separate autosave.suspend() for local and server so local autosaves can continue while server autosaves are suspended.
- Remove the recently added autosave.server.disable() and use autosave.server.suspend() instead.
- Bring back .button.disabled, button-primary.disabled and use .disabled to prevent multiple form submissions.
See #25272.


git-svn-id: https://develop.svn.wordpress.org/trunk@27038 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-27 00:27:42 +00:00
Dominik Schilling (ocean90)
07bbb5cd1f Update to jQuery UI 1.10.4. fixes #26884.
git-svn-id: https://develop.svn.wordpress.org/trunk@27028 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-24 17:43:40 +00:00
Dominik Schilling (ocean90)
cad7870533 Update to jQuery 1.11.0. fixes #26926.
git-svn-id: https://develop.svn.wordpress.org/trunk@27027 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-24 17:39:35 +00:00
Andrew Ozz
14ace125ee TinyMCE 4.0.12, first run.
- Removes wp-tinymce-schema.js and mark-loaded.js, no longer needed.
- Removes the inlinepopups and most of the wpdialogs plugins; wpdialog.js is moved to wp-includes/js.
- Adds charmap, compat3x, image, link and textcolor plugins, previously contained in /themes/advanced.
- Updates the wordpress, wpeditimage, wpfullscreen, wpgallery and wplink plugins.
- Updates DFW, wp-admin/js/wp-fullscreen.js.
See #24067.

git-svn-id: https://develop.svn.wordpress.org/trunk@26876 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-28 23:52:04 +00:00
Drew Jaynes
bd39e26032 First there were two, and now there are three -- in the @since versions that came before and that shall be. And so it will be, says nacin.
Props JustinSainton, SergeyBiryukov, DrewAPicture.
Fixes #26713.


git-svn-id: https://develop.svn.wordpress.org/trunk@26868 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-24 18:56:05 +00:00
Andrew Nacin
a3fa719dc5 About page: Don't load zxcvbn, which is a dependency of an unused piece of user-profile.js.
git-svn-id: https://develop.svn.wordpress.org/trunk@26799 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-08 07:27:32 +00:00
Andrew Nacin
821b80eba4 Tell the script loader that colors-fresh should be treated as an RTL style, as explained (but omitted) in [26780]. see #26316.
git-svn-id: https://develop.svn.wordpress.org/trunk@26781 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-07 09:07:38 +00:00
Andrew Nacin
6e1d73c39d Admin color schemes: Manually handle RTL and minified versions of the CSS files on registration.
This bypasses WP_Styles entirely, which is much simpler for the moment, given that color schemes bypass WP_Styles for plenty already. The script loader is told to stop thinking of colors.css as an RTL-ified file. The colors-fresh handle, used directly on the login screen, needed to be (even before this commit).

fixes #26316.


git-svn-id: https://develop.svn.wordpress.org/trunk@26780 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-07 09:04:02 +00:00
Andrew Nacin
e41692153c Core updates for the new color schemes.
* Update about page, there's now 8.
 * Display them four wide, not three, and ensure adequate spacing.
 * Use a dedicated nonce.
 * Push Light to the front in addition to Default.
 * Use user-profile.js on about.php. A few extra things are initialized but they are harmless.

see #26468, #26387.


git-svn-id: https://develop.svn.wordpress.org/trunk@26776 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-07 07:45:57 +00:00
Andrew Nacin
aa65527319 Final SVG painter fixes.
* wp.svgPainter and now moved to wp-admin.
 * Restore !important background-image handling.
 * Delay executing the IE9-specific base64 code if we don't need it.
 * Make painted icons lose their color after hover at the same speed as dashicons (100ms).

props azaozz.
fixes #26333.


git-svn-id: https://develop.svn.wordpress.org/trunk@26693 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-05 22:00:17 +00:00
Andrew Nacin
0b6e655a2d Add Open Sans as a dependency to install.css and add Dashicons as a dependency to some other CSS files. see #26255.
git-svn-id: https://develop.svn.wordpress.org/trunk@26605 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-04 11:18:52 +00:00
Andrew Ozz
93a5bff7a7 Svg-painter:
- Clean up the JS, better names, etc.
- Convert the base64 encode/decode code from jQuery plugin to local use.
- Add missing icon colors for the default theme.
- Make it more error-proof.
Fixes #26333.

git-svn-id: https://develop.svn.wordpress.org/trunk@26601 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-04 04:12:41 +00:00
Andrew Nacin
6da6e5daad Declare dashicons dependency for wp-pointer.css and media-views.css.
props dd32.
see #26255.


git-svn-id: https://develop.svn.wordpress.org/trunk@26596 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-04 00:34:00 +00:00
Andrew Nacin
2cb2a1b86e Rename colors-fresh.css to colors.css. fixes #26137.
git-svn-id: https://develop.svn.wordpress.org/trunk@26570 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-03 18:15:52 +00:00
Dominik Schilling (ocean90)
5ec5f0d9e2 Themes: Merge theme.css into wp-admin.css. fixes #25966.
git-svn-id: https://develop.svn.wordpress.org/trunk@26484 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-30 17:31:02 +00:00
Sergey Biryukov
2dc121f134 Remove obsolete image reference from thickboxL10n. props kovshenin. fixes #26257.
git-svn-id: https://develop.svn.wordpress.org/trunk@26403 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-26 11:45:50 +00:00
Helen Hou-Sandi
470d6106b0 Make sure WP_Editor and Thickbox styles have Dashicons as a dependency, as they can be used on the front. props johnjamesjacoby. fixes #26236.
git-svn-id: https://develop.svn.wordpress.org/trunk@26398 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-26 05:47:34 +00:00
Dion Hulse
16a44dfb6a Revert the change to use add_query_arg() for Open Sans, as it causes a fatal error when script concatenation is used. See #26063
git-svn-id: https://develop.svn.wordpress.org/trunk@26381 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-26 02:40:09 +00:00
Dion Hulse
b3ad458945 Use dashicons.min.css for concantenation requests. See #26250
git-svn-id: https://develop.svn.wordpress.org/trunk@26377 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-26 01:54:53 +00:00
Sergey Biryukov
f5dde473d7 Allow Open Sans to be disabled per language. props dimadin. fixes #26063.
git-svn-id: https://develop.svn.wordpress.org/trunk@26376 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-26 01:53:17 +00:00
Matt Thomas
ebb4753f12 Load the correct subset of Open Sans for cyrillic, greek, and vietnamese in addition to latin and latin-ext; following the example of Twenty Twelve. See #26063, props SergeyBiryukov.
git-svn-id: https://develop.svn.wordpress.org/trunk@26254 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-18 21:39:22 +00:00
Andrew Nacin
e52857484a Stop using .rtl classes, instead relying on flipping LTR CSS to RTL.
props yoavf.
fixes #24977.


git-svn-id: https://develop.svn.wordpress.org/trunk@26243 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-17 16:17:05 +00:00
Andrew Nacin
12ccb6d136 Update the Themes screen, merging THX into core.
* Name: THX38
 * Description: Update the Themes screen with a new design and experience.
 * Tags: visually-focused, bigger-screenshots, fast, mobile-friendly, backbone-driven
 * Author: matveb, shaunandrews, melchoyce, designsimply, shelob9
 * URI: http://wordpress.org/plugins/thx38/

fixes #25948



git-svn-id: https://develop.svn.wordpress.org/trunk@26141 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-13 20:57:29 +00:00
Andrew Nacin
7d2ba3675e Fix new RTL file loading when style concatenation is enabled.
see #24977.


git-svn-id: https://develop.svn.wordpress.org/trunk@26128 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-13 05:09:40 +00:00
Andrew Nacin
d416108af5 Use CSSJanus via a Grunt task to generate right-to-left CSS.
RTL files are now created on build for core CSS files. These files replace the LTR file completely, rather than being in addition to the existing LTR file.

Benefits:
 * For the user: less CSS is served in RTL, less HTTP requests on the frontend, and less work for the browser.
 * For the core developer: Let the tools do the work.

Notes for core development:
 * The file generation task is `grunt rtl`.
 * `grunt watch` now handles generating RTL files in /build when a CSS file in /src is saved.
 * /src is now locked to LTR. RTL testing must occur via /build. When attempting to run an RTL text direction with /src, an admin notice will display.

Expect RTL bugs. Please report them.

props yoavf.
see #24977.


git-svn-id: https://develop.svn.wordpress.org/trunk@26107 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-12 21:18:45 +00:00
Helen Hou-Sandi
17287af965 Say hello to a fresh new look for the WordPress admin.
Still to come: more color schemes, a responsive component, and more.

see #25858.
props iammattthomas, tillkruess, EmpireOfLight, melchoyce, ryelle, joen, mitchoyoshitaka, sirbrillig, andypeatling, isaackeyet, Otto42, dd32, matt, helen.


git-svn-id: https://develop.svn.wordpress.org/trunk@26072 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-10 00:26:50 +00:00
Drew Jaynes
1c127e99bd Inline documentation for hooks in wp-includes/functions.wp-scripts.php.
Props ninio for the initial patch.
Fixes #25720.


git-svn-id: https://develop.svn.wordpress.org/trunk@25949 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 17:50:38 +00:00
Andrew Nacin
6810bc9069 Awesome about page design for WordPress 3.7.
The page includes a giant password meter that serves as both an animated example and a working demo. How cool is that?

props jorbin, melchoyce.
see #25603.


git-svn-id: https://develop.svn.wordpress.org/trunk@25839 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-18 08:10:43 +00:00
Andrew Nacin
29a12d6ee5 Append -src to the $wp_version in the develop repo (only) to allow for us to differentiate. see #25161.
git-svn-id: https://develop.svn.wordpress.org/trunk@25692 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-05 14:24:21 +00:00
Dominik Schilling (ocean90)
5315632f13 Update Jcrop to 0.9.12 (unused in WP core).
fixes #25342.

git-svn-id: https://develop.svn.wordpress.org/trunk@25549 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 12:45:47 +00:00
Dominik Schilling (ocean90)
4a1075909e Update imgAreaSelect version in script-loader.php for [25545], see #25370.
git-svn-id: https://develop.svn.wordpress.org/trunk@25548 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 12:39:04 +00:00
Andrew Nacin
b5911d622e Update jQuery Form to 3.37.0 (unused in WP core).
props usermrpapa.
fixes #23944.


git-svn-id: https://develop.svn.wordpress.org/trunk@25462 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-16 21:05:35 +00:00
Andrew Nacin
9e6705f24e Ensure zxcvbn.min.js loads when we are guessing the wp-includes URL.
props iandunn, SergeyBiryukov.
fixes #25201.


git-svn-id: https://develop.svn.wordpress.org/trunk@25246 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-04 21:16:00 +00:00
Andrew Nacin
444d333872 Use Dropbox's zxcvbn library for our password meter.
The library was added in [25156].

props duck_.
see #21737.


git-svn-id: https://develop.svn.wordpress.org/trunk@25157 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-28 16:08:19 +00:00
Jon Cave
97dfd85d30 Search for wp-util.min.js in the correct directory when auto-defining SCRIPT_DEBUG.
See #24976, [25005].


git-svn-id: https://develop.svn.wordpress.org/trunk@25040 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-16 20:32:59 +00:00
Dominik Schilling (ocean90)
bf8e3cab1e Remove unused cat JavaScript file. props carldanley. fixes #24989.
git-svn-id: https://develop.svn.wordpress.org/trunk@25020 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-14 15:43:03 +00:00
Andrew Nacin
48678e21b9 SCRIPT_DEBUG is no longer needed when using develop.svn's src/ directory. see #24976.
git-svn-id: https://develop.svn.wordpress.org/trunk@25005 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-07 07:15:57 +00:00
Andrew Nacin
b43712e0f7 New develop.svn.wordpress.org repository based on the old core.svn repository.
* All WordPress files move to a src/ directory.
 * New task runner (Grunt), configured to copy a built WordPress to build/.
 * svn:ignore and .gitignore for Gruntfile.js, wp-config.php, and node.js.
 * Remove Akismet external from develop.svn. Still exists in core.svn.
 * Drop minified files from src/. The build process will now generate these.

props koop.
see #24976.

and see http://wp.me/p2AvED-1AI.



git-svn-id: https://develop.svn.wordpress.org/trunk@25001 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-07 05:25:25 +00:00