WP PLUGIN バグ修正 ソートのカスタムフィールドのメタボックス追加
・ソートのカスタムフィールドのメタボックスを追加 ・共通nameタグが更新されないバグ対策としてフォームタグを共通化 ・ファイル名をクラス名に合わせるよう変更
This commit is contained in:
@@ -23,12 +23,13 @@ License: GPLv2
|
||||
*/
|
||||
|
||||
/**
|
||||
* 指定したキーが無ければ、投稿の管理画面表示時にメタボックスを追加する。
|
||||
* メタキーは下記のオプションテーブルから取得する
|
||||
* _apop_normal_order_param
|
||||
* _apop_search_order_param
|
||||
* _apop_tax_order_param
|
||||
* ラベルは「APO+カスタムフィールド:XXXX」とする
|
||||
* TODO:
|
||||
1)カテゴリーのソート用カスタムフィールド取得と設定
|
||||
・保存しているタームIDと投稿が属するタームIDが一致する場合、管理画面に表示する
|
||||
class.apop.apop_post.php、setting_post_custom_field.php
|
||||
* 2)uninstall.php
|
||||
* 投稿とタクソノミーのカスタムフィールド削除方法修正
|
||||
* ・delete_post_meta_by_key()を廃止し、WP_QUERYに変更する
|
||||
*/
|
||||
|
||||
define( 'APOP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
||||
@@ -36,9 +37,11 @@ define( 'APOP_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
|
||||
|
||||
//メイン処理のクラスをインスタンス化
|
||||
require_once __DIR__ . '/class/class.apop.order.php';
|
||||
require_once __DIR__ . '/class/class.apop.ui.php';
|
||||
require_once __DIR__ . '/class/class.apop.apop_ui.php';
|
||||
require_once __DIR__ . '/class/class.apop.apop_post.php';
|
||||
|
||||
$APOP = new APOP;
|
||||
new APOP_POST;
|
||||
|
||||
//CSS, JSの読み込み
|
||||
add_action( 'admin_enqueue_scripts', 'register_my_styles' );
|
||||
|
||||
Reference in New Issue
Block a user