Changeset 3120628
- Timestamp:
- 07/17/2024 04:22:52 PM (20 months ago)
- Location:
- wpcom-member
- Files:
-
- 53 added
- 9 edited
-
tags/1.5.2 (added)
-
tags/1.5.2/css (added)
-
tags/1.5.2/css/admin.css (added)
-
tags/1.5.2/css/cropper.min.css (added)
-
tags/1.5.2/css/style.css (added)
-
tags/1.5.2/images (added)
-
tags/1.5.2/images/empty-comment.svg (added)
-
tags/1.5.2/images/empty-download.svg (added)
-
tags/1.5.2/images/empty-favorite.svg (added)
-
tags/1.5.2/images/empty-follow.svg (added)
-
tags/1.5.2/images/empty-message.svg (added)
-
tags/1.5.2/images/empty-notification.svg (added)
-
tags/1.5.2/images/empty-post.svg (added)
-
tags/1.5.2/images/empty-qa.svg (added)
-
tags/1.5.2/images/lazy.png (added)
-
tags/1.5.2/images/loading.gif (added)
-
tags/1.5.2/images/placeholder.jpg (added)
-
tags/1.5.2/includes (added)
-
tags/1.5.2/includes/class-member.php (added)
-
tags/1.5.2/includes/class-sesstion.php (added)
-
tags/1.5.2/includes/form-validation.php (added)
-
tags/1.5.2/includes/functions.php (added)
-
tags/1.5.2/includes/link-template.php (added)
-
tags/1.5.2/includes/member-functions.php (added)
-
tags/1.5.2/includes/nav-menu.php (added)
-
tags/1.5.2/includes/required.php (added)
-
tags/1.5.2/includes/social-login.php (added)
-
tags/1.5.2/index.php (added)
-
tags/1.5.2/js (added)
-
tags/1.5.2/js/blocks.js (added)
-
tags/1.5.2/js/cropper.min.js (added)
-
tags/1.5.2/js/icons-2.7.19.js (added)
-
tags/1.5.2/js/index.js (added)
-
tags/1.5.2/js/login.js (added)
-
tags/1.5.2/lang (added)
-
tags/1.5.2/lang/wpcom-zh_CN.mo (added)
-
tags/1.5.2/lang/wpcom-zh_CN.po (added)
-
tags/1.5.2/lang/wpcom-zh_TW.mo (added)
-
tags/1.5.2/lang/wpcom-zh_TW.po (added)
-
tags/1.5.2/readme.txt (added)
-
tags/1.5.2/templates (added)
-
tags/1.5.2/templates/account.php (added)
-
tags/1.5.2/templates/approve-notice.php (added)
-
tags/1.5.2/templates/approve-resend.php (added)
-
tags/1.5.2/templates/comment.php (added)
-
tags/1.5.2/templates/login.php (added)
-
tags/1.5.2/templates/lostpassword.php (added)
-
tags/1.5.2/templates/post.php (added)
-
tags/1.5.2/templates/profile.php (added)
-
tags/1.5.2/templates/register.php (added)
-
tags/1.5.2/templates/social-login-connect.php (added)
-
tags/1.5.2/templates/user-card.php (added)
-
tags/1.5.2/templates/user-list.php (added)
-
trunk/admin/includes/class-plugin-panel.php (modified) (9 diffs)
-
trunk/admin/includes/class-utils.php (modified) (1 diff)
-
trunk/admin/load.php (modified) (1 diff)
-
trunk/includes/class-member.php (modified) (2 diffs)
-
trunk/includes/class-sesstion.php (modified) (1 diff)
-
trunk/includes/functions.php (modified) (3 diffs)
-
trunk/includes/social-login.php (modified) (1 diff)
-
trunk/index.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpcom-member/trunk/admin/includes/class-plugin-panel.php
r3076141 r3120628 1 <?php defined( 'ABSPATH' ) || exit; 2 class WPCOM_PLUGIN_PANEL_FREE{ 1 <?php 2 namespace WPCOM\Themer\Plugin; 3 defined( 'ABSPATH' ) || exit; 4 5 class Panel_Free{ 3 6 public $info; 4 7 public $plugin_slug; … … 37 40 if (current_user_can('manage_options' ) && isset($_GET['page']) && $_GET['page'] == $this->plugin_slug ) { 38 41 require_once WPCOM_ADMIN_FREE_PATH . 'includes/class-utils.php'; 39 add_action('admin_enqueue_scripts', array( 'WPCOM_ADMIN_UTILS_FREE', 'panel_script'));42 add_action('admin_enqueue_scripts', array(UTils_Free::class, 'panel_script')); 40 43 } 41 44 } … … 238 241 case 'e': 239 242 echo '<div class="form-group clearfix" '.$this->filter_attr($option).'><label for="wpcom_'.$id.'" class="form-label">'.$title.'</label><div class="form-input">'; 240 wp_editor( wpautop( $value ), 'wpcom_'.$id, WPCOM_ADMIN_UTILS_FREE::editor_settings(array('textarea_name' => $name, 'textarea_rows' => $rows)) );243 wp_editor( wpautop( $value ), 'wpcom_'.$id, UTils_Free::editor_settings(array('textarea_name' => $name, 'textarea_rows' => $rows)) ); 241 244 echo $notice.'</div></div>'; 242 245 break; … … 262 265 case 'p': 263 266 $html = '<option value="">--请选择--</option>'; 264 $pages = WPCOM_ADMIN_UTILS_FREE::get_all_pages();267 $pages = UTils_Free::get_all_pages(); 265 268 foreach ($pages as $page) { 266 269 $html.=$page['ID']==$value?'<option selected value="'.$page['ID'].'">'.$page['title'].'</option>':'<option value="'.$page['ID'].'">'.$page['title'].'</option>'; … … 272 275 case 'cs': 273 276 $html = '<option value="">--请选择--</option>'; 274 $items = WPCOM_ADMIN_UTILS_FREE::category($tax);277 $items = UTils_Free::category($tax); 275 278 foreach ($items as $key => $val) { 276 279 $html.=$key==$value?'<option selected value="'.$key.'">'.$val.'</option>':'<option value="'.$key.'">'.$val.'</option>'; … … 282 285 case 'cm': 283 286 $html = ''; 284 $items = WPCOM_ADMIN_UTILS_FREE::category($tax);287 $items = UTils_Free::category($tax); 285 288 foreach ($items as $key => $val) { 286 289 $checked = ''; … … 299 302 case 'cms': 300 303 $html = ''; 301 $items = WPCOM_ADMIN_UTILS_FREE::category($tax);304 $items = UTils_Free::category($tax); 302 305 $value = $value ? $value : array(); 303 306 foreach ($value as $item) { … … 396 399 } 397 400 398 echo wp_kses($output, WPCOM_ADMIN_UTILS_FREE::allowed_html());401 echo wp_kses($output, UTils_Free::allowed_html()); 399 402 } 400 403 … … 602 605 } 603 606 } 607 608 class_alias(Panel_Free::class, 'WPCOM_PLUGIN_PANEL_FREE'); -
wpcom-member/trunk/admin/includes/class-utils.php
r2982232 r3120628 1 <?php defined( 'ABSPATH' ) || exit; 2 class WPCOM_ADMIN_UTILS_FREE{ 1 <?php 2 namespace WPCOM\Themer\Plugin; 3 defined( 'ABSPATH' ) || exit; 4 5 class Utils_Free{ 3 6 public static function get_all_pages(){ 4 7 $pages = get_pages(array('post_type' => 'page','post_status' => 'publish')); -
wpcom-member/trunk/admin/load.php
r2982232 r3120628 1 1 <?php defined( 'ABSPATH' ) || exit; 2 if( !class_exists(' WPCOM_PLUGIN_PANEL_FREE') ) {3 define( 'WPCOM_ADMIN_FREE_VERSION', '2. 7.14' );2 if( !class_exists('\WPCOM\Themer\Plugin\Panel_Free') ) { 3 define( 'WPCOM_ADMIN_FREE_VERSION', '2.8.0' ); 4 4 require WPCOM_ADMIN_FREE_PATH . 'includes/class-plugin-panel.php'; 5 5 } -
wpcom-member/trunk/includes/class-member.php
r3119775 r3120628 2 2 namespace WPCOM\Member; 3 3 use WPCOM\Themer\Session; 4 5 4 defined( 'ABSPATH' ) || exit; 6 5 … … 2042 2041 <?php } 2043 2042 } 2043 2044 class_alias(Member::class, 'WPCOM_Member'); -
wpcom-member/trunk/includes/class-sesstion.php
r3119052 r3120628 129 129 } 130 130 131 if( !class_exists('\WPCOM_Session') ) class_alias(Session::class, ' \WPCOM_Session');131 if( !class_exists('\WPCOM_Session') ) class_alias(Session::class, 'WPCOM_Session'); -
wpcom-member/trunk/includes/functions.php
r3119065 r3120628 3 3 use WPCOM\Member; 4 4 use WPCOM\Themer\Session; 5 use WPCOM\Themer\Plugin; 5 6 6 7 add_action('plugins_loaded', function(){ … … 23 24 24 25 require_once WPCOM_ADMIN_FREE_PATH . 'load.php'; 25 $GLOBALS['wpmx'] = new WPCOM_PLUGIN_PANEL_FREE($wpmx_info); 26 $panel_class = class_exists('Plugin\Panel_Free') ? Plugin\Panel_Free::class : \WPCOM_PLUGIN_PANEL_FREE::class; 27 $GLOBALS['wpmx'] = new $panel_class($wpmx_info); 26 28 $wpmx_options = get_option($wpmx_info['key']); 27 29 $GLOBALS[$wpmx_info['key']] = $wpmx_options; … … 757 759 function wpmx_allowed_html(){ 758 760 require_once WPCOM_ADMIN_FREE_PATH . 'includes/class-utils.php'; 759 return WPCOM_ADMIN_UTILS_FREE::allowed_html();761 return Plugin\Utils_Free::allowed_html(); 760 762 } 761 763 -
wpcom-member/trunk/includes/social-login.php
r3119036 r3120628 2 2 namespace WPCOM\Member; 3 3 use WPCOM\Themer\Session; 4 5 4 defined( 'ABSPATH' ) || exit; 6 5 -
wpcom-member/trunk/index.php
r3119775 r3120628 3 3 * Plugin Name: WPCOM Member 用户中心 4 4 * Description: WordPress用户中心插件 / User profile & membership plugin for WordPress 5 * Version: 1.5. 15 * Version: 1.5.2 6 6 * Author: WPCOM 7 7 * Author URI: https://www.wpcom.cn … … 10 10 */ 11 11 12 define( 'WPMX_VERSION', '1.5. 1' );12 define( 'WPMX_VERSION', '1.5.2' ); 13 13 define( 'WPMX_DIR', plugin_dir_path( __FILE__ ) ); 14 14 define( 'WPMX_URI', plugins_url( '/', __FILE__ ) ); -
wpcom-member/trunk/readme.txt
r3119776 r3120628 5 5 Requires at least: 6.1.1 6 6 Tested up to: 6.6 7 Stable tag: 1.5. 17 Stable tag: 1.5.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 61 61 ### 更新记录 62 62 63 **1.5.2** - 2024-07-18 64 65 - 优化主题设置不显示用户中心设置入口的问题; 66 - 优化Themer框架免费版代码; 67 63 68 **1.5.1** - 2024-07-17 64 69
Note: See TracChangeset
for help on using the changeset viewer.