Go to file
Scott Taylor d6cb8c399e 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@27127 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-07 22:40:32 +00:00
src Introduce `maybe_regenerate_attachment_metadata( $attachment )`. On the Edit Media screen, call it for Audio and Video files. 2014-02-07 22:40:32 +00:00
tests When a `term_id` matches in `_get_term_children()`, recurse through its children until there is no more depth in the hierarchy. Since `get_terms()` return terms with a `count` of `0` when their children are not empty, we must return all children so that `get_terms()` can check their count. 2014-02-07 19:53:01 +00:00
tools/i18n Extract: rename method `extract_entries` to `extract_from_code` 2013-10-26 00:54:27 +00:00
.gitignore Add more .gitignore entries for unit test files. 2013-12-03 18:48:58 +00:00
.jshintrc Remove smarttabs from .jshintrc per IRC discussion. see #25187. 2013-11-13 19:23:16 +00:00
.travis.yml Add a Travis CI configuration file. 2013-12-02 19:41:26 +00:00
Gruntfile.js JSHint fixes for media-views and Gruntfile. 2014-02-06 05:31:22 +00:00
package.json Update the versions of several `devDependencies` in `package.json`. `grunt-cssjanus` has been updated to `0.2.2`, we no longer need the fork. Run `npm install` to receive updates for `node_modules` in the project root. 2014-01-29 04:42:02 +00:00
phpunit.xml.dist
wp-config-sample.php
wp-tests-config-sample.php Update wp-tests-config-sample.php to run with WP_DEBUG by default. see #25282. 2013-09-23 16:17:59 +00:00