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-admin/includes
File: class-wp-screen.php
*
[500] Fix | Delete
* @param string $option Option ID.
[501] Fix | Delete
* @param mixed $args Option-dependent arguments.
[502] Fix | Delete
*/
[503] Fix | Delete
public function add_option( $option, $args = array() ) {
[504] Fix | Delete
$this->_options[ $option ] = $args;
[505] Fix | Delete
}
[506] Fix | Delete
[507] Fix | Delete
/**
[508] Fix | Delete
* Removes an option from the screen.
[509] Fix | Delete
*
[510] Fix | Delete
* @since 3.8.0
[511] Fix | Delete
*
[512] Fix | Delete
* @param string $option Option ID.
[513] Fix | Delete
*/
[514] Fix | Delete
public function remove_option( $option ) {
[515] Fix | Delete
unset( $this->_options[ $option ] );
[516] Fix | Delete
}
[517] Fix | Delete
[518] Fix | Delete
/**
[519] Fix | Delete
* Removes all options from the screen.
[520] Fix | Delete
*
[521] Fix | Delete
* @since 3.8.0
[522] Fix | Delete
*/
[523] Fix | Delete
public function remove_options() {
[524] Fix | Delete
$this->_options = array();
[525] Fix | Delete
}
[526] Fix | Delete
[527] Fix | Delete
/**
[528] Fix | Delete
* Gets the options registered for the screen.
[529] Fix | Delete
*
[530] Fix | Delete
* @since 3.8.0
[531] Fix | Delete
*
[532] Fix | Delete
* @return array Options with arguments.
[533] Fix | Delete
*/
[534] Fix | Delete
public function get_options() {
[535] Fix | Delete
return $this->_options;
[536] Fix | Delete
}
[537] Fix | Delete
[538] Fix | Delete
/**
[539] Fix | Delete
* Gets the arguments for an option for the screen.
[540] Fix | Delete
*
[541] Fix | Delete
* @since 3.3.0
[542] Fix | Delete
*
[543] Fix | Delete
* @param string $option Option name.
[544] Fix | Delete
* @param string|false $key Optional. Specific array key for when the option is an array.
[545] Fix | Delete
* Default false.
[546] Fix | Delete
* @return string The option value if set, null otherwise.
[547] Fix | Delete
*/
[548] Fix | Delete
public function get_option( $option, $key = false ) {
[549] Fix | Delete
if ( ! isset( $this->_options[ $option ] ) ) {
[550] Fix | Delete
return null;
[551] Fix | Delete
}
[552] Fix | Delete
if ( $key ) {
[553] Fix | Delete
if ( isset( $this->_options[ $option ][ $key ] ) ) {
[554] Fix | Delete
return $this->_options[ $option ][ $key ];
[555] Fix | Delete
}
[556] Fix | Delete
return null;
[557] Fix | Delete
}
[558] Fix | Delete
return $this->_options[ $option ];
[559] Fix | Delete
}
[560] Fix | Delete
[561] Fix | Delete
/**
[562] Fix | Delete
* Gets the help tabs registered for the screen.
[563] Fix | Delete
*
[564] Fix | Delete
* @since 3.4.0
[565] Fix | Delete
* @since 4.4.0 Help tabs are ordered by their priority.
[566] Fix | Delete
*
[567] Fix | Delete
* @return array Help tabs with arguments.
[568] Fix | Delete
*/
[569] Fix | Delete
public function get_help_tabs() {
[570] Fix | Delete
$help_tabs = $this->_help_tabs;
[571] Fix | Delete
[572] Fix | Delete
$priorities = array();
[573] Fix | Delete
foreach ( $help_tabs as $help_tab ) {
[574] Fix | Delete
if ( isset( $priorities[ $help_tab['priority'] ] ) ) {
[575] Fix | Delete
$priorities[ $help_tab['priority'] ][] = $help_tab;
[576] Fix | Delete
} else {
[577] Fix | Delete
$priorities[ $help_tab['priority'] ] = array( $help_tab );
[578] Fix | Delete
}
[579] Fix | Delete
}
[580] Fix | Delete
[581] Fix | Delete
ksort( $priorities );
[582] Fix | Delete
[583] Fix | Delete
$sorted = array();
[584] Fix | Delete
foreach ( $priorities as $list ) {
[585] Fix | Delete
foreach ( $list as $tab ) {
[586] Fix | Delete
$sorted[ $tab['id'] ] = $tab;
[587] Fix | Delete
}
[588] Fix | Delete
}
[589] Fix | Delete
[590] Fix | Delete
return $sorted;
[591] Fix | Delete
}
[592] Fix | Delete
[593] Fix | Delete
/**
[594] Fix | Delete
* Gets the arguments for a help tab.
[595] Fix | Delete
*
[596] Fix | Delete
* @since 3.4.0
[597] Fix | Delete
*
[598] Fix | Delete
* @param string $id Help Tab ID.
[599] Fix | Delete
* @return array Help tab arguments.
[600] Fix | Delete
*/
[601] Fix | Delete
public function get_help_tab( $id ) {
[602] Fix | Delete
if ( ! isset( $this->_help_tabs[ $id ] ) ) {
[603] Fix | Delete
return null;
[604] Fix | Delete
}
[605] Fix | Delete
return $this->_help_tabs[ $id ];
[606] Fix | Delete
}
[607] Fix | Delete
[608] Fix | Delete
/**
[609] Fix | Delete
* Adds a help tab to the contextual help for the screen.
[610] Fix | Delete
*
[611] Fix | Delete
* Call this on the `load-$pagenow` hook for the relevant screen,
[612] Fix | Delete
* or fetch the `$current_screen` object, or use get_current_screen()
[613] Fix | Delete
* and then call the method from the object.
[614] Fix | Delete
*
[615] Fix | Delete
* You may need to filter `$current_screen` using an if or switch statement
[616] Fix | Delete
* to prevent new help tabs from being added to ALL admin screens.
[617] Fix | Delete
*
[618] Fix | Delete
* @since 3.3.0
[619] Fix | Delete
* @since 4.4.0 The `$priority` argument was added.
[620] Fix | Delete
*
[621] Fix | Delete
* @param array $args {
[622] Fix | Delete
* Array of arguments used to display the help tab.
[623] Fix | Delete
*
[624] Fix | Delete
* @type string $title Title for the tab. Default false.
[625] Fix | Delete
* @type string $id Tab ID. Must be HTML-safe and should be unique for this menu.
[626] Fix | Delete
* It is NOT allowed to contain any empty spaces. Default false.
[627] Fix | Delete
* @type string $content Optional. Help tab content in plain text or HTML. Default empty string.
[628] Fix | Delete
* @type callable $callback Optional. A callback to generate the tab content. Default false.
[629] Fix | Delete
* @type int $priority Optional. The priority of the tab, used for ordering. Default 10.
[630] Fix | Delete
* }
[631] Fix | Delete
*/
[632] Fix | Delete
public function add_help_tab( $args ) {
[633] Fix | Delete
$defaults = array(
[634] Fix | Delete
'title' => false,
[635] Fix | Delete
'id' => false,
[636] Fix | Delete
'content' => '',
[637] Fix | Delete
'callback' => false,
[638] Fix | Delete
'priority' => 10,
[639] Fix | Delete
);
[640] Fix | Delete
$args = wp_parse_args( $args, $defaults );
[641] Fix | Delete
[642] Fix | Delete
$args['id'] = sanitize_html_class( $args['id'] );
[643] Fix | Delete
[644] Fix | Delete
// Ensure we have an ID and title.
[645] Fix | Delete
if ( ! $args['id'] || ! $args['title'] ) {
[646] Fix | Delete
return;
[647] Fix | Delete
}
[648] Fix | Delete
[649] Fix | Delete
// Allows for overriding an existing tab with that ID.
[650] Fix | Delete
$this->_help_tabs[ $args['id'] ] = $args;
[651] Fix | Delete
}
[652] Fix | Delete
[653] Fix | Delete
/**
[654] Fix | Delete
* Removes a help tab from the contextual help for the screen.
[655] Fix | Delete
*
[656] Fix | Delete
* @since 3.3.0
[657] Fix | Delete
*
[658] Fix | Delete
* @param string $id The help tab ID.
[659] Fix | Delete
*/
[660] Fix | Delete
public function remove_help_tab( $id ) {
[661] Fix | Delete
unset( $this->_help_tabs[ $id ] );
[662] Fix | Delete
}
[663] Fix | Delete
[664] Fix | Delete
/**
[665] Fix | Delete
* Removes all help tabs from the contextual help for the screen.
[666] Fix | Delete
*
[667] Fix | Delete
* @since 3.3.0
[668] Fix | Delete
*/
[669] Fix | Delete
public function remove_help_tabs() {
[670] Fix | Delete
$this->_help_tabs = array();
[671] Fix | Delete
}
[672] Fix | Delete
[673] Fix | Delete
/**
[674] Fix | Delete
* Gets the content from a contextual help sidebar.
[675] Fix | Delete
*
[676] Fix | Delete
* @since 3.4.0
[677] Fix | Delete
*
[678] Fix | Delete
* @return string Contents of the help sidebar.
[679] Fix | Delete
*/
[680] Fix | Delete
public function get_help_sidebar() {
[681] Fix | Delete
return $this->_help_sidebar;
[682] Fix | Delete
}
[683] Fix | Delete
[684] Fix | Delete
/**
[685] Fix | Delete
* Adds a sidebar to the contextual help for the screen.
[686] Fix | Delete
*
[687] Fix | Delete
* Call this in template files after admin.php is loaded and before admin-header.php is loaded
[688] Fix | Delete
* to add a sidebar to the contextual help.
[689] Fix | Delete
*
[690] Fix | Delete
* @since 3.3.0
[691] Fix | Delete
*
[692] Fix | Delete
* @param string $content Sidebar content in plain text or HTML.
[693] Fix | Delete
*/
[694] Fix | Delete
public function set_help_sidebar( $content ) {
[695] Fix | Delete
$this->_help_sidebar = $content;
[696] Fix | Delete
}
[697] Fix | Delete
[698] Fix | Delete
/**
[699] Fix | Delete
* Gets the number of layout columns the user has selected.
[700] Fix | Delete
*
[701] Fix | Delete
* The layout_columns option controls the max number and default number of
[702] Fix | Delete
* columns. This method returns the number of columns within that range selected
[703] Fix | Delete
* by the user via Screen Options. If no selection has been made, the default
[704] Fix | Delete
* provisioned in layout_columns is returned. If the screen does not support
[705] Fix | Delete
* selecting the number of layout columns, 0 is returned.
[706] Fix | Delete
*
[707] Fix | Delete
* @since 3.4.0
[708] Fix | Delete
*
[709] Fix | Delete
* @return int Number of columns to display.
[710] Fix | Delete
*/
[711] Fix | Delete
public function get_columns() {
[712] Fix | Delete
return $this->columns;
[713] Fix | Delete
}
[714] Fix | Delete
[715] Fix | Delete
/**
[716] Fix | Delete
* Gets the accessible hidden headings and text used in the screen.
[717] Fix | Delete
*
[718] Fix | Delete
* @since 4.4.0
[719] Fix | Delete
*
[720] Fix | Delete
* @see set_screen_reader_content() For more information on the array format.
[721] Fix | Delete
*
[722] Fix | Delete
* @return string[] An associative array of screen reader text strings.
[723] Fix | Delete
*/
[724] Fix | Delete
public function get_screen_reader_content() {
[725] Fix | Delete
return $this->_screen_reader_content;
[726] Fix | Delete
}
[727] Fix | Delete
[728] Fix | Delete
/**
[729] Fix | Delete
* Gets a screen reader text string.
[730] Fix | Delete
*
[731] Fix | Delete
* @since 4.4.0
[732] Fix | Delete
*
[733] Fix | Delete
* @param string $key Screen reader text array named key.
[734] Fix | Delete
* @return string Screen reader text string.
[735] Fix | Delete
*/
[736] Fix | Delete
public function get_screen_reader_text( $key ) {
[737] Fix | Delete
if ( ! isset( $this->_screen_reader_content[ $key ] ) ) {
[738] Fix | Delete
return null;
[739] Fix | Delete
}
[740] Fix | Delete
return $this->_screen_reader_content[ $key ];
[741] Fix | Delete
}
[742] Fix | Delete
[743] Fix | Delete
/**
[744] Fix | Delete
* Adds accessible hidden headings and text for the screen.
[745] Fix | Delete
*
[746] Fix | Delete
* @since 4.4.0
[747] Fix | Delete
*
[748] Fix | Delete
* @param array $content {
[749] Fix | Delete
* An associative array of screen reader text strings.
[750] Fix | Delete
*
[751] Fix | Delete
* @type string $heading_views Screen reader text for the filter links heading.
[752] Fix | Delete
* Default 'Filter items list'.
[753] Fix | Delete
* @type string $heading_pagination Screen reader text for the pagination heading.
[754] Fix | Delete
* Default 'Items list navigation'.
[755] Fix | Delete
* @type string $heading_list Screen reader text for the items list heading.
[756] Fix | Delete
* Default 'Items list'.
[757] Fix | Delete
* }
[758] Fix | Delete
*/
[759] Fix | Delete
public function set_screen_reader_content( $content = array() ) {
[760] Fix | Delete
$defaults = array(
[761] Fix | Delete
'heading_views' => __( 'Filter items list' ),
[762] Fix | Delete
'heading_pagination' => __( 'Items list navigation' ),
[763] Fix | Delete
'heading_list' => __( 'Items list' ),
[764] Fix | Delete
);
[765] Fix | Delete
$content = wp_parse_args( $content, $defaults );
[766] Fix | Delete
[767] Fix | Delete
$this->_screen_reader_content = $content;
[768] Fix | Delete
}
[769] Fix | Delete
[770] Fix | Delete
/**
[771] Fix | Delete
* Removes all the accessible hidden headings and text for the screen.
[772] Fix | Delete
*
[773] Fix | Delete
* @since 4.4.0
[774] Fix | Delete
*/
[775] Fix | Delete
public function remove_screen_reader_content() {
[776] Fix | Delete
$this->_screen_reader_content = array();
[777] Fix | Delete
}
[778] Fix | Delete
[779] Fix | Delete
/**
[780] Fix | Delete
* Renders the screen's help section.
[781] Fix | Delete
*
[782] Fix | Delete
* This will trigger the deprecated filters for backward compatibility.
[783] Fix | Delete
*
[784] Fix | Delete
* @since 3.3.0
[785] Fix | Delete
*
[786] Fix | Delete
* @global string $screen_layout_columns
[787] Fix | Delete
*/
[788] Fix | Delete
public function render_screen_meta() {
[789] Fix | Delete
[790] Fix | Delete
/**
[791] Fix | Delete
* Filters the legacy contextual help list.
[792] Fix | Delete
*
[793] Fix | Delete
* @since 2.7.0
[794] Fix | Delete
* @deprecated 3.3.0 Use {@see get_current_screen()->add_help_tab()} or
[795] Fix | Delete
* {@see get_current_screen()->remove_help_tab()} instead.
[796] Fix | Delete
*
[797] Fix | Delete
* @param array $old_compat_help Old contextual help.
[798] Fix | Delete
* @param WP_Screen $screen Current WP_Screen instance.
[799] Fix | Delete
*/
[800] Fix | Delete
self::$_old_compat_help = apply_filters_deprecated(
[801] Fix | Delete
'contextual_help_list',
[802] Fix | Delete
array( self::$_old_compat_help, $this ),
[803] Fix | Delete
'3.3.0',
[804] Fix | Delete
'get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab()'
[805] Fix | Delete
);
[806] Fix | Delete
[807] Fix | Delete
$old_help = isset( self::$_old_compat_help[ $this->id ] ) ? self::$_old_compat_help[ $this->id ] : '';
[808] Fix | Delete
[809] Fix | Delete
/**
[810] Fix | Delete
* Filters the legacy contextual help text.
[811] Fix | Delete
*
[812] Fix | Delete
* @since 2.7.0
[813] Fix | Delete
* @deprecated 3.3.0 Use {@see get_current_screen()->add_help_tab()} or
[814] Fix | Delete
* {@see get_current_screen()->remove_help_tab()} instead.
[815] Fix | Delete
*
[816] Fix | Delete
* @param string $old_help Help text that appears on the screen.
[817] Fix | Delete
* @param string $screen_id Screen ID.
[818] Fix | Delete
* @param WP_Screen $screen Current WP_Screen instance.
[819] Fix | Delete
*/
[820] Fix | Delete
$old_help = apply_filters_deprecated(
[821] Fix | Delete
'contextual_help',
[822] Fix | Delete
array( $old_help, $this->id, $this ),
[823] Fix | Delete
'3.3.0',
[824] Fix | Delete
'get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab()'
[825] Fix | Delete
);
[826] Fix | Delete
[827] Fix | Delete
// Default help only if there is no old-style block of text and no new-style help tabs.
[828] Fix | Delete
if ( empty( $old_help ) && ! $this->get_help_tabs() ) {
[829] Fix | Delete
[830] Fix | Delete
/**
[831] Fix | Delete
* Filters the default legacy contextual help text.
[832] Fix | Delete
*
[833] Fix | Delete
* @since 2.8.0
[834] Fix | Delete
* @deprecated 3.3.0 Use {@see get_current_screen()->add_help_tab()} or
[835] Fix | Delete
* {@see get_current_screen()->remove_help_tab()} instead.
[836] Fix | Delete
*
[837] Fix | Delete
* @param string $old_help_default Default contextual help text.
[838] Fix | Delete
*/
[839] Fix | Delete
$default_help = apply_filters_deprecated(
[840] Fix | Delete
'default_contextual_help',
[841] Fix | Delete
array( '' ),
[842] Fix | Delete
'3.3.0',
[843] Fix | Delete
'get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab()'
[844] Fix | Delete
);
[845] Fix | Delete
if ( $default_help ) {
[846] Fix | Delete
$old_help = '<p>' . $default_help . '</p>';
[847] Fix | Delete
}
[848] Fix | Delete
}
[849] Fix | Delete
[850] Fix | Delete
if ( $old_help ) {
[851] Fix | Delete
$this->add_help_tab(
[852] Fix | Delete
array(
[853] Fix | Delete
'id' => 'old-contextual-help',
[854] Fix | Delete
'title' => __( 'Overview' ),
[855] Fix | Delete
'content' => $old_help,
[856] Fix | Delete
)
[857] Fix | Delete
);
[858] Fix | Delete
}
[859] Fix | Delete
[860] Fix | Delete
$help_sidebar = $this->get_help_sidebar();
[861] Fix | Delete
[862] Fix | Delete
$help_class = 'hidden';
[863] Fix | Delete
if ( ! $help_sidebar ) {
[864] Fix | Delete
$help_class .= ' no-sidebar';
[865] Fix | Delete
}
[866] Fix | Delete
[867] Fix | Delete
// Time to render!
[868] Fix | Delete
?>
[869] Fix | Delete
<div id="screen-meta" class="metabox-prefs">
[870] Fix | Delete
[871] Fix | Delete
<div id="contextual-help-wrap" class="<?php echo esc_attr( $help_class ); ?>" tabindex="-1" aria-label="<?php esc_attr_e( 'Contextual Help Tab' ); ?>">
[872] Fix | Delete
<div id="contextual-help-back"></div>
[873] Fix | Delete
<div id="contextual-help-columns">
[874] Fix | Delete
<div class="contextual-help-tabs">
[875] Fix | Delete
<ul>
[876] Fix | Delete
<?php
[877] Fix | Delete
$class = ' class="active"';
[878] Fix | Delete
foreach ( $this->get_help_tabs() as $tab ) :
[879] Fix | Delete
$link_id = "tab-link-{$tab['id']}";
[880] Fix | Delete
$panel_id = "tab-panel-{$tab['id']}";
[881] Fix | Delete
?>
[882] Fix | Delete
[883] Fix | Delete
<li id="<?php echo esc_attr( $link_id ); ?>"<?php echo $class; ?>>
[884] Fix | Delete
<a href="<?php echo esc_url( "#$panel_id" ); ?>" aria-controls="<?php echo esc_attr( $panel_id ); ?>">
[885] Fix | Delete
<?php echo esc_html( $tab['title'] ); ?>
[886] Fix | Delete
</a>
[887] Fix | Delete
</li>
[888] Fix | Delete
<?php
[889] Fix | Delete
$class = '';
[890] Fix | Delete
endforeach;
[891] Fix | Delete
?>
[892] Fix | Delete
</ul>
[893] Fix | Delete
</div>
[894] Fix | Delete
[895] Fix | Delete
<?php if ( $help_sidebar ) : ?>
[896] Fix | Delete
<div class="contextual-help-sidebar">
[897] Fix | Delete
<?php echo $help_sidebar; ?>
[898] Fix | Delete
</div>
[899] Fix | Delete
<?php endif; ?>
[900] Fix | Delete
[901] Fix | Delete
<div class="contextual-help-tabs-wrap">
[902] Fix | Delete
<?php
[903] Fix | Delete
$classes = 'help-tab-content active';
[904] Fix | Delete
foreach ( $this->get_help_tabs() as $tab ) :
[905] Fix | Delete
$panel_id = "tab-panel-{$tab['id']}";
[906] Fix | Delete
?>
[907] Fix | Delete
[908] Fix | Delete
<div id="<?php echo esc_attr( $panel_id ); ?>" class="<?php echo $classes; ?>">
[909] Fix | Delete
<?php
[910] Fix | Delete
// Print tab content.
[911] Fix | Delete
echo $tab['content'];
[912] Fix | Delete
[913] Fix | Delete
// If it exists, fire tab callback.
[914] Fix | Delete
if ( ! empty( $tab['callback'] ) ) {
[915] Fix | Delete
call_user_func_array( $tab['callback'], array( $this, $tab ) );
[916] Fix | Delete
}
[917] Fix | Delete
?>
[918] Fix | Delete
</div>
[919] Fix | Delete
<?php
[920] Fix | Delete
$classes = 'help-tab-content';
[921] Fix | Delete
endforeach;
[922] Fix | Delete
?>
[923] Fix | Delete
</div>
[924] Fix | Delete
</div>
[925] Fix | Delete
</div>
[926] Fix | Delete
<?php
[927] Fix | Delete
// Setup layout columns.
[928] Fix | Delete
[929] Fix | Delete
/**
[930] Fix | Delete
* Filters the array of screen layout columns.
[931] Fix | Delete
*
[932] Fix | Delete
* This hook provides back-compat for plugins using the back-compat
[933] Fix | Delete
* Filters instead of add_screen_option().
[934] Fix | Delete
*
[935] Fix | Delete
* @since 2.8.0
[936] Fix | Delete
*
[937] Fix | Delete
* @param array $empty_columns Empty array.
[938] Fix | Delete
* @param string $screen_id Screen ID.
[939] Fix | Delete
* @param WP_Screen $screen Current WP_Screen instance.
[940] Fix | Delete
*/
[941] Fix | Delete
$columns = apply_filters( 'screen_layout_columns', array(), $this->id, $this );
[942] Fix | Delete
[943] Fix | Delete
if ( ! empty( $columns ) && isset( $columns[ $this->id ] ) ) {
[944] Fix | Delete
$this->add_option( 'layout_columns', array( 'max' => $columns[ $this->id ] ) );
[945] Fix | Delete
}
[946] Fix | Delete
[947] Fix | Delete
if ( $this->get_option( 'layout_columns' ) ) {
[948] Fix | Delete
$this->columns = (int) get_user_option( "screen_layout_$this->id" );
[949] Fix | Delete
[950] Fix | Delete
if ( ! $this->columns && $this->get_option( 'layout_columns', 'default' ) ) {
[951] Fix | Delete
$this->columns = $this->get_option( 'layout_columns', 'default' );
[952] Fix | Delete
}
[953] Fix | Delete
}
[954] Fix | Delete
$GLOBALS['screen_layout_columns'] = $this->columns; // Set the global for back-compat.
[955] Fix | Delete
[956] Fix | Delete
// Add screen options.
[957] Fix | Delete
if ( $this->show_screen_options() ) {
[958] Fix | Delete
$this->render_screen_options();
[959] Fix | Delete
}
[960] Fix | Delete
?>
[961] Fix | Delete
</div>
[962] Fix | Delete
<?php
[963] Fix | Delete
if ( ! $this->get_help_tabs() && ! $this->show_screen_options() ) {
[964] Fix | Delete
return;
[965] Fix | Delete
}
[966] Fix | Delete
?>
[967] Fix | Delete
<div id="screen-meta-links">
[968] Fix | Delete
<?php if ( $this->show_screen_options() ) : ?>
[969] Fix | Delete
<div id="screen-options-link-wrap" class="hide-if-no-js screen-meta-toggle">
[970] Fix | Delete
<button type="button" id="show-settings-link" class="button show-settings" aria-controls="screen-options-wrap" aria-expanded="false"><?php _e( 'Screen Options' ); ?></button>
[971] Fix | Delete
</div>
[972] Fix | Delete
<?php
[973] Fix | Delete
endif;
[974] Fix | Delete
if ( $this->get_help_tabs() ) :
[975] Fix | Delete
?>
[976] Fix | Delete
<div id="contextual-help-link-wrap" class="hide-if-no-js screen-meta-toggle">
[977] Fix | Delete
<button type="button" id="contextual-help-link" class="button show-settings" aria-controls="contextual-help-wrap" aria-expanded="false"><?php _e( 'Help' ); ?></button>
[978] Fix | Delete
</div>
[979] Fix | Delete
<?php endif; ?>
[980] Fix | Delete
</div>
[981] Fix | Delete
<?php
[982] Fix | Delete
}
[983] Fix | Delete
[984] Fix | Delete
/**
[985] Fix | Delete
* @global array $wp_meta_boxes Global meta box state.
[986] Fix | Delete
*
[987] Fix | Delete
* @return bool
[988] Fix | Delete
*/
[989] Fix | Delete
public function show_screen_options() {
[990] Fix | Delete
global $wp_meta_boxes;
[991] Fix | Delete
[992] Fix | Delete
if ( is_bool( $this->_show_screen_options ) ) {
[993] Fix | Delete
return $this->_show_screen_options;
[994] Fix | Delete
}
[995] Fix | Delete
[996] Fix | Delete
$columns = get_column_headers( $this );
[997] Fix | Delete
[998] Fix | Delete
$show_screen = ! empty( $wp_meta_boxes[ $this->id ] ) || $columns || $this->get_option( 'per_page' );
[999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function