mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Initialise Variables, Whitespace cleanup, Remove unused variables, Cast start_of_week option to int in sanitization.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13089 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5e339cea52
commit
22e4b1200e
@ -464,6 +464,8 @@ class Plugin_Upgrader extends WP_Upgrader {
|
|||||||
|
|
||||||
$this->maintenance_mode(true);
|
$this->maintenance_mode(true);
|
||||||
|
|
||||||
|
$results = array();
|
||||||
|
|
||||||
$all = count($plugins);
|
$all = count($plugins);
|
||||||
$i = 1;
|
$i = 1;
|
||||||
foreach ( $plugins as $plugin ) {
|
foreach ( $plugins as $plugin ) {
|
||||||
|
@ -1374,7 +1374,6 @@ function make_clickable($ret) {
|
|||||||
* @return string Converted content.
|
* @return string Converted content.
|
||||||
*/
|
*/
|
||||||
function wp_rel_nofollow( $text ) {
|
function wp_rel_nofollow( $text ) {
|
||||||
global $wpdb;
|
|
||||||
// This is a pre save filter, so text is already escaped.
|
// This is a pre save filter, so text is already escaped.
|
||||||
$text = stripslashes($text);
|
$text = stripslashes($text);
|
||||||
$text = preg_replace_callback('|<a (.+?)>|i', 'wp_rel_nofollow_callback', $text);
|
$text = preg_replace_callback('|<a (.+?)>|i', 'wp_rel_nofollow_callback', $text);
|
||||||
@ -2470,6 +2469,7 @@ function sanitize_option($option, $value) {
|
|||||||
case 'comments_per_page':
|
case 'comments_per_page':
|
||||||
case 'thread_comments_depth':
|
case 'thread_comments_depth':
|
||||||
case 'users_can_register':
|
case 'users_can_register':
|
||||||
|
case 'start_of_week':
|
||||||
$value = absint( $value );
|
$value = absint( $value );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user