mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 20:54:29 +00:00
Add missing preg delimiters. Props ridgerunner. fixes #8986 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10459 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -607,7 +607,7 @@ function wp_list_pages($args = '') {
|
||||
$current_page = 0;
|
||||
|
||||
// sanitize, mostly to keep spaces out
|
||||
$r['exclude'] = preg_replace('[^0-9,]', '', $r['exclude']);
|
||||
$r['exclude'] = preg_replace('/[^0-9,]/', '', $r['exclude']);
|
||||
|
||||
// Allow plugins to filter an array of excluded pages
|
||||
$r['exclude'] = implode(',', apply_filters('wp_list_pages_excludes', explode(',', $r['exclude'])));
|
||||
|
||||
Reference in New Issue
Block a user