WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/06/2004 01:10:52 PM (17 years ago)
Author:
donncha
Message:

Check if $uris is an array.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r1753 r1757  
    12511251
    12521252    $rewrite_rules = array();
    1253     foreach ($uris as $uri => $pagename) {
    1254         $rewrite_rules += array($uri . '/?$' => "index.php?pagename=$pagename");
    1255     }
     1253        if( is_array( $uris ) )
     1254        {
     1255            foreach ($uris as $uri => $pagename) {
     1256                $rewrite_rules += array($uri . '/?$' => "index.php?pagename=$pagename");
     1257            }
     1258        }
    12561259
    12571260    return $rewrite_rules;
Note: See TracChangeset for help on using the changeset viewer.