Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-inclu...
File: class-wp-customize-control.php
<?php checked( $this->value() ); ?>
[500] Fix | Delete
/>
[501] Fix | Delete
<label for="<?php echo esc_attr( $input_id ); ?>"><?php echo esc_html( $this->label ); ?></label>
[502] Fix | Delete
<?php if ( ! empty( $this->description ) ) : ?>
[503] Fix | Delete
<span id="<?php echo esc_attr( $description_id ); ?>" class="description customize-control-description"><?php echo $this->description; ?></span>
[504] Fix | Delete
<?php endif; ?>
[505] Fix | Delete
</span>
[506] Fix | Delete
<?php
[507] Fix | Delete
break;
[508] Fix | Delete
case 'radio':
[509] Fix | Delete
if ( empty( $this->choices ) ) {
[510] Fix | Delete
return;
[511] Fix | Delete
}
[512] Fix | Delete
[513] Fix | Delete
$name = '_customize-radio-' . $this->id;
[514] Fix | Delete
?>
[515] Fix | Delete
<?php if ( ! empty( $this->label ) ) : ?>
[516] Fix | Delete
<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
[517] Fix | Delete
<?php endif; ?>
[518] Fix | Delete
<?php if ( ! empty( $this->description ) ) : ?>
[519] Fix | Delete
<span id="<?php echo esc_attr( $description_id ); ?>" class="description customize-control-description"><?php echo $this->description; ?></span>
[520] Fix | Delete
<?php endif; ?>
[521] Fix | Delete
[522] Fix | Delete
<?php foreach ( $this->choices as $value => $label ) : ?>
[523] Fix | Delete
<span class="customize-inside-control-row">
[524] Fix | Delete
<input
[525] Fix | Delete
id="<?php echo esc_attr( $input_id . '-radio-' . $value ); ?>"
[526] Fix | Delete
type="radio"
[527] Fix | Delete
<?php echo $describedby_attr; ?>
[528] Fix | Delete
value="<?php echo esc_attr( $value ); ?>"
[529] Fix | Delete
name="<?php echo esc_attr( $name ); ?>"
[530] Fix | Delete
<?php $this->link(); ?>
[531] Fix | Delete
<?php checked( $this->value(), $value ); ?>
[532] Fix | Delete
/>
[533] Fix | Delete
<label for="<?php echo esc_attr( $input_id . '-radio-' . $value ); ?>"><?php echo esc_html( $label ); ?></label>
[534] Fix | Delete
</span>
[535] Fix | Delete
<?php endforeach; ?>
[536] Fix | Delete
<?php
[537] Fix | Delete
break;
[538] Fix | Delete
case 'select':
[539] Fix | Delete
if ( empty( $this->choices ) ) {
[540] Fix | Delete
return;
[541] Fix | Delete
}
[542] Fix | Delete
[543] Fix | Delete
?>
[544] Fix | Delete
<?php if ( ! empty( $this->label ) ) : ?>
[545] Fix | Delete
<label for="<?php echo esc_attr( $input_id ); ?>" class="customize-control-title"><?php echo esc_html( $this->label ); ?></label>
[546] Fix | Delete
<?php endif; ?>
[547] Fix | Delete
<?php if ( ! empty( $this->description ) ) : ?>
[548] Fix | Delete
<span id="<?php echo esc_attr( $description_id ); ?>" class="description customize-control-description"><?php echo $this->description; ?></span>
[549] Fix | Delete
<?php endif; ?>
[550] Fix | Delete
[551] Fix | Delete
<select id="<?php echo esc_attr( $input_id ); ?>" <?php echo $describedby_attr; ?> <?php $this->link(); ?>>
[552] Fix | Delete
<?php
[553] Fix | Delete
foreach ( $this->choices as $value => $label ) {
[554] Fix | Delete
echo '<option value="' . esc_attr( $value ) . '"' . selected( $this->value(), $value, false ) . '>' . esc_html( $label ) . '</option>';
[555] Fix | Delete
}
[556] Fix | Delete
?>
[557] Fix | Delete
</select>
[558] Fix | Delete
<?php
[559] Fix | Delete
break;
[560] Fix | Delete
case 'textarea':
[561] Fix | Delete
?>
[562] Fix | Delete
<?php if ( ! empty( $this->label ) ) : ?>
[563] Fix | Delete
<label for="<?php echo esc_attr( $input_id ); ?>" class="customize-control-title"><?php echo esc_html( $this->label ); ?></label>
[564] Fix | Delete
<?php endif; ?>
[565] Fix | Delete
<?php if ( ! empty( $this->description ) ) : ?>
[566] Fix | Delete
<span id="<?php echo esc_attr( $description_id ); ?>" class="description customize-control-description"><?php echo $this->description; ?></span>
[567] Fix | Delete
<?php endif; ?>
[568] Fix | Delete
<textarea
[569] Fix | Delete
id="<?php echo esc_attr( $input_id ); ?>"
[570] Fix | Delete
rows="5"
[571] Fix | Delete
<?php echo $describedby_attr; ?>
[572] Fix | Delete
<?php $this->input_attrs(); ?>
[573] Fix | Delete
<?php $this->link(); ?>
[574] Fix | Delete
><?php echo esc_textarea( $this->value() ); ?></textarea>
[575] Fix | Delete
<?php
[576] Fix | Delete
break;
[577] Fix | Delete
case 'dropdown-pages':
[578] Fix | Delete
?>
[579] Fix | Delete
<?php if ( ! empty( $this->label ) ) : ?>
[580] Fix | Delete
<label for="<?php echo esc_attr( $input_id ); ?>" class="customize-control-title"><?php echo esc_html( $this->label ); ?></label>
[581] Fix | Delete
<?php endif; ?>
[582] Fix | Delete
<?php if ( ! empty( $this->description ) ) : ?>
[583] Fix | Delete
<span id="<?php echo esc_attr( $description_id ); ?>" class="description customize-control-description"><?php echo $this->description; ?></span>
[584] Fix | Delete
<?php endif; ?>
[585] Fix | Delete
[586] Fix | Delete
<?php
[587] Fix | Delete
$dropdown_name = '_customize-dropdown-pages-' . $this->id;
[588] Fix | Delete
$show_option_none = __( '&mdash; Select &mdash;' );
[589] Fix | Delete
$option_none_value = '0';
[590] Fix | Delete
$dropdown = wp_dropdown_pages(
[591] Fix | Delete
array(
[592] Fix | Delete
'name' => $dropdown_name,
[593] Fix | Delete
'echo' => 0,
[594] Fix | Delete
'show_option_none' => $show_option_none,
[595] Fix | Delete
'option_none_value' => $option_none_value,
[596] Fix | Delete
'selected' => $this->value(),
[597] Fix | Delete
)
[598] Fix | Delete
);
[599] Fix | Delete
if ( empty( $dropdown ) ) {
[600] Fix | Delete
$dropdown = sprintf( '<select id="%1$s" name="%1$s">', esc_attr( $dropdown_name ) );
[601] Fix | Delete
$dropdown .= sprintf( '<option value="%1$s">%2$s</option>', esc_attr( $option_none_value ), esc_html( $show_option_none ) );
[602] Fix | Delete
$dropdown .= '</select>';
[603] Fix | Delete
}
[604] Fix | Delete
[605] Fix | Delete
// Hackily add in the data link parameter.
[606] Fix | Delete
$dropdown = str_replace( '<select', '<select ' . $this->get_link() . ' id="' . esc_attr( $input_id ) . '" ' . $describedby_attr, $dropdown );
[607] Fix | Delete
[608] Fix | Delete
/*
[609] Fix | Delete
* Even more hacikly add auto-draft page stubs.
[610] Fix | Delete
* @todo Eventually this should be removed in favor of the pages being injected into the underlying get_pages() call.
[611] Fix | Delete
* See <https://github.com/xwp/wp-customize-posts/pull/250>.
[612] Fix | Delete
*/
[613] Fix | Delete
$nav_menus_created_posts_setting = $this->manager->get_setting( 'nav_menus_created_posts' );
[614] Fix | Delete
if ( $nav_menus_created_posts_setting && current_user_can( 'publish_pages' ) ) {
[615] Fix | Delete
$auto_draft_page_options = '';
[616] Fix | Delete
foreach ( $nav_menus_created_posts_setting->value() as $auto_draft_page_id ) {
[617] Fix | Delete
$post = get_post( $auto_draft_page_id );
[618] Fix | Delete
if ( $post && 'page' === $post->post_type ) {
[619] Fix | Delete
$auto_draft_page_options .= sprintf( '<option value="%1$s">%2$s</option>', esc_attr( $post->ID ), esc_html( $post->post_title ) );
[620] Fix | Delete
}
[621] Fix | Delete
}
[622] Fix | Delete
if ( $auto_draft_page_options ) {
[623] Fix | Delete
$dropdown = str_replace( '</select>', $auto_draft_page_options . '</select>', $dropdown );
[624] Fix | Delete
}
[625] Fix | Delete
}
[626] Fix | Delete
[627] Fix | Delete
echo $dropdown;
[628] Fix | Delete
?>
[629] Fix | Delete
<?php if ( $this->allow_addition && current_user_can( 'publish_pages' ) && current_user_can( 'edit_theme_options' ) ) : // Currently tied to menus functionality. ?>
[630] Fix | Delete
<button type="button" class="button-link add-new-toggle">
[631] Fix | Delete
<?php
[632] Fix | Delete
/* translators: %s: Add New Page label. */
[633] Fix | Delete
printf( __( '+ %s' ), get_post_type_object( 'page' )->labels->add_new_item );
[634] Fix | Delete
?>
[635] Fix | Delete
</button>
[636] Fix | Delete
<div class="new-content-item-wrapper">
[637] Fix | Delete
<label for="create-input-<?php echo esc_attr( $this->id ); ?>"><?php _e( 'New page title' ); ?></label>
[638] Fix | Delete
<div class="new-content-item">
[639] Fix | Delete
<input type="text" id="create-input-<?php echo esc_attr( $this->id ); ?>" class="create-item-input" >
[640] Fix | Delete
<button type="button" class="button add-content"><?php _e( 'Add' ); ?></button>
[641] Fix | Delete
</div>
[642] Fix | Delete
</div>
[643] Fix | Delete
<?php endif; ?>
[644] Fix | Delete
<?php
[645] Fix | Delete
break;
[646] Fix | Delete
default:
[647] Fix | Delete
?>
[648] Fix | Delete
<?php if ( ! empty( $this->label ) ) : ?>
[649] Fix | Delete
<label for="<?php echo esc_attr( $input_id ); ?>" class="customize-control-title"><?php echo esc_html( $this->label ); ?></label>
[650] Fix | Delete
<?php endif; ?>
[651] Fix | Delete
<?php if ( ! empty( $this->description ) ) : ?>
[652] Fix | Delete
<span id="<?php echo esc_attr( $description_id ); ?>" class="description customize-control-description"><?php echo $this->description; ?></span>
[653] Fix | Delete
<?php endif; ?>
[654] Fix | Delete
<input
[655] Fix | Delete
id="<?php echo esc_attr( $input_id ); ?>"
[656] Fix | Delete
type="<?php echo esc_attr( $this->type ); ?>"
[657] Fix | Delete
<?php echo $describedby_attr; ?>
[658] Fix | Delete
<?php $this->input_attrs(); ?>
[659] Fix | Delete
<?php if ( ! isset( $this->input_attrs['value'] ) ) : ?>
[660] Fix | Delete
value="<?php echo esc_attr( $this->value() ); ?>"
[661] Fix | Delete
<?php endif; ?>
[662] Fix | Delete
<?php $this->link(); ?>
[663] Fix | Delete
/>
[664] Fix | Delete
<?php
[665] Fix | Delete
break;
[666] Fix | Delete
}
[667] Fix | Delete
}
[668] Fix | Delete
[669] Fix | Delete
/**
[670] Fix | Delete
* Render the control's JS template.
[671] Fix | Delete
*
[672] Fix | Delete
* This function is only run for control types that have been registered with
[673] Fix | Delete
* WP_Customize_Manager::register_control_type().
[674] Fix | Delete
*
[675] Fix | Delete
* In the future, this will also print the template for the control's container
[676] Fix | Delete
* element and be override-able.
[677] Fix | Delete
*
[678] Fix | Delete
* @since 4.1.0
[679] Fix | Delete
*/
[680] Fix | Delete
final public function print_template() {
[681] Fix | Delete
?>
[682] Fix | Delete
<script type="text/html" id="tmpl-customize-control-<?php echo esc_attr( $this->type ); ?>-content">
[683] Fix | Delete
<?php $this->content_template(); ?>
[684] Fix | Delete
</script>
[685] Fix | Delete
<?php
[686] Fix | Delete
}
[687] Fix | Delete
[688] Fix | Delete
/**
[689] Fix | Delete
* An Underscore (JS) template for this control's content (but not its container).
[690] Fix | Delete
*
[691] Fix | Delete
* Class variables for this control class are available in the `data` JS object;
[692] Fix | Delete
* export custom variables by overriding WP_Customize_Control::to_json().
[693] Fix | Delete
*
[694] Fix | Delete
* @see WP_Customize_Control::print_template()
[695] Fix | Delete
*
[696] Fix | Delete
* @since 4.1.0
[697] Fix | Delete
*/
[698] Fix | Delete
protected function content_template() {}
[699] Fix | Delete
}
[700] Fix | Delete
[701] Fix | Delete
/**
[702] Fix | Delete
* WP_Customize_Color_Control class.
[703] Fix | Delete
*/
[704] Fix | Delete
require_once ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php';
[705] Fix | Delete
[706] Fix | Delete
/**
[707] Fix | Delete
* WP_Customize_Media_Control class.
[708] Fix | Delete
*/
[709] Fix | Delete
require_once ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php';
[710] Fix | Delete
[711] Fix | Delete
/**
[712] Fix | Delete
* WP_Customize_Upload_Control class.
[713] Fix | Delete
*/
[714] Fix | Delete
require_once ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php';
[715] Fix | Delete
[716] Fix | Delete
/**
[717] Fix | Delete
* WP_Customize_Image_Control class.
[718] Fix | Delete
*/
[719] Fix | Delete
require_once ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php';
[720] Fix | Delete
[721] Fix | Delete
/**
[722] Fix | Delete
* WP_Customize_Background_Image_Control class.
[723] Fix | Delete
*/
[724] Fix | Delete
require_once ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php';
[725] Fix | Delete
[726] Fix | Delete
/**
[727] Fix | Delete
* WP_Customize_Background_Position_Control class.
[728] Fix | Delete
*/
[729] Fix | Delete
require_once ABSPATH . WPINC . '/customize/class-wp-customize-background-position-control.php';
[730] Fix | Delete
[731] Fix | Delete
/**
[732] Fix | Delete
* WP_Customize_Cropped_Image_Control class.
[733] Fix | Delete
*/
[734] Fix | Delete
require_once ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php';
[735] Fix | Delete
[736] Fix | Delete
/**
[737] Fix | Delete
* WP_Customize_Site_Icon_Control class.
[738] Fix | Delete
*/
[739] Fix | Delete
require_once ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php';
[740] Fix | Delete
[741] Fix | Delete
/**
[742] Fix | Delete
* WP_Customize_Header_Image_Control class.
[743] Fix | Delete
*/
[744] Fix | Delete
require_once ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php';
[745] Fix | Delete
[746] Fix | Delete
/**
[747] Fix | Delete
* WP_Customize_Theme_Control class.
[748] Fix | Delete
*/
[749] Fix | Delete
require_once ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php';
[750] Fix | Delete
[751] Fix | Delete
/**
[752] Fix | Delete
* WP_Widget_Area_Customize_Control class.
[753] Fix | Delete
*/
[754] Fix | Delete
require_once ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php';
[755] Fix | Delete
[756] Fix | Delete
/**
[757] Fix | Delete
* WP_Widget_Form_Customize_Control class.
[758] Fix | Delete
*/
[759] Fix | Delete
require_once ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php';
[760] Fix | Delete
[761] Fix | Delete
/**
[762] Fix | Delete
* WP_Customize_Nav_Menu_Control class.
[763] Fix | Delete
*/
[764] Fix | Delete
require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php';
[765] Fix | Delete
[766] Fix | Delete
/**
[767] Fix | Delete
* WP_Customize_Nav_Menu_Item_Control class.
[768] Fix | Delete
*/
[769] Fix | Delete
require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php';
[770] Fix | Delete
[771] Fix | Delete
/**
[772] Fix | Delete
* WP_Customize_Nav_Menu_Location_Control class.
[773] Fix | Delete
*/
[774] Fix | Delete
require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php';
[775] Fix | Delete
[776] Fix | Delete
/**
[777] Fix | Delete
* WP_Customize_Nav_Menu_Name_Control class.
[778] Fix | Delete
*
[779] Fix | Delete
* As this file is deprecated, it will trigger a deprecation notice if instantiated. In a subsequent
[780] Fix | Delete
* release, the require_once here will be removed and _deprecated_file() will be called if file is
[781] Fix | Delete
* required at all.
[782] Fix | Delete
*
[783] Fix | Delete
* @deprecated 4.9.0 This file is no longer used due to new menu creation UX.
[784] Fix | Delete
*/
[785] Fix | Delete
require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php';
[786] Fix | Delete
[787] Fix | Delete
/**
[788] Fix | Delete
* WP_Customize_Nav_Menu_Locations_Control class.
[789] Fix | Delete
*/
[790] Fix | Delete
require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-locations-control.php';
[791] Fix | Delete
[792] Fix | Delete
/**
[793] Fix | Delete
* WP_Customize_Nav_Menu_Auto_Add_Control class.
[794] Fix | Delete
*/
[795] Fix | Delete
require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php';
[796] Fix | Delete
[797] Fix | Delete
/**
[798] Fix | Delete
* WP_Customize_Date_Time_Control class.
[799] Fix | Delete
*/
[800] Fix | Delete
require_once ABSPATH . WPINC . '/customize/class-wp-customize-date-time-control.php';
[801] Fix | Delete
[802] Fix | Delete
/**
[803] Fix | Delete
* WP_Sidebar_Block_Editor_Control class.
[804] Fix | Delete
*/
[805] Fix | Delete
require_once ABSPATH . WPINC . '/customize/class-wp-sidebar-block-editor-control.php';
[806] Fix | Delete
[807] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function