Changeset 3005355
- Timestamp:
- 12/05/2023 01:52:35 AM (2 years ago)
- Location:
- plugin-load-filter/trunk
- Files:
-
- 6 edited
-
languages/plf-ja.mo (modified) (previous)
-
languages/plf-ja.po (modified) (13 diffs)
-
languages/plf.pot (modified) (13 diffs)
-
mu-plugins/plf-filter.php (modified) (7 diffs)
-
plugin-load-filter.php (modified) (27 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugin-load-filter/trunk/languages/plf-ja.po
r2674033 r3005355 3 3 "Project-Id-Version: plf\n" 4 4 "POT-Creation-Date: 2020-08-04 05:11+0000\n" 5 "PO-Revision-Date: 202 2-02-07 02:57+0000\n"5 "PO-Revision-Date: 2023-12-01 08:28+0000\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: 日本語\n" … … 19 19 "X-Loco-Version: 2.4.0; wp-5.4.2" 20 20 21 #: plugin-load-filter.php:7 0421 #: plugin-load-filter.php:722 22 22 msgid "" 23 23 "* Plugins with `Page Type Filter` selected are blocked, but you can Activate " … … 28 28 "有効プラグイン登録やシングルページ毎の設定等で、様々なタイプ毎に有効化するプラグインを選択できます" 29 29 30 #: plugin-load-filter.php: 69630 #: plugin-load-filter.php:714 31 31 msgid "<strong>Admin Type</strong> - If you only use plugins for Admin pages." 32 32 msgstr "<strong>Admin Type</strong> - 管理用ページのみで使用するプラグインとして設定" 33 33 34 #: plugin-load-filter.php:7 0734 #: plugin-load-filter.php:725 35 35 msgid "" 36 36 "<strong>Exclude Post Format Type</strong> - Choose Post Format Type you are " … … 40 40 "有効プラグイン登録画面の項目件名から除外出来ます" 41 41 42 #: plugin-load-filter.php: 69542 #: plugin-load-filter.php:713 43 43 msgid "<strong>Normal</strong> - Exclude plugin from Page Type filter" 44 44 msgstr "<strong>Normal</strong> - Page Type フィルタの対象ではないプラグイン" 45 45 46 #: plugin-load-filter.php: 69746 #: plugin-load-filter.php:715 47 47 msgid "" 48 48 "<strong>Page Type</strong> - If you want to activate or deactivate plugins " … … 50 50 msgstr "<strong>Page Type</strong> - ページタイプ毎や単一ページ毎に有効 / 停止するプラグインとして設定" 51 51 52 #: plugin-load-filter.php:7 2152 #: plugin-load-filter.php:745 53 53 msgid "" 54 54 "A very simple multilingual feature that uses MO translation files for the " … … 56 56 msgstr "とってもシンプルな多言語機能で 投稿/固定ページ毎に指定した言語ロケールに応じた翻訳ファイルを使用します" 57 57 58 #: plugin-load-filter.php: 89958 #: plugin-load-filter.php:925 59 59 msgid "Activate Plugin Entry »" 60 60 msgstr "有効化プラグイン登録 »" 61 61 62 #: plugin-load-filter.php:7 0162 #: plugin-load-filter.php:719 63 63 msgid "Add a link to admin bar for displaying the plugins filtered status" 64 64 msgstr "管理バーにプラグインのフィルタリング状態を表示するためのリンクを表示" 65 65 66 #: plugin-load-filter.php:6 4066 #: plugin-load-filter.php:658 67 67 msgid "Admin Type" 68 68 msgstr "" 69 69 70 #: plugin-load-filter.php:779 70 #: plugin-load-filter.php:742 71 msgid "Ajax acceleration filter" 72 msgstr "Ajax 高速化フィルタ" 73 74 #: plugin-load-filter.php:738 75 msgid "Ajax acceleration filter (Features for plugin developers)" 76 msgstr "Ajax 高速化フィルタ(プラグイン開発者向け機能)" 77 78 #: plugin-load-filter.php:803 71 79 msgid "Archive page" 72 80 msgstr "アーカイブページ" 73 81 74 #: plugin-load-filter.php: 78182 #: plugin-load-filter.php:805 75 83 msgid "Attachment page" 76 84 msgstr "添付ページ" 77 85 78 #: plugin-load-filter.php: 880 plugin-load-filter.php:89886 #: plugin-load-filter.php:904 plugin-load-filter.php:924 79 87 msgid "Clear" 80 88 msgstr "クリア" 81 89 82 #: plugin-load-filter.php:8 0890 #: plugin-load-filter.php:832 83 91 msgid "Custom Post : " 84 92 msgstr "カスタムポスト : " 85 93 86 #: plugin-load-filter.php: 776 plugin-load-filter.php:96294 #: plugin-load-filter.php:800 plugin-load-filter.php:988 87 95 msgid "Desktop Device" 88 96 msgstr "デスクトップデバイス" … … 98 106 msgstr "" 99 107 100 #: plugin-load-filter.php: 881108 #: plugin-load-filter.php:905 101 109 msgid "Filter Entry »" 102 110 msgstr "フィルター登録 »" 103 111 104 #: plugin-load-filter.php:8 72112 #: plugin-load-filter.php:896 105 113 msgid "Filter Registration" 106 114 msgstr "フィルター登録" 107 115 108 #: plugin-load-filter.php:27 2116 #: plugin-load-filter.php:276 109 117 msgid "General Settings" 110 118 msgstr "一般的な設定" 111 119 112 #: plugin-load-filter.php: 778120 #: plugin-load-filter.php:802 113 121 msgid "Home/Front-page" 114 122 msgstr "ホーム/フロントページ" … … 122 130 msgstr "https://celtislab.net/wp-plugin-load-filter" 123 131 124 #: plugin-load-filter.php:730 132 #: plugin-load-filter.php:739 133 msgid "" 134 "If you are implementing Ajax requests in your plugin development, you can " 135 "deactivate unnecessary plugins and speed up Ajax by setting the plugin slugs " 136 "to be activated to `_ajax_plf` in the request data." 137 msgstr "" 138 "プラグイン開発で Ajax リクエストを実装している場合、リクエスト データ内で有効化するプラグイン スラグを `_ajax_plf` " 139 "に設定することで、不要なプラグインを無効化し、Ajax を高速化することができます" 140 141 #: plugin-load-filter.php:754 125 142 msgid "Introduction of Addon" 126 143 msgstr "アドオンのご案内" 127 144 128 #: plugin-load-filter.php:7 37145 #: plugin-load-filter.php:761 129 146 msgid "Introduction of Realtime Image Optimizer" 130 147 msgstr "画像最適化プラグインのご案内" 131 148 132 #: plugin-load-filter.php:10 62149 #: plugin-load-filter.php:1088 133 150 msgid "Language of this post" 134 151 msgstr "この投稿の言語" 135 152 136 #: plugin-load-filter.php:7 24153 #: plugin-load-filter.php:748 137 154 msgid "Language switching per post" 138 155 msgstr "投稿毎の言語ロケール切替え" 139 156 140 #: plugin-load-filter.php: 777 plugin-load-filter.php:963157 #: plugin-load-filter.php:801 plugin-load-filter.php:989 141 158 msgid "Mobile Device" 142 159 msgstr "モバイルデバイス" 143 160 144 #: plugin-load-filter.php:6 39161 #: plugin-load-filter.php:657 145 162 msgid "Normal" 146 163 msgstr "" 147 164 148 #: plugin-load-filter.php:10 33165 #: plugin-load-filter.php:1059 149 166 msgid "Not Use" 150 167 msgstr "使用しない" 151 168 152 #: plugin-load-filter.php:1 074169 #: plugin-load-filter.php:1100 153 170 msgid "Original post ID for hreflang" 154 171 msgstr "元記事 Post ID(hreflang 用)" 155 172 156 #: plugin-load-filter.php: 782173 #: plugin-load-filter.php:806 157 174 msgid "Page" 158 175 msgstr "固定ページ" 159 176 160 #: plugin-load-filter.php:9 05 plugin-load-filter.php:957177 #: plugin-load-filter.php:931 plugin-load-filter.php:983 161 178 msgid "Page Filter is not registered" 162 179 msgstr "Page Filter にプラグインが登録されていません" 163 180 164 #: plugin-load-filter.php:6 41181 #: plugin-load-filter.php:659 165 182 msgid "Page Type" 166 183 msgstr "" 167 184 168 #: plugin-load-filter.php:8 73185 #: plugin-load-filter.php:897 169 186 msgid "Page Type Activation" 170 187 msgstr "Page Type 有効プラグイン登録" 171 188 172 #: plugin-load-filter.php: 585 plugin-load-filter.php:694189 #: plugin-load-filter.php:603 plugin-load-filter.php:712 173 190 msgid "Page Type Filter" 174 191 msgstr "Page Type フィルタ" 175 192 176 #: plugin-load-filter.php:10 38193 #: plugin-load-filter.php:1064 177 194 msgid "Plugin Activate/Deactivate filter for this Post only" 178 195 msgstr "この投稿のみに適用するプラグインの有効/停止フィルタ" 179 196 180 #: plugin-load-filter.php:10 32197 #: plugin-load-filter.php:1058 181 198 msgid "Plugin filter for Single post" 182 199 msgstr "シングルページ用プラグインフィルタ" 183 200 184 #: plugin-load-filter.php:27 1 plugin-load-filter.php:921201 #: plugin-load-filter.php:275 plugin-load-filter.php:947 185 202 msgid "Plugin Load Filter" 186 203 msgstr "" … … 190 207 msgstr "" 191 208 192 #: plugin-load-filter.php:12 34209 #: plugin-load-filter.php:1260 193 210 msgid "" 194 211 "Plugin Load Filter setting has been updated.\\nClick OK to reload the page." 195 212 msgstr "Plugin Load Filterの設定を更新しました\\n OK をクリックするとページをリロードします" 196 213 197 #: plugin-load-filter.php:8 68214 #: plugin-load-filter.php:892 198 215 msgid "Plugin Load Filter Settings" 199 216 msgstr "プラグインロードフィルター設定" 200 217 201 #: plugin-load-filter.php:8 66218 #: plugin-load-filter.php:890 202 219 msgid "Plugin Load Filter Settings\\nClick OK to clear it." 203 220 msgstr "プラグインロードフィルター\\nOKをクリックすると設定をクリアします" 204 221 205 #: plugin-load-filter.php: 783 plugin-load-filter.php:796222 #: plugin-load-filter.php:807 plugin-load-filter.php:820 206 223 msgid "Post : " 207 224 msgstr "投稿フォーマット : " 208 225 209 #: plugin-load-filter.php:7 20226 #: plugin-load-filter.php:744 210 227 msgid "Post Language Locale" 211 228 msgstr "投稿毎の言語ロケール" 212 229 213 #: plugin-load-filter.php: 780230 #: plugin-load-filter.php:804 214 231 msgid "Search page" 215 232 msgstr "検索結果ページ" 216 233 217 #: plugin-load-filter.php:7 32 plugin-load-filter.php:739234 #: plugin-load-filter.php:756 plugin-load-filter.php:763 218 235 msgid "See more information " 219 236 msgstr "詳細情報の参照" 220 237 221 #: plugin-load-filter.php: 894238 #: plugin-load-filter.php:919 222 239 msgid "" 223 240 "Select plugins to be activated for each page type by clicking on <span " … … 228 245 "dashicons-admin-plugins\"></span> マークをクリックして指定します" 229 246 230 #: plugin-load-filter.php: 783247 #: plugin-load-filter.php:807 231 248 msgid "Standard" 232 249 msgstr "標準" 233 250 234 #: plugin-load-filter.php:7 31251 #: plugin-load-filter.php:755 235 252 msgid "" 236 253 "Thank you for using Plugin Load Filter. We offer URL filtering as Addon. " … … 240 257 "Filterをご利用いただきありがとうございます。アドオンとしてURLフィルタリング機能を提供しております。アドオンのご利用をご検討ください" 241 258 242 #: plugin-load-filter.php: 583259 #: plugin-load-filter.php:601 243 260 msgid "URL Group Filter" 244 261 msgstr "URL グループフィルタ" 245 262 246 #: plugin-load-filter.php:10 34263 #: plugin-load-filter.php:1060 247 264 msgid "Use" 248 265 msgstr "使用する" 249 266 250 #: plugin-load-filter.php:11 02267 #: plugin-load-filter.php:1128 251 268 msgid "" 252 269 "Use MO translation file for the selected locale. When Original Post ID is " … … 257 274 "`hreflang` メタデータグループとして扱われます" 258 275 259 #: plugin-load-filter.php:7 38276 #: plugin-load-filter.php:762 260 277 #| msgid "" 261 278 #| "We also sell image optimization plug-ins. Reduce and speed up data size " … … 266 283 msgstr "画像最適化プラグインを販売しています。 WebP / AVIFに変換することにより、データサイズを縮小して高速化します" 267 284 268 #: plugin-load-filter.php:8 02285 #: plugin-load-filter.php:826 269 286 msgid "WordPress Embed Content Card (API)" 270 287 msgstr "WordPress 埋め込みコンテンツカード (API)" 271 288 272 #: plugin-load-filter.php: 895289 #: plugin-load-filter.php:921 273 290 msgid "" 274 291 "You can also select plugins to activate from Post/Page content editing " -
plugin-load-filter/trunk/languages/plf.pot
r2674033 r3005355 3 3 msgstr "" 4 4 "Project-Id-Version: plf\n" 5 "POT-Creation-Date: 202 2-02-07 02:53+0000\n"5 "POT-Creation-Date: 2023-12-01 08:23+0000\n" 6 6 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 7 7 "Last-Translator: Yasunari Enomoto <[email protected]>\n" … … 18 18 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;" 19 19 20 #: plugin-load-filter.php:7 0420 #: plugin-load-filter.php:722 21 21 msgid "" 22 22 "* Plugins with `Page Type Filter` selected are blocked, but you can Activate " … … 25 25 msgstr "" 26 26 27 #: plugin-load-filter.php: 69627 #: plugin-load-filter.php:714 28 28 msgid "<strong>Admin Type</strong> - If you only use plugins for Admin pages." 29 29 msgstr "" 30 30 31 #: plugin-load-filter.php:7 0731 #: plugin-load-filter.php:725 32 32 msgid "" 33 33 "<strong>Exclude Post Format Type</strong> - Choose Post Format Type you are " … … 35 35 msgstr "" 36 36 37 #: plugin-load-filter.php: 69537 #: plugin-load-filter.php:713 38 38 msgid "<strong>Normal</strong> - Exclude plugin from Page Type filter" 39 39 msgstr "" 40 40 41 #: plugin-load-filter.php: 69741 #: plugin-load-filter.php:715 42 42 msgid "" 43 43 "<strong>Page Type</strong> - If you want to activate or deactivate plugins " … … 45 45 msgstr "" 46 46 47 #: plugin-load-filter.php:7 2147 #: plugin-load-filter.php:745 48 48 msgid "" 49 49 "A very simple multilingual feature that uses MO translation files for the " … … 51 51 msgstr "" 52 52 53 #: plugin-load-filter.php: 89953 #: plugin-load-filter.php:925 54 54 msgid "Activate Plugin Entry »" 55 55 msgstr "" 56 56 57 #: plugin-load-filter.php:7 0157 #: plugin-load-filter.php:719 58 58 msgid "Add a link to admin bar for displaying the plugins filtered status" 59 59 msgstr "" 60 60 61 #: plugin-load-filter.php:6 4061 #: plugin-load-filter.php:658 62 62 msgid "Admin Type" 63 63 msgstr "" 64 64 65 #: plugin-load-filter.php:779 65 #: plugin-load-filter.php:742 66 msgid "Ajax acceleration filter" 67 msgstr "" 68 69 #: plugin-load-filter.php:738 70 msgid "Ajax acceleration filter (Features for plugin developers)" 71 msgstr "" 72 73 #: plugin-load-filter.php:803 66 74 msgid "Archive page" 67 75 msgstr "" 68 76 69 #: plugin-load-filter.php: 78177 #: plugin-load-filter.php:805 70 78 msgid "Attachment page" 71 79 msgstr "" 72 80 73 #: plugin-load-filter.php: 880 plugin-load-filter.php:89881 #: plugin-load-filter.php:904 plugin-load-filter.php:924 74 82 msgid "Clear" 75 83 msgstr "" 76 84 77 #: plugin-load-filter.php:8 0885 #: plugin-load-filter.php:832 78 86 msgid "Custom Post : " 79 87 msgstr "" 80 88 81 #: plugin-load-filter.php: 776 plugin-load-filter.php:96289 #: plugin-load-filter.php:800 plugin-load-filter.php:988 82 90 msgid "Desktop Device" 83 91 msgstr "" … … 93 101 msgstr "" 94 102 95 #: plugin-load-filter.php: 881103 #: plugin-load-filter.php:905 96 104 msgid "Filter Entry »" 97 105 msgstr "" 98 106 99 #: plugin-load-filter.php:8 72107 #: plugin-load-filter.php:896 100 108 msgid "Filter Registration" 101 109 msgstr "" 102 110 103 #: plugin-load-filter.php:27 2111 #: plugin-load-filter.php:276 104 112 msgid "General Settings" 105 113 msgstr "" 106 114 107 #: plugin-load-filter.php: 778115 #: plugin-load-filter.php:802 108 116 msgid "Home/Front-page" 109 117 msgstr "" … … 117 125 msgstr "" 118 126 119 #: plugin-load-filter.php:730 127 #: plugin-load-filter.php:739 128 msgid "" 129 "If you are implementing Ajax requests in your plugin development, you can " 130 "deactivate unnecessary plugins and speed up Ajax by setting the plugin slugs " 131 "to be activated to `_ajax_plf` in the request data." 132 msgstr "" 133 134 #: plugin-load-filter.php:754 120 135 msgid "Introduction of Addon" 121 136 msgstr "" 122 137 123 #: plugin-load-filter.php:7 37138 #: plugin-load-filter.php:761 124 139 msgid "Introduction of Realtime Image Optimizer" 125 140 msgstr "" 126 141 127 #: plugin-load-filter.php:10 62142 #: plugin-load-filter.php:1088 128 143 msgid "Language of this post" 129 144 msgstr "" 130 145 131 #: plugin-load-filter.php:7 24146 #: plugin-load-filter.php:748 132 147 msgid "Language switching per post" 133 148 msgstr "" 134 149 135 #: plugin-load-filter.php: 777 plugin-load-filter.php:963150 #: plugin-load-filter.php:801 plugin-load-filter.php:989 136 151 msgid "Mobile Device" 137 152 msgstr "" 138 153 139 #: plugin-load-filter.php:6 39154 #: plugin-load-filter.php:657 140 155 msgid "Normal" 141 156 msgstr "" 142 157 143 #: plugin-load-filter.php:10 33158 #: plugin-load-filter.php:1059 144 159 msgid "Not Use" 145 160 msgstr "" 146 161 147 #: plugin-load-filter.php:1 074162 #: plugin-load-filter.php:1100 148 163 msgid "Original post ID for hreflang" 149 164 msgstr "" 150 165 151 #: plugin-load-filter.php: 782166 #: plugin-load-filter.php:806 152 167 msgid "Page" 153 168 msgstr "" 154 169 155 #: plugin-load-filter.php:9 05 plugin-load-filter.php:957170 #: plugin-load-filter.php:931 plugin-load-filter.php:983 156 171 msgid "Page Filter is not registered" 157 172 msgstr "" 158 173 159 #: plugin-load-filter.php:6 41174 #: plugin-load-filter.php:659 160 175 msgid "Page Type" 161 176 msgstr "" 162 177 163 #: plugin-load-filter.php:8 73178 #: plugin-load-filter.php:897 164 179 msgid "Page Type Activation" 165 180 msgstr "" 166 181 167 #: plugin-load-filter.php: 585 plugin-load-filter.php:694182 #: plugin-load-filter.php:603 plugin-load-filter.php:712 168 183 msgid "Page Type Filter" 169 184 msgstr "" 170 185 171 #: plugin-load-filter.php:10 38186 #: plugin-load-filter.php:1064 172 187 msgid "Plugin Activate/Deactivate filter for this Post only" 173 188 msgstr "" 174 189 175 #: plugin-load-filter.php:10 32190 #: plugin-load-filter.php:1058 176 191 msgid "Plugin filter for Single post" 177 192 msgstr "" 178 193 179 #: plugin-load-filter.php:27 1 plugin-load-filter.php:921194 #: plugin-load-filter.php:275 plugin-load-filter.php:947 180 195 msgid "Plugin Load Filter" 181 196 msgstr "" … … 185 200 msgstr "" 186 201 187 #: plugin-load-filter.php:12 34202 #: plugin-load-filter.php:1260 188 203 msgid "" 189 204 "Plugin Load Filter setting has been updated.\\nClick OK to reload the page." 190 205 msgstr "" 191 206 192 #: plugin-load-filter.php:8 68207 #: plugin-load-filter.php:892 193 208 msgid "Plugin Load Filter Settings" 194 209 msgstr "" 195 210 196 #: plugin-load-filter.php:8 66211 #: plugin-load-filter.php:890 197 212 msgid "Plugin Load Filter Settings\\nClick OK to clear it." 198 213 msgstr "" 199 214 200 #: plugin-load-filter.php: 783 plugin-load-filter.php:796215 #: plugin-load-filter.php:807 plugin-load-filter.php:820 201 216 msgid "Post : " 202 217 msgstr "" 203 218 204 #: plugin-load-filter.php:7 20219 #: plugin-load-filter.php:744 205 220 msgid "Post Language Locale" 206 221 msgstr "" 207 222 208 #: plugin-load-filter.php: 780223 #: plugin-load-filter.php:804 209 224 msgid "Search page" 210 225 msgstr "" 211 226 212 #: plugin-load-filter.php:7 32 plugin-load-filter.php:739227 #: plugin-load-filter.php:756 plugin-load-filter.php:763 213 228 msgid "See more information " 214 229 msgstr "" 215 230 216 #: plugin-load-filter.php: 894231 #: plugin-load-filter.php:919 217 232 msgid "" 218 233 "Select plugins to be activated for each page type by clicking on <span " … … 221 236 msgstr "" 222 237 223 #: plugin-load-filter.php: 783238 #: plugin-load-filter.php:807 224 239 msgid "Standard" 225 240 msgstr "" 226 241 227 #: plugin-load-filter.php:7 31242 #: plugin-load-filter.php:755 228 243 msgid "" 229 244 "Thank you for using Plugin Load Filter. We offer URL filtering as Addon. " … … 231 246 msgstr "" 232 247 233 #: plugin-load-filter.php: 583248 #: plugin-load-filter.php:601 234 249 msgid "URL Group Filter" 235 250 msgstr "" 236 251 237 #: plugin-load-filter.php:10 34252 #: plugin-load-filter.php:1060 238 253 msgid "Use" 239 254 msgstr "" 240 255 241 #: plugin-load-filter.php:11 02256 #: plugin-load-filter.php:1128 242 257 msgid "" 243 258 "Use MO translation file for the selected locale. When Original Post ID is " … … 246 261 msgstr "" 247 262 248 #: plugin-load-filter.php:7 38263 #: plugin-load-filter.php:762 249 264 msgid "" 250 265 "We sell Image Optimization plugin. Reduce and speed up data size by " … … 252 267 msgstr "" 253 268 254 #: plugin-load-filter.php:8 02269 #: plugin-load-filter.php:826 255 270 msgid "WordPress Embed Content Card (API)" 256 271 msgstr "" 257 272 258 #: plugin-load-filter.php: 895273 #: plugin-load-filter.php:921 259 274 msgid "" 260 275 "You can also select plugins to activate from Post/Page content editing " -
plugin-load-filter/trunk/mu-plugins/plf-filter.php
r2981485 r3005355 3 3 Plugin Name: plugin load filter [plf-filter] 4 4 Description: Dynamically activated only plugins that you have selected in each page. [Note] plf-filter has been automatically installed / deleted by Activate / Deactivate of "load filter plugin". 5 Version: 4. 0.175 Version: 4.1.0 6 6 Plugin URI: http://celtislab.net/en/wp-plugin-load-filter 7 7 Author: enomoto@celtislab … … 44 44 function wp_get_current_user() { 45 45 if ( ! function_exists( 'wp_set_current_user' ) ){ 46 /*47 46 if ( defined( 'LOGGED_IN_COOKIE' ) && !empty( $_COOKIE[ LOGGED_IN_COOKIE ] ) ) { 48 47 $cookie_elements = explode( '|', $_COOKIE[ LOGGED_IN_COOKIE ] ); … … 70 69 } 71 70 } 72 */73 71 //ver4.0.17 fixed https://wordpress.org/support/topic/wp_get_current_user-is-overridden/ 74 72 //return 0; … … 233 231 <div><textarea id="plf-filtered-result" style="width:100%; height:320px; margin:5px 0;"><?php echo $text; ?></textarea></div> 234 232 <div class="button-group"> 235 <a href="#" id="plf-status-close" class="button" aria-label="Close modal"> <?php _e('Close'); ?></a>233 <a href="#" id="plf-status-close" class="button" aria-label="Close modal">Close</a> 236 234 </div> 237 235 </div> … … 556 554 $args->query_vars[$wpvar] = $args->extra_query_vars[$wpvar]; 557 555 } elseif ( isset( $_GET[ $wpvar ] ) && isset( $_POST[ $wpvar ] ) && $_GET[ $wpvar ] !== $_POST[ $wpvar ] ) { 558 wp_die( __( 'A variable mismatch has been detected.' ), __( 'Sorry, you are not allowed to view this item.' ), 400 );556 wp_die( 'A variable mismatch has been detected.', 'Sorry, you are not allowed to view this item.', 400 ); 559 557 } elseif ( isset( $_POST[$wpvar] ) ){ 560 558 $args->query_vars[$wpvar] = $_POST[$wpvar]; … … 861 859 return $new_plugins; 862 860 } 861 862 /** 863 * Get valid plugins list for ajax acceleration filter 864 * @param $p_slugs : ajax _ajax_plf activate plugins slug data (Separate multiple with commas) 865 * @param $option : option data eg. 'active_plugins', 'active_sitewide_plugins', 'jetpack_active_modules' ... 866 * @param $plugins : active plugins values before filtering 867 * @return data values after filtering 868 */ 869 static function ajaxfilter_to_active_plugins( $p_slugs, $option, $plugins ){ 870 //照合用にカンマ区切りをスラッシュ区切りへ変換 871 $arslugs = array_filter( array_map("trim", explode(',', $p_slugs))); 872 $slugs = '/' . implode('/', $arslugs) . '/'; 873 874 $new_plugins = array(); 875 foreach ( $plugins as $item ) { 876 if(!empty($item)){ 877 $unload = false; 878 $p_key = self::plugin_keygen( $item, $option ); 879 $sep = strpos($p_key, '/' ); 880 $p_slug = ($sep !== false)? substr($p_key, 0, $sep) : $p_key; 881 if(false === strpos($slugs, "/$p_slug/")){ 882 $unload = true; 883 } 884 if(!$unload) { 885 if($option === 'active_sitewide_plugins'){ 886 $new_plugins[$item] = $item; 887 } else { 888 $new_plugins[] = $item; 889 } 890 } 891 } 892 } 893 return $new_plugins; 894 } 863 895 864 896 //Plugin Load Filter Main (active plugins/modules filtering) … … 1065 1097 if(strpos($parse_url['path'], '/plugins.php' ) !== false || strpos($parse_url['path'], '/update-core.php' ) !== false){ 1066 1098 return false; 1099 } 1100 //Ajax acceleration plugin filter (for plugin developers) 1101 if(!empty($action) && !empty(self::$filter['ajax_accelfilter'])){ 1102 $slugs = (isset($_REQUEST['_ajax_plf']))? wp_kses( stripslashes($_REQUEST['_ajax_plf']), 'strip' ) : ''; 1103 if(!empty($slugs)){ 1104 $referer = (!empty( $_SERVER['HTTP_REFERER'] )) ? wp_kses( stripslashes($_SERVER['HTTP_REFERER']), 'strip' ) : ''; 1105 $parse_ref = parse_url($referer); 1106 if(!empty($parse_ref['host']) && strpos( home_url(), $parse_ref['host'] ) !== false){ 1107 $new_plugins = self::ajaxfilter_to_active_plugins( $slugs, $option, $act_plugins ); 1108 foreach ($new_plugins as $key) { 1109 if(!empty($key)){ 1110 $key = self::plugin_keygen( $key, $option ); 1111 self::$filtered_plugins[$key] = $key; 1112 } 1113 } 1114 return $new_plugins; 1115 } 1116 } 1067 1117 } 1068 1118 if(!empty(self::$s_url_filter)){ -
plugin-load-filter/trunk/plugin-load-filter.php
r2981485 r3005355 3 3 Plugin Name: plugin load filter 4 4 Description: Dynamically activate the selected plugins for each page. Response will be faster by filtering plugins. 5 Version: 4. 0.175 Version: 4.1.0 6 6 Plugin URI: https://celtislab.net/en/wp-plugin-load-filter 7 7 Author: enomoto@celtislab 8 8 Author URI: https://celtislab.net/ 9 9 Requires at least: 5.3 10 Tested up to: 6. 310 Tested up to: 6.4 11 11 Requires PHP: 7.2 12 12 License: GPLv2 … … 173 173 .dashicons-yes:before { font-size: 20px; border: 1px solid #eee; } 174 174 .device-type input.altcheckbox[type="checkbox"]:checked + span.dashicons-yes:before { background-color: yellowgreen; } 175 . language-option{ margin-bottom: 28px; }175 .option-item { margin-bottom: 28px; } 176 176 </style> 177 177 <?php } … … 273 273 public function plf_option_menu() { 274 274 if(current_user_can( 'activate_plugins' )){ 275 $page = add_menu_page( 'Plugin Load FIlter Settings', __('Plugin Load Filter', 'plf'), 'manage_options', 'plugin_load_filter_admin_manage_page', array(&$this, 'plf_option_page'), 'dashicons-filter', '65.1');276 add_submenu_page( 'plugin_load_filter_admin_manage_page', 'Plugin Load FIlter Settings', __('General Settings', 'plf'), 'manage_options', 'plugin_load_filter_admin_manage_page', array(&$this, 'plf_option_page') );275 $page = add_menu_page( 'Plugin Load FIlter Settings', esc_html__('Plugin Load Filter', 'plf'), 'manage_options', 'plugin_load_filter_admin_manage_page', array(&$this, 'plf_option_page'), 'dashicons-filter', '65.1'); 276 add_submenu_page( 'plugin_load_filter_admin_manage_page', 'Plugin Load FIlter Settings', esc_html__('General Settings', 'plf'), 'manage_options', 'plugin_load_filter_admin_manage_page', array(&$this, 'plf_option_page') ); 277 277 add_action( 'admin_print_scripts-'.$page, array(&$this, 'plf_scripts') ); 278 278 add_action( 'admin_print_scripts-'.$page, array(&$this, 'deploy_mu_plugins')); … … 394 394 self::$filter['language'] = (isset($_POST['plf_option']['language']))? 1 : 0; 395 395 396 //Ajax acceleration plugin filter (for plugin developers) 397 self::$filter['ajax_accelfilter'] = (isset($_POST['plf_option']['ajax_accelfilter']))? 1 : 0; 398 396 399 update_option('plf_option', self::$filter ); 397 400 } … … 421 424 self::$filter['admin_bar'] = 0; 422 425 self::$filter['language'] = 0; 426 self::$filter['ajax_accelfilter'] = 0; 423 427 update_option('plf_option', self::$filter ); 424 428 header('Location: ' . admin_url('plugins.php?page=plugin_load_filter_admin_manage_page')); … … 547 551 return $html; 548 552 } 549 553 554 //安全な文字列から指定タグのみデコード(既存の翻訳ファイルへ影響せずにエスケープするために使用) 555 //<strong>Type</strong> -> <strong>Type</strong> 556 static function decode_safe_tag( $tag, $safe_str ) { 557 $safe_str = preg_replace_callback( "|<($tag.*)>(.*)</($tag)>|im", function($matches){ 558 $tag_attrs = str_replace( '"', '"', $matches[1]); 559 return '<' . $tag_attrs . '>' . $matches[2] . '</' . $matches[3] . '>'; 560 }, $safe_str); 561 return $safe_str; 562 } 563 550 564 public function plfregist_item($key, $chklist, $filter) { 551 565 $p_name = self::pluginkey_to_name($key); … … 583 597 ?> 584 598 <tr> 585 <th class="filter-plugins-name" rowspan="2"><?php _e('Plugins'); ?></th>599 <th class="filter-plugins-name" rowspan="2"><?php esc_html_e('Plugins'); ?></th> 586 600 <?php if($urlnum > 0) { ?> 587 <th class="filter-type urlfilter" colspan="<?php echo $urlnum; ?>" style="font-weight:bold; font-size:smaller;"><?php _e('URL Group Filter', 'plf'); ?></th>601 <th class="filter-type urlfilter" colspan="<?php echo $urlnum; ?>" style="font-weight:bold; font-size:smaller;"><?php esc_html_e('URL Group Filter', 'plf'); ?></th> 588 602 <?php } ?> 589 <th class="filter-type filter-tmpl" colspan="3" style="font-weight:bold; font-size:smaller;"><?php _e('Page Type Filter', 'plf'); ?></th>603 <th class="filter-type filter-tmpl" colspan="3" style="font-weight:bold; font-size:smaller;"><?php esc_html_e('Page Type Filter', 'plf'); ?></th> 590 604 </tr> 591 605 <tr> … … 641 655 } 642 656 } ?> 643 <th class="filter-type filter-none"><span style="font-size:smaller"><?php _e('Normal', 'plf'); ?></span></th>644 <th class="filter-type filter-admin"><span style="font-size:smaller"><?php _e('Admin Type', 'plf'); ?></span></th>645 <th class="filter-type filter-tmpl"><span style="font-size:smaller"><?php _e('Page Type', 'plf'); ?></span></th>657 <th class="filter-type filter-none"><span style="font-size:smaller"><?php esc_html_e('Normal', 'plf'); ?></span></th> 658 <th class="filter-type filter-admin"><span style="font-size:smaller"><?php esc_html_e('Admin Type', 'plf'); ?></span></th> 659 <th class="filter-type filter-tmpl"><span style="font-size:smaller"><?php esc_html_e('Page Type', 'plf'); ?></span></th> 646 660 </tr> 647 661 </thead> … … 696 710 <div class="grid-row"> 697 711 <div class="filter-description"> 698 <p><strong>[ <?php _e('Page Type Filter', 'plf'); ?> ]</strong></p>699 <?php _e('<strong>Normal</strong> - Exclude plugin from Page Type filter', 'plf'); ?><br />700 <?php _e('<strong>Admin Type</strong> - If you only use plugins for Admin pages.', 'plf'); ?><br />701 <?php _e('<strong>Page Type</strong> - If you want to activate or deactivate plugins for each Page Type and Single page.', 'plf'); ?>712 <p><strong>[ <?php esc_html_e('Page Type Filter', 'plf'); ?> ]</strong></p> 713 <?php echo self::decode_safe_tag( 'strong', esc_html__('<strong>Normal</strong> - Exclude plugin from Page Type filter', 'plf')); ?><br /> 714 <?php echo self::decode_safe_tag( 'strong', esc_html__('<strong>Admin Type</strong> - If you only use plugins for Admin pages.', 'plf')); ?><br /> 715 <?php echo self::decode_safe_tag( 'strong', esc_html__('<strong>Page Type</strong> - If you want to activate or deactivate plugins for each Page Type and Single page.', 'plf')); ?> 702 716 <p> 703 717 <?php 704 718 $checked = (!empty(self::$filter['admin_bar']))? self::$filter['admin_bar'] : false; 705 echo '<span class="admin-bar-option">' . self::checkbox("plf_option[admin_bar]", $checked, __('Add a link to admin bar for displaying the plugins filtered status', 'plf') ) . '</span>';719 echo '<span class="admin-bar-option">' . self::checkbox("plf_option[admin_bar]", $checked, esc_html__('Add a link to admin bar for displaying the plugins filtered status', 'plf') ) . '</span>'; 706 720 ?> 707 721 </p> 708 <p><?php _e('* Plugins with `Page Type Filter` selected are blocked, but you can Activate it for various Page type in the `Page Type Activation` and Single Page setting.', 'plf'); ?></p>722 <p><?php esc_html_e('* Plugins with `Page Type Filter` selected are blocked, but you can Activate it for various Page type in the `Page Type Activation` and Single Page setting.', 'plf'); ?></p> 709 723 710 724 <div class="exclude-pformat"> 711 <p><?php _e('<strong>Exclude Post Format Type</strong> - Choose Post Format Type you are not using. To exclude from Page Type item subject.', 'plf'); ?></p>725 <p><?php echo self::decode_safe_tag( 'strong', esc_html__('<strong>Exclude Post Format Type</strong> - Choose Post Format Type you are not using. To exclude from Page Type item subject.', 'plf')); ?></p> 712 726 <?php 713 727 $html = '<div>'; … … 722 736 ?> 723 737 </div> 724 <p><strong>[ <?php _e('Post Language Locale', 'plf'); ?> ]</strong></p> 725 <p><?php _e('A very simple multilingual feature that uses MO translation files for the selected locale per Post/Page editing screen.','plf'); ?></p> 738 <p><strong>[ <?php esc_html_e('Ajax acceleration filter (Features for plugin developers)', 'plf'); ?> ]</strong></p> 739 <p><?php esc_html_e('If you are implementing Ajax requests in your plugin development, you can deactivate unnecessary plugins and speed up Ajax by setting the plugin slugs to be activated to `_ajax_plf` in the request data.','plf'); ?></p> 740 <?php 741 $checked = (!empty(self::$filter['ajax_accelfilter']))? self::$filter['ajax_accelfilter'] : false; 742 echo '<div class="option-item">' . self::checkbox("plf_option[ajax_accelfilter]", $checked, esc_html__('Ajax acceleration filter', 'plf') ) . '</div>'; 743 ?> 744 <p><strong>[ <?php esc_html_e('Post Language Locale', 'plf'); ?> ]</strong></p> 745 <p><?php esc_html_e('A very simple multilingual feature that uses MO translation files for the selected locale per Post/Page editing screen.','plf'); ?></p> 726 746 <?php 727 747 $checked = (!empty(self::$filter['language']))? self::$filter['language'] : false; 728 echo '<div class=" language-option">' . self::checkbox("plf_option[language]", $checked,__('Language switching per post', 'plf') ) . '</div>';748 echo '<div class="option-item">' . self::checkbox("plf_option[language]", $checked, esc_html__('Language switching per post', 'plf') ) . '</div>'; 729 749 ?> 730 750 </div> … … 732 752 <?php if(! is_plugin_active('plugin-load-filter-addon/plugin-load-filter-addon.php')){ ?> 733 753 <div style="background-color: #f0fff0; border:1px solid #70c370; padding:4px 20px; margin: 10px 0;" > 734 <p><strong><?php _e('Introduction of Addon', 'plf'); ?></strong></p>735 <p><?php _e('Thank you for using Plugin Load Filter. We offer URL filtering as Addon. Please consider using Addon!', 'plf'); ?></p>736 <p><?php _e('See more information ', 'plf'); ?><a target="_blank" rel="noopener" href="https://celtislab.net/en/wp-plugin-load-filter-addon/"> Plugin Load Filter Addon</a></p>754 <p><strong><?php esc_html_e('Introduction of Addon', 'plf'); ?></strong></p> 755 <p><?php esc_html_e('Thank you for using Plugin Load Filter. We offer URL filtering as Addon. Please consider using Addon!', 'plf'); ?></p> 756 <p><?php esc_html_e('See more information ', 'plf'); ?><a target="_blank" rel="noopener" href="https://celtislab.net/en/wp-plugin-load-filter-addon/"> Plugin Load Filter Addon</a></p> 737 757 </div> 738 758 <?php } ?> 739 759 <?php if(! is_plugin_active('realtime-img-optimizer/realtime-img-optimizer.php')){ ?> 740 760 <div style="background-color: #f0fff0; border:1px solid #70c370; padding:4px 20px; margin: 10px 0;" > 741 <p><strong><?php _e('Introduction of Realtime Image Optimizer', 'plf'); ?></strong></p>742 <p><?php _e('We sell Image Optimization plugin. Reduce and speed up data size by converting to WebP / AVIF.', 'plf'); ?></p>743 <p><?php _e('See more information ', 'plf'); ?><a target="_blank" rel="noopener" href="https://celtislab.net/en/wp-realtime-image-optimizer/"> Realtime Image Optimizer</a></p>761 <p><strong><?php esc_html_e('Introduction of Realtime Image Optimizer', 'plf'); ?></strong></p> 762 <p><?php esc_html_e('We sell Image Optimization plugin. Reduce and speed up data size by converting to WebP / AVIF.', 'plf'); ?></p> 763 <p><?php esc_html_e('See more information ', 'plf'); ?><a target="_blank" rel="noopener" href="https://celtislab.net/en/wp-realtime-image-optimizer/"> Realtime Image Optimizer</a></p> 744 764 </div> 745 765 <?php } ?> … … 777 797 <table id="activation-table" class="widefat"> 778 798 <thead> 779 <tr><th class="plugins-name"><?php _e('Plugins'); ?></th>780 <th class="device-type"><span title="<?php _e('Desktop Device', 'plf'); ?>" class="dashicons dashicons-desktop"></span><br /><span style="font-size:xx-small">Desktop</span></th>781 <th class="device-type"><span title="<?php _e('Mobile Device', 'plf'); ?>" class="dashicons dashicons-smartphone"></span><br /><span style="font-size:xx-small">Mobile</span></th>782 <th class="ckbox-type"><span title="<?php _e('Home/Front-page', 'plf'); ?>" class="dashicons dashicons-admin-home"></span><br /><span style="font-size:xx-small">Home</span></th>783 <th class="ckbox-type"><span title="<?php _e('Archive page', 'plf'); ?>" class="dashicons dashicons-list-view"></span><br /><span style="font-size:xx-small">Archive</span></th>784 <th class="ckbox-type"><span title="<?php _e('Search page', 'plf'); ?>" class="dashicons dashicons-search"></span><br /><span style="font-size:xx-small">Search</span></th>785 <th class="ckbox-type"><span title="<?php _e('Attachment page', 'plf'); ?>" class="dashicons dashicons-media-default"></span><br /><span style="font-size:xx-small">Attach</span></th>786 <th class="ckbox-type"><span title="<?php _e('Page', 'plf'); ?>" class="dashicons dashicons-admin-page"></span><br /><span style="font-size:xx-small">Page</span></th>787 <th class="ckbox-type pformat"><span title="<?php _e('Post : ', 'plf');_e('Standard', 'plf'); ?>" class="dashicons dashicons-admin-post"></span><br /><span style="font-size:xx-small">Post</span></th>799 <tr><th class="plugins-name"><?php esc_html_e('Plugins'); ?></th> 800 <th class="device-type"><span title="<?php esc_html_e('Desktop Device', 'plf'); ?>" class="dashicons dashicons-desktop"></span><br /><span style="font-size:xx-small">Desktop</span></th> 801 <th class="device-type"><span title="<?php esc_html_e('Mobile Device', 'plf'); ?>" class="dashicons dashicons-smartphone"></span><br /><span style="font-size:xx-small">Mobile</span></th> 802 <th class="ckbox-type"><span title="<?php esc_html_e('Home/Front-page', 'plf'); ?>" class="dashicons dashicons-admin-home"></span><br /><span style="font-size:xx-small">Home</span></th> 803 <th class="ckbox-type"><span title="<?php esc_html_e('Archive page', 'plf'); ?>" class="dashicons dashicons-list-view"></span><br /><span style="font-size:xx-small">Archive</span></th> 804 <th class="ckbox-type"><span title="<?php esc_html_e('Search page', 'plf'); ?>" class="dashicons dashicons-search"></span><br /><span style="font-size:xx-small">Search</span></th> 805 <th class="ckbox-type"><span title="<?php esc_html_e('Attachment page', 'plf'); ?>" class="dashicons dashicons-media-default"></span><br /><span style="font-size:xx-small">Attach</span></th> 806 <th class="ckbox-type"><span title="<?php esc_html_e('Page', 'plf'); ?>" class="dashicons dashicons-admin-page"></span><br /><span style="font-size:xx-small">Page</span></th> 807 <th class="ckbox-type pformat"><span title="<?php esc_html_e('Post : ', 'plf'); esc_html_e('Standard', 'plf'); ?>" class="dashicons dashicons-admin-post"></span><br /><span style="font-size:xx-small">Post</span></th> 788 808 <?php 789 809 $pformat = array('image', 'gallery', 'video', 'audio', 'aside', 'status', 'quote', 'link', 'chat' ); … … 798 818 foreach ( $pformat as $type) { 799 819 if(!in_array($type, $exclude)){ 800 $title = __('Post : ', 'plf') . $type;820 $title = esc_html__('Post : ', 'plf') . $type; 801 821 $icon = ($type === "link")? "dashicons-admin-links" : "dashicons-format-$type"; 802 822 echo '<th class="ckbox-type pformat"><span title="' . $title . '" class="dashicons ' . $icon .'"></span><br /><span style="font-size:xx-small">' . $type .'</span></th>'; … … 804 824 } 805 825 if(function_exists('is_embed')){ 806 $title = __('WordPress Embed Content Card (API)', 'plf');826 $title = esc_html__('WordPress Embed Content Card (API)', 'plf'); 807 827 echo "<th class='ckbox-type tmpl-embed'><span title='$title' style='font-size:xx-small'>Embed Content</span></th>"; 808 828 } … … 810 830 foreach ( $post_types as $post_type ) { 811 831 if(!empty($post_type)){ 812 $title = __('Custom Post : ', 'plf') . $post_type;832 $title = esc_html__('Custom Post : ', 'plf') . $post_type; 813 833 echo "<th class='ckbox-type tmpl-custom'><span title='$title' style='font-size:xx-small'>$post_type</span></th>"; 814 834 } … … 868 888 //Option Setting Form Display 869 889 public function plf_option_page() { 870 $clear_dialog = __('Plugin Load Filter Settings\nClick OK to clear it.', 'plf');890 $clear_dialog = esc_html__('Plugin Load Filter Settings\nClick OK to clear it.', 'plf'); 871 891 ?> 872 <h2><?php _e('Plugin Load Filter Settings', 'plf'); ?></h2>892 <h2><?php esc_html_e('Plugin Load Filter Settings', 'plf'); ?></h2> 873 893 <p></p> 874 894 <div id="plf-setting-tabs"> 875 895 <ul> 876 <li><a href="#plf-registration-tab" ><?php _e('Filter Registration', 'plf'); ?></a></li>877 <li><a href="#plf-activation-tab" ><?php _e('Page Type Activation', 'plf'); ?></a></li>896 <li><a href="#plf-registration-tab" ><?php esc_html_e('Filter Registration', 'plf'); ?></a></li> 897 <li><a href="#plf-activation-tab" ><?php esc_html_e('Page Type Activation', 'plf'); ?></a></li> 878 898 </ul> 879 899 <div id="plf-registration-tab" style="display : none;"> … … 882 902 <?php $this->plfregist_table(self::$plugins_inf, self::$filter); ?> 883 903 <p class="submit"> 884 <input type="submit" class="button-primary" name="clear_regist_filter" value="<?php _e('Clear', 'plf'); ?>" onclick="return confirm('<?php echo $clear_dialog; ?>')" /> 885 <input type="submit" class="button-primary" name="edit_regist_filter" value="<?php _e('Filter Entry »', 'plf'); ?>" />904 <input type="submit" class="button-primary" name="clear_regist_filter" value="<?php esc_html_e('Clear', 'plf'); ?>" onclick="return confirm('<?php echo $clear_dialog; ?>')" /> 905 <input type="submit" class="button-primary" name="edit_regist_filter" value="<?php esc_html_e('Filter Entry »', 'plf'); ?>" /> 886 906 </p> 887 907 </form> … … 896 916 ?> 897 917 <br /> 898 <p><?php _e('Select plugins to be activated for each page type by clicking on <span class="dashicons dashicons-admin-plugins"></span> mark from "page type filter" registered plugins.', 'plf') ?><br /> 899 <?php _e('You can also select plugins to activate from Post/Page content editing screen.', 'plf') ?> 900 </p> 918 <p><?php 919 echo self::decode_safe_tag( 'span', esc_html__('Select plugins to be activated for each page type by clicking on <span class="dashicons dashicons-admin-plugins"></span> mark from "page type filter" registered plugins.', 'plf')); 920 ?><br /> 921 <?php esc_html_e('You can also select plugins to activate from Post/Page content editing screen.', 'plf') ?> 922 </p> 901 923 <p class="submit"> 902 <input type="submit" class="button-primary" name="clear_activate_page_filter" value="<?php _e('Clear', 'plf'); ?>" onclick="return confirm('<?php echo $clear_dialog; ?>')" /> 903 <input type="submit" class="button-primary" name="edit_activate_page_filter" value="<?php _e('Activate Plugin Entry »', 'plf'); ?>" />924 <input type="submit" class="button-primary" name="clear_activate_page_filter" value="<?php esc_html_e('Clear', 'plf'); ?>" onclick="return confirm('<?php echo $clear_dialog; ?>')" /> 925 <input type="submit" class="button-primary" name="edit_activate_page_filter" value="<?php esc_html_e('Activate Plugin Entry »', 'plf'); ?>" /> 904 926 </p> 905 927 <?php … … 907 929 ?> 908 930 <br /> 909 <p><span style="color: #ff0000;"><?php _e('Page Filter is not registered', 'plf') ?></span></p>931 <p><span style="color: #ff0000;"><?php esc_html_e('Page Filter is not registered', 'plf') ?></span></p> 910 932 <?php 911 933 } … … 923 945 function load_meta_boxes( $post_type, $post ) { 924 946 if ( current_user_can('activate_plugins', $post->ID) ) { 925 add_meta_box( 'pluginfilterdiv', __( 'Plugin Load Filter', 'plf' ), array(&$this, 'plf_meta_box'), null, 'side' );947 add_meta_box( 'pluginfilterdiv', esc_html__( 'Plugin Load Filter', 'plf' ), array(&$this, 'plf_meta_box'), null, 'side' ); 926 948 //add_action( 'admin_head', array(&$this, 'plf_css' )); 927 949 add_action( 'admin_footer', array(&$this, 'plf_meta_script' )); … … 959 981 960 982 if(empty($select_cvplugins)) 961 return __('Page Filter is not registered', 'plf');983 return esc_html__('Page Filter is not registered', 'plf'); 962 984 963 985 $html = '<table id="activation-table">'; 964 986 $html .= '<thead>'; 965 $html .= '<tr><th class="plugins-name">'. __('Plugins') . '</th>';966 $html .= '<th class="device-type"><span title="'. __('Desktop Device', 'plf'). '" class="dashicons dashicons-desktop"></span><br /><span style="font-size:xx-small">Desktop</span></th>';967 $html .= '<th class="device-type"><span title="'. __('Mobile Device', 'plf'). '" class="dashicons dashicons-smartphone"></span><br /><span style="font-size:xx-small">Mobile</span></th>';987 $html .= '<tr><th class="plugins-name">'. esc_html__('Plugins') . '</th>'; 988 $html .= '<th class="device-type"><span title="'. esc_html__('Desktop Device', 'plf'). '" class="dashicons dashicons-desktop"></span><br /><span style="font-size:xx-small">Desktop</span></th>'; 989 $html .= '<th class="device-type"><span title="'. esc_html__('Mobile Device', 'plf'). '" class="dashicons dashicons-smartphone"></span><br /><span style="font-size:xx-small">Mobile</span></th>'; 968 990 $html .= '</tr>'; 969 991 $html .= '</thead>'; … … 1034 1056 ?> 1035 1057 <div id="plugin-filter-select"> 1036 <p><?php _e( 'Plugin filter for Single post', 'plf' ); ?></p>1037 <label><input type="radio" name="pagefilter" value="default" <?php checked('default', $option['filter']); ?>/><?php _e('Not Use', 'plf' ); ?></label>1038 <label><input type="radio" name="pagefilter" value="include" <?php checked('include', $option['filter']); ?>/><?php _e('Use', 'plf'); ?></label>1058 <p><?php esc_html_e( 'Plugin filter for Single post', 'plf' ); ?></p> 1059 <label><input type="radio" name="pagefilter" value="default" <?php checked('default', $option['filter']); ?>/><?php esc_html_e('Not Use', 'plf' ); ?></label> 1060 <label><input type="radio" name="pagefilter" value="include" <?php checked('include', $option['filter']); ?>/><?php esc_html_e('Use', 'plf'); ?></label> 1039 1061 <div id="page-filter-stat"> 1040 1062 <?php echo $this->pagefilter_plugins_checklist( self::$plugins_inf, $pgfilter, $option ); ?> 1041 1063 </div> 1042 <div class="plf-option-info"><?php _e('Plugin Activate/Deactivate filter for this Post only', 'plf'); ?></div>1064 <div class="plf-option-info"><?php esc_html_e('Plugin Activate/Deactivate filter for this Post only', 'plf'); ?></div> 1043 1065 <?php 1044 1066 $c_locale = $o_post_id = ''; … … 1060 1082 $locale_mode = ''; 1061 1083 } 1062 echo '<p class="hide-if-no-js"><a id="plugin-filter-submit" class="button" href="#pluginfilterdiv" onclick="WPAddPagePluginLoadFilter(\'' . $ajax_nonce . '\');return false;" >'. __('Save') .'</a></p>';1084 echo '<p class="hide-if-no-js"><a id="plugin-filter-submit" class="button" href="#pluginfilterdiv" onclick="WPAddPagePluginLoadFilter(\'' . $ajax_nonce . '\');return false;" >'. esc_html__('Save') .'</a></p>'; 1063 1085 ?> 1064 1086 <hr> 1065 1087 <div id="plf-post-locale-select" <?php echo $locale_mode; ?>> 1066 <p><?php _e( 'Language of this post', 'plf' ); ?> <span class="dashicons dashicons-translation" aria-hidden="true"></span></p>1088 <p><?php esc_html_e( 'Language of this post', 'plf' ); ?> <span class="dashicons dashicons-translation" aria-hidden="true"></span></p> 1067 1089 <?php 1068 1090 wp_dropdown_languages( … … 1076 1098 ); 1077 1099 ?> 1078 <p><?php _e( 'Original post ID for hreflang', 'plf' ); ?></p>1100 <p><?php esc_html_e( 'Original post ID for hreflang', 'plf' ); ?></p> 1079 1101 <input type="text" id="plf_original_post_id" name="plf_original_post_id" size="8" value="<?php echo $o_post_id; ?>" /> 1080 1102 <div class="hflang-group-edit-lonk"> … … 1096 1118 $url = get_edit_post_link( $v ); 1097 1119 if(!empty($url)){ 1098 echo '<p><a class="edit-post-locale-link" target="_blank" href="' . $url .'" rel="external noreferrer noopener">' . __('Edit Post') . " ($l) " . '<span class="dashicons dashicons-external" aria-hidden="true"></span></a></p>';1120 echo '<p><a class="edit-post-locale-link" target="_blank" href="' . $url .'" rel="external noreferrer noopener">' . esc_html__('Edit Post') . " ($l) " . '<span class="dashicons dashicons-external" aria-hidden="true"></span></a></p>'; 1099 1121 } 1100 1122 } … … 1104 1126 ?> 1105 1127 </div> 1106 <div class="plf-option-info"><?php _e('Use MO translation file for the selected locale. When Original Post ID is registered, posts with the same Original Post ID are treated as `hreflang` metadata group.', 'plf'); ?></div>1107 <?php echo '<p class="hide-if-no-js"><a id="plugin-filter-submit" class="button" href="#pluginfilterdiv" onclick="WPAddPagePluginLoadFilter(\'' . $ajax_nonce . '\');return false;" >'. __('Save') .'</a></p>'; ?>1128 <div class="plf-option-info"><?php esc_html_e('Use MO translation file for the selected locale. When Original Post ID is registered, posts with the same Original Post ID are treated as `hreflang` metadata group.', 'plf'); ?></div> 1129 <?php echo '<p class="hide-if-no-js"><a id="plugin-filter-submit" class="button" href="#pluginfilterdiv" onclick="WPAddPagePluginLoadFilter(\'' . $ajax_nonce . '\');return false;" >'. esc_html__('Save') .'</a></p>'; ?> 1108 1130 </div> 1109 1131 </div> … … 1236 1258 1237 1259 function plf_meta_script() { 1238 $reload_dialog = __('Plugin Load Filter setting has been updated.\nClick OK to reload the page.', 'plf');1260 $reload_dialog = esc_html__('Plugin Load Filter setting has been updated.\nClick OK to reload the page.', 'plf'); 1239 1261 ?> 1240 1262 <script type='text/javascript' > -
plugin-load-filter/trunk/readme.txt
r2981485 r3005355 3 3 Tags: plugin, dynamic deactivate, disable plugins, filter, performance, language, locale 4 4 Requires at least: 5.3 5 Tested up to: 6. 35 Tested up to: 6.4 6 6 Requires PHP: 7.2 7 Stable tag: 4. 0.177 Stable tag: 4.1.0 8 8 Donate link: https://celtislab.net/en/wp-plugin-load-filter-addon/ 9 9 License: GPLv2 … … 82 82 == Changelog == 83 83 84 = 4.1.0 = 85 * 2023-12-1 86 * Security measures 87 * Added Ajax acceleration filter (Features for plugin developers) 88 89 84 90 = 4.0.17 = 85 91 * 2023-10-20
Note: See TracChangeset
for help on using the changeset viewer.