Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#11366 closed defect (bug) (fixed)

"Use as thumbnail" shows up in standalone media browser

Reported by: markjaquith's profile markjaquith Owned by: markjaquith's profile markjaquith
Milestone: 2.9 Priority: high
Severity: minor Version: 2.9
Component: Post Thumbnails Keywords: has-patch
Focuses: Cc:

Description

After uploading an image in the standalone media browser, it showed the "use as thumbnail" link. It shouldn't.

Also, it should be renamed "Use as thumbnail" to "Use as post image" and "Use as page image"

Attachments (2)

11366_isset-check.diff (722 bytes) - added by nacin 15 years ago.
11366.2.diff (1.1 KB) - added by nacin 15 years ago.

Download all attachments as: .zip

Change History (9)

#1 @nacin
15 years ago

I'm also seeing an E_NOTICE with WP_DEBUG on for wp-admin/includes/media.php:1242. Fixing that solves this. Looks like we need an isset($_GETpost_id?) in there.

#2 @nacin
15 years ago

  • Keywords has-patch added

Still needs a patch for "Use as thumbnail" to "Use as post image" and "Use as page image."

Will we be changing as many "thumbnail" references as possible for 2.9? A very quick grep puts the number of references to "thumbnail" (PHP, CSS, JS) at 150 more in 2.9 than 2.8.

@nacin
15 years ago

#3 @nacin
15 years ago

Patch w/ renaming.

#4 @nacin
15 years ago

JavaScript still needs to be changed... set-post-thumbnail.js + localization.

#5 follow-up: @markjaquith
15 years ago

  • Owner set to markjaquith
  • Status changed from new to accepted

Thanks for your help nacin. Unfortunately I conflicted your patches with a bunch of my commits. :-\

We're back to "post thumbnail" — "post image" was too vague and general. I have a patch that fixes this issue and a few others around it (like "Use as thumbnail" not showing up when you upload an image).

#6 @markjaquith
15 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In [12352] — Do not show "Use as thumbnail" in standalone media browser, but DO show it when you upload a new image on a post. fixes #11366

We need to get the post-commit Trac ticket updating code working. Hate having to do this by hand.

#7 in reply to: ↑ 5 @nacin
15 years ago

Replying to markjaquith:

Thanks for your help nacin. Unfortunately I conflicted your patches with a bunch of my commits. :-\

So I noticed. :-) At least it was the right direction.

Note: See TracTickets for help on using tickets.