Seravo / wordpress

The WordPress project layout used by many of Seravo's customers, suitable also for local development with Vagrant and git deployment
https://seravo.com
GNU General Public License v3.0
104 stars 53 forks source link

Default install needs capital_P_dangit #57

Closed k1sul1 closed 5 years ago

k1sul1 commented 7 years ago

Just cloning this repository and running vagrant up, results in things like this:

image

ottok commented 7 years ago

Please run grep -RF Wordpress in your project and tell us where that string stems from so that it can be fixed.

I suspect it stems from translation files outside of our Seravo/WP-palvelu scope.

k1sul1 commented 7 years ago

Seems so. Looks like it stems from koodimonni-language packs. There's a few instances from seravo-plugin, but those are JS.

grep -RF Wordpress .                                                                                                                                                                                                 😻  (272 x 68)
./composer.lock:            "description": "Full Wordpress translation (including themes and core plugins) for Finnish - fi",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Full Wordpress translation (including themes and core plugins) for Swedish - sv_se",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Wordpress akismet translation for Finnish - fi",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Wordpress akismet translation for Swedish - sv_se",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Wordpress bbpress translation for Finnish - fi",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Wordpress bbpress translation for Swedish - sv_se",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Wordpress woocommerce translation for Finnish - fi",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Wordpress woocommerce translation for Swedish - sv_se",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Wordpress wordpress-importer translation for Finnish - fi",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Wordpress wordpress-importer translation for Swedish - sv_se",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Wordpress twentyeleven translation for Finnish - fi",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Wordpress twentyeleven translation for Swedish - sv_se",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Wordpress twentyfifteen translation for Finnish - fi",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Wordpress twentyfifteen translation for Swedish - sv_se",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Wordpress twentyfourteen translation for Finnish - fi",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Wordpress twentyfourteen translation for Swedish - sv_se",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Wordpress twentysixteen translation for Finnish - fi",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Wordpress twentysixteen translation for Swedish - sv_se",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Wordpress twentyten translation for Finnish - fi",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Wordpress twentyten translation for Swedish - sv_se",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Wordpress twentythirteen translation for Finnish - fi",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Wordpress twentythirteen translation for Swedish - sv_se",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Wordpress twentytwelve translation for Finnish - fi",
./composer.lock:                "Wordpress",
./composer.lock:            "description": "Wordpress twentytwelve translation for Swedish - sv_se",
./composer.lock:                "Wordpress",
./htdocs/wordpress/wp-content/mu-plugins/seravo-plugin/js/link-relative.js: * This makes the Wordpress TinyMCE editor link adder use relative URLs
./htdocs/wordpress/wp-content/plugins/auto-post-thumbnail/auto-post-thumbnail.php:Modified by Dr. Tarique Sani <tarique@sanisoft.com> to make it work with Wordpress 3.4
./htdocs/wordpress/wp-content/plugins/auto-post-thumbnail/readme.txt:* Added fix for featured images behaving differently in Wordpress version 3.4. NOTE: This version will fix only images in future posts. For fixing images of past posts see http://www.clickthrough-marketing.com/how-to-fix-auto-post-thumbnail-on-wordpress-3.4-seo-friendly-800610805/
./htdocs/wordpress/wp-content/plugins/auto-post-thumbnail/readme.txt:* Added fix for jquery progress bar error causing due to Wordpress version 3.1
./htdocs/wordpress/wp-includes/formatting.php: * Forever eliminate "Wordpress" from the planet (or at least the little bit we can influence).
./htdocs/wordpress/wp-includes/formatting.php:      return str_replace( 'Wordpress', 'WordPress', $text );
./htdocs/wordpress/wp-includes/formatting.php:      array( ' Wordpress', '&#8216;Wordpress', $dblq . 'Wordpress', '>Wordpress', '(Wordpress' ),
./htdocs/wp-content/mu-plugins/seravo-plugin/js/link-relative.js: * This makes the Wordpress TinyMCE editor link adder use relative URLs
./htdocs/wp-content/plugins/auto-post-thumbnail/auto-post-thumbnail.php:Modified by Dr. Tarique Sani <tarique@sanisoft.com> to make it work with Wordpress 3.4
./htdocs/wp-content/plugins/auto-post-thumbnail/readme.txt:* Added fix for featured images behaving differently in Wordpress version 3.4. NOTE: This version will fix only images in future posts. For fixing images of past posts see http://www.clickthrough-marketing.com/how-to-fix-auto-post-thumbnail-on-wordpress-3.4-seo-friendly-800610805/
./htdocs/wp-content/plugins/auto-post-thumbnail/readme.txt:* Added fix for jquery progress bar error causing due to Wordpress version 3.1
./vendor/composer/installed.json:        "description": "Wordpress twentytwelve translation for Finnish - fi",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Wordpress twentythirteen translation for Finnish - fi",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Wordpress twentyten translation for Finnish - fi",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Wordpress twentysixteen translation for Finnish - fi",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Wordpress twentyfourteen translation for Finnish - fi",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Wordpress twentyfifteen translation for Finnish - fi",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Wordpress twentyeleven translation for Finnish - fi",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Wordpress wordpress-importer translation for Finnish - fi",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Wordpress woocommerce translation for Finnish - fi",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Wordpress bbpress translation for Finnish - fi",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Wordpress akismet translation for Finnish - fi",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Full Wordpress translation (including themes and core plugins) for Finnish - fi",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Wordpress twentytwelve translation for Swedish - sv_se",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Wordpress twentythirteen translation for Swedish - sv_se",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Wordpress twentyten translation for Swedish - sv_se",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Wordpress twentysixteen translation for Swedish - sv_se",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Wordpress twentyfourteen translation for Swedish - sv_se",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Wordpress twentyfifteen translation for Swedish - sv_se",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Wordpress twentyeleven translation for Swedish - sv_se",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Wordpress wordpress-importer translation for Swedish - sv_se",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Wordpress woocommerce translation for Swedish - sv_se",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Wordpress bbpress translation for Swedish - sv_se",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Wordpress akismet translation for Swedish - sv_se",
./vendor/composer/installed.json:            "Wordpress",
./vendor/composer/installed.json:        "description": "Full Wordpress translation (including themes and core plugins) for Swedish - sv_se",
./vendor/composer/installed.json:            "Wordpress",
ottok commented 7 years ago

The hunt is still on. Dangit.

ottok commented 5 years ago

I found the problem now but the function that is supposed to just one thing does not seem to do it:

$ wp eval "echo capital_P_dangit('Wordpress wordpress WORDPRESS');"
Wordpress wordpress WORDPRESS

Weird.. https://developer.wordpress.org/reference/functions/capital_p_dangit/