WordPress.org

Support

Support » Plugins and Hacks » Pagely MultiEdit » Feature: CamelCase and Underscores to Spaces in Admin

Feature: CamelCase and Underscores to Spaces in Admin

  • Again, I don’t see a code respository to post this stuff, so I’ll just paste it here. I saw use for CamelCase and Underscores to spaces in the names of the tabs from the admin.

    So on line 174 of multiedit.php:

    // CamelCase => Camel Case:
               $mclean = preg_replace('/(?<=\\w)(?=[A-Z])/'," $1", $mclean);
               // Underscores to Spaces:
               $mclean = str_replace("_", " ", $mclean);

    (This goes right after $mclean = trim($matches[1]);, in case your current source differs from mine.)

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Feature: CamelCase and Underscores to Spaces in Admin’ is closed to new replies.
Skip to toolbar