Permalink
Commits on Aug 31, 2012
  1. Media: Use numeric timestamps instead of string-based timestamps when…

    koop committed Aug 31, 2012
    … preparing an attachment for js.
    
    We use the 'date' attribute to create Javascript Date objects. The Date() constructor has better cross-browser compatibility when numeric arguments are passed to the constructor.
    
    see #21390.
    
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  2. Compress scripts/styles: 3.5-alpha-21690.

    Bot (Assets) committed Aug 31, 2012
    git-svn-id: http://core.svn.wordpress.org/trunk@21690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  3. Media JS: Attachments collection API improvements.

    koop committed Aug 31, 2012
    Rename watch() and unwatch() to observe() and unobserve(), respectively, to avoid conflicts with Firefox's proprietary Object.prototype.watch method.
    
    Rename validate() to validator(), and changed() to validate(), as the latter will be more frequently used, and better explains its purpose. Also, make the new validate() more concise.
    
    see #21390.
    
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  4. Fix the adding of link categories through the "Add Link" screen. prop…

    markjaquith committed Aug 31, 2012
    …s yoavf. fixes #21590 for trunk
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  5. Introduce WP_Screen::in_admin() for determining which admin the scree…

    Ryan Boren committed Aug 31, 2012
    …n is in.
    
    Change is_*_admin() to reference in_admin() with fallback to the WP_*_ADMIN constants during early bootstrap. This allows unit tests and ajax handlers to set the admin context.
    
    fixes #21742
    
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  6. Restore the 'allowed_themes' filter.

    nacin committed Aug 31, 2012
    This filter has wrapped the network-wide themes, outside of the network-wide
    allowed function (dating back to MU), hence the unusual placement. This restores
    previous behavior; we will introduce new filters to enable greater flexibility.
    
    see #21099.
    for trunk.
    
    
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  7. Make sure that we always generate random numbers correctly even if th…

    westi committed Aug 31, 2012
    …e PHP build is slightly broken and truncates large integers.
    
    Fixes #19571 props mdawaffe.
    
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21685 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  8. Compress scripts/styles: 3.5-alpha-21684.

    Bot (Assets) committed Aug 31, 2012
    git-svn-id: http://core.svn.wordpress.org/trunk@21684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  9. Add new media workflow scripts, styles, and templates.

    koop committed Aug 31, 2012
    Please note that this commit does not integrate media into the existing UI. If you would like to see the new UI, navigate to the post editor and run the following in your browser's Javascript console:
    
    	new wp.media.controller.Workflow().render().modal.open();
    
    
    The Javascript is broken up into two files, with the slugs media-models and media-views.
    
    * media-models: The models are UI agnostic, and can be used independent of the views. If you'd like to create custom UIs, this is the script for you.
    
    * media-views: This is the Media Experience. The views (and controllers) depend on the models (which are listed as a dependency and will automatically be included thanks to wp_enqueue_script). The views also require the media templates, media-view styles, and the plupload bridge settings. Perhaps we should create a function to include the whole shebang, but in the meantime...
    
    To include media-views in the admin, run the following PHP in or after 'admin_enqueue_scripts':
    
    	wp_enqueue_script( 'media-views' );
    	wp_enqueue_style( 'media-views' );
    	wp_plupload_default_settings();
    	add_action( 'admin_footer', 'wp_print_media_templates' );
    
    see #21390.
    
    
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  10. Fix a misnamed variable, which caused the query-attachments ajax hand…

    koop committed Aug 31, 2012
    …ler to ignore all input. see #21390.
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  11. Add get-attachment and query-attachments Ajax handlers. props koopers…

    nacin committed Aug 31, 2012
    …mith. see #21390.
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  12. Introduce wp_prepare_attachment_for_js(). Prepares an attachment post…

    nacin committed Aug 31, 2012
    … object to be JSON-encoded and fitted into an Attachment model, for 3.5 media.
    
    props koopersmith. see #21390.
    
    
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  13. Introduce wp_send_json() to json-encode a variable, print it, and die…

    nacin committed Aug 31, 2012
    …, for Ajax requests. Effectively replaces WP_Ajax_Response, which was an XML-based response.
    
    Introduce wp_send_json_success() and wp_send_json_error(), which will allow us to fire appropriate done() or fail() callbacks in JS.
    
    props koopersmith. see #21390.
    
    
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Aug 30, 2012
  1. Compress scripts/styles: 3.5-alpha-21678.

    Bot (Assets) committed Aug 30, 2012
    git-svn-id: http://core.svn.wordpress.org/trunk@21678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  2. Update the query strings to refresh the toolbar sprites, props ocean9…

    Andrew Ozz committed Aug 30, 2012
    …0, see #20033
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  3. Flip Admin Bar search icon, props empireoflight and lessbloat, fixes …

    Andrew Ozz committed Aug 30, 2012
    …#20033
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  4. Twenty Twelve: go with `echo get_the_date()` here, added in r21670 bu…

    Lance Willett committed Aug 30, 2012
    …t reverted accidentally in r21674. Props obenland.
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21675 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  5. Twenty Twelve: add a better permalink markup structure to content-ima…

    Lance Willett committed Aug 30, 2012
    …ge.php template, for usability when image posts have no title. Props obenland, fixes #21723.
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  6. Compress scripts/styles: 3.5-alpha-21673.

    Bot (Assets) committed Aug 30, 2012
    git-svn-id: http://core.svn.wordpress.org/trunk@21673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  7. Have wp_script_is() and wp_style_is() accept 'enqueued', as it reads …

    nacin committed Aug 30, 2012
    …better than 'queue' and is consistent with 'registered'. fixes #21741.
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21672 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  8. Fix min row height in .widefat, see #21324

    Andrew Ozz committed Aug 30, 2012
    git-svn-id: http://core.svn.wordpress.org/trunk@21671 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  9. Twenty Twelve: use `get_the_date()` rather than `the_date()` in conte…

    Lance Willett committed Aug 30, 2012
    …nt templates to ensure a date is always output and a post permalink is visible to site visitors. Props obenland and ocean90, fixes #21721.
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21670 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  10. POT, generated from r21668

    Bot (Translations) committed Aug 30, 2012
    git-svn-id: http://core.svn.wordpress.org/trunk@21669 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  11. Twenty Twelve: move Open Sans custom font loading to a body class to …

    Lance Willett committed Aug 30, 2012
    …allow easier overriding, fixes #21694.
    
     * Use wp_style_is() to check for the enqueued CSS file before adding the body class value.
     * Add a sample dequeue method in the comments as documentation for child themers and their ilk.
    
    Props viniciusmassuchetto, nacin, and obenland.
    
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21668 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  12. Twenty Twelve: remove aggressive text-align rule, set to inherit inst…

    Lance Willett committed Aug 30, 2012
    …ead to allow editor-added styles to justify per author's desire. Props obenland, fixes #21739.
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21667 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  13. Twenty Twelve: move text treatment for footer anchor element up to it…

    Lance Willett committed Aug 30, 2012
    …s parent container, to allow styling any text in the footer.
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  14. Twenty Twelve: remove unneeded float rule from nav list items, there …

    Lance Willett committed Aug 30, 2012
    …is nothing to override here.
    
    Also allows authors to assign CSS classes and float menu items with something like `alignright`.
    
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21665 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  15. Use set_url_scheme(). Props johnbillion, MarcusPope. see #19037 #20759

    Ryan Boren committed Aug 30, 2012
    git-svn-id: http://core.svn.wordpress.org/trunk@21664 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  16. Compress scripts/styles: 3.5-alpha-21663.

    Bot (Assets) committed Aug 30, 2012
    git-svn-id: http://core.svn.wordpress.org/trunk@21663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  17. Fix copy-paste error in get_term_feed_link() that caused the category…

    nacin committed Aug 30, 2012
    …_feed_link filter to run for tags, rather than tag_feed_link. props andrea.r, SergeyBiryukov. fixes #21589.
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21662 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  18. Fix typo in CSS. props SergeyBiryukov. fixes #20587.

    nacin committed Aug 30, 2012
    git-svn-id: http://core.svn.wordpress.org/trunk@21661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  19. Update old files array:

    nacin committed Aug 30, 2012
     * Remove old names for jQuery UI Effects files. see #21736.
     * Remove un-minified version of Jcrop and jQuery Color. see #21692, #20728.
     * Remove .dev.css and .dev.js. see #21633.
    
    
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  20. Update some code comments from .dev.js to .js. props georgestephanis.…

    nacin committed Aug 30, 2012
    … see #21633.
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21659 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  21. jQuery 1.8.1-not-quite-final. fixes #21736.

    nacin committed Aug 30, 2012
    git-svn-id: http://core.svn.wordpress.org/trunk@21658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  22. jQuery UI 1.9 RC.

    nacin committed Aug 30, 2012
    Adds Tooltip, Menu, and Spinner.
    Autocomplete depends on Menu.
    Renames Effects files.
    
    1.9 final is expected next week.
    see #21736.
    
    
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21657 1a063a9b-81f0-0310-95a4-ce76da25c4cd