Permalink
Browse files

Fixed bug that caused alternate downloads to be limited to 3

  • Loading branch information...
1 parent 1d22019 commit 6e007b0cab888ef5bb4142f10cfea881691b88fa KevinLenihan committed Nov 5, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/class.wp-publication-archive.php
@@ -701,7 +701,7 @@ public static function save_meta( $post_id ) {
// Handle alternate uploads
delete_post_meta( $post_id, 'wpa-upload_alternates' );
if ( isset( $_POST['wpa-alternates'] ) ) {
- for ( $i = 0; $i <= count( $_POST['wpa-alternates'] ); $i++ ) {
+ for ( $i = 0; $i <= count( $_POST['wpa-alternates']['url'] ); $i++ ) {
$description = $_POST['wpa-alternates']['description'][ $i ];
$url = $_POST['wpa-alternates']['url'][ $i ];
@@ -1061,4 +1061,4 @@ public static function custom_excerpt_length( $length ) {
return apply_filters( 'wpa-summary-length', $length );
}
-}
+}

0 comments on commit 6e007b0

Please sign in to comment.