Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #20053


Ignore:
Timestamp:
02/16/2012 07:53:39 AM (13 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20053 – Description

    initial v1  
    55
    66i use
     7
     8{{{
    79$var = word; ///not a double quotation;
    810$var = strtoupper($var);
    911$_GET['page_id']=$var;
     12}}}
     13
    1014but it doesn't work. if my site has a page "word" (with lowercase), than the function works. but i want
    1115
    1216to get the uppercase value. i need this..
    1317
     18{{{
    1419strtoupper(word); gives you = WORD,
    1520but the whole function, which has
    1621$_GET['page_id']=strtoupper(word);
    17 can't find the page named mysite.com/WORD, but it searches again for the page mystie.com/word" (with
     22}}}
    1823
    19 lowercase).
     24can't find the page named mysite.com/WORD, but it searches again for the page mystie.com/word" (with lowercase).
     25
    2026everything works well for posts, but i want for pages..