7.4.33 | Linux x86_64
Server128.199.10.0
Userwww-data (uid:33)
PHP7.4.33 (apache2handler)
Terminal
Upload
Files: /var/www/html/wp-admin
View: options-media.php
<?php /** * Media settings administration panel. * * @package WordPress * @subpackage Administration */ /** WordPress Administration Bootstrap */ require_once __DIR__ . '/admin.php'; if ( ! current_user_can( 'manage_options' ) ) { wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); } // Used in the HTML title tag. $title = __( 'Media Settings' ); $parent_file = 'options-general.php'; $media_options_help = '<p>' . __( 'You can set maximum sizes for images inserted into your written content; you can also insert an image as Full Size.' ) . '</p>'; if ( ! is_multisite() && ( get_option( 'upload_url_path' ) || get_option( 'upload_path' ) && 'wp-content/uploads' !== get_option( 'upload_path' ) ) ) { $media_options_help .= '<p>' . __( 'Uploading Files allows you to choose the folder and path for storing your uploaded files.' ) . '</p>'; } $media_options_help .= '<p>' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '</p>'; get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => $media_options_help, ) ); get_current_screen()->set_help_sidebar( '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . '<p>' . __( '<a href="https://wordpress.org/documentation/article/settings-media-screen/">Documentation on Media Settings</a>' ) . '</p>' . '<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>' ); require_once ABSPATH . 'wp-admin/admin-header.php'; ?> <div class="wrap"> <h1><?php echo esc_html( $title ); ?></h1> <form action="options.php" method="post"> <?php settings_fields( 'media' ); ?> <h2 class="title"><?php _e( 'Image sizes' ); ?></h2> <p><?php _e( 'The sizes listed below determine the maximum dimensions in pixels to use when adding an image to the Media Library.' ); ?></p> <table class="form-table" role="presentation"> <?php $thumbnail_size_title = __( 'Thumbnail size' ); ?> <tr> <th scope="row"><?php echo $thumbnail_size_title; ?></th> <td><fieldset><legend class="screen-reader-text"><span><?php echo $thumbnail_size_title; ?></span></legend> <label for="thumbnail_size_w"><?php _e( 'Width' ); ?></label> <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" /> <br /> <label for="thumbnail_size_h"><?php _e( 'Height' ); ?></label> <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" /> </fieldset> <input name="thumbnail_crop" type="checkbox" id="thumbnail_crop" value="1"<?php checked( '1', get_option( 'thumbnail_crop' ) ); ?> /> <label for="thumbnail_crop"><?php _e( 'Crop thumbnail to exact dimensions (normally thumbnails are proportional)' ); ?></label> </td> </tr> <?php $medium_size_title = __( 'Medium size' ); ?> <tr> <th scope="row"><?php echo $medium_size_title; ?></th> <td><fieldset><legend class="screen-reader-text"><span><?php echo $medium_size_title; ?></span></legend> <label for="medium_size_w"><?php _e( 'Max Width' ); ?></label> <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" /> <br /> <label for="medium_size_h"><?php _e( 'Max Height' ); ?></label> <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" /> </fieldset></td> </tr> <?php $large_size_title = __( 'Large size' ); ?> <tr> <th scope="row"><?php echo $large_size_title; ?></th> <td><fieldset><legend class="screen-reader-text"><span><?php echo $large_size_title; ?></span></legend> <label for="large_size_w"><?php _e( 'Max Width' ); ?></label> <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" /> <br /> <label for="large_size_h"><?php _e( 'Max Height' ); ?></label> <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" /> </fieldset></td> </tr> <?php do_settings_fields( 'media', 'default' ); ?> </table> <?php /** * @global array $wp_settings */ if ( isset( $GLOBALS['wp_settings']['media']['embeds'] ) ) : ?> <h2 class="title"><?php _e( 'Embeds' ); ?></h2> <table class="form-table" role="presentation"> <?php do_settings_fields( 'media', 'embeds' ); ?> </table> <?php endif; ?> <?php if ( ! is_multisite() ) : ?> <h2 class="title"><?php _e( 'Uploading Files' ); ?></h2> <table class="form-table" role="presentation"> <?php /* * If upload_url_path is not the default (empty), * or upload_path is not the default ('wp-content/uploads' or empty), * they can be edited, otherwise they're locked. */ if ( get_option( 'upload_url_path' ) || get_option( 'upload_path' ) && 'wp-content/uploads' !== get_option( 'upload_path' ) ) : ?> <tr> <th scope="row"><label for="upload_path"><?php _e( 'Store uploads in this folder' ); ?></label></th> <td><input name="upload_path" type="text" id="upload_path" value="<?php echo esc_attr( get_option( 'upload_path' ) ); ?>" class="regular-text code" /> <p class="description"> <?php /* translators: %s: wp-content/uploads */ printf( __( 'Default is %s' ), '<code>wp-content/uploads</code>' ); ?> </p> </td> </tr> <tr> <th scope="row"><label for="upload_url_path"><?php _e( 'Full URL path to files' ); ?></label></th> <td><input name="upload_url_path" type="text" id="upload_url_path" value="<?php echo esc_attr( get_option( 'upload_url_path' ) ); ?>" class="regular-text code" /> <p class="description"><?php _e( 'Configuring this is optional. By default, it should be blank.' ); ?></p> </td> </tr> <tr> <td colspan="2" class="td-full"> <?php else : ?> <tr> <td class="td-full"> <?php endif; ?> <label for="uploads_use_yearmonth_folders"> <input name="uploads_use_yearmonth_folders" type="checkbox" id="uploads_use_yearmonth_folders" value="1"<?php checked( '1', get_option( 'uploads_use_yearmonth_folders' ) ); ?> /> <?php _e( 'Organize my uploads into month- and year-based folders' ); ?> </label> </td> </tr> <?php do_settings_fields( 'media', 'uploads' ); ?> </table> <?php endif; ?> <?php do_settings_sections( 'media' ); ?> <?php submit_button(); ?> </form> </div> <?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
NameSizeActions
about.php16KView Edit Del
admin-ajax.php5KView Edit Del
admin-footer.php2.7KView Edit Del
admin-functions.php479BView Edit Del
admin-header.php9.1KView Edit Del
admin-post.php2KView Edit Del
admin.php12.6KView Edit Del
async-upload.php5.5KView Edit Del
authorize-application.php10.1KView Edit Del
comment.php11.4KView Edit Del
contribute.php5.9KView Edit Del
credits.php4.4KView Edit Del
css/--
custom-background.php489BView Edit Del
custom-header.php499BView Edit Del
customize.php11.2KView Edit Del
edit-comments.php14.1KView Edit Del
edit-form-advanced.php28.8KView Edit Del
edit-form-blocks.php14.7KView Edit Del
edit-form-comment.php8.3KView Edit Del
edit-link-form.php6.2KView Edit Del
edit-tag-form.php10.4KView Edit Del
edit-tags.php22KView Edit Del
edit.php19.5KView Edit Del
erase-personal-data.php7.3KView Edit Del
export-personal-data.php7.8KView Edit Del
export.php11KView Edit Del
font-library.php1KView Edit Del
freedoms.php4.8KView Edit Del
images/--
import.php7.6KView Edit Del
includes/--
index.php7.7KView Edit Del
install-helper.php6.8KView Edit Del
install.php17.9KView Edit Del
js/--
link-add.php934BView Edit Del
link-manager.php4.3KView Edit Del
link-parse-opml.php2.6KView Edit Del
link.php2.9KView Edit Del
load-scripts.php2KView Edit Del
load-styles.php2.9KView Edit Del
maint/--
media-new.php3.2KView Edit Del
media-upload.php3.6KView Edit Del
media.php819BView Edit Del
menu-header.php9.8KView Edit Del
menu.php17.7KView Edit Del
moderation.php307BView Edit Del
ms-admin.php196BView Edit Del
ms-delete-site.php4.5KView Edit Del
ms-edit.php216BView Edit Del
ms-options.php229BView Edit Del
ms-sites.php215BView Edit Del
ms-themes.php217BView Edit Del
ms-upgrade-network.php219BView Edit Del
ms-users.php215BView Edit Del
my-sites.php4.7KView Edit Del
nav-menus.php49.1KView Edit Del
network/--
network.php5.4KView Edit Del
options-connectors.php1.1KView Edit Del
options-discussion.php15.9KView Edit Del
options-general.php22.3KView Edit Del
options-head.php621BView Edit Del
options-media.php6.4KView Edit Del
options-permalink.php21.9KView Edit Del
options-privacy.php9.9KView Edit Del
options-reading.php10KView Edit Del
options-writing.php9.1KView Edit Del
options.php13.9KView Edit Del
plugin-editor.php13.8KView Edit Del
plugin-install.php7KView Edit Del
plugins.php30KView Edit Del
post-new.php2.7KView Edit Del
post.php10KView Edit Del
press-this.php2.4KView Edit Del
privacy-policy-guide.php3.7KView Edit Del
privacy.php2.8KView Edit Del
profile.php283BView Edit Del
revision.php5.7KView Edit Del
setup-config.php17.5KView Edit Del
site-editor.php12.1KView Edit Del
site-health-info.php4.1KView Edit Del
site-health.php10.2KView Edit Del
term.php2.2KView Edit Del
theme-editor.php16.9KView Edit Del
theme-install.php23.6KView Edit Del
themes.php47.9KView Edit Del
tools.php3.4KView Edit Del
update-core.php45.1KView Edit Del
update.php12.8KView Edit Del
upgrade-functions.php341BView Edit Del
upgrade.php6.2KView Edit Del
upload.php14.9KView Edit Del
user/--
user-edit.php40.4KView Edit Del
user-new.php24.1KView Edit Del
users.php23.4KView Edit Del
widgets-form-blocks.php5.1KView Edit Del
widgets-form.php19.1KView Edit Del
widgets.php1.1KView Edit Del