API Adapter.
magitek-telescope / wp-apiadapter Goto Github PK
View Code? Open in Web Editor NEWこのプロジェクトは 2017 年から放置されていますが、気が向いたらいつか作り直します。
このプロジェクトは 2017 年から放置されていますが、気が向いたらいつか作り直します。
wpdbを使う場合はインストール時にテーブルを作成する処理を実装する必要があるので、wpdb化の前にこれを先に実装する
現状、全ての権限のユーザーに対して、約200ものフックを毎リクエスト処理していることになる。
管理画面は管理者が不便するだけであるので、機能面がそのストレスを上回る場合は気にするほどでも、ないが、訪問者の閲覧が150msほど遅くなるのは致命的であり、かつ、フックが必要なシーンは、「投稿時」など、基本的に管理者が操作するレイヤーのほうが多いと予想される。
例外的にコメントの投稿処理などは常にOnにしても良いかもしれないが、明らかに管理画面でしか動かないようなものはデフォルトで管理者でないとフックが設定されないように。
そうでなくても、全体のフックを権限ごとにOn/Offできるようにする。
何かしらの一元管理の方法の優先度は高いが、個別設定に関しては優先度は低い。
現状、取り急ぎ完動させたかったのでupdate_optionとget_optionでEditor設定を行っていたが、登録したフックを検索しづらい、I/FをJSONにするのは非合理的などの理由から、wpdb方式に変更をする。
公式レポジトリに上げるまでは破壊的変更があってもそれほど問題はないので、公式レポジトリ掲載までをマイルストーンとする。
まだしてないのでする
追加し忘れててGETリクエストしか投げられなかったので修正する。
設定画面でSubmitしたさい、現状リダイレクト処理を挟んでいないため、古い設定が一時的に読み込まれてしまう。
挙動として正しくないので、リダイレクトを行う。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.