Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #46327, comment 1


Ignore:
Timestamp:
02/23/2019 02:09:29 PM (7 years ago)
Author:
szepe.viktor
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #46327, comment 1

    initial v1  
    1 If anyone interested:
     1If anyone interested: https://github.com/szepeviktor/wordpress-autoloaded
    22
    3 Unpack the current release and
     3''WordPress without unconditional class loading + Composer''
    44
    5 {{{
    6 {
    7     "require" : {
    8         "giacocorsiglia/wordpress-stubs": "4.9.8"
    9     },
    10     "autoload": {
    11         "psr-4": {
    12             "": "wordpress/"
    13         }
    14     }
    15 }
    16 }}}
    17 
    18 `composer update -o`
    19 
    20 {{{
    21 #!/bin/bash
    22 
    23 sed -ne "s#.* . '/wordpress/\(.*\)',#\1#p" ../vendor/composer/autoload_classmap.php | uniq \
    24     | xargs -I% grep -rExn "\s*(require|include)(_once)?\(?\s*ABSPATH\s*\.\s*'/?%'\s*\)?;.*" | cut -d: -f1-2 \
    25     | while read -r FILE_LINE; do echo "$FILE_LINE ..."; sed -e "${FILE_LINE#*:}"'s|.*|// AUTOLOAD &|' -i "${FILE_LINE%:*}"; done
    26 }}}
     5The shell script could be rewritten in PHP!