36 ) |
36 ) |
37 ); |
37 ); |
38 |
38 |
39 get_current_screen()->set_help_sidebar( |
39 get_current_screen()->set_help_sidebar( |
40 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
40 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
41 '<p>' . __( '<a href="https://wordpress.org/support/article/settings-media-screen/">Documentation on Media Settings</a>' ) . '</p>' . |
41 '<p>' . __( '<a href="https://wordpress.org/documentation/article/settings-media-screen/">Documentation on Media Settings</a>' ) . '</p>' . |
42 '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
42 '<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>' |
43 ); |
43 ); |
44 |
44 |
45 require_once ABSPATH . 'wp-admin/admin-header.php'; |
45 require_once ABSPATH . 'wp-admin/admin-header.php'; |
46 |
46 |
47 ?> |
47 ?> |
56 <p><?php _e( 'The sizes listed below determine the maximum dimensions in pixels to use when adding an image to the Media Library.' ); ?></p> |
56 <p><?php _e( 'The sizes listed below determine the maximum dimensions in pixels to use when adding an image to the Media Library.' ); ?></p> |
57 |
57 |
58 <table class="form-table" role="presentation"> |
58 <table class="form-table" role="presentation"> |
59 <tr> |
59 <tr> |
60 <th scope="row"><?php _e( 'Thumbnail size' ); ?></th> |
60 <th scope="row"><?php _e( 'Thumbnail size' ); ?></th> |
61 <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Thumbnail size' ); ?></span></legend> |
61 <td><fieldset><legend class="screen-reader-text"><span> |
|
62 <?php |
|
63 /* translators: Hidden accessibility text. */ |
|
64 _e( 'Thumbnail size' ); |
|
65 ?> |
|
66 </span></legend> |
62 <label for="thumbnail_size_w"><?php _e( 'Width' ); ?></label> |
67 <label for="thumbnail_size_w"><?php _e( 'Width' ); ?></label> |
63 <input name="thumbnail_size_w" type="number" step="1" min="0" id="thumbnail_size_w" value="<?php form_option( 'thumbnail_size_w' ); ?>" class="small-text" /> |
68 <input name="thumbnail_size_w" type="number" step="1" min="0" id="thumbnail_size_w" value="<?php form_option( 'thumbnail_size_w' ); ?>" class="small-text" /> |
64 <br /> |
69 <br /> |
65 <label for="thumbnail_size_h"><?php _e( 'Height' ); ?></label> |
70 <label for="thumbnail_size_h"><?php _e( 'Height' ); ?></label> |
66 <input name="thumbnail_size_h" type="number" step="1" min="0" id="thumbnail_size_h" value="<?php form_option( 'thumbnail_size_h' ); ?>" class="small-text" /> |
71 <input name="thumbnail_size_h" type="number" step="1" min="0" id="thumbnail_size_h" value="<?php form_option( 'thumbnail_size_h' ); ?>" class="small-text" /> |
70 </td> |
75 </td> |
71 </tr> |
76 </tr> |
72 |
77 |
73 <tr> |
78 <tr> |
74 <th scope="row"><?php _e( 'Medium size' ); ?></th> |
79 <th scope="row"><?php _e( 'Medium size' ); ?></th> |
75 <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Medium size' ); ?></span></legend> |
80 <td><fieldset><legend class="screen-reader-text"><span> |
|
81 <?php |
|
82 /* translators: Hidden accessibility text. */ |
|
83 _e( 'Medium size' ); |
|
84 ?> |
|
85 </span></legend> |
76 <label for="medium_size_w"><?php _e( 'Max Width' ); ?></label> |
86 <label for="medium_size_w"><?php _e( 'Max Width' ); ?></label> |
77 <input name="medium_size_w" type="number" step="1" min="0" id="medium_size_w" value="<?php form_option( 'medium_size_w' ); ?>" class="small-text" /> |
87 <input name="medium_size_w" type="number" step="1" min="0" id="medium_size_w" value="<?php form_option( 'medium_size_w' ); ?>" class="small-text" /> |
78 <br /> |
88 <br /> |
79 <label for="medium_size_h"><?php _e( 'Max Height' ); ?></label> |
89 <label for="medium_size_h"><?php _e( 'Max Height' ); ?></label> |
80 <input name="medium_size_h" type="number" step="1" min="0" id="medium_size_h" value="<?php form_option( 'medium_size_h' ); ?>" class="small-text" /> |
90 <input name="medium_size_h" type="number" step="1" min="0" id="medium_size_h" value="<?php form_option( 'medium_size_h' ); ?>" class="small-text" /> |
81 </fieldset></td> |
91 </fieldset></td> |
82 </tr> |
92 </tr> |
83 |
93 |
84 <tr> |
94 <tr> |
85 <th scope="row"><?php _e( 'Large size' ); ?></th> |
95 <th scope="row"><?php _e( 'Large size' ); ?></th> |
86 <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Large size' ); ?></span></legend> |
96 <td><fieldset><legend class="screen-reader-text"><span> |
|
97 <?php |
|
98 /* translators: Hidden accessibility text. */ |
|
99 _e( 'Large size' ); |
|
100 ?> |
|
101 </span></legend> |
87 <label for="large_size_w"><?php _e( 'Max Width' ); ?></label> |
102 <label for="large_size_w"><?php _e( 'Max Width' ); ?></label> |
88 <input name="large_size_w" type="number" step="1" min="0" id="large_size_w" value="<?php form_option( 'large_size_w' ); ?>" class="small-text" /> |
103 <input name="large_size_w" type="number" step="1" min="0" id="large_size_w" value="<?php form_option( 'large_size_w' ); ?>" class="small-text" /> |
89 <br /> |
104 <br /> |
90 <label for="large_size_h"><?php _e( 'Max Height' ); ?></label> |
105 <label for="large_size_h"><?php _e( 'Max Height' ); ?></label> |
91 <input name="large_size_h" type="number" step="1" min="0" id="large_size_h" value="<?php form_option( 'large_size_h' ); ?>" class="small-text" /> |
106 <input name="large_size_h" type="number" step="1" min="0" id="large_size_h" value="<?php form_option( 'large_size_h' ); ?>" class="small-text" /> |