Skip to content

Commit

Permalink
Update accelerate-wp-for-china.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records authored Apr 22, 2020
1 parent 95a9e0a commit e7b0739
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions accelerate-wp-for-china.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
License: Apache 2.0
*/

define('ETUWPIC_BASEFOLDER', plugin_basename(dirname(__FILE__)));
define('AWFC_BASEFOLDER', plugin_basename(dirname(__FILE__)));

register_activation_hook(__FILE__, 'awfc_set_options');
function awfc_set_options()
Expand Down Expand Up @@ -53,7 +53,7 @@ function awfc_unblock_gravatar($avatar)
function awfc_plugin_action_links($links, $file)
{
if ($file == plugin_basename(dirname(__FILE__) . '/accelerate-wp-for-china.php')) {
$links[] = '<a href="options-general.php?page=' . ETUWPIC_BASEFOLDER . '/accelerate-wp-for-china.php">设置</a>';
$links[] = '<a href="options-general.php?page=' . AWFC_BASEFOLDER . '/accelerate-wp-for-china.php">设置</a>';
}
return $links;
}
Expand Down Expand Up @@ -92,8 +92,8 @@ function awfc_setting_page()
?>
<div class="wrap" style="margin: 10px;">
<h1>Accelerate WP for China设置</h1>
<p>Server 节点选择请参考 <a href="https://github.com/sy-records/EasyToUseWordPressInChina" target="_blank">Github</a></p>
<form name="form" method="post" action="<?php echo wp_nonce_url('./options-general.php?page=' . ETUWPIC_BASEFOLDER . '/accelerate-wp-for-china.php'); ?>">
<p>Server 节点选择请参考 <a href="https://github.com/sy-records/AccelerateWPforChina" target="_blank">Github</a></p>
<form name="form" method="post" action="<?php echo wp_nonce_url('./options-general.php?page=' . AWFC_BASEFOLDER . '/accelerate-wp-for-china.php'); ?>">
<table class="form-table">
<tr>
<th>
Expand Down

0 comments on commit e7b0739

Please sign in to comment.