| [22430]
|
nacin
|
Merge some strings. props pavelevap. fixes #22306.
|
| [22429]
|
nacin
|
Enforce a minimum of two arguments for wpdb::prepare(). The first argument is the query (or fragment thereof), which is required. Additional arguments are values to substitute into placeholders.
This will generate E_WARNINGs for insufficient arguments when prepare() is called with no additional arguments. This should discourage improper uses of prepare() under the guise of safely running a query.
props xknown. fixes #22262.
|
| [22428]
|
nacin
|
Remove single-argument calls to wpdb:prepare(), which are invalid as nothing is being prepared. see #22262.
|
| [22427]
|
nacin
|
Extend Press This by a few pixels to allow longer strings. props SergeyBiryukov. fixes #20975.
|
| [22426]
|
nacin
|
Display links if no link categories exist. props MikeHansenMe. fixes #22216.
|
| [22425]
|
markjaquith
|
Use ImageOptim to losslessly smush our images. About half a MB in savings! fixes #22381. props waldojaquith
|
| [22424]
|
nacin
|
Larger buttons for the DB upgrade screens. see #21598.
|
| [22423]
|
nacin
|
Fix the 'Change' button in the users list table. props c3mdigital. fixes #22034.
|
| [22422]
|
nacin
|
Remove the post-format-standard term on upgrade if it exists in the database. fixes #20697.
|
| [22421]
|
ryan
|
Call Imagick::queryformats() non-statically to preserve back compat with older versions of Imagick.
Props mpvanwinkle77
fixes #22308
see #6821
|
| [22420]
|
nacin
|
Properly return new WP_Error objects. props bpetty. see #6812.
|
| [22419]
|
ryan
|
Use retina logo in install, upgrade, setup-config, repair, and confirmation screens.
Props kopepasah, SergeyBiryukov
fixes #22375
|
| [22418]
|
ryan
|
When using WP_User::set_role() to set the role, don't unset all caps when the requested role matches the current role.
Props scribu, jammitch
fixes #18932
|
| [22417]
|
nacin
|
Treat a single taxonomy passed as an array the same as when passed as a string in get_terms(). props wonderboymusic, fixes #17955.
|
| [22416]
|
nacin
|
Use correct variable name in code comment. props SergeyBiryukov, fixes #21962.
|
| [22415]
|
koopersmith
|
Use Mustache-insipired template tags.
Underscore's default ERB-style templates are incompatible with PHP when asp_tags is enabled. As a result, we've settled on an alternative syntax that should be familiar to devs: Mustache-inspired for interpolating and escaping content, and ERB-inspired for execution.
`{{{a}}}` - interpolating
`{{ a }}` - escaping
`<# a #>` - execution
props rmccue. fixes #22344, see #21390.
|
| [22414]
|
nacin
|
restrict_manage_users action. props jakemgold, johnjamesjacoby. fixes #19295.
|
| [22413]
|
nacin
|
Revert type="email" on the registration form to avoid validation issues. see #22183.
|
| [22412]
|
nacin
|
Check for WP_Error in get_the_category(). props batmoo. fixes #21155.
|
| [22411]
|
azaozz
|
Allow commonly used obsolete HTML5 attributes in TinyMCE, table[summary|width|border|frame|rules|cellspacing|cellpadding|align|bgcolor] and a[name], fixes #22175
|
| [22410]
|
nacin
|
Always return an integer from post_exists(). props barrykooij. fixes #21607.
|
| [22409]
|
nacin
|
Stop adding title attributes to images (in the old media uploader). props martythornley. fixes #18984.
|
| [22408]
|
nacin
|
Proper default background color for Twenty Eleven. props miqrogroove. fixes #22347.
|
| [22407]
|
bumpbot
|
Compress scripts/styles: 3.5-beta2-22407.
|
| [22406]
|
nacin
|
Revert [22387]. see #14466. see #22374.
|
| [22405]
|
nacin
|
Don't show a hand cursor when hovering over a disabled button. props sabreuse, fixes #22371.
|
| [22404]
|
nacin
|
Use inline-block for wrapping filter links. props ocean90, SergeyBiryukov. fixes #21985.
|
| [22403]
|
ryan
|
Revert [22365]. see #21167
|
| [22402]
|
duck_
|
Rename filter on $args sent to export_wp() for clarity. See #19863.
|
| [22401]
|
duck_
|
Update shortcode regular expression commentary. See #17657.
|
| [22400]
|
nacin
|
Keyboard accessibility for the theme customizer. props lessbloat, jorbin, JustinSainton. fixes #21283.
|
| [22399]
|
duck_
|
Correctly associate new menu items with a menu when using wp_update_nav_menu_item()
wp_update_nav_menu_item() must pass tax_input to wp_insert_post() when creating items
otherwise the menu-item relationship isn't made.
See #22189.
|
| [22398]
|
duck_
|
Actually pass old permalink structure with permalink_structure_changed action
Props doublesharp. Fixes #22351.
|
| [22397]
|
koopersmith
|
Media JS: Move state-related logic from sidebar views to the state controllers. see #21390.
|
| [22396]
|
azaozz
|
Kill use of colons in class names, props SergeyBiryukov, fixes #21152
|
| [22395]
|
nacin
|
Remove methods that override but do nothing. props jeremyfelt for initial patch. fixes #22368.
|
| [22394]
|
azaozz
|
Remove the Alt + Shift + G (old fullscreen mode) shortcut from the TinyMCE help popup, props SergeyBiryukov, see #21197
|
| [22393]
|
nacin
|
HiDPI versions of the generic menu page icon. props empireoflight, lessbloat. see #21019.
|
| [22392]
|
nacin
|
Add the export_filters and wp_export_args hooks. props MartyThornley, brandondove. fixes #19863.
|
| [22391]
|
nacin
|
For postboxes, only show arrows/handles on hover when JS is enabled. props TobiasBg. fixes #21611.
|
| [22390]
|
azaozz
|
Fix the right border of the editor textarea, props SergeyBiryukov, fixes #21906
|
| [22389]
|
azaozz
|
Fix border at the bottom of active tabs in postboxes, fixes #17699
|
| [22388]
|
ryan
|
Update contextual help for 'Search Engine Visibility' to reflect UI changes. Props DrewAPicture. see #16416
|
| [22387]
|
nacin
|
Prefix sidebar IDs on the widgets screen with "sidebar-". props batmoo. fixes #14466.
|
| [22386]
|
nacin
|
Add a $public_only argument to count_many_users_posts() and get_posts_by_author_sql(). Defaults to false, and allows the counts to be returned for only public posts. props ryan, westi. fixes #21431.
|
| [22385]
|
ryan
|
Restore keyboard accessibility to the color picker. Props lessbloat. see #21206
|
| [22384]
|
bumpbot
|
Compress scripts/styles: 3.5-beta2-22384.
|
| [22383]
|
ryan
|
Fix field alignment in the "Insert/edit link" dialog.
Props SergeyBiryukov
fixes #22275
|
| [22382]
|
ryan
|
Allow hyphens in shortcode names.
Props kovshenin, solarissmoke, aaroncampbell
fixes #17657
|
| [22381]
|
nacin
|
Add back Update Services help. props DrewAPicture, fixes #22365.
|
| [22380]
|
ryan
|
Remove 'Remote Publishing' contextual help section.
Don't show the 'Post Via Email' contextual help section if enable_post_by_email_configuration is not enabled.
Don't show the 'Update Services' contextual help section if enable_update_services_configuration is not enabled.
Props DrewAPicture
fixes #22365
|
| [22379]
|
ryan
|
Welcome screen refresh. Now with icons. Props lessbloat, empireoflight. fixes #21368
|
| [22378]
|
nacin
|
Update Thickbox images for HiDPI. props lessbloat. see #21019.
|
| [22377]
|
nacin
|
HiDPI Press This bookmarklet image. props empireoflight. see #21019.
|
| [22376]
|
ryan
|
Fix strict warnings for WP_Plugins_List_Table::bulk_actions() and WP_Plugins_List_Table::single_row(). Props kurtpayne. fixes #22224
|
| [22375]
|
ryan
|
Consistent escaping in admin_color_scheme_picker(). Props johnjamesjacoby. fixes #22326
|
| [22374]
|
nacin
|
Revert [22372].
|
| [22373]
|
ryan
|
Use esc_attr() for attributes. Props johnjamesjacoby. fixes #22327
|
| [22372]
|
nacin
|
Patch TinyMCE to not strip the zero-width u200B space, which the Khmer language uses. for the 3.4 branch. fixes #21025.
|
| [22371]
|
nacin
|
Fix ajax adding of custom fields and link categories. props SergeyBiryukov. for the 3.4 branch. see #21829.
|
| [22370]
|
nacin
|
When approving and then replying to a comment, approve the parent comment before inserting the reply. props trepmal, fixes #22000.
|
| [22369]
|
nacin
|
Invalidate oEmbed caches on pre_post_update instead of save_post so existing metadata caches may be used. fixes #22190.
|
| [22368]
|
ryan
|
In wp_xmlrpc_server::_insert_post(), preservea valid post status instead of overwriting it with 'draft'. This preserves the 'inherit' status of attachments. Props markoheijnen. fixes #22335
|
| [22367]
|
ryan
|
Use wp_basename() instead of basename() so that multibyte characters are not stomped. Props SergeyBiryukov. fixes #21217
|
| [22366]
|
ryan
|
Update SimplePie to 1.3.1. Props rmccue, ocean90. fixes #22321
|
| [22365]
|
ryan
|
preg_quote() the permalink structure so that regex special chars such as dots are correctly handled. Props SergeyBiryukov. fixes #21167
|
| [22364]
|
ryan
|
Attachment editor improvements. Put the non-editable metadata into the submit/publish box.
Props helenyhou
see #21391
|
| [22363]
|
koopersmith
|
Media: Show an inline uploader when the media library is empty.
Merges most of `wp.media.controller.Upload` into `wp.media.controller.Library`, so we always create an inline uploader instead of an attachments browser if the state's `library` is empty.
props rzen, fixes #22323, see #21390.
|
| [22362]
|
koopersmith
|
Streamlining media, part I.
The main goal here is to rearrange the media components in a modularized structure to support more linear workflows. This is that structure using the pre-existing workflows, which will be improved over the course of the next few commits.
This leaves a few pieces a bit rough around the edges: namely gallery editing and selecting a featured image.
The fine print follows.
----
'''Styles'''
* Tightened padding around the modal to optimize for a smaller default screen size.
* Added a light dashed line surrounding the modal to provide a subtle cue for the persistent dropzone (which is evolving into a power user feature since we now have a dedicated `upload` state).
* Add a size for `hero` buttons.
* Remove transitions from frame subviews (e.g. menu, content, sidebar, toolbar).
----
'''Code'''
`wp.media.controller.StateManager`
* Don't fire `activate` and `deactivate` if attempting to switch to the current state.
`wp.media.controller.State`
* Add a base state class to bind default methods (as not all states will inherit from the `Library` state).
* On `activate`, fire `activate()`, `menu()`, `content()`, `sidebar()`, and `toolbar()`.
* The menu view is often a shared object (as its most common use case is switching between states). Assign the view to the state's `menu` attribute.
* `menu()` automatically fetches the state's `menu` attribute, attaches the menu view to the frame, and attempts to select a menu item that matches the state's `id`.
`wp.media.controller.Library`
* Now inherits from `wp.media.controller.State`.
`wp.media.controller.Upload`
* A new state to improve the upload experience.
* Displays a large dropzone when empty (a `UploaderInline` view).
* When attachments are uploaded, displays management interface (a `library` state restricted to attachments uploaded during the current session).
`wp.media.view.Frame`
* In `menu()`, `content()`, `sidebar()`, and `toolbar()`, only change the view if it differs from the current view. Also, ensure `hide-*` classes are properly removed.
*
`wp.media.view.PriorityList`
* A new container view used to sort and render child views by the `priority` property.
* Used by `wp.media.view.Sidebar` and `wp.media.view.Menu`.
* Next step: Use two instances to power `wp.media.view.Toolbar`.
`wp.media.view.Menu` and `wp.media.view.MenuItem`
* A new `PriorityList` view that renders a list of views used to switch between states.
* `MenuItem` instances have `id` attributes that are tied directly to states.
* Separators can be added as plain `Backbone.View` instances with the `separator` class.
* Supports any type of `Backbone.View`.
`media.view.Menu.Landing`
* The landing menu for the 'insert media' workflow.
* Includes an inactive link to an "Embed from URL" state.
* Next steps: only use in select cases to allot for other workflows (such as featured images).
`wp.media.view.AttachmentsBrowser`
* A container to render an `Attachments` view with accompanying UI controls (similar to what the `Attachments` view was when it contained the `$list` property).
* Currently only renders a `Search` view as a control.
* Next steps: Add optional view counts (e.g. "21 images"), upload buttons, and collection filter UI.
`wp.media.view.Attachments`
* If the `Attachments` scroll buffer is not filled with `Attachment` views, continue loading more attachments.
* Use `this.model` instead of `this.controller.state()` to allow `Attachments` views to have differing `edge` and `gutter` properties.
* Add `edge()`, a method used to calculate the optimal dimensions for an attachment based on the current width of the `Attachments` container element.
* `edge()` is currently only enabled on resize, as the relative positioning and CSS transforms used to center thumbnails are suboptimal when coupled with frequent resizing.
* Next steps: For infinite scroll performance improvements, look into absolutely positioning attachment views and paging groups of attachment views.
`wp.media.view.UploaderWindow`
* Now generates a `$browser` element as the browse button (instead of a full `UploaderInline` view). Using a portable browse button prevents us from having to create a new `wp.Uploader` instance every time we want access to a browse button.
`wp.media.view.UploaderInline`
* No longer directly linked to the `UploaderWindow` view or its `wp.Uploader` instance.
* Used as the default `upload` state view.
`wp.media.view.Selection`
* An interactive representation of the selected `Attachments`.
* Based on the improved workflows, this is likely overkill. For simplicity's sake, will probably remove this in favor of `SelectionPreview`.
----
see #21390.
|
| [22361]
|
ryan
|
jQuery UI 1.9.1
Props ocean90
fixes #22290
|
| [22360]
|
bumpbot
|
Compress scripts/styles: 3.5-beta2-22360.
|
| [22359]
|
lancewillett
|
Bundled Themes: allow `show_home` argument to be overridden when using `wp_page_menu` as a fallback to a Custom Menu. Props SergeyBiryukov and kovshenin, fixes #22331.
|
| [22358]
|
lancewillett
|
Twenty Twelve: handle a long site title a bit better in mobile view, don't use line-height to add space between the h1 and h2 elements in this case.
|
| [22357]
|
nacin
|
clean_post_cache() no longer calls itself recursively. see #11399.
|
| [22356]
|
koopersmith
|
Media: Update the gallery "add images" state. see #21390.
|
| [22355]
|
nbachiyski
|
Fix typos in comments. Props SergeyBiryukov, see #22337
|
| [22354]
|
dd32
|
Fix a PHP Notice when attempting to Add or remove capabilities from nonexistant roles. Props SergeyBiryukov. Fixes #18461
|
| [22353]
|
markjaquith
|
Clean up [22347] a bit. see #14348
|
| [22352]
|
bumpbot
|
Compress scripts/styles: 3.5-beta2-22352.
|
| [22351]
|
duck_
|
Add Instagram oEmbed support. Props bananastalktome. Fixes #21704.
|
| [22350]
|
nbachiyski
|
Replace gp_endswith() with working implementation
In [22349] we introduced a call to gp_endswith(),
whcih doesn't exist in WordPress, only in GlotPress.
See #22337
|
| [22349]
|
nbachiyski
|
Sync POMO with GlotPress
See http://glotpress.trac.wordpress.org/browser/trunk/pomo/
|
| [22348]
|
koopersmith
|
Media: Update gallery editing to work with the new frame view. see #21390.
|
| [22347]
|
markjaquith
|
When receiving a HEAD request, die() right before we start outputting content.
* Content doesn't make sense for HEAD requests
* Saves wear and tear on the server
* Introduces a filter: exit_on_http_head (we send TRUE through it)
fixes #14348. props mbijon, mitchoyoshitaka.
|
| [22346]
|
dd32
|
Theme Translations: Allow for theme pomo files to be loaded from WP_LANG_DIR/themes/{$domain}-{$locale}.(p|m)o.
This directory format is what we have chosen for Language Packs (See #18200), but which is currently delayed.
By making this change, we can ship localised theme files within core for bundled themes, and avoid the issues associated with Theme Updates overwriting/removing the language files.
Fixes #18960
|
| [22345]
|
koopersmith
|
Media: Reduce button size for the link gallery setting. see #21390.
|
| [22344]
|
koopersmith
|
Media JS: When editing a gallery, prevent attachments from being selected as they are removed. see #21390.
|
| [22343]
|
koopersmith
|
Fix positioning of attachment thumbnail overlays.
Prevents the overlay from blocking buttons inside the attachment preview, such as the remove button in the gallery editor.
see #21390.
|
| [22342]
|
koopersmith
|
Remove dead gallery settings code. see #21390.
|
| [22341]
|
koopersmith
|
Make gallery columns fallback a string, as the accepted values are strings. see #21390.
|
| [22340]
|
koopersmith
|
Add gallery settings to the media modal.
* Abstracts `wp.media.view.AttachmentDisplaySettings` into `wp.media.view.Settings` for managing lists of settings with button groups and select boxes. Settings can optionally be tied to a user setting (i.e. using `getUserSetting`).
* Adds `wp.media.view.Settings.AttachmentDisplay`.
* Adds `wp.media.view.Settings.Gallery`.
see #21390, #21815.
|
| [22339]
|
koopersmith
|
Media JS: Several improvements to the Attachment views.
* Bind Attachment details updates to the Attachments initialize method.
* Improve Attachment view unbinding.
* Re-render Attachment views when titles and captions are updated.
see #21390.
|
| [22338]
|
koopersmith
|
Media JS: Properly fire the Attachment view details method on render. see #21390.
|
| [22337]
|
koopersmith
|
Media JS: Properly build detail views when the selection's single model changes. see #21390.
|
| [22336]
|
koopersmith
|
Media CSS: Remove inner shadow when attachment is selected. see #21390.
|
| [22335]
|
koopersmith
|
Media JS: Improve handling of single attachments in selections.
* Adds `wp.media.model.Selection.single()` to specify a single item used in a multi-item selection.
* Fixes a bug where the `details` class would not be removed when "Clear Selection" was clicked.
see #21390.
|
| [22334]
|
bumpbot
|
Compress scripts/styles: 3.5-beta2-22334.
|
| [22333]
|
koopersmith
|
Media JS: Remove unused Attachment view events. see #21390.
|
| [22332]
|
koopersmith
|
Improve selection UI/behavior in the media modal.
* Moves handling which models are in the selection into the `Library` state.
* Adds highlight for the last-selected view in a multi-view state.
* A view must be the last-selected view before it can be deselected.
see #21390.
|
| [22331]
|
dd32
|
Prevent an issue on windows systems which can cause the temporary directory from get_temp_dir() from returning a path containing \/. Props to SergeyBiryukov for the initial patch. Fixes #20778
|