Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update edit attachment URL's.

  • Loading branch information...
commit 6a47ca919edace264707da9ab3f0fa5f85b59eb0 1 parent 7cfe088
Michael Sisk authored
View
2  -/php/config.php
@@ -421,7 +421,7 @@ public function collection_image() {
if ( self::$config[ 'collections' ][ $_GET[ 'post_type' ] ][ 'image' ] ) {
printf( '<a href="%s">%s</a><br>',
- esc_url( add_query_arg( array( 'attachment_id' => self::$config[ 'collections' ][ $_GET[ 'post_type' ] ][ 'image' ], 'action' => 'edit' ), admin_url( 'media.php' ) ) ),
+ esc_url( add_query_arg( array( 'post' => self::$config[ 'collections' ][ $_GET[ 'post_type' ] ][ 'image' ], 'action' => 'edit' ), admin_url( 'post.php' ) ) ),
wp_get_attachment_image( self::$config[ 'collections' ][ $_GET[ 'post_type' ] ][ 'image' ] )
);
}
View
2  -/php/media.php
@@ -223,7 +223,7 @@ public function admin_enqueue_scripts() {
}
}
- /** Add detach option to media table.
+ /** Add regenerate and detach options to media table.
*
* This feature is not Webcomic-specific; any attached media object
* will gain a functional Detach option. With luck a future
View
2  -/php/posts.php
@@ -444,7 +444,7 @@ public function manage_custom_column( $column, $id ) {
if ( $attachments = self::get_attachments( $id ) ) {
foreach ( $attachments as $attachment ) {
printf( '<a href="%s">%s</a>',
- esc_url( add_query_arg( array( 'attachment_id' => $attachment->ID, 'action' => 'edit' ), admin_url( 'media.php' ) ) ),
+ esc_url( add_query_arg( array( 'post' => $attachment->ID, 'action' => 'edit' ), admin_url( 'post.php' ) ) ),
wp_get_attachment_image( $attachment->ID )
);
}
View
4 -/php/taxonomy.php
@@ -340,7 +340,7 @@ public function edit_form_fields( $term, $taxonomy ) {
<?php
if ( $term->webcomic_image ) {
printf( '<a href="%s">%s</a><br>',
- esc_url( add_query_arg( array( 'attachment_id' => $term->webcomic_image, 'action' => 'edit' ), admin_url( 'media.php' ) ) ),
+ esc_url( add_query_arg( array( 'post' => $term->webcomic_image, 'action' => 'edit' ), admin_url( 'post.php' ) ) ),
wp_get_attachment_image( $term->webcomic_image )
);
}
@@ -387,7 +387,7 @@ public function storyline_row_actions( $actions, $term ) {
public function manage_custom_column( $value, $column, $id ) {
if ( 'webcomic_image' === $column and isset( self::$config[ 'terms' ][ $id ][ 'image' ] ) and $image = wp_get_attachment_image( self::$config[ 'terms' ][ $id ][ 'image' ] ) ) {
echo current_user_can( 'edit_post', self::$config[ 'terms' ][ $id ][ 'image' ] ) ? sprintf( '<a href="%s">%s</a>',
- esc_url( add_query_arg( array( 'attachment_id' => self::$config[ 'terms' ][ $id ][ 'image' ], 'action' => 'edit' ), admin_url( 'media.php' ) ) ),
+ esc_url( add_query_arg( array( 'post' => self::$config[ 'terms' ][ $id ][ 'image' ], 'action' => 'edit' ), admin_url( 'post.php' ) ) ),
$image
) : $image;
}
Please sign in to comment.
Something went wrong with that request. Please try again.