When queries fail in option functions, bail before setting cache.

Standardize variables so things are less confusing.

fixes #25015.


git-svn-id: https://develop.svn.wordpress.org/trunk@25664 602fd350-edb4-49c9-b593-d223f7449a82
Allow to filter the `link` attribute via `shortcode_atts_gallery`. props iworks. fixes #24979.

git-svn-id: https://develop.svn.wordpress.org/trunk@25665 602fd350-edb4-49c9-b593-d223f7449a82
Show a proper error message on the dashboard when the current theme is broken.

Clean up Appearance -> Themes when we don't have enough information to show for a broken theme.

Clean up broken/ugly "alt" row styling when we are displaying broken themes.

props johnbillion for initial patch.
fixes #21670.


git-svn-id: https://develop.svn.wordpress.org/trunk@25666 602fd350-edb4-49c9-b593-d223f7449a82