Changeset 3204865
- Timestamp:
- 12/09/2024 12:46:47 PM (3 months ago)
- Location:
- wp-tweaks
- Files:
-
- 2 added
- 28 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
wp-tweaks/tags/2.4.0/changelog.txt
r3024786 r3204865 1 = 2.4.0 - 2024-12-09 = 2 3 - Option to limit or disable post revisions. 4 1 5 = 2.3.4 - 2024-01-21 = 2 6 -
wp-tweaks/tags/2.4.0/classes/Settings.php
r2998320 r3204865 193 193 'type' => 'checkbox', 194 194 'default' => true, 195 'description' => __( 'For admin users only.', 'wp-tweaks' ),195 'description' => esc_html__( 'For admin users only.', 'wp-tweaks' ), 196 196 ], 197 197 [ … … 212 212 ], 213 213 'default' => '', 214 'description' => __( 'Search for "What is WordPress Heartbeat?" in your browser to learn more.', 'wp-tweaks' )214 'description' => esc_html__( 'Search for "What is WordPress Heartbeat?" in your browser to learn more.', 'wp-tweaks' ) 215 215 ], 216 216 [ … … 242 242 'type' => 'checkbox', 243 243 'default' => true, 244 ], 245 [ 246 'id' => 'post-revisions', 247 'title' => __( 'Post Revisions', 'wp-tweaks' ), 248 'type' => 'select', 249 'options' => [ 250 '' => __( 'Default', 'wp-tweaks' ), 251 '1' => 1, 252 '3' => 3, 253 '5' => 5, 254 '0' => __( 'Disable', 'wp-tweaks' ), 255 ], 256 'default' => '', 257 'description' => esc_html__( 'Limit or disable the number of posts revisions that WordPress stores in the database.', 'wp-tweaks' ) 244 258 ], 245 259 [ -
wp-tweaks/tags/2.4.0/dependencies/WP_Options_Page.php
r2956929 r3204865 8 8 * @package WP_Options_Page 9 9 * @author Luiz Bills <[email protected]> 10 * @version 0. 6.110 * @version 0.7.0 11 11 * @see https://github.com/luizbills/wp-options-page 12 12 */ … … 18 18 * @var string 19 19 */ 20 const VERSION = '0. 6.1';20 const VERSION = '0.7.0'; 21 21 22 22 /** … … 930 930 $desc = $field['description']; 931 931 $value = $this->get_field_value( $field ); 932 $options = $ field['options'] ?? [];932 $options = $this->parse_options( $field['options'] ?? [] ); 933 933 934 934 $atts = $field['attributes'] ?? []; … … 964 964 $desc = $field['description']; 965 965 $value = $this->get_field_value( $field ); 966 $options = $ field['options'] ?? [];966 $options = $this->parse_options( $field['options'] ?? [] ); 967 967 968 968 $atts = $field['attributes'] ?? []; … … 1050 1050 $title = $field['title'] ?? $id; 1051 1051 $desc = $field['description']; 1052 $options = $ field['options'];1052 $options = $this->parse_options( $field['options'] ?? [] ); 1053 1053 $value = $this->get_field_value( $field ); 1054 1054 $value = is_array( $value ) ? $value : [ $value ]; … … 1223 1223 return \implode( ' ', $list ); 1224 1224 } 1225 1226 /** 1227 * @since 0.7.0 1228 * @param array $options 1229 * @return array 1230 */ 1231 protected function parse_options ( $options ) { 1232 if ( is_callable( $options ) ) { 1233 $options = (array) call_user_func( $options ); 1234 } 1235 return $options; 1236 } 1225 1237 } -
wp-tweaks/tags/2.4.0/languages/wp-tweaks-pt_BR.po
r2998320 r3204865 3 3 "Project-Id-Version: WP Tweaks\n" 4 4 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-tweaks\n" 5 "POT-Creation-Date: 202 3-11-19T10:23:00-03:00\n"6 "PO-Revision-Date: 202 3-11-19 10:23-0300\n"5 "POT-Creation-Date: 2024-12-09T12:43:40+00:00\n" 6 "PO-Revision-Date: 2024-12-09 09:44-0300\n" 7 7 "Last-Translator: \n" 8 8 "Language-Team: Português do Brasil\n" … … 12 12 "Content-Transfer-Encoding: 8bit\n" 13 13 "Plural-Forms: nplurals=2; plural=n != 1;\n" 14 "X-Generator: Poedit 3. 0.1\n"14 "X-Generator: Poedit 3.4.4\n" 15 15 "X-Loco-Version: 2.6.1; wp-5.9.3\n" 16 16 … … 81 81 msgid "Disable comments" 82 82 msgstr "Desativar comentários" 83 84 #: classes/Settings.php:89 85 msgid "Hides and disables new comments on pages and blog posts." 86 msgstr "Oculta e desativa novos comentários em páginas e postagens de blog." 83 87 84 88 #: classes/Settings.php:93 … … 186 190 msgstr "API de Heartbeat" 187 191 188 #: classes/Settings.php:208 192 #: classes/Settings.php:208 classes/Settings.php:250 189 193 msgid "Default" 190 194 msgstr "Padrão" … … 198 202 msgstr "120 segundos" 199 203 200 #: classes/Settings.php:211 204 #: classes/Settings.php:211 classes/Settings.php:254 201 205 msgid "Disable" 202 206 msgstr "Desativar" … … 238 242 239 243 #: classes/Settings.php:247 244 msgid "Post Revisions" 245 msgstr "Revisões de Postagem" 246 247 #: classes/Settings.php:257 248 msgid "" 249 "Limit or disable the number of posts revisions that WordPress stores in the " 250 "database." 251 msgstr "" 252 "Limite ou desative o número de revisões de postagem que o WordPress armazena " 253 "no banco de dados." 254 255 #: classes/Settings.php:261 240 256 msgid "Remove \"Comments\" from admin bar" 241 257 msgstr "Remover \"Comentários\" da barra de administrador" 242 258 243 #: classes/Settings.php:2 53259 #: classes/Settings.php:267 244 260 msgid "Remove \"WordPress Logo\" from admin bar" 245 261 msgstr "Remover \"Logo do WordPress\" da barra de administrador" 246 262 247 #: classes/Settings.php:2 59263 #: classes/Settings.php:273 248 264 msgid "Remove \"+ New\" button from admin bar" 249 265 msgstr "Remover botão \"+ Novo\" da barra de administrador" 250 266 251 #: classes/Settings.php:2 65267 #: classes/Settings.php:279 252 268 msgid "Remove some default dashboard widgets (useless for clients)" 253 269 msgstr "" 254 270 "Remover alguns widgets padrões do Painel (inúteis para usuários leigos)" 255 271 256 #: classes/Settings.php:2 71272 #: classes/Settings.php:285 257 273 msgid "Remove \"Howdy\" from admin bar" 258 274 msgstr "Remover \"Olá\" da barra de administrador" 259 275 260 #: classes/Settings.php:2 77276 #: classes/Settings.php:291 261 277 msgid "Remove language switcher from login page" 262 278 msgstr "Remover seletor de idioma da página de login" 263 279 264 #: classes/Settings.php:2 83280 #: classes/Settings.php:297 265 281 msgid "Remove query string from static scripts" 266 282 msgstr "Remover query string dos códigos estáticos" 267 283 268 #: classes/Settings.php: 289284 #: classes/Settings.php:303 269 285 msgid "Remove" 270 286 msgstr "Remover" 271 287 272 #: classes/Settings.php: 295288 #: classes/Settings.php:309 273 289 msgid "Remove Dashboard \"welcome panel\"" 274 290 msgstr "Remover \"Boas-vindas\" do Painel" 275 291 276 #: classes/Settings.php:3 01292 #: classes/Settings.php:315 277 293 msgid "Remove WordPress version number in frontend" 278 294 msgstr "Remover versão do WordPress no frontend" 279 295 280 #: classes/Settings.php:3 07296 #: classes/Settings.php:321 281 297 msgid "Security Headers" 282 298 msgstr "Headers de Segurança" 283 299 284 300 #. translators: %s is the securityHeaders.io URL. Please preserve the markdown syntax. 285 #: classes/Settings.php:3 20301 #: classes/Settings.php:334 286 302 msgid "" 287 303 "Only activate these options if you are sure of what you are doing and don't " … … 295 311 "usando [securityHeaders.io](%s)." 296 312 297 #: classes/Settings.php:3 34313 #: classes/Settings.php:348 298 314 msgid "Settings" 299 315 msgstr "Configurações" … … 330 346 #~ msgstr "" 331 347 #~ "Tenha certeza de criar um \"cron job\" externo ao ativar essa opção." 332 333 #~ msgid "Hides and disables new comments on pages and blog posts."334 #~ msgstr "Oculta e desativa novos comentários em páginas e postagens de blog."335 348 336 349 #~ msgid "ERROR" -
wp-tweaks/tags/2.4.0/languages/wp-tweaks.pot
r2998320 r3204865 1 # Copyright (C) 202 3Luiz Bills1 # Copyright (C) 2024 Luiz Bills 2 2 # This file is distributed under the GPLv3. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WP Tweaks 2. 3.0\n"5 "Project-Id-Version: WP Tweaks 2.4.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-tweaks\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 3-11-19T10:23:00-03:00\n"12 "POT-Creation-Date: 2024-12-09T12:43:40+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.6.0\n" … … 76 76 msgstr "" 77 77 78 #: classes/Settings.php:89 79 msgid "Hides and disables new comments on pages and blog posts." 80 msgstr "" 81 78 82 #: classes/Settings.php:93 79 83 msgid "Disable WP CRON" … … 179 183 180 184 #: classes/Settings.php:208 185 #: classes/Settings.php:250 181 186 msgid "Default" 182 187 msgstr "" … … 191 196 192 197 #: classes/Settings.php:211 198 #: classes/Settings.php:254 193 199 msgid "Disable" 194 200 msgstr "" … … 220 226 221 227 #: classes/Settings.php:247 228 msgid "Post Revisions" 229 msgstr "" 230 231 #: classes/Settings.php:257 232 msgid "Limit or disable the number of posts revisions that WordPress stores in the database." 233 msgstr "" 234 235 #: classes/Settings.php:261 222 236 msgid "Remove \"Comments\" from admin bar" 223 237 msgstr "" 224 238 225 #: classes/Settings.php:2 53239 #: classes/Settings.php:267 226 240 msgid "Remove \"WordPress Logo\" from admin bar" 227 241 msgstr "" 228 242 229 #: classes/Settings.php:2 59243 #: classes/Settings.php:273 230 244 msgid "Remove \"+ New\" button from admin bar" 231 245 msgstr "" 232 246 233 #: classes/Settings.php:2 65247 #: classes/Settings.php:279 234 248 msgid "Remove some default dashboard widgets (useless for clients)" 235 249 msgstr "" 236 250 237 #: classes/Settings.php:2 71251 #: classes/Settings.php:285 238 252 msgid "Remove \"Howdy\" from admin bar" 239 253 msgstr "" 240 254 241 #: classes/Settings.php:2 77255 #: classes/Settings.php:291 242 256 msgid "Remove language switcher from login page" 243 257 msgstr "" 244 258 245 #: classes/Settings.php:2 83259 #: classes/Settings.php:297 246 260 msgid "Remove query string from static scripts" 247 261 msgstr "" 248 262 249 #: classes/Settings.php: 289263 #: classes/Settings.php:303 250 264 msgid "Remove" 251 265 msgstr "" 252 266 253 #: classes/Settings.php: 295267 #: classes/Settings.php:309 254 268 msgid "Remove Dashboard \"welcome panel\"" 255 269 msgstr "" 256 270 257 #: classes/Settings.php:3 01271 #: classes/Settings.php:315 258 272 msgid "Remove WordPress version number in frontend" 259 273 msgstr "" 260 274 261 #: classes/Settings.php:3 07275 #: classes/Settings.php:321 262 276 msgid "Security Headers" 263 277 msgstr "" 264 278 265 279 #. translators: %s is the securityHeaders.io URL. Please preserve the markdown syntax. 266 #: classes/Settings.php:3 20280 #: classes/Settings.php:334 267 281 msgid "Only activate these options if you are sure of what you are doing and don't forget to test your site. This headers are used to make your site more secure. Once you have setup each header, check it using [securityHeaders.io](%s)." 268 282 msgstr "" 269 283 270 #: classes/Settings.php:3 34284 #: classes/Settings.php:348 271 285 msgid "Settings" 272 286 msgstr "" -
wp-tweaks/tags/2.4.0/readme.txt
r3024786 r3204865 4 4 Donate link: https://www.luizpb.com/donate/ 5 5 Requires at least: 4.0 6 Tested up to: 6. 46 Tested up to: 6.7 7 7 Requires PHP: 7.4 8 Stable tag: 2. 3.48 Stable tag: 2.4.0 9 9 License: GPLv3 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 56 56 == Changelog == 57 57 58 = 2.4.0 - 2024-12-09 = 59 60 - Option to limit or disable post revisions. 61 58 62 = 2.3.4 - 2024-01-21 = 59 63 -
wp-tweaks/tags/2.4.0/vendor/autoload.php
r3024786 r3204865 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 0ebffebf507b02320f4e68797ef498f0::getLoader();25 return ComposerAutoloaderInit3de4af3b4286b390214179267289e6fd::getLoader(); -
wp-tweaks/tags/2.4.0/vendor/composer/ClassLoader.php
r3024786 r3204865 46 46 private static $includeFile; 47 47 48 /** @var string|null*/48 /** @var ?string */ 49 49 private $vendorDir; 50 50 51 51 // PSR-4 52 52 /** 53 * @var array<string, array<string, int>> 53 * @var array[] 54 * @psalm-var array<string, array<string, int>> 54 55 */ 55 56 private $prefixLengthsPsr4 = array(); 56 57 /** 57 * @var array<string, list<string>> 58 * @var array[] 59 * @psalm-var array<string, array<int, string>> 58 60 */ 59 61 private $prefixDirsPsr4 = array(); 60 62 /** 61 * @var list<string> 63 * @var array[] 64 * @psalm-var array<string, string> 62 65 */ 63 66 private $fallbackDirsPsr4 = array(); … … 65 68 // PSR-0 66 69 /** 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 70 * @var array[] 71 * @psalm-var array<string, array<string, string[]>> 72 72 */ 73 73 private $prefixesPsr0 = array(); 74 74 /** 75 * @var list<string> 75 * @var array[] 76 * @psalm-var array<string, string> 76 77 */ 77 78 private $fallbackDirsPsr0 = array(); … … 81 82 82 83 /** 83 * @var array<string, string> 84 * @var string[] 85 * @psalm-var array<string, string> 84 86 */ 85 87 private $classMap = array(); … … 89 91 90 92 /** 91 * @var array<string, bool> 93 * @var bool[] 94 * @psalm-var array<string, bool> 92 95 */ 93 96 private $missingClasses = array(); 94 97 95 /** @var string|null*/98 /** @var ?string */ 96 99 private $apcuPrefix; 97 100 98 101 /** 99 * @var array<string, self>102 * @var self[] 100 103 */ 101 104 private static $registeredLoaders = array(); 102 105 103 106 /** 104 * @param string|null$vendorDir107 * @param ?string $vendorDir 105 108 */ 106 109 public function __construct($vendorDir = null) … … 111 114 112 115 /** 113 * @return array<string, list<string>>116 * @return string[] 114 117 */ 115 118 public function getPrefixes() … … 123 126 124 127 /** 125 * @return array<string, list<string>> 128 * @return array[] 129 * @psalm-return array<string, array<int, string>> 126 130 */ 127 131 public function getPrefixesPsr4() … … 131 135 132 136 /** 133 * @return list<string> 137 * @return array[] 138 * @psalm-return array<string, string> 134 139 */ 135 140 public function getFallbackDirs() … … 139 144 140 145 /** 141 * @return list<string> 146 * @return array[] 147 * @psalm-return array<string, string> 142 148 */ 143 149 public function getFallbackDirsPsr4() … … 147 153 148 154 /** 149 * @return array<string, string> Array of classname => path 155 * @return string[] Array of classname => path 156 * @psalm-return array<string, string> 150 157 */ 151 158 public function getClassMap() … … 155 162 156 163 /** 157 * @param array<string, string> $classMap Class to filename map 164 * @param string[] $classMap Class to filename map 165 * @psalm-param array<string, string> $classMap 158 166 * 159 167 * @return void … … 172 180 * appending or prepending to the ones previously set for this prefix. 173 181 * 174 * @param string 175 * @param list<string>|string $paths The PSR-0 root directories176 * @param bool 182 * @param string $prefix The prefix 183 * @param string[]|string $paths The PSR-0 root directories 184 * @param bool $prepend Whether to prepend the directories 177 185 * 178 186 * @return void … … 180 188 public function add($prefix, $paths, $prepend = false) 181 189 { 182 $paths = (array) $paths;183 190 if (!$prefix) { 184 191 if ($prepend) { 185 192 $this->fallbackDirsPsr0 = array_merge( 186 $paths,193 (array) $paths, 187 194 $this->fallbackDirsPsr0 188 195 ); … … 190 197 $this->fallbackDirsPsr0 = array_merge( 191 198 $this->fallbackDirsPsr0, 192 $paths199 (array) $paths 193 200 ); 194 201 } … … 199 206 $first = $prefix[0]; 200 207 if (!isset($this->prefixesPsr0[$first][$prefix])) { 201 $this->prefixesPsr0[$first][$prefix] = $paths;208 $this->prefixesPsr0[$first][$prefix] = (array) $paths; 202 209 203 210 return; … … 205 212 if ($prepend) { 206 213 $this->prefixesPsr0[$first][$prefix] = array_merge( 207 $paths,214 (array) $paths, 208 215 $this->prefixesPsr0[$first][$prefix] 209 216 ); … … 211 218 $this->prefixesPsr0[$first][$prefix] = array_merge( 212 219 $this->prefixesPsr0[$first][$prefix], 213 $paths220 (array) $paths 214 221 ); 215 222 } … … 220 227 * appending or prepending to the ones previously set for this namespace. 221 228 * 222 * @param string 223 * @param list<string>|string $paths The PSR-4 base directories224 * @param bool 229 * @param string $prefix The prefix/namespace, with trailing '\\' 230 * @param string[]|string $paths The PSR-4 base directories 231 * @param bool $prepend Whether to prepend the directories 225 232 * 226 233 * @throws \InvalidArgumentException … … 230 237 public function addPsr4($prefix, $paths, $prepend = false) 231 238 { 232 $paths = (array) $paths;233 239 if (!$prefix) { 234 240 // Register directories for the root namespace. 235 241 if ($prepend) { 236 242 $this->fallbackDirsPsr4 = array_merge( 237 $paths,243 (array) $paths, 238 244 $this->fallbackDirsPsr4 239 245 ); … … 241 247 $this->fallbackDirsPsr4 = array_merge( 242 248 $this->fallbackDirsPsr4, 243 $paths249 (array) $paths 244 250 ); 245 251 } … … 251 257 } 252 258 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 253 $this->prefixDirsPsr4[$prefix] = $paths;259 $this->prefixDirsPsr4[$prefix] = (array) $paths; 254 260 } elseif ($prepend) { 255 261 // Prepend directories for an already registered namespace. 256 262 $this->prefixDirsPsr4[$prefix] = array_merge( 257 $paths,263 (array) $paths, 258 264 $this->prefixDirsPsr4[$prefix] 259 265 ); … … 262 268 $this->prefixDirsPsr4[$prefix] = array_merge( 263 269 $this->prefixDirsPsr4[$prefix], 264 $paths270 (array) $paths 265 271 ); 266 272 } … … 271 277 * replacing any others previously set for this prefix. 272 278 * 273 * @param string 274 * @param list<string>|string $paths The PSR-0 base directories279 * @param string $prefix The prefix 280 * @param string[]|string $paths The PSR-0 base directories 275 281 * 276 282 * @return void … … 289 295 * replacing any others previously set for this namespace. 290 296 * 291 * @param string 292 * @param list<string>|string $paths The PSR-4 base directories297 * @param string $prefix The prefix/namespace, with trailing '\\' 298 * @param string[]|string $paths The PSR-4 base directories 293 299 * 294 300 * @throws \InvalidArgumentException … … 476 482 477 483 /** 478 * Returns the currently registered loaders keyed by their corresponding vendor directories.479 * 480 * @return array<string, self>484 * Returns the currently registered loaders indexed by their corresponding vendor directories. 485 * 486 * @return self[] 481 487 */ 482 488 public static function getRegisteredLoaders() -
wp-tweaks/tags/2.4.0/vendor/composer/InstalledVersions.php
r3024786 r3204865 99 99 foreach (self::getInstalled() as $installed) { 100 100 if (isset($installed['versions'][$packageName])) { 101 return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;101 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']); 102 102 } 103 103 } … … 120 120 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 121 { 122 $constraint = $parser->parseConstraints( (string)$constraint);122 $constraint = $parser->parseConstraints($constraint); 123 123 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 124 … … 329 329 $installed[] = self::$installedByVendor[$vendorDir]; 330 330 } elseif (is_file($vendorDir.'/composer/installed.php')) { 331 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 331 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 334 332 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 333 self::$installed = $installed[count($installed) - 1]; … … 343 341 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 344 342 if (substr(__DIR__, -8, 1) !== 'C') { 345 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 346 $required = require __DIR__ . '/installed.php'; 347 self::$installed = $required; 343 self::$installed = require __DIR__ . '/installed.php'; 348 344 } else { 349 345 self::$installed = array(); 350 346 } 351 347 } 352 353 if (self::$installed !== array()) { 354 $installed[] = self::$installed; 355 } 348 $installed[] = self::$installed; 356 349 357 350 return $installed; -
wp-tweaks/tags/2.4.0/vendor/composer/autoload_real.php
r3024786 r3204865 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 0ebffebf507b02320f4e68797ef498f05 class ComposerAutoloaderInit3de4af3b4286b390214179267289e6fd 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 0ebffebf507b02320f4e68797ef498f0', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit3de4af3b4286b390214179267289e6fd', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 0ebffebf507b02320f4e68797ef498f0', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit3de4af3b4286b390214179267289e6fd', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 0ebffebf507b02320f4e68797ef498f0::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit3de4af3b4286b390214179267289e6fd::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
wp-tweaks/tags/2.4.0/vendor/composer/autoload_static.php
r3024786 r3204865 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 0ebffebf507b02320f4e68797ef498f07 class ComposerStaticInit3de4af3b4286b390214179267289e6fd 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 37 37 { 38 38 return \Closure::bind(function () use ($loader) { 39 $loader->prefixLengthsPsr4 = ComposerStaticInit 0ebffebf507b02320f4e68797ef498f0::$prefixLengthsPsr4;40 $loader->prefixDirsPsr4 = ComposerStaticInit 0ebffebf507b02320f4e68797ef498f0::$prefixDirsPsr4;41 $loader->classMap = ComposerStaticInit 0ebffebf507b02320f4e68797ef498f0::$classMap;39 $loader->prefixLengthsPsr4 = ComposerStaticInit3de4af3b4286b390214179267289e6fd::$prefixLengthsPsr4; 40 $loader->prefixDirsPsr4 = ComposerStaticInit3de4af3b4286b390214179267289e6fd::$prefixDirsPsr4; 41 $loader->classMap = ComposerStaticInit3de4af3b4286b390214179267289e6fd::$classMap; 42 42 43 43 }, null, ClassLoader::class); -
wp-tweaks/tags/2.4.0/vendor/composer/installed.php
r3024786 r3204865 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' 8cdbb90fd54e7d3938c660fa9eb8659acba5babf',6 'reference' => 'd07f32d0cdf99046b105b74e53d2810730c6f033', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => ' 8cdbb90fd54e7d3938c660fa9eb8659acba5babf',16 'reference' => 'd07f32d0cdf99046b105b74e53d2810730c6f033', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
wp-tweaks/tags/2.4.0/wp-tweaks.php
r3024786 r3204865 4 4 * Plugin URI: https://github.com/luizbills/wp-tweaks 5 5 * Description: Several opinionated WordPress tweaks focused in security and performance. 6 * Version: 2. 3.46 * Version: 2.4.0 7 7 * Requires at least: 4.0 8 8 * Requires PHP: 7.4 -
wp-tweaks/trunk/changelog.txt
r3024786 r3204865 1 = 2.4.0 - 2024-12-09 = 2 3 - Option to limit or disable post revisions. 4 1 5 = 2.3.4 - 2024-01-21 = 2 6 -
wp-tweaks/trunk/classes/Settings.php
r2998320 r3204865 193 193 'type' => 'checkbox', 194 194 'default' => true, 195 'description' => __( 'For admin users only.', 'wp-tweaks' ),195 'description' => esc_html__( 'For admin users only.', 'wp-tweaks' ), 196 196 ], 197 197 [ … … 212 212 ], 213 213 'default' => '', 214 'description' => __( 'Search for "What is WordPress Heartbeat?" in your browser to learn more.', 'wp-tweaks' )214 'description' => esc_html__( 'Search for "What is WordPress Heartbeat?" in your browser to learn more.', 'wp-tweaks' ) 215 215 ], 216 216 [ … … 242 242 'type' => 'checkbox', 243 243 'default' => true, 244 ], 245 [ 246 'id' => 'post-revisions', 247 'title' => __( 'Post Revisions', 'wp-tweaks' ), 248 'type' => 'select', 249 'options' => [ 250 '' => __( 'Default', 'wp-tweaks' ), 251 '1' => 1, 252 '3' => 3, 253 '5' => 5, 254 '0' => __( 'Disable', 'wp-tweaks' ), 255 ], 256 'default' => '', 257 'description' => esc_html__( 'Limit or disable the number of posts revisions that WordPress stores in the database.', 'wp-tweaks' ) 244 258 ], 245 259 [ -
wp-tweaks/trunk/dependencies/WP_Options_Page.php
r2956929 r3204865 8 8 * @package WP_Options_Page 9 9 * @author Luiz Bills <[email protected]> 10 * @version 0. 6.110 * @version 0.7.0 11 11 * @see https://github.com/luizbills/wp-options-page 12 12 */ … … 18 18 * @var string 19 19 */ 20 const VERSION = '0. 6.1';20 const VERSION = '0.7.0'; 21 21 22 22 /** … … 930 930 $desc = $field['description']; 931 931 $value = $this->get_field_value( $field ); 932 $options = $ field['options'] ?? [];932 $options = $this->parse_options( $field['options'] ?? [] ); 933 933 934 934 $atts = $field['attributes'] ?? []; … … 964 964 $desc = $field['description']; 965 965 $value = $this->get_field_value( $field ); 966 $options = $ field['options'] ?? [];966 $options = $this->parse_options( $field['options'] ?? [] ); 967 967 968 968 $atts = $field['attributes'] ?? []; … … 1050 1050 $title = $field['title'] ?? $id; 1051 1051 $desc = $field['description']; 1052 $options = $ field['options'];1052 $options = $this->parse_options( $field['options'] ?? [] ); 1053 1053 $value = $this->get_field_value( $field ); 1054 1054 $value = is_array( $value ) ? $value : [ $value ]; … … 1223 1223 return \implode( ' ', $list ); 1224 1224 } 1225 1226 /** 1227 * @since 0.7.0 1228 * @param array $options 1229 * @return array 1230 */ 1231 protected function parse_options ( $options ) { 1232 if ( is_callable( $options ) ) { 1233 $options = (array) call_user_func( $options ); 1234 } 1235 return $options; 1236 } 1225 1237 } -
wp-tweaks/trunk/languages/wp-tweaks-pt_BR.po
r2998320 r3204865 3 3 "Project-Id-Version: WP Tweaks\n" 4 4 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-tweaks\n" 5 "POT-Creation-Date: 202 3-11-19T10:23:00-03:00\n"6 "PO-Revision-Date: 202 3-11-19 10:23-0300\n"5 "POT-Creation-Date: 2024-12-09T12:43:40+00:00\n" 6 "PO-Revision-Date: 2024-12-09 09:44-0300\n" 7 7 "Last-Translator: \n" 8 8 "Language-Team: Português do Brasil\n" … … 12 12 "Content-Transfer-Encoding: 8bit\n" 13 13 "Plural-Forms: nplurals=2; plural=n != 1;\n" 14 "X-Generator: Poedit 3. 0.1\n"14 "X-Generator: Poedit 3.4.4\n" 15 15 "X-Loco-Version: 2.6.1; wp-5.9.3\n" 16 16 … … 81 81 msgid "Disable comments" 82 82 msgstr "Desativar comentários" 83 84 #: classes/Settings.php:89 85 msgid "Hides and disables new comments on pages and blog posts." 86 msgstr "Oculta e desativa novos comentários em páginas e postagens de blog." 83 87 84 88 #: classes/Settings.php:93 … … 186 190 msgstr "API de Heartbeat" 187 191 188 #: classes/Settings.php:208 192 #: classes/Settings.php:208 classes/Settings.php:250 189 193 msgid "Default" 190 194 msgstr "Padrão" … … 198 202 msgstr "120 segundos" 199 203 200 #: classes/Settings.php:211 204 #: classes/Settings.php:211 classes/Settings.php:254 201 205 msgid "Disable" 202 206 msgstr "Desativar" … … 238 242 239 243 #: classes/Settings.php:247 244 msgid "Post Revisions" 245 msgstr "Revisões de Postagem" 246 247 #: classes/Settings.php:257 248 msgid "" 249 "Limit or disable the number of posts revisions that WordPress stores in the " 250 "database." 251 msgstr "" 252 "Limite ou desative o número de revisões de postagem que o WordPress armazena " 253 "no banco de dados." 254 255 #: classes/Settings.php:261 240 256 msgid "Remove \"Comments\" from admin bar" 241 257 msgstr "Remover \"Comentários\" da barra de administrador" 242 258 243 #: classes/Settings.php:2 53259 #: classes/Settings.php:267 244 260 msgid "Remove \"WordPress Logo\" from admin bar" 245 261 msgstr "Remover \"Logo do WordPress\" da barra de administrador" 246 262 247 #: classes/Settings.php:2 59263 #: classes/Settings.php:273 248 264 msgid "Remove \"+ New\" button from admin bar" 249 265 msgstr "Remover botão \"+ Novo\" da barra de administrador" 250 266 251 #: classes/Settings.php:2 65267 #: classes/Settings.php:279 252 268 msgid "Remove some default dashboard widgets (useless for clients)" 253 269 msgstr "" 254 270 "Remover alguns widgets padrões do Painel (inúteis para usuários leigos)" 255 271 256 #: classes/Settings.php:2 71272 #: classes/Settings.php:285 257 273 msgid "Remove \"Howdy\" from admin bar" 258 274 msgstr "Remover \"Olá\" da barra de administrador" 259 275 260 #: classes/Settings.php:2 77276 #: classes/Settings.php:291 261 277 msgid "Remove language switcher from login page" 262 278 msgstr "Remover seletor de idioma da página de login" 263 279 264 #: classes/Settings.php:2 83280 #: classes/Settings.php:297 265 281 msgid "Remove query string from static scripts" 266 282 msgstr "Remover query string dos códigos estáticos" 267 283 268 #: classes/Settings.php: 289284 #: classes/Settings.php:303 269 285 msgid "Remove" 270 286 msgstr "Remover" 271 287 272 #: classes/Settings.php: 295288 #: classes/Settings.php:309 273 289 msgid "Remove Dashboard \"welcome panel\"" 274 290 msgstr "Remover \"Boas-vindas\" do Painel" 275 291 276 #: classes/Settings.php:3 01292 #: classes/Settings.php:315 277 293 msgid "Remove WordPress version number in frontend" 278 294 msgstr "Remover versão do WordPress no frontend" 279 295 280 #: classes/Settings.php:3 07296 #: classes/Settings.php:321 281 297 msgid "Security Headers" 282 298 msgstr "Headers de Segurança" 283 299 284 300 #. translators: %s is the securityHeaders.io URL. Please preserve the markdown syntax. 285 #: classes/Settings.php:3 20301 #: classes/Settings.php:334 286 302 msgid "" 287 303 "Only activate these options if you are sure of what you are doing and don't " … … 295 311 "usando [securityHeaders.io](%s)." 296 312 297 #: classes/Settings.php:3 34313 #: classes/Settings.php:348 298 314 msgid "Settings" 299 315 msgstr "Configurações" … … 330 346 #~ msgstr "" 331 347 #~ "Tenha certeza de criar um \"cron job\" externo ao ativar essa opção." 332 333 #~ msgid "Hides and disables new comments on pages and blog posts."334 #~ msgstr "Oculta e desativa novos comentários em páginas e postagens de blog."335 348 336 349 #~ msgid "ERROR" -
wp-tweaks/trunk/languages/wp-tweaks.pot
r2998320 r3204865 1 # Copyright (C) 202 3Luiz Bills1 # Copyright (C) 2024 Luiz Bills 2 2 # This file is distributed under the GPLv3. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WP Tweaks 2. 3.0\n"5 "Project-Id-Version: WP Tweaks 2.4.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-tweaks\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 3-11-19T10:23:00-03:00\n"12 "POT-Creation-Date: 2024-12-09T12:43:40+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.6.0\n" … … 76 76 msgstr "" 77 77 78 #: classes/Settings.php:89 79 msgid "Hides and disables new comments on pages and blog posts." 80 msgstr "" 81 78 82 #: classes/Settings.php:93 79 83 msgid "Disable WP CRON" … … 179 183 180 184 #: classes/Settings.php:208 185 #: classes/Settings.php:250 181 186 msgid "Default" 182 187 msgstr "" … … 191 196 192 197 #: classes/Settings.php:211 198 #: classes/Settings.php:254 193 199 msgid "Disable" 194 200 msgstr "" … … 220 226 221 227 #: classes/Settings.php:247 228 msgid "Post Revisions" 229 msgstr "" 230 231 #: classes/Settings.php:257 232 msgid "Limit or disable the number of posts revisions that WordPress stores in the database." 233 msgstr "" 234 235 #: classes/Settings.php:261 222 236 msgid "Remove \"Comments\" from admin bar" 223 237 msgstr "" 224 238 225 #: classes/Settings.php:2 53239 #: classes/Settings.php:267 226 240 msgid "Remove \"WordPress Logo\" from admin bar" 227 241 msgstr "" 228 242 229 #: classes/Settings.php:2 59243 #: classes/Settings.php:273 230 244 msgid "Remove \"+ New\" button from admin bar" 231 245 msgstr "" 232 246 233 #: classes/Settings.php:2 65247 #: classes/Settings.php:279 234 248 msgid "Remove some default dashboard widgets (useless for clients)" 235 249 msgstr "" 236 250 237 #: classes/Settings.php:2 71251 #: classes/Settings.php:285 238 252 msgid "Remove \"Howdy\" from admin bar" 239 253 msgstr "" 240 254 241 #: classes/Settings.php:2 77255 #: classes/Settings.php:291 242 256 msgid "Remove language switcher from login page" 243 257 msgstr "" 244 258 245 #: classes/Settings.php:2 83259 #: classes/Settings.php:297 246 260 msgid "Remove query string from static scripts" 247 261 msgstr "" 248 262 249 #: classes/Settings.php: 289263 #: classes/Settings.php:303 250 264 msgid "Remove" 251 265 msgstr "" 252 266 253 #: classes/Settings.php: 295267 #: classes/Settings.php:309 254 268 msgid "Remove Dashboard \"welcome panel\"" 255 269 msgstr "" 256 270 257 #: classes/Settings.php:3 01271 #: classes/Settings.php:315 258 272 msgid "Remove WordPress version number in frontend" 259 273 msgstr "" 260 274 261 #: classes/Settings.php:3 07275 #: classes/Settings.php:321 262 276 msgid "Security Headers" 263 277 msgstr "" 264 278 265 279 #. translators: %s is the securityHeaders.io URL. Please preserve the markdown syntax. 266 #: classes/Settings.php:3 20280 #: classes/Settings.php:334 267 281 msgid "Only activate these options if you are sure of what you are doing and don't forget to test your site. This headers are used to make your site more secure. Once you have setup each header, check it using [securityHeaders.io](%s)." 268 282 msgstr "" 269 283 270 #: classes/Settings.php:3 34284 #: classes/Settings.php:348 271 285 msgid "Settings" 272 286 msgstr "" -
wp-tweaks/trunk/readme.txt
r3024786 r3204865 4 4 Donate link: https://www.luizpb.com/donate/ 5 5 Requires at least: 4.0 6 Tested up to: 6. 46 Tested up to: 6.7 7 7 Requires PHP: 7.4 8 Stable tag: 2. 3.48 Stable tag: 2.4.0 9 9 License: GPLv3 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 56 56 == Changelog == 57 57 58 = 2.4.0 - 2024-12-09 = 59 60 - Option to limit or disable post revisions. 61 58 62 = 2.3.4 - 2024-01-21 = 59 63 -
wp-tweaks/trunk/vendor/autoload.php
r3024786 r3204865 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 0ebffebf507b02320f4e68797ef498f0::getLoader();25 return ComposerAutoloaderInit3de4af3b4286b390214179267289e6fd::getLoader(); -
wp-tweaks/trunk/vendor/composer/ClassLoader.php
r3024786 r3204865 46 46 private static $includeFile; 47 47 48 /** @var string|null*/48 /** @var ?string */ 49 49 private $vendorDir; 50 50 51 51 // PSR-4 52 52 /** 53 * @var array<string, array<string, int>> 53 * @var array[] 54 * @psalm-var array<string, array<string, int>> 54 55 */ 55 56 private $prefixLengthsPsr4 = array(); 56 57 /** 57 * @var array<string, list<string>> 58 * @var array[] 59 * @psalm-var array<string, array<int, string>> 58 60 */ 59 61 private $prefixDirsPsr4 = array(); 60 62 /** 61 * @var list<string> 63 * @var array[] 64 * @psalm-var array<string, string> 62 65 */ 63 66 private $fallbackDirsPsr4 = array(); … … 65 68 // PSR-0 66 69 /** 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 70 * @var array[] 71 * @psalm-var array<string, array<string, string[]>> 72 72 */ 73 73 private $prefixesPsr0 = array(); 74 74 /** 75 * @var list<string> 75 * @var array[] 76 * @psalm-var array<string, string> 76 77 */ 77 78 private $fallbackDirsPsr0 = array(); … … 81 82 82 83 /** 83 * @var array<string, string> 84 * @var string[] 85 * @psalm-var array<string, string> 84 86 */ 85 87 private $classMap = array(); … … 89 91 90 92 /** 91 * @var array<string, bool> 93 * @var bool[] 94 * @psalm-var array<string, bool> 92 95 */ 93 96 private $missingClasses = array(); 94 97 95 /** @var string|null*/98 /** @var ?string */ 96 99 private $apcuPrefix; 97 100 98 101 /** 99 * @var array<string, self>102 * @var self[] 100 103 */ 101 104 private static $registeredLoaders = array(); 102 105 103 106 /** 104 * @param string|null$vendorDir107 * @param ?string $vendorDir 105 108 */ 106 109 public function __construct($vendorDir = null) … … 111 114 112 115 /** 113 * @return array<string, list<string>>116 * @return string[] 114 117 */ 115 118 public function getPrefixes() … … 123 126 124 127 /** 125 * @return array<string, list<string>> 128 * @return array[] 129 * @psalm-return array<string, array<int, string>> 126 130 */ 127 131 public function getPrefixesPsr4() … … 131 135 132 136 /** 133 * @return list<string> 137 * @return array[] 138 * @psalm-return array<string, string> 134 139 */ 135 140 public function getFallbackDirs() … … 139 144 140 145 /** 141 * @return list<string> 146 * @return array[] 147 * @psalm-return array<string, string> 142 148 */ 143 149 public function getFallbackDirsPsr4() … … 147 153 148 154 /** 149 * @return array<string, string> Array of classname => path 155 * @return string[] Array of classname => path 156 * @psalm-return array<string, string> 150 157 */ 151 158 public function getClassMap() … … 155 162 156 163 /** 157 * @param array<string, string> $classMap Class to filename map 164 * @param string[] $classMap Class to filename map 165 * @psalm-param array<string, string> $classMap 158 166 * 159 167 * @return void … … 172 180 * appending or prepending to the ones previously set for this prefix. 173 181 * 174 * @param string 175 * @param list<string>|string $paths The PSR-0 root directories176 * @param bool 182 * @param string $prefix The prefix 183 * @param string[]|string $paths The PSR-0 root directories 184 * @param bool $prepend Whether to prepend the directories 177 185 * 178 186 * @return void … … 180 188 public function add($prefix, $paths, $prepend = false) 181 189 { 182 $paths = (array) $paths;183 190 if (!$prefix) { 184 191 if ($prepend) { 185 192 $this->fallbackDirsPsr0 = array_merge( 186 $paths,193 (array) $paths, 187 194 $this->fallbackDirsPsr0 188 195 ); … … 190 197 $this->fallbackDirsPsr0 = array_merge( 191 198 $this->fallbackDirsPsr0, 192 $paths199 (array) $paths 193 200 ); 194 201 } … … 199 206 $first = $prefix[0]; 200 207 if (!isset($this->prefixesPsr0[$first][$prefix])) { 201 $this->prefixesPsr0[$first][$prefix] = $paths;208 $this->prefixesPsr0[$first][$prefix] = (array) $paths; 202 209 203 210 return; … … 205 212 if ($prepend) { 206 213 $this->prefixesPsr0[$first][$prefix] = array_merge( 207 $paths,214 (array) $paths, 208 215 $this->prefixesPsr0[$first][$prefix] 209 216 ); … … 211 218 $this->prefixesPsr0[$first][$prefix] = array_merge( 212 219 $this->prefixesPsr0[$first][$prefix], 213 $paths220 (array) $paths 214 221 ); 215 222 } … … 220 227 * appending or prepending to the ones previously set for this namespace. 221 228 * 222 * @param string 223 * @param list<string>|string $paths The PSR-4 base directories224 * @param bool 229 * @param string $prefix The prefix/namespace, with trailing '\\' 230 * @param string[]|string $paths The PSR-4 base directories 231 * @param bool $prepend Whether to prepend the directories 225 232 * 226 233 * @throws \InvalidArgumentException … … 230 237 public function addPsr4($prefix, $paths, $prepend = false) 231 238 { 232 $paths = (array) $paths;233 239 if (!$prefix) { 234 240 // Register directories for the root namespace. 235 241 if ($prepend) { 236 242 $this->fallbackDirsPsr4 = array_merge( 237 $paths,243 (array) $paths, 238 244 $this->fallbackDirsPsr4 239 245 ); … … 241 247 $this->fallbackDirsPsr4 = array_merge( 242 248 $this->fallbackDirsPsr4, 243 $paths249 (array) $paths 244 250 ); 245 251 } … … 251 257 } 252 258 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 253 $this->prefixDirsPsr4[$prefix] = $paths;259 $this->prefixDirsPsr4[$prefix] = (array) $paths; 254 260 } elseif ($prepend) { 255 261 // Prepend directories for an already registered namespace. 256 262 $this->prefixDirsPsr4[$prefix] = array_merge( 257 $paths,263 (array) $paths, 258 264 $this->prefixDirsPsr4[$prefix] 259 265 ); … … 262 268 $this->prefixDirsPsr4[$prefix] = array_merge( 263 269 $this->prefixDirsPsr4[$prefix], 264 $paths270 (array) $paths 265 271 ); 266 272 } … … 271 277 * replacing any others previously set for this prefix. 272 278 * 273 * @param string 274 * @param list<string>|string $paths The PSR-0 base directories279 * @param string $prefix The prefix 280 * @param string[]|string $paths The PSR-0 base directories 275 281 * 276 282 * @return void … … 289 295 * replacing any others previously set for this namespace. 290 296 * 291 * @param string 292 * @param list<string>|string $paths The PSR-4 base directories297 * @param string $prefix The prefix/namespace, with trailing '\\' 298 * @param string[]|string $paths The PSR-4 base directories 293 299 * 294 300 * @throws \InvalidArgumentException … … 476 482 477 483 /** 478 * Returns the currently registered loaders keyed by their corresponding vendor directories.479 * 480 * @return array<string, self>484 * Returns the currently registered loaders indexed by their corresponding vendor directories. 485 * 486 * @return self[] 481 487 */ 482 488 public static function getRegisteredLoaders() -
wp-tweaks/trunk/vendor/composer/InstalledVersions.php
r3024786 r3204865 99 99 foreach (self::getInstalled() as $installed) { 100 100 if (isset($installed['versions'][$packageName])) { 101 return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;101 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']); 102 102 } 103 103 } … … 120 120 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 121 { 122 $constraint = $parser->parseConstraints( (string)$constraint);122 $constraint = $parser->parseConstraints($constraint); 123 123 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 124 … … 329 329 $installed[] = self::$installedByVendor[$vendorDir]; 330 330 } elseif (is_file($vendorDir.'/composer/installed.php')) { 331 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 331 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 334 332 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 333 self::$installed = $installed[count($installed) - 1]; … … 343 341 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 344 342 if (substr(__DIR__, -8, 1) !== 'C') { 345 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 346 $required = require __DIR__ . '/installed.php'; 347 self::$installed = $required; 343 self::$installed = require __DIR__ . '/installed.php'; 348 344 } else { 349 345 self::$installed = array(); 350 346 } 351 347 } 352 353 if (self::$installed !== array()) { 354 $installed[] = self::$installed; 355 } 348 $installed[] = self::$installed; 356 349 357 350 return $installed; -
wp-tweaks/trunk/vendor/composer/autoload_real.php
r3024786 r3204865 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 0ebffebf507b02320f4e68797ef498f05 class ComposerAutoloaderInit3de4af3b4286b390214179267289e6fd 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 0ebffebf507b02320f4e68797ef498f0', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit3de4af3b4286b390214179267289e6fd', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 0ebffebf507b02320f4e68797ef498f0', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit3de4af3b4286b390214179267289e6fd', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 0ebffebf507b02320f4e68797ef498f0::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit3de4af3b4286b390214179267289e6fd::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
wp-tweaks/trunk/vendor/composer/autoload_static.php
r3024786 r3204865 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 0ebffebf507b02320f4e68797ef498f07 class ComposerStaticInit3de4af3b4286b390214179267289e6fd 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 37 37 { 38 38 return \Closure::bind(function () use ($loader) { 39 $loader->prefixLengthsPsr4 = ComposerStaticInit 0ebffebf507b02320f4e68797ef498f0::$prefixLengthsPsr4;40 $loader->prefixDirsPsr4 = ComposerStaticInit 0ebffebf507b02320f4e68797ef498f0::$prefixDirsPsr4;41 $loader->classMap = ComposerStaticInit 0ebffebf507b02320f4e68797ef498f0::$classMap;39 $loader->prefixLengthsPsr4 = ComposerStaticInit3de4af3b4286b390214179267289e6fd::$prefixLengthsPsr4; 40 $loader->prefixDirsPsr4 = ComposerStaticInit3de4af3b4286b390214179267289e6fd::$prefixDirsPsr4; 41 $loader->classMap = ComposerStaticInit3de4af3b4286b390214179267289e6fd::$classMap; 42 42 43 43 }, null, ClassLoader::class); -
wp-tweaks/trunk/vendor/composer/installed.php
r3024786 r3204865 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' 8cdbb90fd54e7d3938c660fa9eb8659acba5babf',6 'reference' => 'd07f32d0cdf99046b105b74e53d2810730c6f033', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => ' 8cdbb90fd54e7d3938c660fa9eb8659acba5babf',16 'reference' => 'd07f32d0cdf99046b105b74e53d2810730c6f033', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
wp-tweaks/trunk/wp-tweaks.php
r3024786 r3204865 4 4 * Plugin URI: https://github.com/luizbills/wp-tweaks 5 5 * Description: Several opinionated WordPress tweaks focused in security and performance. 6 * Version: 2. 3.46 * Version: 2.4.0 7 7 * Requires at least: 4.0 8 8 * Requires PHP: 7.4
Note: See TracChangeset
for help on using the changeset viewer.