Giter VIP home page Giter VIP logo

featured-media's People

Contributors

johnbillion avatar scottsweb avatar tomjn avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

featured-media's Issues

Verify YouTube's `maxresdefault` image

Scott noticed that the maxresdefault.jpg image thumbnail which we're specifically enforcing on YouTube is not always present on all videos. Featured Media should perform a HEAD request to the image URL to check that it returns a 200.

Cannot delete gallery

Steps to reproduce (in a vanilla install):

  1. Create a new post
  2. Click on Gallery in Featured Media's meta box
  3. Add images and generally create a gallery
  4. Click the X next to the image now shown in the Featured Media meta box

Expected behaviour: the gallery is removed

Actual behaviour: the gallery is NOT removed

There are no errors in the console that I can see...

get_featured_media_thumbnail() is not compatible with featured galleries

The get_featured_media_thumbnail does not grab the first image from the gallery if no featured image is attached:

function get_featured_media_thumbnail( $post_id, $size = null ) {
    return get_the_post_thumbnail( $post_id, $size );
}

The requires that a featured image is always set for a featured gallery.

PHP Notice: Undefined index: featured-media-gallery

PHP Notice: Undefined index: featured-media-gallery in /srv/www/wordpress-default/wp-content/plugins/featured-media/Admin.php on line 245

Occurs when saving a post on which a gallery hasn't been added.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.