Commit Graph

2552 Commits

Author SHA1 Message Date
Dominik Schilling (ocean90)
d6a590e087 Customizer: Make the available widgets overlay closable on narrow screens.
see #28784.

git-svn-id: https://develop.svn.wordpress.org/trunk@31974 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 22:24:21 +00:00
Helen Hou-Sandi
35df5592f1 Admin notices: Make (most) core notices dismissible.
These no longer return upon refreshing the page when JS is on and working, so users should be able to dismiss them. This is particularly important on the post edit screen when DFW is triggered, but pretty much all notices can be dismissed if needed. A post on Make/Core will follow with information on how this can be leveraged in plugins.

props valendesigns, afercia, paulwilde, adamsilverstein, helen.
fixes #31233. see #23367.


git-svn-id: https://develop.svn.wordpress.org/trunk@31973 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 22:05:17 +00:00
Aaron Jorbin
5b676b4f8e Fix colors for activated and updated plugins
If we don't have the updated class on the TR for he update message, then the message is red and red is scary and they just updated, they should be happy and celebrating, not scared. 

See #31608




git-svn-id: https://develop.svn.wordpress.org/trunk@31969 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 21:30:50 +00:00
Sergey Biryukov
f898c8bd3d Merge title strings on Edit Site screens.
props ramiy.
fixes #31844.

git-svn-id: https://develop.svn.wordpress.org/trunk@31962 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 17:59:25 +00:00
Sergey Biryukov
02253bbcb6 Remove unused printf() on network setup screen.
props ramiy.
fixes #31841.

git-svn-id: https://develop.svn.wordpress.org/trunk@31961 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 17:00:49 +00:00
Scott Taylor
8f8c526a56 In WP_Posts_List_Table::get_views(), don't add the current class to the all status link if ->user_posts_count has a value, which triggers the additional mine status.
See [31828].
Fixes #24869.


git-svn-id: https://develop.svn.wordpress.org/trunk@31959 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 16:17:01 +00:00
Sergey Biryukov
3ecaee903e Add translator comments for placeholders in network-related strings.
props ramiy.
fixes #31834.

git-svn-id: https://develop.svn.wordpress.org/trunk@31956 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 13:25:55 +00:00
Dominik Schilling (ocean90)
14dc44fb83 Accessibility: Add landmark roles to WordPress admin areas.
props afercia, joedolson.
fixes #31450.

git-svn-id: https://develop.svn.wordpress.org/trunk@31955 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 13:16:47 +00:00
Dominik Schilling (ocean90)
b194676876 Customizer Theme Switcher: Switch the details/live preview buttons.
props celloexpressions, ocean90.
fixes #31791.

git-svn-id: https://develop.svn.wordpress.org/trunk@31954 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 12:35:26 +00:00
Dominik Schilling (ocean90)
5f8c60d79d Themes: Improve focus styling of add-new-theme link.
props celloexpressions, mrahmadawais.
fixes #31203.

git-svn-id: https://develop.svn.wordpress.org/trunk@31952 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 12:21:08 +00:00
Sergey Biryukov
8e9a5a7156 After [31941], use the decoupled strings from WP_Customize_Manager::register_controls() on the Menus screen.
see #28502.

git-svn-id: https://develop.svn.wordpress.org/trunk@31951 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 11:36:46 +00:00
Aaron Jorbin
9932d7973d Refine UI for FTP modal and shiny updates
Numerous changes to make the FTP modal experience a good one.  These include:
 * Update HTML used by both the form here and the form on the standalone screen
 * Allow users to cancel FTP install
 * Focus locking in the modal
 * Focus on modal form on load
 * ARIA Attributes
 * Style Enhancements
 * Add low screen height (such as phone and some tablets) friendly experience for entering credentials

Props ericlewis, afercia 
Fixes #31608



git-svn-id: https://develop.svn.wordpress.org/trunk@31949 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 02:47:55 +00:00
Dominik Schilling (ocean90)
5283d55271 Customizer: Defer rendering theme controls until the section is displayed.
see #31793.

git-svn-id: https://develop.svn.wordpress.org/trunk@31944 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-31 22:20:13 +00:00
Sergey Biryukov
78469b71b0 Themes: Add a filter to short-circuit wp_prepare_themes_for_js().
props mattwiebe, DrewAPicture.
fixes #31789.

git-svn-id: https://develop.svn.wordpress.org/trunk@31943 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-31 20:03:55 +00:00
Sergey Biryukov
dcc75b1202 Media Library: Add a label for attachment type select in list mode.
props afercia.
fixes #31795.

git-svn-id: https://develop.svn.wordpress.org/trunk@31942 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-31 19:56:08 +00:00
Sergey Biryukov
0d55562fd7 Decouple strings where the singular and plural form are not just the same string with different numbers, but essentially two different strings.
This allows for using proper plural forms in languages with more than two forms, and also resolves string conflicts when the same string is present in both singular and plural form.

fixes #28502.

git-svn-id: https://develop.svn.wordpress.org/trunk@31941 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-31 18:44:46 +00:00
Dion Hulse
842d6a9b39 Add some logic into wp_tempnam to prevent it creating 'falsey' directory names that might get used elsewhere within WordPress.
Although this logic looks a little strange at this low level, it's the best location within the Upgrades code for it to happen.
Fixes #31811


git-svn-id: https://develop.svn.wordpress.org/trunk@31936 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-31 02:10:06 +00:00
ocean90
c0104d6cc2 Customizer: Revert [31911]. We want to preserve url and return URL parameters to make the experience smoother.
see #31782.

git-svn-id: https://develop.svn.wordpress.org/trunk@31933 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-30 19:21:01 +00:00
Sergey Biryukov
3e9c664a9b Press This: Use the error message returned by wp_update_post() instead of a generic one.
props stephdau.
fixes #31808.

git-svn-id: https://develop.svn.wordpress.org/trunk@31930 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-30 14:38:35 +00:00
Sergey Biryukov
e2a54a80b5 Use a more specific selector for comment moderation hotkeys after [31513].
props afercia.
fixes #31545.

git-svn-id: https://develop.svn.wordpress.org/trunk@31929 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-30 13:53:30 +00:00
Sergey Biryukov
2b55dfcb8b Make sure the update button in "At a Glance" dashboard widget does not overlap with long strings.
props SergeyBiryukov, afercia, tyxla.
fixes #30766.

git-svn-id: https://develop.svn.wordpress.org/trunk@31928 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-30 12:49:38 +00:00
Sergey Biryukov
dadbb9713c Fix duplicate ID for Save Menu button on Menus screen.
props sagarjadhav.
fixes #31803.

git-svn-id: https://develop.svn.wordpress.org/trunk@31927 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-30 09:48:15 +00:00
Andrew Ozz
9369d03bc5 Press This: fix accessibility for the post options "sidebar". Fix size of the Add Category button.
Part props afercis, joedolson. Fixes #31575.

git-svn-id: https://develop.svn.wordpress.org/trunk@31925 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-30 03:08:30 +00:00
Dominik Schilling (ocean90)
bb57072f82 Customizer: Increase initial-scale viewport specification to 1.0.
see #31794, #28784.

git-svn-id: https://develop.svn.wordpress.org/trunk@31921 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-29 12:22:33 +00:00
Dominik Schilling (ocean90)
6a7a92e0ea Customizer: Fix calculation of panel positions when accessing via deep-links.
Make sure that the parent `li` is shown before attempting to calculate its position.
Improve also the logic for focusing on a panel to prevent focusing hidden elements.

props westonruter.
fixes #31014.
see #31794.

git-svn-id: https://develop.svn.wordpress.org/trunk@31920 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-29 11:16:30 +00:00
Andrew Ozz
034a4f20f0 Press This:
- When saving, replace emoji images with chars in the title text.
- Clean up the title text on paste.
See #31768.

git-svn-id: https://develop.svn.wordpress.org/trunk@31919 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-29 03:13:45 +00:00
Dominik Schilling (ocean90)
dad35768cf Theme Switcher: Use the global panel back button instead of adding a new one.
This ensures the back button is visible on iOS devices. Same as in [29610].

see #31794.

git-svn-id: https://develop.svn.wordpress.org/trunk@31918 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-28 22:08:32 +00:00
Dominik Schilling (ocean90)
da2d5c4039 Customizer: Increase size of search field and disable text size adjustment to prevent auto zooming.
see #31794.

git-svn-id: https://develop.svn.wordpress.org/trunk@31917 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-28 21:02:36 +00:00
Dominik Schilling (ocean90)
ed118dc8a3 Customizer: Fix selector for container which includes the controls. Broken since [30102].
see #31794, #31014.

git-svn-id: https://develop.svn.wordpress.org/trunk@31916 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-28 20:46:37 +00:00
Dominik Schilling (ocean90)
1811a80eff Remove a stray > introduced in [31905].
see #31776.

git-svn-id: https://develop.svn.wordpress.org/trunk@31915 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-27 23:19:26 +00:00
Dominik Schilling (ocean90)
a39ae803b6 Theme Switcher: Opening themes details modal shouldn't require two clicks on touch devices.
Inspired by [26838].

see #31794.

git-svn-id: https://develop.svn.wordpress.org/trunk@31914 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-27 22:53:50 +00:00
Dominik Schilling (ocean90)
b64b88d03b Customizer: Use responsive button styles if screen is max-width 640px.
see #31794, #28784.

git-svn-id: https://develop.svn.wordpress.org/trunk@31913 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-27 22:16:10 +00:00
Dominik Schilling (ocean90)
c5cd434a72 Theme Switcher: Don't hide action buttons on narrow screens.
see #31794.

git-svn-id: https://develop.svn.wordpress.org/trunk@31912 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-27 21:52:23 +00:00
Helen Hou-Sandi
ee4ba5c926 Admin menu: Revert [31720] for swipe open/closed.
This is problematic on any device that uses swipe for history navigation, particularly iOS. It's also quite unrefined from an interaction point of view and would not be material for this release either way.

see #31187.


git-svn-id: https://develop.svn.wordpress.org/trunk@31910 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-27 17:47:55 +00:00
Andrew Ozz
01faa39cfd Fix focusing in the plugin and theme editors. Update the help.
Props afercia, Cheffheid. Fixes #31415.

git-svn-id: https://develop.svn.wordpress.org/trunk@31908 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-26 22:34:40 +00:00
Andrew Ozz
2c2951d2c0 Press This: remove role="application" from the Categories list wrapper. This doesn't make it work better in screen readers.
See #31443.

git-svn-id: https://develop.svn.wordpress.org/trunk@31907 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-26 21:48:42 +00:00
Dominik Schilling (ocean90)
9e59690d03 Improve newly added strings for i18n:
* Add context to "Format" string.
* Use "Format" with context for "Post format".

see #31776.

git-svn-id: https://develop.svn.wordpress.org/trunk@31906 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-26 21:18:25 +00:00
Dominik Schilling (ocean90)
4b3cc5c55e Improve newly added strings for i18n:
* Use a placeholder for the theme name to be able to reorder words.
* Uppercase D for "Theme Details" to match existing strings.
* Merge two revision date formats.
* Add translator comment to strings with placeholders.

props obenland.
see #31776.

git-svn-id: https://develop.svn.wordpress.org/trunk@31905 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-26 20:55:34 +00:00
Aaron Jorbin
9ab336e309 More clean up from removal of Shiny Plugin Installs
See #31773, #29820
Unprops Jorbin, Pento



git-svn-id: https://develop.svn.wordpress.org/trunk@31900 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-26 16:29:09 +00:00
Aaron Jorbin
359ba47700 Remove Shiny Plugin Installs
See #31773, #29820



git-svn-id: https://develop.svn.wordpress.org/trunk@31897 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-26 02:29:52 +00:00
Boone Gorges
151520ee02 Check that $_POST array index is set before comparing it in post_preview().
This prevents PHP notices in cases where a user with 'edit_others_posts' but
without 'publish_posts' previews another user's posts.

Props tyxla.
Fixes #31760.

git-svn-id: https://develop.svn.wordpress.org/trunk@31896 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-26 01:44:03 +00:00
Boone Gorges
5d50b55c7e When saving post, ensure that non-hierarchical taxonomy input is defined before attempting to parse it.
Taxonomy metaboxes that are disabled for the current user are included in the
post.php markup, but do not contain the 'newtag' field, and so should be
skipped when looping through the metaboxes to avoid invoking String methods
on a variable of type `undefined`.

Props MikeNGarrett, A5hleyRich.
Fixes #30859.

git-svn-id: https://develop.svn.wordpress.org/trunk@31895 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-26 01:22:01 +00:00
Andrew Ozz
fed67453a1 Press This: on sites that support oEmbed, if the user has selected some text, quote it below the embed.
Props stephdau. Fixes #31763.

git-svn-id: https://develop.svn.wordpress.org/trunk@31894 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-26 01:16:58 +00:00
Dominik Schilling (ocean90)
e1353e1fe8 Customizer: [31885] actually hasn't fixed the SecurityErrors. This one does.
props mattwiebe.
fixes #31687.

git-svn-id: https://develop.svn.wordpress.org/trunk@31893 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 23:35:37 +00:00
ocean90
f5ea31e389 Customizer Theme Switcher: Reset font size of theme names in overlay. Apply left position only to themes section.
see #31303.

git-svn-id: https://develop.svn.wordpress.org/trunk@31892 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 22:57:03 +00:00
Dominik Schilling (ocean90)
501aeeaaa6 Improve alignment of labels and inputs in Quick Edit.
props mattheu, valendesigns.
fixes #31408.

git-svn-id: https://develop.svn.wordpress.org/trunk@31890 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 22:24:37 +00:00
Dominik Schilling (ocean90)
e7195da11a Comments List: Don't let "Quick Edit" break on smaller screens.
Other class-wp-*-list-table.php files already contain a non-breaking space for the Quick Edit row action.

props kraftbj.
fixes #31482.

git-svn-id: https://develop.svn.wordpress.org/trunk@31889 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 22:14:24 +00:00
Dominik Schilling (ocean90)
7a5073020d Customizer: Avoid SecurityErrors when the Customizer is embedded in an origin other than wp-admin.
props mattwiebe.
fixes #31687.

git-svn-id: https://develop.svn.wordpress.org/trunk@31885 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 17:25:01 +00:00
Drew Jaynes
bd2d4c8d14 Clean up DocBlock information and syntax for get_filesystem_method().
Props ericlewis, HarishChaudhari, valendesigns.
Fixes #31267.


git-svn-id: https://develop.svn.wordpress.org/trunk@31884 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 16:31:15 +00:00
Dion Hulse
b179fe8e95 When altering the admin URL to reflect the canonical location, keep the existing hash (if present) in the URL.
Fixes #31758. See #23367


git-svn-id: https://develop.svn.wordpress.org/trunk@31882 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 04:31:21 +00:00
Andrew Ozz
9ef45a7200 Do not output empty name and id HTML attributes in get_submit_button().
Props afercia. Fixes #31749.

git-svn-id: https://develop.svn.wordpress.org/trunk@31880 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 03:22:18 +00:00
Gary Pendergast
87e372299d Emoji: Revert [31877], and print the emoji shim and styles during admin_print_scripts and admin_print_styles, instead. This is a few milliseconds slower, but easier to reuse in Press This, and any other code that uses admin scripts and styles, without using admin-header.php.
See #31701.



git-svn-id: https://develop.svn.wordpress.org/trunk@31879 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 01:42:25 +00:00
Gary Pendergast
12070176d9 Emoji: Print the emoji support shim in wp-admin, too.
See #31701.



git-svn-id: https://develop.svn.wordpress.org/trunk@31877 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 01:13:35 +00:00
Sergey Biryukov
ecad13044d Fix a typo in [31872].
see #31738.

git-svn-id: https://develop.svn.wordpress.org/trunk@31873 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-24 17:32:47 +00:00
Aaron Jorbin
0d35447647 Fill $plugins['upgrade'] with extra info for use in list table
Shiny updates depends upon information from the update_plugins site transient in order to set data- attributes which are used by JavaScript. Since /wp-admin/plugins.php?plugin_status=upgrade uses `$plugin['upgrade']` rather than `$plugins['all']`, we need to fill that information in both places.   

Fixes #31738.



git-svn-id: https://develop.svn.wordpress.org/trunk@31872 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-24 17:29:32 +00:00
Andrew Ozz
defa8b0f96 Press This:
- Fix the links on inserted images to point to the source site.
- Fix inserting of images above the blockquote when the editor has not been focused.
Fixes #31745.

git-svn-id: https://develop.svn.wordpress.org/trunk@31868 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-24 01:32:17 +00:00
Gary Pendergast
1676dd43b1 Taxonomy List Tables: On mobile devices, hide the slug column, to avoid cramping the action links into two rows.
Props MikeNGarrett.

Fixes #29992.



git-svn-id: https://develop.svn.wordpress.org/trunk@31865 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-23 12:20:11 +00:00
Dion Hulse
f0849242d3 Upgrader: When creating a temporary working directory, strip off .tmp as well as .zip incase we end up using that directory as the items main directory.
Fixes #30945


git-svn-id: https://develop.svn.wordpress.org/trunk@31863 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-23 04:39:56 +00:00
Dion Hulse
9eb9342a54 Remove ambiguity in the time display format in core, switches to using 24hr notation where am/pm isn't specified.
* `H:i - 09:54`
* `g:i a - 9:54 am`
* `F j, Y - January 3, 2015`

These shouldn't be used without a/A (am/AM)
* `h:i - 01:23`
* `G:i - 1:23`

Props iseulde. Fixes #31121


git-svn-id: https://develop.svn.wordpress.org/trunk@31862 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-23 02:13:50 +00:00
Helen Hou-Sandi
9822d05f72 Media: Show filename instead of extension in the list table.
This helps differentiate between files with the same or similar image or icon. Extension shows as a part of the filename, and so is not separately needed anymore.

fixes #30943.


git-svn-id: https://develop.svn.wordpress.org/trunk@31857 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-22 11:02:00 +00:00
Sergey Biryukov
630aac94a3 Remove leading newlines from two translatable strings.
fixes #29480.

git-svn-id: https://develop.svn.wordpress.org/trunk@31844 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 02:41:33 +00:00
Sergey Biryukov
5a080ea40f Use bold Arial for RTL headings.
props valendesigns.
fixes #30807.

git-svn-id: https://develop.svn.wordpress.org/trunk@31843 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 02:19:02 +00:00
Sergey Biryukov
850e6b2278 After [31730], replace one more instance of array_shift() with reset() for better performance.
see #31259, #15459.

git-svn-id: https://develop.svn.wordpress.org/trunk@31841 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 01:56:10 +00:00
Sergey Biryukov
71aa4b15f6 Make a comment clearer (without implying inversed logic) and fix a typo.
see #31645.

git-svn-id: https://develop.svn.wordpress.org/trunk@31837 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 00:44:21 +00:00
Andrew Ozz
f2aa089166 Press This: small clean-up when generating the suggested content. Ensure all keys are always set in the array that is passed through the filter.
See #31637.

git-svn-id: https://develop.svn.wordpress.org/trunk@31836 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 00:18:00 +00:00
Aaron Jorbin
757ee0684c Fix notice that exists for plugins with no slug
Not all plugins have a slug, especially plugins not from the WordPress.org repository. 

Props imath for initial patch. 
Fixes #31694



git-svn-id: https://develop.svn.wordpress.org/trunk@31834 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 17:47:30 +00:00
Jeremy Felt
86e155b34e Make dates in multisite site and user list tables translatable.
Props pavelevap.

Fixes #22302.


git-svn-id: https://develop.svn.wordpress.org/trunk@31833 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 16:21:46 +00:00
Aaron Jorbin
cc0e582a67 Ensure that we target the correct plugin row for update updates
The DOM traversal of the plugins list table was less than ideal. By switching to data attributes, we can better target the DOM elements we want to update.

Props ericlewis
Fixes #31621




git-svn-id: https://develop.svn.wordpress.org/trunk@31831 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 05:26:00 +00:00
Scott Taylor
1392d272c2 In the "Send Trackbacks" meta box, the description of how pingbacks work was missing a comma after the introductory clause.
Props cfinke.
Fixes #31668.


git-svn-id: https://develop.svn.wordpress.org/trunk@31830 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 04:05:33 +00:00
Scott Taylor
2f20da29b5 Replace array_shift() with reset() where appropriate for performance.
Props SergeyBiryukov.
Fixes #31259.


git-svn-id: https://develop.svn.wordpress.org/trunk@31829 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 03:55:39 +00:00
Scott Taylor
c74d9e6d1c Add WP_Posts_List_Table::is_base_request() to determine if the current "view" is the "All" (default) view.
Fixes #24869.


git-svn-id: https://develop.svn.wordpress.org/trunk@31828 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 02:25:05 +00:00
Andrew Ozz
8d392d4568 Press This: check if the URL is to embeddable content on a site that supports oEmbed. Then insert only the URL in the editor. It will trigger a wpView with the embedded content.
Fixes #31637.

git-svn-id: https://develop.svn.wordpress.org/trunk@31827 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 00:51:43 +00:00
Dominik Schilling (ocean90)
74e404140d Edit Terms: Show error messages actually as error messages.
props rahulbhangale, SergeyBiryukov.
fixes #31241.

git-svn-id: https://develop.svn.wordpress.org/trunk@31823 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 21:58:52 +00:00
Helen Hou-Sandi
6a273462e8 List tables: Go back to inserting quick edit rows after, as some plugins rely on that assumption. Results are the same.
fixes #26060.


git-svn-id: https://develop.svn.wordpress.org/trunk@31820 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 21:49:26 +00:00
Andrew Ozz
1a067a5e4c Press This: prepend the site domain to root-relative URLs. Reject other relative URLs.
Part props stephdau, kraftbj. Fixes #31645.

git-svn-id: https://develop.svn.wordpress.org/trunk@31818 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 20:42:38 +00:00
Dominik Schilling (ocean90)
f288ec0581 Customizer: Remove a throw error call which prevents further actions, like jqxhr.always().
props westonruter.
fixes #31501.

git-svn-id: https://develop.svn.wordpress.org/trunk@31816 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 19:28:14 +00:00
Dominik Schilling (ocean90)
e9da1dc1f2 WP_Filesystem: Change WP_Filesystem_FTPext::exists() and WP_Filesystem_ftpsockets::exists() to return true for empty directories.
Both methods are using *nlist() which returns a list of files in a given directory or the file itself for a given file. If the result was an empty list we assumed that the file doesn't exists. This includes also cases where $file is actually an empty directory. To prevent this we now check if $file is a directory before returning the result of an empty list.
Other filesystem methods are using `file_exists()` which already checks whether a file or directory exists.

fixes #30815.

git-svn-id: https://develop.svn.wordpress.org/trunk@31815 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 19:21:33 +00:00
Aaron Jorbin
08ac58e160 Request FTP and SSH credentials when needed during shiny updates
This is a restoration of [31749] which was reverted in [31755].

It includes a number of enhancements from the original version.  Namely:
 * Not doing a credential check in src/wp-includes/script-loader.php
 * Add new function `wp_print_request_filesystem_credentials_modal`
 * update the version number in the list table when a plugin is updated

UI still needs further work, but this basic version should enable more testing

Props ericlewis, jorbin
See #31528



git-svn-id: https://develop.svn.wordpress.org/trunk@31811 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 03:17:59 +00:00
Andrew Ozz
533aefdf13 Press This: ignore site descriptions that end with an ellipsis. These are most likely auto-generated.
Props kraftbj. Fixes #31639.

git-svn-id: https://develop.svn.wordpress.org/trunk@31810 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 02:50:17 +00:00
Andrew Ozz
09dd0b59c9 Press This: fix editor buttons visibility on mobile.
Props Michael Arestad. Fixes #31622.

git-svn-id: https://develop.svn.wordpress.org/trunk@31809 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 02:24:38 +00:00
Andrew Ozz
e875feafbb Press This: add aria-describedby to the new tag field.
Props afercia. Fixes #31546.

git-svn-id: https://develop.svn.wordpress.org/trunk@31808 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 02:18:00 +00:00
Andrew Ozz
34ff5cd2d2 Press This: fix the header styling and add a logo.
Props Michael-Arestad. Fixes #31472.

git-svn-id: https://develop.svn.wordpress.org/trunk@31807 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 02:09:00 +00:00
Andrew Ozz
df2c74e878 Press This: fix styling on the Tools screen.
Props Michael-Arestad, see #31462.

git-svn-id: https://develop.svn.wordpress.org/trunk@31806 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 01:57:18 +00:00
Andrew Ozz
f1ce621be7 Press This: fix styling of the "Scan" button. Fixes #31444.
git-svn-id: https://develop.svn.wordpress.org/trunk@31805 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 01:39:52 +00:00
Dominik Schilling (ocean90)
f812217753 Set svn:eol-style to native for press-this-editor.css.
git-svn-id: https://develop.svn.wordpress.org/trunk@31801 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-17 12:05:31 +00:00
Andrew Ozz
21da2ccd85 Press This: bump bookmarklet's version. See #31657.
git-svn-id: https://develop.svn.wordpress.org/trunk@31800 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-17 01:18:01 +00:00
Andrew Ozz
820fe85082 Press This:
- Strip slashes while running side_load_images(), add slashes after.
- Simplify and clean up side_load_images().
- Add another arg to media_sideload_image() to return the uploaded image src only, and fix it to always return WP_Error on errors.
Fixes #31660.

git-svn-id: https://develop.svn.wordpress.org/trunk@31799 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-17 00:46:01 +00:00
Andrew Ozz
b91de55ede Press This: change the Publish button text to Submit for Review for contributors (like on the Edit Post screen).
Props stephdau, DrewAPicture. Fixes #31658.

git-svn-id: https://develop.svn.wordpress.org/trunk@31798 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-16 21:06:01 +00:00
Andrew Ozz
eb9cf72a1b Press This:
- Test image sizes from JS after Press This loads, before adding them to  "Suggested media".
- Clean up and simplify the HTML and JS a bit.
Fixes #31561.

git-svn-id: https://develop.svn.wordpress.org/trunk@31797 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-16 20:50:39 +00:00
Andrew Ozz
005ff9a8c8 Emoji:
- Add the styling for the replacement images to the admin CSS.
- Revert to using `.emoji` as replacement image class.
- When pasting in the editor, convert emoji images to our format so we can replace them with chars on saving.
- Some more clean up of both the plugin and wp-emoji.js.
See #31242.

git-svn-id: https://develop.svn.wordpress.org/trunk@31786 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-15 23:15:28 +00:00
Andrew Ozz
2d99690655 PressThis: increase the number of meta tags we check in the bookmarklet to 200. Sometimes there are empty meta tag nodes (no attributes) in some browsers.
See #31373.

git-svn-id: https://develop.svn.wordpress.org/trunk@31778 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-14 20:11:42 +00:00
Sergey Biryukov
83c6f85cd5 Remove duplicate label on Add New User screen.
props abhishekfdd.
fixes #31131.

git-svn-id: https://develop.svn.wordpress.org/trunk@31777 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-14 01:03:18 +00:00
Sergey Biryukov
546f3c348b Remove hidden user_id input from Edit Comment screen.
Since [31172], it caused the comment's `user_id` field to be unexpectedly changed to the user who edits the comment.

fixes #30307.

git-svn-id: https://develop.svn.wordpress.org/trunk@31776 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-14 00:52:15 +00:00
Andrew Ozz
a6b11c0411 PressThis: add a wrapped with role = application to the categories section.
Props: afercia. See #31443.

git-svn-id: https://develop.svn.wordpress.org/trunk@31775 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-13 23:40:53 +00:00
Andrew Ozz
49ca2ac0f4 PressThis: improve translatable strings on the Tools screen.
Props: afercia. See #28873.

git-svn-id: https://develop.svn.wordpress.org/trunk@31768 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-13 17:31:01 +00:00
Andrew Ozz
2650be6c74 PressThis: simplify and restyle the categories drop-down, remove the checkboxes and use JS to get the selected categories on submitting the form.
Part prop: Michael-Arestad. Fixes #31443.

git-svn-id: https://develop.svn.wordpress.org/trunk@31765 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-13 16:56:45 +00:00
Dominik Schilling (ocean90)
94768cad74 Revert [31749], see #31528.
git-svn-id: https://develop.svn.wordpress.org/trunk@31755 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 17:50:54 +00:00
Sergey Biryukov
a2abc13285 Shiny Updates: Disable body scrolling when filesystem request modal is open.
props ericlewis.
fixes #31607.

git-svn-id: https://develop.svn.wordpress.org/trunk@31753 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 14:56:34 +00:00
Sergey Biryukov
6642a1d228 Shiny Updates: Don't translate an error code string.
props ericlewis.
fixes #31606.

git-svn-id: https://develop.svn.wordpress.org/trunk@31751 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 13:08:40 +00:00
Gary Pendergast
37bee1ed3a Emoji: Instead of having custom hooks for Ajax callbacks, use MutationObserver to re-parse any changed elements in the DOM.
Props iseulde

See #31242



git-svn-id: https://develop.svn.wordpress.org/trunk@31750 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 12:51:06 +00:00