Fix warnings
git-svn-id: http://svn.automattic.com/wordpress/trunk@12246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9ee40acb93
commit
6d1ba22c9d
|
@ -1230,6 +1230,7 @@ function get_media_item( $attachment_id, $args = null ) {
|
||||||
$delete = '';
|
$delete = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$thumbnail = '';
|
||||||
if ( 'image' == $type && current_theme_supports( 'post-thumbnails' ) && get_post_image_id($_GET['post_id']) != $attachment_id )
|
if ( 'image' == $type && current_theme_supports( 'post-thumbnails' ) && get_post_image_id($_GET['post_id']) != $attachment_id )
|
||||||
$thumbnail = "<a class='wp-post-thumbnail' href='#' onclick='WPSetAsThumbnail(\"$attachment_id\");return false;'>" . esc_html__( "Use as thumbnail" ) . "</a>";
|
$thumbnail = "<a class='wp-post-thumbnail' href='#' onclick='WPSetAsThumbnail(\"$attachment_id\");return false;'>" . esc_html__( "Use as thumbnail" ) . "</a>";
|
||||||
|
|
||||||
|
@ -1873,7 +1874,7 @@ foreach ($arc_result as $arc_row) {
|
||||||
continue;
|
continue;
|
||||||
$arc_row->mmonth = zeroise( $arc_row->mmonth, 2 );
|
$arc_row->mmonth = zeroise( $arc_row->mmonth, 2 );
|
||||||
|
|
||||||
if ( $arc_row->yyear . $arc_row->mmonth == $_GET['m'] )
|
if ( isset($_GET['m']) && ( $arc_row->yyear . $arc_row->mmonth == $_GET['m'] ) )
|
||||||
$default = ' selected="selected"';
|
$default = ' selected="selected"';
|
||||||
else
|
else
|
||||||
$default = '';
|
$default = '';
|
||||||
|
|
|
@ -756,7 +756,7 @@ function _fix_attachment_links( $post_ID ) {
|
||||||
|
|
||||||
function _fix_attachment_links_replace_cb($match) {
|
function _fix_attachment_links_replace_cb($match) {
|
||||||
global $_fix_attachment_link_id;
|
global $_fix_attachment_link_id;
|
||||||
return stripslashes( 'href='.$m[1] ).get_attachment_link( $_fix_attachment_link_id ).stripslashes( $m[1] );
|
return stripslashes( 'href='.$match[1] ).get_attachment_link( $_fix_attachment_link_id ).stripslashes( $match[1] );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue