|
@@ 241-250 (lines=10) @@
|
| 238 |
|
$_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']); |
| 239 |
|
} |
| 240 |
|
|
| 241 |
|
if ( ! empty( $_GET['attached'] ) && $attached = absint( $_GET['attached'] ) ) { |
| 242 |
|
if ( 1 == $attached ) { |
| 243 |
|
$message = __( 'Media file attached.' ); |
| 244 |
|
} else { |
| 245 |
|
/* translators: %s: number of media files */ |
| 246 |
|
$message = _n( '%s media file attached.', '%s media files attached.', $attached ); |
| 247 |
|
} |
| 248 |
|
$message = sprintf( $message, number_format_i18n( $attached ) ); |
| 249 |
|
$_SERVER['REQUEST_URI'] = remove_query_arg( array( 'detach', 'attached' ), $_SERVER['REQUEST_URI'] ); |
| 250 |
|
} |
| 251 |
|
|
| 252 |
|
if ( ! empty( $_GET['detach'] ) && $detached = absint( $_GET['detach'] ) ) { |
| 253 |
|
if ( 1 == $detached ) { |
|
@@ 252-261 (lines=10) @@
|
| 249 |
|
$_SERVER['REQUEST_URI'] = remove_query_arg( array( 'detach', 'attached' ), $_SERVER['REQUEST_URI'] ); |
| 250 |
|
} |
| 251 |
|
|
| 252 |
|
if ( ! empty( $_GET['detach'] ) && $detached = absint( $_GET['detach'] ) ) { |
| 253 |
|
if ( 1 == $detached ) { |
| 254 |
|
$message = __( 'Media file detached.' ); |
| 255 |
|
} else { |
| 256 |
|
/* translators: %s: number of media files */ |
| 257 |
|
$message = _n( '%s media file detached.', '%s media files detached.', $detached ); |
| 258 |
|
} |
| 259 |
|
$message = sprintf( $message, number_format_i18n( $detached ) ); |
| 260 |
|
$_SERVER['REQUEST_URI'] = remove_query_arg( array( 'detach', 'attached' ), $_SERVER['REQUEST_URI'] ); |
| 261 |
|
} |
| 262 |
|
|
| 263 |
|
if ( ! empty( $_GET['deleted'] ) && $deleted = absint( $_GET['deleted'] ) ) { |
| 264 |
|
if ( 1 == $deleted ) { |
|
@@ 263-272 (lines=10) @@
|
| 260 |
|
$_SERVER['REQUEST_URI'] = remove_query_arg( array( 'detach', 'attached' ), $_SERVER['REQUEST_URI'] ); |
| 261 |
|
} |
| 262 |
|
|
| 263 |
|
if ( ! empty( $_GET['deleted'] ) && $deleted = absint( $_GET['deleted'] ) ) { |
| 264 |
|
if ( 1 == $deleted ) { |
| 265 |
|
$message = __( 'Media file permanently deleted.' ); |
| 266 |
|
} else { |
| 267 |
|
/* translators: %s: number of media files */ |
| 268 |
|
$message = _n( '%s media file permanently deleted.', '%s media files permanently deleted.', $deleted ); |
| 269 |
|
} |
| 270 |
|
$message = sprintf( $message, number_format_i18n( $deleted ) ); |
| 271 |
|
$_SERVER['REQUEST_URI'] = remove_query_arg(array('deleted'), $_SERVER['REQUEST_URI']); |
| 272 |
|
} |
| 273 |
|
|
| 274 |
|
if ( ! empty( $_GET['trashed'] ) && $trashed = absint( $_GET['trashed'] ) ) { |
| 275 |
|
if ( 1 == $trashed ) { |
|
@@ 286-295 (lines=10) @@
|
| 283 |
|
$_SERVER['REQUEST_URI'] = remove_query_arg(array('trashed'), $_SERVER['REQUEST_URI']); |
| 284 |
|
} |
| 285 |
|
|
| 286 |
|
if ( ! empty( $_GET['untrashed'] ) && $untrashed = absint( $_GET['untrashed'] ) ) { |
| 287 |
|
if ( 1 == $untrashed ) { |
| 288 |
|
$message = __( 'Media file restored from the trash.' ); |
| 289 |
|
} else { |
| 290 |
|
/* translators: %s: number of media files */ |
| 291 |
|
$message = _n( '%s media file restored from the trash.', '%s media files restored from the trash.', $untrashed ); |
| 292 |
|
} |
| 293 |
|
$message = sprintf( $message, number_format_i18n( $untrashed ) ); |
| 294 |
|
$_SERVER['REQUEST_URI'] = remove_query_arg(array('untrashed'), $_SERVER['REQUEST_URI']); |
| 295 |
|
} |
| 296 |
|
|
| 297 |
|
$messages[1] = __( 'Media file updated.' ); |
| 298 |
|
$messages[2] = __( 'Media file permanently deleted.' ); |