|
@@ 248-257 (lines=10) @@
|
| 245 |
|
$_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']); |
| 246 |
|
} |
| 247 |
|
|
| 248 |
|
if ( ! empty( $_GET['attached'] ) && $attached = absint( $_GET['attached'] ) ) { |
| 249 |
|
if ( 1 == $attached ) { |
| 250 |
|
$message = __( 'Media file attached.' ); |
| 251 |
|
} else { |
| 252 |
|
/* translators: %s: number of media files */ |
| 253 |
|
$message = _n( '%s media file attached.', '%s media files attached.', $attached ); |
| 254 |
|
} |
| 255 |
|
$message = sprintf( $message, number_format_i18n( $attached ) ); |
| 256 |
|
$_SERVER['REQUEST_URI'] = remove_query_arg( array( 'detach', 'attached' ), $_SERVER['REQUEST_URI'] ); |
| 257 |
|
} |
| 258 |
|
|
| 259 |
|
if ( ! empty( $_GET['detach'] ) && $detached = absint( $_GET['detach'] ) ) { |
| 260 |
|
if ( 1 == $detached ) { |
|
@@ 259-268 (lines=10) @@
|
| 256 |
|
$_SERVER['REQUEST_URI'] = remove_query_arg( array( 'detach', 'attached' ), $_SERVER['REQUEST_URI'] ); |
| 257 |
|
} |
| 258 |
|
|
| 259 |
|
if ( ! empty( $_GET['detach'] ) && $detached = absint( $_GET['detach'] ) ) { |
| 260 |
|
if ( 1 == $detached ) { |
| 261 |
|
$message = __( 'Media file detached.' ); |
| 262 |
|
} else { |
| 263 |
|
/* translators: %s: number of media files */ |
| 264 |
|
$message = _n( '%s media file detached.', '%s media files detached.', $detached ); |
| 265 |
|
} |
| 266 |
|
$message = sprintf( $message, number_format_i18n( $detached ) ); |
| 267 |
|
$_SERVER['REQUEST_URI'] = remove_query_arg( array( 'detach', 'attached' ), $_SERVER['REQUEST_URI'] ); |
| 268 |
|
} |
| 269 |
|
|
| 270 |
|
if ( ! empty( $_GET['deleted'] ) && $deleted = absint( $_GET['deleted'] ) ) { |
| 271 |
|
if ( 1 == $deleted ) { |
|
@@ 270-279 (lines=10) @@
|
| 267 |
|
$_SERVER['REQUEST_URI'] = remove_query_arg( array( 'detach', 'attached' ), $_SERVER['REQUEST_URI'] ); |
| 268 |
|
} |
| 269 |
|
|
| 270 |
|
if ( ! empty( $_GET['deleted'] ) && $deleted = absint( $_GET['deleted'] ) ) { |
| 271 |
|
if ( 1 == $deleted ) { |
| 272 |
|
$message = __( 'Media file permanently deleted.' ); |
| 273 |
|
} else { |
| 274 |
|
/* translators: %s: number of media files */ |
| 275 |
|
$message = _n( '%s media file permanently deleted.', '%s media files permanently deleted.', $deleted ); |
| 276 |
|
} |
| 277 |
|
$message = sprintf( $message, number_format_i18n( $deleted ) ); |
| 278 |
|
$_SERVER['REQUEST_URI'] = remove_query_arg(array('deleted'), $_SERVER['REQUEST_URI']); |
| 279 |
|
} |
| 280 |
|
|
| 281 |
|
if ( ! empty( $_GET['trashed'] ) && $trashed = absint( $_GET['trashed'] ) ) { |
| 282 |
|
if ( 1 == $trashed ) { |
|
@@ 293-302 (lines=10) @@
|
| 290 |
|
$_SERVER['REQUEST_URI'] = remove_query_arg(array('trashed'), $_SERVER['REQUEST_URI']); |
| 291 |
|
} |
| 292 |
|
|
| 293 |
|
if ( ! empty( $_GET['untrashed'] ) && $untrashed = absint( $_GET['untrashed'] ) ) { |
| 294 |
|
if ( 1 == $untrashed ) { |
| 295 |
|
$message = __( 'Media file restored from the trash.' ); |
| 296 |
|
} else { |
| 297 |
|
/* translators: %s: number of media files */ |
| 298 |
|
$message = _n( '%s media file restored from the trash.', '%s media files restored from the trash.', $untrashed ); |
| 299 |
|
} |
| 300 |
|
$message = sprintf( $message, number_format_i18n( $untrashed ) ); |
| 301 |
|
$_SERVER['REQUEST_URI'] = remove_query_arg(array('untrashed'), $_SERVER['REQUEST_URI']); |
| 302 |
|
} |
| 303 |
|
|
| 304 |
|
$messages[1] = __( 'Media file updated.' ); |
| 305 |
|
$messages[2] = __( 'Media file permanently deleted.' ); |