Scott Taylor
03dda3b273
Introduce maybe_regenerate_attachment_metadata( $attachment )
. On the Edit Media screen, call it for Audio and Video files.
...
The functions checks if the item is lacking metadata altogether. If a video or audio file was uploaded prior to 3.6, it does not have any metadata. This tries to fix it. Implements locking via a transient to protect against this running in parallel with another request.
This is the minimum viable product for #26825 , but leaving the ticket open unless this function needs to be called in other places.
See #26825 .
Built from https://develop.svn.wordpress.org/trunk@27127
git-svn-id: http://core.svn.wordpress.org/trunk@26994 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-07 22:41:12 +00:00
Helen Hou-Sandí
0100dd772a
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 .
Built from https://develop.svn.wordpress.org/trunk@27106
git-svn-id: http://core.svn.wordpress.org/trunk@26973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-06 06:25:18 +00:00
Drew Jaynes
68f9370ae9
Inline documentation for hooks in wp-admin/includes/class-wp-ms-themes-list-table.php.
...
Also marks two hooks in wp-admin/includes/class-wp-themes-list-table.php as duplicates.
Props ShinichiN, kpdesign, DrewAPicture.
Fixes #25608 .
Built from https://develop.svn.wordpress.org/trunk@27090
git-svn-id: http://core.svn.wordpress.org/trunk@26962 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-04 08:25:13 +00:00
Drew Jaynes
771f8dc244
Inline documentation for hooks in wp-admin/includes/class-wp-terms-list-table.php.
...
Props Ajay, kpdesign.
Fixes #26209 .
Built from https://develop.svn.wordpress.org/trunk@27089
git-svn-id: http://core.svn.wordpress.org/trunk@26961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-04 07:56:12 +00:00
Andrew Ozz
87c3c8adc0
Open previews of different posts in different windows/tabs. Prevent confusion when using a former preview window again if the user navigated to edit another post. If the first post is still being edited, clicking Preview there will use the current window to show the preview. Props ippetkov, fixes #20233 .
...
Built from https://develop.svn.wordpress.org/trunk@27079
git-svn-id: http://core.svn.wordpress.org/trunk@26952 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-02 23:50:13 +00:00
Andrew Nacin
39e32ed1eb
Consistently trim and unslash search queries for the users list tables.
...
props aubreypwd.
fixes #26115 .
Built from https://develop.svn.wordpress.org/trunk@27077
git-svn-id: http://core.svn.wordpress.org/trunk@26950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-02 22:10:12 +00:00
Drew Jaynes
0715a1d551
Inline documentation for hooks in wp-admin/includes/export.php.
...
Props cmmarslender, kpdesign.
Fixes #26894 .
Built from https://develop.svn.wordpress.org/trunk@27048
git-svn-id: http://core.svn.wordpress.org/trunk@26922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-28 08:10:12 +00:00
Drew Jaynes
b977d778b2
Inline documentation for hooks in wp-admin/includes/update-core.php.
...
Props JoshuaAbenazer, kpdesign.
Fixes #25998 .
Built from https://develop.svn.wordpress.org/trunk@27047
git-svn-id: http://core.svn.wordpress.org/trunk@26921 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-28 08:02:14 +00:00
Helen Hou-Sandí
291ed370b4
Autocomplete for the new site admin email. Better than trying to remember which email address you used.
...
fixes #25348 .
Built from https://develop.svn.wordpress.org/trunk@27046
git-svn-id: http://core.svn.wordpress.org/trunk@26920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-27 23:10:12 +00:00
Andrew Nacin
d39d60e841
Add wp_install and wp_upgrade hooks to the respective functions.
...
props Denis-de-Bernardy.
fixes #25762 .
Built from https://develop.svn.wordpress.org/trunk@27045
git-svn-id: http://core.svn.wordpress.org/trunk@26919 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-27 16:32:12 +00:00
Andrew Ozz
ced6e2a428
Remove one more valign, props neoxx, fixes #22712 .
...
Built from https://develop.svn.wordpress.org/trunk@27037
git-svn-id: http://core.svn.wordpress.org/trunk@26913 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-26 20:38:11 +00:00
Andrew Ozz
87589dd445
Remove table cellspacing attribute from the admin, part-props MattyRob, fixes #22086 .
...
Built from https://develop.svn.wordpress.org/trunk@27036
git-svn-id: http://core.svn.wordpress.org/trunk@26912 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-26 20:28:12 +00:00
Dominik Schilling
496c05f1e9
Remove unused code. props nofearinc. fixes #26205 .
...
Built from https://develop.svn.wordpress.org/trunk@27033
git-svn-id: http://core.svn.wordpress.org/trunk@26909 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-26 00:12:11 +00:00
Andrew Ozz
eb1d21d782
Remove all "valign" attributes from tables in wp-admin, props MikeHansenMe, Marventus. Fixes #22712 .
...
Built from https://develop.svn.wordpress.org/trunk@27029
git-svn-id: http://core.svn.wordpress.org/trunk@26905 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-24 19:06:15 +00:00
Andrew Nacin
06efe8130d
Dashboard widgets: Don't link to Pages or Posts for Authors or Contributors respectively.
...
props mattheu.
see #26574 for trunk.
Built from https://develop.svn.wordpress.org/trunk@26999
git-svn-id: http://core.svn.wordpress.org/trunk@26876 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-22 16:52:11 +00:00
Andrew Ozz
335add2573
Autosave: refactor autosave.js, use heartbeat for transport and move all "Add/Edit Post" related functionality to post.js. See #25272 .
...
Built from https://develop.svn.wordpress.org/trunk@26995
git-svn-id: http://core.svn.wordpress.org/trunk@26872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-22 04:56:16 +00:00
Drew Jaynes
5ee0b5641e
Hook docs spacing and standards fixes for wp-admin/includes/ajax-actions.php.
...
See #25374 .
Built from https://develop.svn.wordpress.org/trunk@26981
git-svn-id: http://core.svn.wordpress.org/trunk@26858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-18 17:06:12 +00:00
Matt Thomas
5b327853e4
The comment screen hides the author column at narrow screen sizes; this adds back the author info above the comment content. Fixes #26618 , props SergeyBiryukov, nacin.
...
Built from https://develop.svn.wordpress.org/trunk@26961
git-svn-id: http://core.svn.wordpress.org/trunk@26840 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-16 20:34:10 +00:00
Sergey Biryukov
1db81755ac
Remove unnecessary sprintf(). props jdgrimes. fixes #25489 .
...
Built from https://develop.svn.wordpress.org/trunk@26943
git-svn-id: http://core.svn.wordpress.org/trunk@26823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-14 11:18:12 +00:00
Helen Hou-Sandí
60f3e98d51
Pass the $user_id to the admin_color_scheme_picker
hook for context. props nacin. see #26607 for trunk.
...
Built from https://develop.svn.wordpress.org/trunk@26924
git-svn-id: http://core.svn.wordpress.org/trunk@26805 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-08 21:49:10 +00:00
Drew Jaynes
f5213d39d0
Inline documentation for hooks in wp-admin/includes/meta-boxes.php.
...
Props SpencerFinnell for the initial patch.
Fixes #26092 .
Built from https://develop.svn.wordpress.org/trunk@26918
git-svn-id: http://core.svn.wordpress.org/trunk@26799 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-08 04:06:12 +00:00
Drew Jaynes
76ad336c2c
Inline documentation for hooks in wp-admin/includes/class-wp-media-list-table.php.
...
Props theorboman for the initial patch. Props kpdesign.
Fixes #25839 .
Built from https://develop.svn.wordpress.org/trunk@26916
git-svn-id: http://core.svn.wordpress.org/trunk@26797 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-08 03:53:14 +00:00
Drew Jaynes
f51b1f8def
Inline documentation for hooks in wp-admin/includes/media.php.
...
Props kpdesign, DrewAPicture.
Fixes #25375 .
Built from https://develop.svn.wordpress.org/trunk@26908
git-svn-id: http://core.svn.wordpress.org/trunk@26791 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-06 05:48:12 +00:00
Sergey Biryukov
3a7ce85b4f
Change 'Width' to 'Layout' to match the hard-coded list of translatable theme features in get_theme_feature_list().
...
props janrenn.
fixes #26777 for trunk.
Built from https://develop.svn.wordpress.org/trunk@26905
git-svn-id: http://core.svn.wordpress.org/trunk@26788 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-05 17:16:11 +00:00
Sergey Biryukov
0ddaa76f3e
Use correct example of a Dashicons helper class in add_menu_page() and register_post_type() docs.
...
props Rarst.
fixes #26617 for trunk.
Built from https://develop.svn.wordpress.org/trunk@26884
git-svn-id: http://core.svn.wordpress.org/trunk@26767 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-31 10:33:11 +00:00
Sergey Biryukov
a25d9ae3ba
Make sure "UPDATE LOG" in debug emails matches the underlining when translated.
...
fixes #26621 .
Built from https://develop.svn.wordpress.org/trunk@26883
git-svn-id: http://core.svn.wordpress.org/trunk@26766 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-31 10:27:10 +00:00
Andrew Ozz
855889f7aa
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 .
Built from https://develop.svn.wordpress.org/trunk@26876
git-svn-id: http://core.svn.wordpress.org/trunk@26759 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-28 23:53:15 +00:00
Sergey Biryukov
cdba99d3b3
Being consistent is the gist, no single @since should have been missed.
...
see #26713 .
Built from https://develop.svn.wordpress.org/trunk@26869
git-svn-id: http://core.svn.wordpress.org/trunk@26755 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-25 02:00:11 +00:00
Drew Jaynes
cd8cedc40d
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 .
Built from https://develop.svn.wordpress.org/trunk@26868
git-svn-id: http://core.svn.wordpress.org/trunk@26754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-24 18:57:12 +00:00
Sergey Biryukov
cce9d251a4
Add comments for temporary hooks. see #26661 .
...
Built from https://develop.svn.wordpress.org/trunk@26866
git-svn-id: http://core.svn.wordpress.org/trunk@26752 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-23 00:48:11 +00:00
Sergey Biryukov
507b595c2b
Add temporary hooks for the widgets feature team to wp_widget_control().
...
props westonruter.
see #26661 .
Built from https://develop.svn.wordpress.org/trunk@26865
git-svn-id: http://core.svn.wordpress.org/trunk@26751 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-23 00:45:11 +00:00
Ryan Boren
07c16fd23c
The Pinking Shears stir from their slumber, awakened by what may seem, to those
...
innocent in the ways of The Shears, a triviality, a nothing-of-consequence. But there are consequences indeed for recklessly trailing your whitespace. Naturally, they a dire!
One, two! One, two! And through and through
The Pinking Shears went snicker-snack!
They plucked your tail and with your space
They went sniksnuking back.
Let me tell you, that can be uncomfortable, so always pre-sniksnuk your trailing whites. May The Shears be with you.
Built from https://develop.svn.wordpress.org/trunk@26851
git-svn-id: http://core.svn.wordpress.org/trunk@26738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-11 19:49:11 +00:00
Andrew Nacin
fc7a4e3f3c
On update, delete files removed in 3.8.
...
props JPry.
fixes #26535 .
Built from https://develop.svn.wordpress.org/trunk@26846
git-svn-id: http://core.svn.wordpress.org/trunk@26733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-11 17:38:10 +00:00
Matt Thomas
4fb4588829
Style the Add Comment button as a button. Fixes #26500 , props SergeyBiryukov.
...
Built from https://develop.svn.wordpress.org/trunk@26834
git-svn-id: http://core.svn.wordpress.org/trunk@26721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-09 19:14:11 +00:00
Andrew Nacin
659334bd59
Introduce dashboard_glance_items filter which replaces 3.7 right_now_* hooks that were tied to table markup.
...
fixes #26495 .
Built from https://develop.svn.wordpress.org/trunk@26832
git-svn-id: http://core.svn.wordpress.org/trunk@26719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-09 19:12:10 +00:00
Helen Hou-Sandí
eaec1347f2
Remove many of the now-unused images in core. Some images have been left for now, notably our previous style icons, action indicators, and images that see a higher frequency of use in plugins to allow them more time to adapt to the new design. props ocean90, Ipstenu, coffee2code. fixes #26036 .
...
Built from https://develop.svn.wordpress.org/trunk@26821
git-svn-id: http://core.svn.wordpress.org/trunk@26708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-09 03:21:12 +00:00
Andrew Nacin
1fb828504e
Avoid notices when default and light are not registered color schemes. see #26468 .
...
Built from https://develop.svn.wordpress.org/trunk@26814
git-svn-id: http://core.svn.wordpress.org/trunk@26701 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-09 00:49:09 +00:00
Matt Thomas
cd465575f1
Expand the Quick Draft section by default. Fixes #26463 , props bassgang.
...
Built from https://develop.svn.wordpress.org/trunk@26813
git-svn-id: http://core.svn.wordpress.org/trunk@26700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-09 00:43:11 +00:00
Andrew Nacin
7dbfca1778
Nonces are already per-user. see #22862 .
...
Built from https://develop.svn.wordpress.org/trunk@26793
git-svn-id: http://core.svn.wordpress.org/trunk@26680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-08 07:05:10 +00:00
Andrew Nacin
c09252b950
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 .
Built from https://develop.svn.wordpress.org/trunk@26776
git-svn-id: http://core.svn.wordpress.org/trunk@26663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-07 07:46:21 +00:00
Andrew Nacin
7e1431aac1
Use wp_specialchars_decode() in the upgrade debugging email subject, same as the production email.
...
props markoheijnen.
fixes #26471 .
Built from https://develop.svn.wordpress.org/trunk@26762
git-svn-id: http://core.svn.wordpress.org/trunk@26650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-07 01:15:10 +00:00
Andrew Nacin
17e3271415
Translator's comment for a date_i18n() string.
...
props netweb.
fixes #26470 .
Built from https://develop.svn.wordpress.org/trunk@26758
git-svn-id: http://core.svn.wordpress.org/trunk@26646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-07 00:38:13 +00:00
Andrew Nacin
61b7831f56
Dashboard: Restore a line that vanished from my editor to print recently published posts. Also fix an off-by-one error.
...
see [26704]. see #26066 .
Built from https://develop.svn.wordpress.org/trunk@26741
git-svn-id: http://core.svn.wordpress.org/trunk@26630 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-06 20:13:11 +00:00
Drew Jaynes
7bf5470bab
Inline documentation fixes for hooks and functions introduced in 3.8.0.
...
Built from https://develop.svn.wordpress.org/trunk@26736
git-svn-id: http://core.svn.wordpress.org/trunk@26625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-06 19:18:11 +00:00
Andrew Nacin
a41e7e8b9b
Core updates: Explicitly call wp_cache_delete() after a DB upgrade, as not all cache backends allow the entire backend to be flushed.
...
props dd32.
fixes #26173 .
Built from https://develop.svn.wordpress.org/trunk@26734
git-svn-id: http://core.svn.wordpress.org/trunk@26623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-06 19:00:10 +00:00
Drew Jaynes
fdbc44ff48
Inline documentation fixes for wp_heartbeat_set_suspension()
.
...
See #25073 .
Built from https://develop.svn.wordpress.org/trunk@26732
git-svn-id: http://core.svn.wordpress.org/trunk@26621 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-06 18:43:10 +00:00
Andrew Nacin
df48cebeb4
No-JavaScript and no-Customizer support for the new Themes screen.
...
JavaScript is rarely disabled, but graceful degradation is still important. For example, syntax errors can occur, usually with major WP updates that overhaul entire experiences and update external libraries combined with themes or plugins doing weird or old things. If this error is due to their current theme, a user needs to be able to access the themes screen to switch away from the theme. A more subtle issue could make things painful to diagnose.
This commit renders the grid in PHP (the template is duplicated, but it lightweight, fairly mundane, and easy to sync). On Backbone render, the grid is then re-rendered from JavaScript so searches can occur. Customize and Live Preview is disabled if JS fails to kick in. If JS is disabled, old-school "Preview" links are displayed.
No-Customizer support: The customizer is only supported when the browser supports postMessage (IE8+), and if the frontend is a different domain, CORS (IE10+). We use the .hide-if-no-customize class for this. Pre-customize "Preview" links should use .hide-if-customize.
The .load-customize class should be used to declare a link that opens the customizer. This enables customize-loader.js to intercept this link and load the customizer on top of the current window, making for a smoother experience.
fixes #25964 .
Built from https://develop.svn.wordpress.org/trunk@26726
git-svn-id: http://core.svn.wordpress.org/trunk@26615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-06 16:11:10 +00:00
Matt Mullenweg
ba93d95af0
Add and display new tags to highlight the ever-growing number of responsive themes available. Fixes #21442 .
...
Props Otto42 and lancewillett.
Built from https://develop.svn.wordpress.org/trunk@26711
git-svn-id: http://core.svn.wordpress.org/trunk@26600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-06 01:07:11 +00:00
Andrew Nacin
8a2accaa41
Fix various i18n issues on the dashboard. Limits it to posts and pages only for 3.8.
...
props SergeyBiryukov, dimadin.
fixes #26066 .
Built from https://develop.svn.wordpress.org/trunk@26704
git-svn-id: http://core.svn.wordpress.org/trunk@26594 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-05 23:34:11 +00:00
Andrew Nacin
8de0c10bb9
Restore "Search Engines Discouraged" to the dashboard.
...
props JustinSainton.
fixes #26431 .
Built from https://develop.svn.wordpress.org/trunk@26700
git-svn-id: http://core.svn.wordpress.org/trunk@26590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-05 23:05:10 +00:00