WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/08/2014 05:47:53 PM (7 years ago)
Author:
wonderboymusic
Message:

When setting the poster image for a video shortcode, set that image as the featured image for that attachment (if found) in the background. This AJAX functionality could be used for audio as well.

Introduces attachment_url_to_postid() to attempt to turn URLs into post IDs.

Fixes #27891.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/admin-ajax.php

    r28580 r29029  
    6161    'query-attachments', 'save-attachment', 'save-attachment-compat', 'send-link-to-editor',
    6262    'send-attachment-to-editor', 'save-attachment-order', 'heartbeat', 'get-revision-diffs',
    63     'save-user-color-scheme', 'update-widget', 'query-themes', 'parse-embed'
     63    'save-user-color-scheme', 'update-widget', 'query-themes', 'parse-embed', 'set-attachment-thumbnail'
    6464);
    6565
Note: See TracChangeset for help on using the changeset viewer.