[wp-hackers] Attachments medadata for custom headers/backgrounds

George Mamadashvili georgemamadashvili at gmail.com
Thu Feb 9 07:52:20 UTC 2012


Thanks Nacin

On Thu, Feb 9, 2012 at 12:27 AM, Andrew Nacin <wp at andrewnacin.com> wrote:

> On Sun, Feb 5, 2012 at 10:03 AM, George Mamadashvili <
> georgemamadashvili at gmail.com> wrote:
>
> > Do we need to generate attachments metadata for custom headers and
> > backgrounds?  If yes why?
>
>
> If you upload an image to be a header or background, WordPress will
> store it in the media library and will generate the metadata like it does
> any other attachment. (And it can be added to posts, or what not, like
> any other attachment.)
>
> In 3.4, themes can opt into flexible/fluid header heights and widths,
> rather than having a pre-defined width and height. In this case, we use
> the metadata so proper width and height attributes can be added.
>
> Nacin
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list