Completed
Push — master ( a7cd2a...eabd6c )
by Stephen
38:42
created
src/wp-admin/ms-sites.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
  * @since 3.0.0
8 8
  */
9 9
 
10
-require_once( dirname( __FILE__ ) . '/admin.php' );
10
+require_once(dirname(__FILE__).'/admin.php');
11 11
 
12
-wp_redirect( network_admin_url('sites.php') );
12
+wp_redirect(network_admin_url('sites.php'));
13 13
 exit;
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Multisite sites administration panel.
4
- *
5
- * @package WordPress
6
- * @subpackage Multisite
7
- * @since 3.0.0
8
- */
3
+	 * Multisite sites administration panel.
4
+	 *
5
+	 * @package WordPress
6
+	 * @subpackage Multisite
7
+	 * @since 3.0.0
8
+	 */
9 9
 
10 10
 require_once( dirname( __FILE__ ) . '/admin.php' );
11 11
 
Please login to merge, or discard this patch.
src/wp-admin/media.php 4 patches
Switch Indentation   +76 added lines, -76 removed lines patch added patch discarded remove patch
@@ -15,87 +15,87 @@  discard block
 block discarded – undo
15 15
 wp_reset_vars(array('action'));
16 16
 
17 17
 switch ( $action ) {
18
-case 'editattachment' :
19
-	$attachment_id = (int) $_POST['attachment_id'];
20
-	check_admin_referer('media-form');
21
-
22
-	if ( !current_user_can('edit_post', $attachment_id) )
23
-		wp_die ( __('You are not allowed to edit this attachment.') );
24
-
25
-	$errors = media_upload_form_handler();
26
-
27
-	if ( empty($errors) ) {
28
-		$location = 'media.php';
29
-		if ( $referer = wp_get_original_referer() ) {
30
-			if ( false !== strpos($referer, 'upload.php') || ( url_to_postid($referer) == $attachment_id )  )
31
-				$location = $referer;
32
-		}
33
-		if ( false !== strpos($location, 'upload.php') ) {
34
-			$location = remove_query_arg('message', $location);
35
-			$location = add_query_arg('posted',	$attachment_id, $location);
36
-		} elseif ( false !== strpos($location, 'media.php') ) {
37
-			$location = add_query_arg('message', 'updated', $location);
18
+	case 'editattachment' :
19
+		$attachment_id = (int) $_POST['attachment_id'];
20
+		check_admin_referer('media-form');
21
+
22
+		if ( !current_user_can('edit_post', $attachment_id) )
23
+			wp_die ( __('You are not allowed to edit this attachment.') );
24
+
25
+		$errors = media_upload_form_handler();
26
+
27
+		if ( empty($errors) ) {
28
+			$location = 'media.php';
29
+			if ( $referer = wp_get_original_referer() ) {
30
+				if ( false !== strpos($referer, 'upload.php') || ( url_to_postid($referer) == $attachment_id )  )
31
+					$location = $referer;
32
+			}
33
+			if ( false !== strpos($location, 'upload.php') ) {
34
+				$location = remove_query_arg('message', $location);
35
+				$location = add_query_arg('posted',	$attachment_id, $location);
36
+			} elseif ( false !== strpos($location, 'media.php') ) {
37
+				$location = add_query_arg('message', 'updated', $location);
38
+			}
39
+			wp_redirect($location);
40
+			exit;
38 41
 		}
39
-		wp_redirect($location);
40
-		exit;
41
-	}
42 42
 
43
-	// No break.
44
-case 'edit' :
45
-	$title = __('Edit Media');
43
+		// No break.
44
+	case 'edit' :
45
+		$title = __('Edit Media');
46 46
 
47
-	if ( empty($errors) )
48
-		$errors = null;
47
+		if ( empty($errors) )
48
+			$errors = null;
49 49
 
50
-	if ( empty( $_GET['attachment_id'] ) ) {
51
-		wp_redirect( admin_url('upload.php') );
52
-		exit();
53
-	}
54
-	$att_id = (int) $_GET['attachment_id'];
55
-
56
-	if ( !current_user_can('edit_post', $att_id) )
57
-		wp_die ( __('You are not allowed to edit this attachment.') );
58
-
59
-	$att = get_post($att_id);
60
-
61
-	if ( empty($att->ID) ) wp_die( __('You attempted to edit an attachment that doesn&#8217;t exist. Perhaps it was deleted?') );
62
-	if ( 'attachment' !== $att->post_type ) wp_die( __('You attempted to edit an item that isn&#8217;t an attachment. Please go back and try again.') );
63
-	if ( $att->post_status == 'trash' ) wp_die( __('You can&#8217;t edit this attachment because it is in the Trash. Please move it out of the Trash and try again.') );
64
-
65
-	add_filter('attachment_fields_to_edit', 'media_single_attachment_fields_to_edit', 10, 2);
66
-
67
-	wp_enqueue_script( 'wp-ajax-response' );
68
-	wp_enqueue_script('image-edit');
69
-	wp_enqueue_style('imgareaselect');
70
-
71
-	get_current_screen()->add_help_tab( array(
72
-		'id'      => 'overview',
73
-		'title'   => __('Overview'),
74
-		'content' =>
75
-			'<p>' . __('This screen allows you to edit five fields for metadata in a file within the media library.') . '</p>' .
76
-			'<p>' . __('For images only, you can click on Edit Image under the thumbnail to expand out an inline image editor with icons for cropping, rotating, or flipping the image as well as for undoing and redoing. The boxes on the right give you more options for scaling the image, for cropping it, and for cropping the thumbnail in a different way than you crop the original image. You can click on Help in those boxes to get more information.') . '</p>' .
77
-			'<p>' . __('Note that you crop the image by clicking on it (the Crop icon is already selected) and dragging the cropping frame to select the desired part. Then click Save to retain the cropping.') . '</p>' .
78
-			'<p>' . __('Remember to click Update Media to save metadata entered or changed.') . '</p>'
79
-	) );
80
-
81
-	get_current_screen()->set_help_sidebar(
82
-	'<p><strong>' . __('For more information:') . '</strong></p>' .
83
-	'<p>' . __('<a href="https://codex.wordpress.org/Media_Add_New_Screen#Edit_Media" target="_blank">Documentation on Edit Media</a>') . '</p>' .
84
-	'<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
85
-	);
86
-
87
-	require( ABSPATH . 'wp-admin/admin-header.php' );
88
-
89
-	$parent_file = 'upload.php';
90
-	$message = '';
91
-	$class = '';
92
-	if ( isset($_GET['message']) ) {
93
-		switch ( $_GET['message'] ) {
50
+		if ( empty( $_GET['attachment_id'] ) ) {
51
+			wp_redirect( admin_url('upload.php') );
52
+			exit();
53
+		}
54
+		$att_id = (int) $_GET['attachment_id'];
55
+
56
+		if ( !current_user_can('edit_post', $att_id) )
57
+			wp_die ( __('You are not allowed to edit this attachment.') );
58
+
59
+		$att = get_post($att_id);
60
+
61
+		if ( empty($att->ID) ) wp_die( __('You attempted to edit an attachment that doesn&#8217;t exist. Perhaps it was deleted?') );
62
+		if ( 'attachment' !== $att->post_type ) wp_die( __('You attempted to edit an item that isn&#8217;t an attachment. Please go back and try again.') );
63
+		if ( $att->post_status == 'trash' ) wp_die( __('You can&#8217;t edit this attachment because it is in the Trash. Please move it out of the Trash and try again.') );
64
+
65
+		add_filter('attachment_fields_to_edit', 'media_single_attachment_fields_to_edit', 10, 2);
66
+
67
+		wp_enqueue_script( 'wp-ajax-response' );
68
+		wp_enqueue_script('image-edit');
69
+		wp_enqueue_style('imgareaselect');
70
+
71
+		get_current_screen()->add_help_tab( array(
72
+			'id'      => 'overview',
73
+			'title'   => __('Overview'),
74
+			'content' =>
75
+				'<p>' . __('This screen allows you to edit five fields for metadata in a file within the media library.') . '</p>' .
76
+				'<p>' . __('For images only, you can click on Edit Image under the thumbnail to expand out an inline image editor with icons for cropping, rotating, or flipping the image as well as for undoing and redoing. The boxes on the right give you more options for scaling the image, for cropping it, and for cropping the thumbnail in a different way than you crop the original image. You can click on Help in those boxes to get more information.') . '</p>' .
77
+				'<p>' . __('Note that you crop the image by clicking on it (the Crop icon is already selected) and dragging the cropping frame to select the desired part. Then click Save to retain the cropping.') . '</p>' .
78
+				'<p>' . __('Remember to click Update Media to save metadata entered or changed.') . '</p>'
79
+		) );
80
+
81
+		get_current_screen()->set_help_sidebar(
82
+		'<p><strong>' . __('For more information:') . '</strong></p>' .
83
+		'<p>' . __('<a href="https://codex.wordpress.org/Media_Add_New_Screen#Edit_Media" target="_blank">Documentation on Edit Media</a>') . '</p>' .
84
+		'<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
85
+		);
86
+
87
+		require( ABSPATH . 'wp-admin/admin-header.php' );
88
+
89
+		$parent_file = 'upload.php';
90
+		$message = '';
91
+		$class = '';
92
+		if ( isset($_GET['message']) ) {
93
+			switch ( $_GET['message'] ) {
94 94
 			case 'updated' :
95 95
 				$message = __('Media attachment updated.');
96 96
 				$class = 'updated';
97 97
 				break;
98
-		}
98
+			}
99 99
 	}
100 100
 	if ( $message )
101 101
 		echo "<div id='message' class='$class'><p>$message</p></div>\n";
@@ -139,8 +139,8 @@  discard block
 block discarded – undo
139 139
 
140 140
 	exit;
141 141
 
142
-default:
143
-	wp_redirect( admin_url('upload.php') );
144
-	exit;
142
+	default:
143
+		wp_redirect( admin_url('upload.php') );
144
+		exit;
145 145
 
146 146
 }
Please login to merge, or discard this patch.
Spacing   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -7,33 +7,33 @@  discard block
 block discarded – undo
7 7
  */
8 8
 
9 9
 /** Load WordPress Administration Bootstrap */
10
-require_once( dirname( __FILE__ ) . '/admin.php' );
10
+require_once(dirname(__FILE__).'/admin.php');
11 11
 
12 12
 $parent_file = 'upload.php';
13 13
 $submenu_file = 'upload.php';
14 14
 
15 15
 wp_reset_vars(array('action'));
16 16
 
17
-switch ( $action ) {
17
+switch ($action) {
18 18
 case 'editattachment' :
19 19
 	$attachment_id = (int) $_POST['attachment_id'];
20 20
 	check_admin_referer('media-form');
21 21
 
22
-	if ( !current_user_can('edit_post', $attachment_id) )
23
-		wp_die ( __('You are not allowed to edit this attachment.') );
22
+	if ( ! current_user_can('edit_post', $attachment_id))
23
+		wp_die(__('You are not allowed to edit this attachment.'));
24 24
 
25 25
 	$errors = media_upload_form_handler();
26 26
 
27
-	if ( empty($errors) ) {
27
+	if (empty($errors)) {
28 28
 		$location = 'media.php';
29
-		if ( $referer = wp_get_original_referer() ) {
30
-			if ( false !== strpos($referer, 'upload.php') || ( url_to_postid($referer) == $attachment_id )  )
29
+		if ($referer = wp_get_original_referer()) {
30
+			if (false !== strpos($referer, 'upload.php') || (url_to_postid($referer) == $attachment_id))
31 31
 				$location = $referer;
32 32
 		}
33
-		if ( false !== strpos($location, 'upload.php') ) {
33
+		if (false !== strpos($location, 'upload.php')) {
34 34
 			$location = remove_query_arg('message', $location);
35
-			$location = add_query_arg('posted',	$attachment_id, $location);
36
-		} elseif ( false !== strpos($location, 'media.php') ) {
35
+			$location = add_query_arg('posted', $attachment_id, $location);
36
+		} elseif (false !== strpos($location, 'media.php')) {
37 37
 			$location = add_query_arg('message', 'updated', $location);
38 38
 		}
39 39
 		wp_redirect($location);
@@ -44,60 +44,60 @@  discard block
 block discarded – undo
44 44
 case 'edit' :
45 45
 	$title = __('Edit Media');
46 46
 
47
-	if ( empty($errors) )
47
+	if (empty($errors))
48 48
 		$errors = null;
49 49
 
50
-	if ( empty( $_GET['attachment_id'] ) ) {
51
-		wp_redirect( admin_url('upload.php') );
50
+	if (empty($_GET['attachment_id'])) {
51
+		wp_redirect(admin_url('upload.php'));
52 52
 		exit();
53 53
 	}
54 54
 	$att_id = (int) $_GET['attachment_id'];
55 55
 
56
-	if ( !current_user_can('edit_post', $att_id) )
57
-		wp_die ( __('You are not allowed to edit this attachment.') );
56
+	if ( ! current_user_can('edit_post', $att_id))
57
+		wp_die(__('You are not allowed to edit this attachment.'));
58 58
 
59 59
 	$att = get_post($att_id);
60 60
 
61
-	if ( empty($att->ID) ) wp_die( __('You attempted to edit an attachment that doesn&#8217;t exist. Perhaps it was deleted?') );
62
-	if ( 'attachment' !== $att->post_type ) wp_die( __('You attempted to edit an item that isn&#8217;t an attachment. Please go back and try again.') );
63
-	if ( $att->post_status == 'trash' ) wp_die( __('You can&#8217;t edit this attachment because it is in the Trash. Please move it out of the Trash and try again.') );
61
+	if (empty($att->ID)) wp_die(__('You attempted to edit an attachment that doesn&#8217;t exist. Perhaps it was deleted?'));
62
+	if ('attachment' !== $att->post_type) wp_die(__('You attempted to edit an item that isn&#8217;t an attachment. Please go back and try again.'));
63
+	if ($att->post_status == 'trash') wp_die(__('You can&#8217;t edit this attachment because it is in the Trash. Please move it out of the Trash and try again.'));
64 64
 
65 65
 	add_filter('attachment_fields_to_edit', 'media_single_attachment_fields_to_edit', 10, 2);
66 66
 
67
-	wp_enqueue_script( 'wp-ajax-response' );
67
+	wp_enqueue_script('wp-ajax-response');
68 68
 	wp_enqueue_script('image-edit');
69 69
 	wp_enqueue_style('imgareaselect');
70 70
 
71
-	get_current_screen()->add_help_tab( array(
71
+	get_current_screen()->add_help_tab(array(
72 72
 		'id'      => 'overview',
73 73
 		'title'   => __('Overview'),
74 74
 		'content' =>
75
-			'<p>' . __('This screen allows you to edit five fields for metadata in a file within the media library.') . '</p>' .
76
-			'<p>' . __('For images only, you can click on Edit Image under the thumbnail to expand out an inline image editor with icons for cropping, rotating, or flipping the image as well as for undoing and redoing. The boxes on the right give you more options for scaling the image, for cropping it, and for cropping the thumbnail in a different way than you crop the original image. You can click on Help in those boxes to get more information.') . '</p>' .
77
-			'<p>' . __('Note that you crop the image by clicking on it (the Crop icon is already selected) and dragging the cropping frame to select the desired part. Then click Save to retain the cropping.') . '</p>' .
78
-			'<p>' . __('Remember to click Update Media to save metadata entered or changed.') . '</p>'
79
-	) );
75
+			'<p>'.__('This screen allows you to edit five fields for metadata in a file within the media library.').'</p>'.
76
+			'<p>'.__('For images only, you can click on Edit Image under the thumbnail to expand out an inline image editor with icons for cropping, rotating, or flipping the image as well as for undoing and redoing. The boxes on the right give you more options for scaling the image, for cropping it, and for cropping the thumbnail in a different way than you crop the original image. You can click on Help in those boxes to get more information.').'</p>'.
77
+			'<p>'.__('Note that you crop the image by clicking on it (the Crop icon is already selected) and dragging the cropping frame to select the desired part. Then click Save to retain the cropping.').'</p>'.
78
+			'<p>'.__('Remember to click Update Media to save metadata entered or changed.').'</p>'
79
+	));
80 80
 
81 81
 	get_current_screen()->set_help_sidebar(
82
-	'<p><strong>' . __('For more information:') . '</strong></p>' .
83
-	'<p>' . __('<a href="https://codex.wordpress.org/Media_Add_New_Screen#Edit_Media" target="_blank">Documentation on Edit Media</a>') . '</p>' .
84
-	'<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
82
+	'<p><strong>'.__('For more information:').'</strong></p>'.
83
+	'<p>'.__('<a href="https://codex.wordpress.org/Media_Add_New_Screen#Edit_Media" target="_blank">Documentation on Edit Media</a>').'</p>'.
84
+	'<p>'.__('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>').'</p>'
85 85
 	);
86 86
 
87
-	require( ABSPATH . 'wp-admin/admin-header.php' );
87
+	require(ABSPATH.'wp-admin/admin-header.php');
88 88
 
89 89
 	$parent_file = 'upload.php';
90 90
 	$message = '';
91 91
 	$class = '';
92
-	if ( isset($_GET['message']) ) {
93
-		switch ( $_GET['message'] ) {
92
+	if (isset($_GET['message'])) {
93
+		switch ($_GET['message']) {
94 94
 			case 'updated' :
95 95
 				$message = __('Media attachment updated.');
96 96
 				$class = 'updated';
97 97
 				break;
98 98
 		}
99 99
 	}
100
-	if ( $message )
100
+	if ($message)
101 101
 		echo "<div id='message' class='$class'><p>$message</p></div>\n";
102 102
 
103 103
 ?>
@@ -105,24 +105,24 @@  discard block
 block discarded – undo
105 105
 <div class="wrap">
106 106
 <h1>
107 107
 <?php
108
-echo esc_html( $title );
109
-if ( current_user_can( 'upload_files' ) ) { ?>
108
+echo esc_html($title);
109
+if (current_user_can('upload_files')) { ?>
110 110
 	<a href="media-new.php" class="page-title-action"><?php echo esc_html_x('Add New', 'file'); ?></a>
111 111
 <?php } ?>
112 112
 </h1>
113 113
 
114 114
 <form method="post" class="media-upload-form" id="media-single-form">
115 115
 <p class="submit" style="padding-bottom: 0;">
116
-<?php submit_button( __( 'Update Media' ), 'primary', 'save', false ); ?>
116
+<?php submit_button(__('Update Media'), 'primary', 'save', false); ?>
117 117
 </p>
118 118
 
119 119
 <div class="media-single">
120 120
 <div id="media-item-<?php echo $att_id; ?>" class="media-item">
121
-<?php echo get_media_item( $att_id, array( 'toggle' => false, 'send' => false, 'delete' => false, 'show_title' => false, 'errors' => !empty($errors[$att_id]) ? $errors[$att_id] : null ) ); ?>
121
+<?php echo get_media_item($att_id, array('toggle' => false, 'send' => false, 'delete' => false, 'show_title' => false, 'errors' => ! empty($errors[$att_id]) ? $errors[$att_id] : null)); ?>
122 122
 </div>
123 123
 </div>
124 124
 
125
-<?php submit_button( __( 'Update Media' ), 'primary', 'save' ); ?>
125
+<?php submit_button(__('Update Media'), 'primary', 'save'); ?>
126 126
 <input type="hidden" name="post_id" id="post_id" value="<?php echo isset($post_id) ? esc_attr($post_id) : ''; ?>" />
127 127
 <input type="hidden" name="attachment_id" id="attachment_id" value="<?php echo esc_attr($att_id); ?>" />
128 128
 <input type="hidden" name="action" value="editattachment" />
@@ -135,12 +135,12 @@  discard block
 block discarded – undo
135 135
 
136 136
 <?php
137 137
 
138
-	require( ABSPATH . 'wp-admin/admin-footer.php' );
138
+	require(ABSPATH.'wp-admin/admin-footer.php');
139 139
 
140 140
 	exit;
141 141
 
142 142
 default:
143
-	wp_redirect( admin_url('upload.php') );
143
+	wp_redirect(admin_url('upload.php'));
144 144
 	exit;
145 145
 
146 146
 }
Please login to merge, or discard this patch.
Braces   +24 added lines, -13 removed lines patch added patch discarded remove patch
@@ -19,16 +19,18 @@  discard block
 block discarded – undo
19 19
 	$attachment_id = (int) $_POST['attachment_id'];
20 20
 	check_admin_referer('media-form');
21 21
 
22
-	if ( !current_user_can('edit_post', $attachment_id) )
23
-		wp_die ( __('You are not allowed to edit this attachment.') );
22
+	if ( !current_user_can('edit_post', $attachment_id) ) {
23
+			wp_die ( __('You are not allowed to edit this attachment.') );
24
+	}
24 25
 
25 26
 	$errors = media_upload_form_handler();
26 27
 
27 28
 	if ( empty($errors) ) {
28 29
 		$location = 'media.php';
29 30
 		if ( $referer = wp_get_original_referer() ) {
30
-			if ( false !== strpos($referer, 'upload.php') || ( url_to_postid($referer) == $attachment_id )  )
31
-				$location = $referer;
31
+			if ( false !== strpos($referer, 'upload.php') || ( url_to_postid($referer) == $attachment_id )  ) {
32
+							$location = $referer;
33
+			}
32 34
 		}
33 35
 		if ( false !== strpos($location, 'upload.php') ) {
34 36
 			$location = remove_query_arg('message', $location);
@@ -44,8 +46,9 @@  discard block
 block discarded – undo
44 46
 case 'edit' :
45 47
 	$title = __('Edit Media');
46 48
 
47
-	if ( empty($errors) )
48
-		$errors = null;
49
+	if ( empty($errors) ) {
50
+			$errors = null;
51
+	}
49 52
 
50 53
 	if ( empty( $_GET['attachment_id'] ) ) {
51 54
 		wp_redirect( admin_url('upload.php') );
@@ -53,14 +56,21 @@  discard block
 block discarded – undo
53 56
 	}
54 57
 	$att_id = (int) $_GET['attachment_id'];
55 58
 
56
-	if ( !current_user_can('edit_post', $att_id) )
57
-		wp_die ( __('You are not allowed to edit this attachment.') );
59
+	if ( !current_user_can('edit_post', $att_id) ) {
60
+			wp_die ( __('You are not allowed to edit this attachment.') );
61
+	}
58 62
 
59 63
 	$att = get_post($att_id);
60 64
 
61
-	if ( empty($att->ID) ) wp_die( __('You attempted to edit an attachment that doesn&#8217;t exist. Perhaps it was deleted?') );
62
-	if ( 'attachment' !== $att->post_type ) wp_die( __('You attempted to edit an item that isn&#8217;t an attachment. Please go back and try again.') );
63
-	if ( $att->post_status == 'trash' ) wp_die( __('You can&#8217;t edit this attachment because it is in the Trash. Please move it out of the Trash and try again.') );
65
+	if ( empty($att->ID) ) {
66
+		wp_die( __('You attempted to edit an attachment that doesn&#8217;t exist. Perhaps it was deleted?') );
67
+	}
68
+	if ( 'attachment' !== $att->post_type ) {
69
+		wp_die( __('You attempted to edit an item that isn&#8217;t an attachment. Please go back and try again.') );
70
+	}
71
+	if ( $att->post_status == 'trash' ) {
72
+		wp_die( __('You can&#8217;t edit this attachment because it is in the Trash. Please move it out of the Trash and try again.') );
73
+	}
64 74
 
65 75
 	add_filter('attachment_fields_to_edit', 'media_single_attachment_fields_to_edit', 10, 2);
66 76
 
@@ -97,8 +107,9 @@  discard block
 block discarded – undo
97 107
 				break;
98 108
 		}
99 109
 	}
100
-	if ( $message )
101
-		echo "<div id='message' class='$class'><p>$message</p></div>\n";
110
+	if ( $message ) {
111
+			echo "<div id='message' class='$class'><p>$message</p></div>\n";
112
+	}
102 113
 
103 114
 ?>
104 115
 
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Media management action handler.
4
- *
5
- * @package WordPress
6
- * @subpackage Administration
7
- */
3
+		 * Media management action handler.
4
+		 *
5
+		 * @package WordPress
6
+		 * @subpackage Administration
7
+		 */
8 8
 
9 9
 /** Load WordPress Administration Bootstrap */
10 10
 require_once( dirname( __FILE__ ) . '/admin.php' );
Please login to merge, or discard this patch.
src/wp-admin/user/user-edit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,6 +8,6 @@
 block discarded – undo
8 8
  */
9 9
 
10 10
 /** Load WordPress Administration Bootstrap */
11
-require_once( dirname( __FILE__ ) . '/admin.php' );
11
+require_once(dirname(__FILE__).'/admin.php');
12 12
 
13
-require( ABSPATH . 'wp-admin/user-edit.php' );
13
+require(ABSPATH.'wp-admin/user-edit.php');
Please login to merge, or discard this patch.
src/wp-admin/user/credits.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,6 +8,6 @@
 block discarded – undo
8 8
  */
9 9
 
10 10
 /** Load WordPress Administration Bootstrap */
11
-require_once( dirname( __FILE__ ) . '/admin.php' );
11
+require_once(dirname(__FILE__).'/admin.php');
12 12
 
13
-require( ABSPATH . 'wp-admin/credits.php' );
13
+require(ABSPATH.'wp-admin/credits.php');
Please login to merge, or discard this patch.
src/wp-admin/user/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,6 +8,6 @@
 block discarded – undo
8 8
  */
9 9
 
10 10
 /** Load WordPress Administration Bootstrap */
11
-require_once( dirname( __FILE__ ) . '/admin.php' );
11
+require_once(dirname(__FILE__).'/admin.php');
12 12
 
13
-require( ABSPATH . 'wp-admin/index.php' );
13
+require(ABSPATH.'wp-admin/index.php');
Please login to merge, or discard this patch.
src/wp-admin/user/menu.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,14 +9,14 @@
 block discarded – undo
9 9
 
10 10
 $menu[2] = array(__('Dashboard'), 'exist', 'index.php', '', 'menu-top menu-top-first menu-icon-dashboard', 'menu-dashboard', 'dashicons-dashboard');
11 11
 
12
-$menu[4] = array( '', 'exist', 'separator1', '', 'wp-menu-separator' );
12
+$menu[4] = array('', 'exist', 'separator1', '', 'wp-menu-separator');
13 13
 
14
-$menu[70] = array( __('Profile'), 'exist', 'profile.php', '', 'menu-top menu-icon-users', 'menu-users', 'dashicons-admin-users' );
14
+$menu[70] = array(__('Profile'), 'exist', 'profile.php', '', 'menu-top menu-icon-users', 'menu-users', 'dashicons-admin-users');
15 15
 
16
-$menu[99] = array( '', 'exist', 'separator-last', '', 'wp-menu-separator' );
16
+$menu[99] = array('', 'exist', 'separator-last', '', 'wp-menu-separator');
17 17
 
18 18
 $_wp_real_parent_file['users.php'] = 'profile.php';
19 19
 $compat = array();
20 20
 $submenu = array();
21 21
 
22
-require_once(ABSPATH . 'wp-admin/includes/menu.php');
22
+require_once(ABSPATH.'wp-admin/includes/menu.php');
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Build User Administration Menu.
4
- *
5
- * @package WordPress
6
- * @subpackage Administration
7
- * @since 3.1.0
8
- */
3
+	 * Build User Administration Menu.
4
+	 *
5
+	 * @package WordPress
6
+	 * @subpackage Administration
7
+	 * @since 3.1.0
8
+	 */
9 9
 
10 10
 $menu[2] = array(__('Dashboard'), 'exist', 'index.php', '', 'menu-top menu-top-first menu-icon-dashboard', 'menu-dashboard', 'dashicons-dashboard');
11 11
 
Please login to merge, or discard this patch.
src/wp-admin/user/admin.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -9,14 +9,14 @@  discard block
 block discarded – undo
9 9
 
10 10
 define('WP_USER_ADMIN', true);
11 11
 
12
-require_once( dirname(dirname(__FILE__)) . '/admin.php');
12
+require_once(dirname(dirname(__FILE__)).'/admin.php');
13 13
 
14
-if ( ! is_multisite() ) {
15
-	wp_redirect( admin_url() );
14
+if ( ! is_multisite()) {
15
+	wp_redirect(admin_url());
16 16
 	exit;
17 17
 }
18 18
 
19
-$redirect_user_admin_request = ( ( $current_blog->domain != $current_site->domain ) || ( $current_blog->path != $current_site->path ) );
19
+$redirect_user_admin_request = (($current_blog->domain != $current_site->domain) || ($current_blog->path != $current_site->path));
20 20
 /**
21 21
  * Filter whether to redirect the request to the User Admin in Multisite.
22 22
  *
@@ -24,9 +24,9 @@  discard block
 block discarded – undo
24 24
  *
25 25
  * @param bool $redirect_user_admin_request Whether the request should be redirected.
26 26
  */
27
-$redirect_user_admin_request = apply_filters( 'redirect_user_admin_request', $redirect_user_admin_request );
28
-if ( $redirect_user_admin_request ) {
29
-	wp_redirect( user_admin_url() );
27
+$redirect_user_admin_request = apply_filters('redirect_user_admin_request', $redirect_user_admin_request);
28
+if ($redirect_user_admin_request) {
29
+	wp_redirect(user_admin_url());
30 30
 	exit;
31 31
 }
32
-unset( $redirect_user_admin_request );
32
+unset($redirect_user_admin_request);
Please login to merge, or discard this patch.
src/wp-admin/user/profile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,6 +8,6 @@
 block discarded – undo
8 8
  */
9 9
 
10 10
 /** Load WordPress Administration Bootstrap */
11
-require_once( dirname( __FILE__ ) . '/admin.php' );
11
+require_once(dirname(__FILE__).'/admin.php');
12 12
 
13
-require( ABSPATH . 'wp-admin/profile.php' );
13
+require(ABSPATH.'wp-admin/profile.php');
Please login to merge, or discard this patch.
src/wp-admin/user/freedoms.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,6 +8,6 @@
 block discarded – undo
8 8
  */
9 9
 
10 10
 /** Load WordPress Administration Bootstrap */
11
-require_once( dirname( __FILE__ ) . '/admin.php' );
11
+require_once(dirname(__FILE__).'/admin.php');
12 12
 
13
-require( ABSPATH . 'wp-admin/freedoms.php' );
13
+require(ABSPATH.'wp-admin/freedoms.php');
Please login to merge, or discard this patch.