Make WordPress Core

Opened 4 years ago

Last modified 3 years ago

#20053 closed defect (bug)

Problem with Pages (not posts) — at Version 1

Reported by: shopandstore Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3.1
Component: Canonical Keywords: reporter-feedback close
Focuses: Cc:

Description (last modified by scribu)


if i have a page(not post) on my site (named "WORD"),
i want the function to understand that value.

i use

$var = word; ///not a double quotation;
$var = strtoupper($var);

but it doesn't work. if my site has a page "word" (with lowercase), than the function works. but i want

to get the uppercase value. i need this..

strtoupper(word); gives you = WORD,
but the whole function, which has

can't find the page named mysite.com/WORD, but it searches again for the page mystie.com/word" (with lowercase).

everything works well for posts, but i want for pages..

Change History (1)

#1 @scribu
4 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.