diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-07-27 10:05:23 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-07-27 10:05:23 +0200 |
| commit | 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab (patch) | |
| tree | 39a1a4629749056191c05dfd899f931701b7acf3 /srcs/wordpress/wp-admin/includes/options.php | |
| parent | 5afd237bbd22028b85532b8c0b3fcead49a00764 (diff) | |
| download | ft_server-master.tar.gz ft_server-master.tar.bz2 ft_server-master.zip | |
Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my famillyHEADmaster
Diffstat (limited to 'srcs/wordpress/wp-admin/includes/options.php')
| -rw-r--r-- | srcs/wordpress/wp-admin/includes/options.php | 133 |
1 files changed, 0 insertions, 133 deletions
diff --git a/srcs/wordpress/wp-admin/includes/options.php b/srcs/wordpress/wp-admin/includes/options.php deleted file mode 100644 index 7911abc..0000000 --- a/srcs/wordpress/wp-admin/includes/options.php +++ /dev/null @@ -1,133 +0,0 @@ -<?php -/** - * WordPress Options Administration API. - * - * @package WordPress - * @subpackage Administration - * @since 4.4.0 - */ - -/** - * Output JavaScript to toggle display of additional settings if avatars are disabled. - * - * @since 4.2.0 - */ -function options_discussion_add_js() { - ?> - <script> - (function($){ - var parent = $( '#show_avatars' ), - children = $( '.avatar-settings' ); - parent.change(function(){ - children.toggleClass( 'hide-if-js', ! this.checked ); - }); - })(jQuery); - </script> - <?php -} - -/** - * Display JavaScript on the page. - * - * @since 3.5.0 - */ -function options_general_add_js() { - ?> -<script type="text/javascript"> - jQuery(document).ready(function($){ - var $siteName = $( '#wp-admin-bar-site-name' ).children( 'a' ).first(), - homeURL = ( <?php echo wp_json_encode( get_home_url() ); ?> || '' ).replace( /^(https?:\/\/)?(www\.)?/, '' ); - - $( '#blogname' ).on( 'input', function() { - var title = $.trim( $( this ).val() ) || homeURL; - - // Truncate to 40 characters. - if ( 40 < title.length ) { - title = title.substring( 0, 40 ) + '\u2026'; - } - - $siteName.text( title ); - }); - - $("input[name='date_format']").click(function(){ - if ( "date_format_custom_radio" != $(this).attr("id") ) - $( 'input[name="date_format_custom"]' ).val( $( this ).val() ).closest( 'fieldset' ).find( '.example' ).text( $( this ).parent( 'label' ).children( '.format-i18n' ).text() ); - }); - $( 'input[name="date_format_custom"]' ).on( 'click input', function() { - $( '#date_format_custom_radio' ).prop( 'checked', true ); - }); - - $("input[name='time_format']").click(function(){ - if ( "time_format_custom_radio" != $(this).attr("id") ) - $( 'input[name="time_format_custom"]' ).val( $( this ).val() ).closest( 'fieldset' ).find( '.example' ).text( $( this ).parent( 'label' ).children( '.format-i18n' ).text() ); - }); - - $( 'input[name="time_format_custom"]' ).on( 'click input', function() { - $( '#time_format_custom_radio' ).prop( 'checked', true ); - }); - - $( 'input[name="date_format_custom"], input[name="time_format_custom"]' ).on( 'input', function() { - var format = $( this ), - fieldset = format.closest( 'fieldset' ), - example = fieldset.find( '.example' ), - spinner = fieldset.find( '.spinner' ); - - // Debounce the event callback while users are typing. - clearTimeout( $.data( this, 'timer' ) ); - $( this ).data( 'timer', setTimeout( function() { - // If custom date is not empty. - if ( format.val() ) { - spinner.addClass( 'is-active' ); - - $.post( ajaxurl, { - action: 'date_format_custom' == format.attr( 'name' ) ? 'date_format' : 'time_format', - date : format.val() - }, function( d ) { spinner.removeClass( 'is-active' ); example.text( d ); } ); - } - }, 500 ) ); - } ); - - var languageSelect = $( '#WPLANG' ); - $( 'form' ).submit( function() { - // Don't show a spinner for English and installed languages, - // as there is nothing to download. - if ( ! languageSelect.find( 'option:selected' ).data( 'installed' ) ) { - $( '#submit', this ).after( '<span class="spinner language-install-spinner is-active" />' ); - } - }); - }); -</script> - <?php -} - -/** - * Display JavaScript on the page. - * - * @since 3.5.0 - */ -function options_reading_add_js() { - ?> -<script type="text/javascript"> - jQuery(document).ready(function($){ - var section = $('#front-static-pages'), - staticPage = section.find('input:radio[value="page"]'), - selects = section.find('select'), - check_disabled = function(){ - selects.prop( 'disabled', ! staticPage.prop('checked') ); - }; - check_disabled(); - section.find( 'input:radio' ).change( check_disabled ); - }); -</script> - <?php -} - -/** - * Render the site charset setting. - * - * @since 3.5.0 - */ -function options_reading_blog_charset() { - echo '<input name="blog_charset" type="text" id="blog_charset" value="' . esc_attr( get_option( 'blog_charset' ) ) . '" class="regular-text" />'; - echo '<p class="description">' . __( 'The <a href="https://wordpress.org/support/article/glossary/#character-set">character encoding</a> of your site (UTF-8 is recommended)' ) . '</p>'; -} |
