Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions wp
Submodule wp added at 3b3ff6
4 changes: 2 additions & 2 deletions wp-admin/authorize-application.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@

if ( wp_is_site_protected_by_basic_auth( 'front' ) ) {
wp_die(
__( 'Your website appears to use Basic Authentication, which is not currently compatible with application passwords.' ),
__( 'Your website appears to use Basic Authentication, which is not currently compatible with application passwords!!.' ),
__( 'Cannot Authorize Application' ),
array(
'response' => 501,
Expand Down Expand Up @@ -320,7 +320,7 @@
'<strong><code>' . esc_html( $reject_url ) . '</code></strong>'
);
} else {
_e( 'You will be returned to the WordPress Dashboard, and no changes will be made.' );
_e( 'You will be returned to the WordPress Dashboard, and no changes will be made!!!!!.' );
}
?>
</p>
Expand Down
4 changes: 2 additions & 2 deletions wp-admin/edit-comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
require_once __DIR__ . '/admin.php';
if ( ! current_user_can( 'edit_posts' ) ) {
wp_die(
'<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' .
'<h1>' . __( 'You need a higher level of permission你需要更高的权限才可以!!.' ) . '</h1>' .
'<p>' . __( 'Sorry, you are not allowed to edit comments.' ) . '</p>',
403
);
Expand Down Expand Up @@ -393,7 +393,7 @@
if ( $comment ) {
switch ( $comment->comment_approved ) {
case '1':
$messages[] = __( 'This comment is already approved.' ) . sprintf(
$messages[] = __( 'This comment is already approved!!!!!.' ) . sprintf(
' <a href="%1$s">%2$s</a>',
esc_url( admin_url( "comment.php?action=editcomment&c=$same" ) ),
__( 'Edit comment' )
Expand Down
9 changes: 9 additions & 0 deletions wp-admin/edit-form-comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@
<input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr( $comment->comment_author_url ); ?>" />
</td>
</tr>

<tr>
<td class="first"><label for="newcomment_author_tel"><?php _e( 'URL' ); ?></label></td>
<td>
<input type="text" id="newcomment_author_tel" name="newcomment_author_tel" size="30" class="code" value="<?php echo esc_attr( $comment->comment_author_tel ); ?>" />
</td>
</tr>


</tbody>
</table>
</fieldset>
Expand Down
3 changes: 2 additions & 1 deletion wp-admin/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@
$doaction = $wp_list_table->current_action();

if ( $doaction ) {
check_admin_referer( 'bulk-posts' );
//notes 20250526
check_admin_referer( 'bulk-posts' );//出于防御csrf攻击的目的,wordpress引入了nonce安全机制,只有请求中_wpnonce和预期相等,请求才会被处理。

$sendback = remove_query_arg( array( 'trashed', 'untrashed', 'deleted', 'locked', 'ids' ), wp_get_referer() );
if ( ! $sendback ) {
Expand Down
2 changes: 2 additions & 0 deletions wp-admin/includes/ajax-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1374,6 +1374,8 @@ function wp_ajax_replyto_comment( $action ) {
'comment_author',
'comment_author_email',
'comment_author_url',
//新規入力tel
'comment_author_tel',
'comment_content',
'comment_type',
'comment_parent',
Expand Down
5 changes: 5 additions & 0 deletions wp-admin/includes/comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ function edit_comment() {
if ( isset( $_POST['newcomment_author_url'] ) ) {
$_POST['comment_author_url'] = $_POST['newcomment_author_url'];
}
//tel
if ( isset( $_POST['newcomment_author_tel'] ) ) {
$_POST['comment_author_tel'] = $_POST['newcomment_author_tel'];
}
//tel
if ( isset( $_POST['comment_status'] ) ) {
$_POST['comment_approved'] = $_POST['comment_status'];
}
Expand Down
3 changes: 3 additions & 0 deletions wp-admin/includes/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,9 @@ function wxr_filter_postmeta( $return_me, $meta_key ) {
<wp:comment_author><?php echo wxr_cdata( $c->comment_author ); ?></wp:comment_author>
<wp:comment_author_email><?php echo wxr_cdata( $c->comment_author_email ); ?></wp:comment_author_email>
<wp:comment_author_url><?php echo sanitize_url( $c->comment_author_url ); ?></wp:comment_author_url>
//新規入力tel
<wp:comment_author_tel><?php echo sanitize_url( $c->comment_author_tel ); ?></wp:comment_author_tel>
//新規入力tel
<wp:comment_author_IP><?php echo wxr_cdata( $c->comment_author_IP ); ?></wp:comment_author_IP>
<wp:comment_date><?php echo wxr_cdata( $c->comment_date ); ?></wp:comment_date>
<wp:comment_date_gmt><?php echo wxr_cdata( $c->comment_date_gmt ); ?></wp:comment_date_gmt>
Expand Down
5 changes: 5 additions & 0 deletions wp-admin/includes/schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,14 @@ function wp_get_db_schema( $scope = 'all', $blog_id = null ) {
comment_author tinytext NOT NULL,
comment_author_email varchar(100) NOT NULL default '',
comment_author_url varchar(200) NOT NULL default '',
comment_author_tel int(11) NOT NULL default '', /* tel新規DBで入力*/
comment_author_IP varchar(100) NOT NULL default '',
/* default delete
comment_date datetime NOT NULL default '0000-00-00 00:00:00',
comment_date_gmt datetime NOT NULL default '0000-00-00 00:00:00',
*/
comment_date datetime NOT NULL default '',
comment_date_gmt datetime NOT NULL default '',
comment_content text NOT NULL,
comment_karma int(11) NOT NULL default '0',
comment_approved varchar(20) NOT NULL default '1',
Expand Down
5 changes: 5 additions & 0 deletions wp-admin/options-general.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@ class="<?php echo esc_attr( $classes_for_button ); ?>"
<td><input name="siteurl" type="url" id="siteurl" value="<?php form_option( 'siteurl' ); ?>"<?php disabled( defined( 'WP_SITEURL' ) ); ?> class="regular-text code<?php echo $wp_site_url_class; ?>" /></td>
</tr>

<tr>
<th scope="row"><label for="siteurladd1"><?php echo "這是一個測試項目"; ?></label></th>
<td><input name="siteurladd1" type="text" id="siteurladd1" value="what are u doing?" class="add1<?php echo "add1-test"; ?>" /></td>
</tr>

<tr>
<th scope="row"><label for="home"><?php _e( 'Site Address (URL)' ); ?></label></th>
<td><input name="home" type="url" id="home" aria-describedby="home-description" value="<?php form_option( 'home' ); ?>"<?php disabled( defined( 'WP_HOME' ) ); ?> class="regular-text code<?php echo $wp_home_class; ?>" />
Expand Down
3 changes: 2 additions & 1 deletion wp-comments-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
$protocol = $_SERVER['SERVER_PROTOCOL'];
if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0', 'HTTP/3' ), true ) ) {
$protocol = 'HTTP/1.0';

}

header( 'Allow: POST' );
Expand Down Expand Up @@ -45,7 +46,7 @@
/**
* Fires after comment cookies are set.
*
* @since 3.4.0
* @since 3.4.0WordPress Address
* @since 4.9.6 The `$cookies_consent` parameter was added.
*
* @param WP_Comment $comment Comment object.
Expand Down
2 changes: 1 addition & 1 deletion wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

// ** Database settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'wd-php' );
define( 'DB_NAME', 'nothing' ); //0517

/** Database username */
define( 'DB_USER', 'root' );
Expand Down
2 changes: 1 addition & 1 deletion wp-content/plugins/akismet/class.akismet-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ public static function comment_row_action( $a, $comment ) {
$show_user_comments = $show_user_comments === 'false' ? false : $show_user_comments; //option used to be saved as 'false' / 'true'

if ( $show_user_comments ) {
$comment_count = Akismet::get_user_comments_approved( $comment->user_id, $comment->comment_author_email, $comment->comment_author, $comment->comment_author_url );
$comment_count = Akismet::get_user_comments_approved( $comment->user_id, $comment->comment_author_email, $comment->comment_author, $comment->comment_author_url , $comment->comment_author_tel);
$comment_count = intval( $comment_count );
echo '<span class="akismet-user-comment-count" commentid="'.$comment->comment_ID.'" style="display:none;"><br><span class="akismet-user-comment-counts">'. sprintf( esc_html( _n( '%s approved', '%s approved', $comment_count , 'akismet') ), number_format_i18n( $comment_count ) ) . '</span></span>';
}
Expand Down
153 changes: 153 additions & 0 deletions wp-content/plugins/loginpress/classes/class-loginpress-addons-meta.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
<?php
/**
* Meta class about Add-Ons.
*
* @package LoginPress
* @since 3.0.5
*/

if ( ! class_exists( 'LoginPress_Addons_Meta' ) ) :

class LoginPress_Addons_Meta {

/**
* Class Constructor.
*/
function __construct() {
$this->addons_options_array();
}

/**
* The addons options array.
*
* @since 3.0.5
*/
public static function addons_options_array() {

$addons_array = array(
'login-logout-menu' => array(
'title' => __( 'Login Logout Menu', 'loginpress' ),
'short_desc' => __( 'Login Logout Menu Section', 'loginpress' ),
'slug' => 'login-logout-menu',
'is_free' => true,
'is_active' => false,
),
'auto-login' => array(
'title' => __( 'Auto Login', 'loginpress' ),
'short_desc' => __( 'No More Manual Login', 'loginpress' ),
'slug' => 'auto-login',
'is_free' => false,
'is_active' => false,
),
'login-redirects' => array(
'title' => __( 'Login Redirects', 'loginpress' ),
'short_desc' => __( 'Automatically redirects the login', 'loginpress' ),
'slug' => 'login-redirects',
'is_free' => false,
'is_active' => false,
),
'limit-login-attempts' => array(
'title' => __( 'Limit Login Attempts', 'loginpress' ),
'short_desc' => __( 'Limits for login attempts', 'loginpress' ),
'slug' => 'limit-login-attempts',
'is_free' => false,
'is_active' => false,
),
'hide-login' => array(
'title' => __( 'Hide Login', 'loginpress' ),
'short_desc' => __( 'Hide your login page', 'loginpress' ),
'slug' => 'hide-login',
'is_free' => false,
'is_active' => false,
),
'social-login' => array(
'title' => __( 'Social Login', 'loginpress' ),
'short_desc' => __( 'Third Party login access', 'loginpress' ),
'slug' => 'social-login',
'is_free' => false,
'is_active' => false,
),
'login-widget' => array(
'title' => __( 'Login Widget', 'loginpress' ),
'short_desc' => __( 'Creates a login widget', 'loginpress' ),
'slug' => 'login-widget',
'is_free' => false,
'is_active' => false,
),
// 'protect-content' => array(
// 'title' => __( 'Protect Content', 'loginpress' ),
// 'short_desc' => __( 'Protected Contents', 'loginpress' ),
// 'slug' => 'protect-content',
// 'is_free' => false,
// 'is_active' => false,
// ),
// 'custom-fields' => array(
// 'title' => __( 'Custom Registration Fields', 'loginpress' ),
// 'short_desc' => __( 'Custom Registration Fields', 'loginpress' ),
// 'slug' => 'custom-fields',
// 'is_free' => false,
// 'is_active' => false,
// ),
);

if ( ! get_option( 'loginpress_pro_addons' ) ) {
add_option( 'loginpress_pro_addons', $addons_array );
}

if ( sizeof( $addons_array ) != sizeof( get_option( 'loginpress_pro_addons' ) ) ) {
update_option( 'loginpress_pro_addons', $addons_array );
}
}

/**
* The addon details.
*
* @since 3.0.5
* @return void
*/
public static function addons_details() {

$addons_details_array = array(
'login-logout-menu' => array(
'title' => 'Login Logout Menu',
'excerpt' => __( 'Login Logout Menu is a handy plugin which allows you to add login, logout, register and profile menu items in your selected menu.', 'loginpress' ),
),
'login-redirects' => array(
'title' => 'Login Redirects',
'excerpt' => __( 'Redirects users based on their roles. This is helpful, If you have an editor and want to redirect him to his editor stats page. Restrict your subscribers, guests or even customers to certain pages instead of wp-admin. This add-on has a cool UX/UI to manage all the login redirects you have created on your site.', 'loginpress' ),
),
'social-login' => array(
'title' => 'Social Login',
'excerpt' => __( 'Social login from LoginPress is an add-on which provides facility your users to log in and Register via Facebook, Google, and Twitter. This add-on will eliminate the Spam and Bot registrations. This add-on will help your users to hassle-free registrations/logins on your site.', 'loginpress' ),
),
'login-widget' => array(
'title' => 'Login Widget',
'excerpt' => __( 'This LoginPress add-on is a widget you can use into your blog sidebar. It uses an Ajax way to login via the sidebar. You may need to know HTML/CSS to give it style according to your site even we have styled it in general.', 'loginpress' ),
),
'limit-login-attempts' => array(
'title' => 'Limit Login Attempts',
'excerpt' => __( 'Everybody needs a control of their Login page. This will help you to track your login attempts by each user. You can limit the login attempts for each user. Brute force attacks are the most common way to gain access to your website. This add-on acts as a sheild to these hacking attacks and gives you control to set the time between each login attempts.', 'loginpress' ),
),
'auto-login' => array(
'title' => 'Auto Login',
'excerpt' => __( 'This LoginPress add-on lets you (Administrator) generates a unique URL for your certain users who you dont want to provide a password to login to your site. This Pro add-on gives you a list of all the users who you have given auto-generated login links. You can disable someones access and delete certain users.', 'loginpress' ),
),
'hide-login' => array(
'title' => 'Hide Login',
'excerpt' => __( 'This LoginPress add-on lets you change the login page URL to anything you want. It will give a hard time to spammers who keep hitting to your login page. This is helpful for Brute force attacks. One caution to use this add-on is you need to remember the custom login url after you change it. We have an option to email your custom login url so you remember it.', 'loginpress' ),
),
// 'protect-content' => array(
// 'title' => 'Protect Content',
// 'excerpt' => __( 'Protect Content add-on allows you to protect your page/post/CPT specific content.', 'loginpress' ),
// ),
// 'custom-fields' => array(
// 'title' => 'Custom Registration Fields',
// 'excerpt' => __( 'This addon lets you create custom fields like text,radio button, checkboxes even an image.', 'loginpress' ),
// ),
);
return $addons_details_array;
}
} // Enf of Class.

endif;
new LoginPress_Addons_Meta();
Loading