WordPress.org

Make WordPress Core

Ticket #4691: 4691.diff

File 4691.diff, 444 bytes (added by Nazgul, 11 years ago)
  • wp-admin/link-import.php

     
    7373
    7474<h2><?php _e('Importing...') ?></h2>
    7575<?php
    76                 $cat_id = $_POST['cat_id'];
    77                 if ( $cat_id == '' || $cat_id == 0 )
     76                $cat_id = (int) $_POST['cat_id'];
     77                if ( $cat_id < 1 )
    7878                        $cat_id  = 1;
    7979
    8080                $opml_url = $_POST['opml_url'];